vms-nest-prisma-api-document 65.0.0 → 70.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,22 +62,22 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
62
62
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
63
63
  }, "strip", z.ZodTypeAny, {
64
64
  date: string;
65
- start_fuel_liters: number;
66
- end_fuel_liters: number;
65
+ status: Status;
66
+ organisation_id: string;
67
+ user_id: string;
68
+ vehicle_id: string;
69
+ driver_id: string;
70
+ device_id: string;
67
71
  total_km: number;
68
72
  consumed_fuel_liters: number;
69
73
  refills_count: number;
74
+ start_fuel_liters: number;
75
+ end_fuel_liters: number;
70
76
  refill_liters: number;
71
77
  removals_count: number;
72
78
  removal_liters: number;
73
79
  mileage_kmpl: number;
74
80
  liters_per_100km: number;
75
- status: Status;
76
- organisation_id: string;
77
- user_id: string;
78
- vehicle_id: string;
79
- driver_id: string;
80
- device_id: string;
81
81
  }, {
82
82
  date: string;
83
83
  status: Status;
@@ -86,11 +86,11 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
86
86
  vehicle_id: string;
87
87
  driver_id: string;
88
88
  device_id: string;
89
- start_fuel_liters?: unknown;
90
- end_fuel_liters?: unknown;
91
89
  total_km?: unknown;
92
90
  consumed_fuel_liters?: unknown;
93
91
  refills_count?: unknown;
92
+ start_fuel_liters?: unknown;
93
+ end_fuel_liters?: unknown;
94
94
  refill_liters?: unknown;
95
95
  removals_count?: unknown;
96
96
  removal_liters?: unknown;
@@ -140,6 +140,7 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
140
140
  day_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
141
141
  }, "strip", z.ZodTypeAny, {
142
142
  status: Status[];
143
+ time_zone_id: string;
143
144
  search: string;
144
145
  paging: PAGING;
145
146
  page_count: number;
@@ -159,7 +160,6 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
159
160
  }[];
160
161
  include_master_data: YesNo;
161
162
  date_format_id: string;
162
- time_zone_id: string;
163
163
  organisation_ids: string[];
164
164
  user_ids: string[];
165
165
  vehicle_ids: string[];
@@ -170,8 +170,8 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
170
170
  vehicle_summary: YesNo;
171
171
  day_summary: YesNo;
172
172
  }, {
173
- date_format_id: string;
174
173
  time_zone_id: string;
174
+ date_format_id: string;
175
175
  from_date: string;
176
176
  to_date: string;
177
177
  status?: Status[] | undefined;
@@ -239,6 +239,7 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
239
239
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
240
240
  }, "strip", z.ZodTypeAny, {
241
241
  status: Status[];
242
+ time_zone_id: string;
242
243
  search: string;
243
244
  paging: PAGING;
244
245
  page_count: number;
@@ -258,14 +259,13 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
258
259
  }[];
259
260
  include_master_data: YesNo;
260
261
  date_format_id: string;
261
- time_zone_id: string;
262
262
  organisation_ids: string[];
263
263
  vehicle_ids: string[];
264
264
  from_date: string;
265
265
  to_date: string;
266
266
  }, {
267
- date_format_id: string;
268
267
  time_zone_id: string;
268
+ date_format_id: string;
269
269
  from_date: string;
270
270
  to_date: string;
271
271
  status?: Status[] | undefined;
@@ -327,6 +327,7 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
327
327
  }, "strip", z.ZodTypeAny, {
328
328
  date: string;
329
329
  status: Status[];
330
+ time_zone_id: string;
330
331
  search: string;
331
332
  paging: PAGING;
332
333
  page_count: number;
@@ -346,12 +347,11 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
346
347
  }[];
347
348
  include_master_data: YesNo;
348
349
  date_format_id: string;
349
- time_zone_id: string;
350
350
  organisation_utrack_id: string;
351
351
  }, {
352
352
  date: string;
353
- date_format_id: string;
354
353
  time_zone_id: string;
354
+ date_format_id: string;
355
355
  organisation_utrack_id: string;
356
356
  status?: Status[] | undefined;
357
357
  search?: string | undefined;
@@ -206,23 +206,23 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
206
206
  file_metadata?: Record<string, any> | undefined;
207
207
  }>, "many">>>;
208
208
  }, "strip", z.ZodTypeAny, {
209
+ odometer_reading: number;
210
+ date_time: string;
211
+ admin_verify_status: GPSFuelApproveStatus;
212
+ transporter_verify_status: GPSFuelApproveStatus;
213
+ entry_source: RefillEntrySource;
214
+ source_reference_id: string;
215
+ source_notes: string;
216
+ google_location: string;
209
217
  status: Status;
210
218
  organisation_id: string;
211
219
  user_id: string;
212
220
  vehicle_id: string;
213
221
  driver_id: string;
214
222
  device_id: string;
215
- time_zone_id: string;
216
223
  vehicle_fuel_type_id: string;
217
224
  vehicle_fuel_unit_id: string;
218
- odometer_reading: number;
219
- google_location: string;
220
- date_time: string;
221
- admin_verify_status: GPSFuelApproveStatus;
222
- transporter_verify_status: GPSFuelApproveStatus;
223
- entry_source: RefillEntrySource;
224
- source_reference_id: string;
225
- source_notes: string;
225
+ time_zone_id: string;
226
226
  refill_method: RefillMethod;
227
227
  refill_details: string;
228
228
  filled_by_person: string;
@@ -250,6 +250,8 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
250
250
  file_metadata: Record<string, any>;
251
251
  fleet_fuel_refill_id: string;
252
252
  }[];
253
+ cost_per_unit?: number | undefined;
254
+ total_cost?: number | undefined;
253
255
  latitude?: number | undefined;
254
256
  longitude?: number | undefined;
255
257
  before_refill_quantity?: number | undefined;
@@ -257,21 +259,19 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
257
259
  refill_quantity?: number | undefined;
258
260
  verified_refill_quantity?: number | undefined;
259
261
  diff_refill_quantity?: number | undefined;
260
- cost_per_unit?: number | undefined;
261
- total_cost?: number | undefined;
262
262
  }, {
263
+ date_time: string;
264
+ admin_verify_status: GPSFuelApproveStatus;
265
+ transporter_verify_status: GPSFuelApproveStatus;
263
266
  status: Status;
264
267
  organisation_id: string;
265
268
  user_id: string;
266
269
  vehicle_id: string;
267
270
  driver_id: string;
268
271
  device_id: string;
269
- time_zone_id: string;
270
272
  vehicle_fuel_type_id: string;
271
273
  vehicle_fuel_unit_id: string;
272
- date_time: string;
273
- admin_verify_status: GPSFuelApproveStatus;
274
- transporter_verify_status: GPSFuelApproveStatus;
274
+ time_zone_id: string;
275
275
  payment_mode: PaymentMode;
276
276
  payment_status: PaymentStatus;
277
277
  is_full_tank: YesNo;
@@ -279,6 +279,11 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
279
279
  vendor_id: string;
280
280
  fuel_station_id: string;
281
281
  odometer_reading?: unknown;
282
+ cost_per_unit?: unknown;
283
+ total_cost?: unknown;
284
+ entry_source?: RefillEntrySource | undefined;
285
+ source_reference_id?: string | undefined;
286
+ source_notes?: string | undefined;
282
287
  latitude?: unknown;
283
288
  longitude?: unknown;
284
289
  google_location?: string | undefined;
@@ -287,11 +292,6 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
287
292
  refill_quantity?: unknown;
288
293
  verified_refill_quantity?: unknown;
289
294
  diff_refill_quantity?: unknown;
290
- cost_per_unit?: unknown;
291
- total_cost?: unknown;
292
- entry_source?: RefillEntrySource | undefined;
293
- source_reference_id?: string | undefined;
294
- source_notes?: string | undefined;
295
295
  refill_method?: RefillMethod | undefined;
296
296
  refill_details?: string | undefined;
297
297
  filled_by_person?: string | undefined;
@@ -362,7 +362,11 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
362
362
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
363
363
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
364
364
  }, "strip", z.ZodTypeAny, {
365
+ admin_verify_status: GPSFuelApproveStatus[];
366
+ transporter_verify_status: GPSFuelApproveStatus[];
367
+ entry_source: RefillEntrySource[];
365
368
  status: Status[];
369
+ time_zone_id: string;
366
370
  search: string;
367
371
  paging: PAGING;
368
372
  page_count: number;
@@ -382,27 +386,26 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
382
386
  }[];
383
387
  include_master_data: YesNo;
384
388
  date_format_id: string;
385
- time_zone_id: string;
386
389
  organisation_ids: string[];
387
390
  user_ids: string[];
388
391
  vehicle_ids: string[];
389
392
  driver_ids: string[];
390
393
  device_ids: string[];
394
+ vehicle_fuel_type_ids: string[];
395
+ vehicle_fuel_unit_ids: string[];
391
396
  from_date: string;
392
397
  to_date: string;
393
- vehicle_fuel_type_ids: string[];
394
- admin_verify_status: GPSFuelApproveStatus[];
395
- transporter_verify_status: GPSFuelApproveStatus[];
396
- entry_source: RefillEntrySource[];
397
398
  vendor_ids: string[];
398
399
  fuel_station_ids: string[];
399
- vehicle_fuel_unit_ids: string[];
400
400
  fleet_fuel_refill_ids: string[];
401
401
  }, {
402
- date_format_id: string;
403
402
  time_zone_id: string;
403
+ date_format_id: string;
404
404
  from_date: string;
405
405
  to_date: string;
406
+ admin_verify_status?: GPSFuelApproveStatus[] | undefined;
407
+ transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
408
+ entry_source?: RefillEntrySource[] | undefined;
406
409
  status?: Status[] | undefined;
407
410
  search?: string | undefined;
408
411
  paging?: PAGING | undefined;
@@ -428,12 +431,9 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
428
431
  driver_ids?: string[] | undefined;
429
432
  device_ids?: string[] | undefined;
430
433
  vehicle_fuel_type_ids?: string[] | undefined;
431
- admin_verify_status?: GPSFuelApproveStatus[] | undefined;
432
- transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
433
- entry_source?: RefillEntrySource[] | undefined;
434
+ vehicle_fuel_unit_ids?: string[] | undefined;
434
435
  vendor_ids?: string[] | undefined;
435
436
  fuel_station_ids?: string[] | undefined;
436
- vehicle_fuel_unit_ids?: string[] | undefined;
437
437
  fleet_fuel_refill_ids?: string[] | undefined;
438
438
  }>;
439
439
  type FleetFuelRefillQueryDTO = z.infer<typeof FleetFuelRefillQuerySchema>;
@@ -84,6 +84,7 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
84
84
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
85
85
  fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
86
86
  }, "strip", z.ZodTypeAny, {
87
+ fleet_fuel_removal_id: string;
87
88
  status: Status;
88
89
  organisation_id: string;
89
90
  usage_type: string;
@@ -94,13 +95,12 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
94
95
  file_description: string;
95
96
  file_size: number;
96
97
  file_metadata: Record<string, any>;
97
- fleet_fuel_removal_id: string;
98
98
  }, {
99
+ fleet_fuel_removal_id: string;
99
100
  status: Status;
100
101
  organisation_id: string;
101
102
  usage_type: string;
102
103
  file_type: FileType;
103
- fleet_fuel_removal_id: string;
104
104
  file_url?: string | undefined;
105
105
  file_key?: string | undefined;
106
106
  file_name?: string | undefined;
@@ -152,6 +152,7 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
152
152
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
153
153
  fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
154
154
  }, z.UnknownKeysParam, z.ZodTypeAny, {
155
+ fleet_fuel_removal_id: string;
155
156
  status: Status;
156
157
  organisation_id: string;
157
158
  usage_type: string;
@@ -162,13 +163,12 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
162
163
  file_description: string;
163
164
  file_size: number;
164
165
  file_metadata: Record<string, any>;
165
- fleet_fuel_removal_id: string;
166
166
  }, {
167
+ fleet_fuel_removal_id: string;
167
168
  status: Status;
168
169
  organisation_id: string;
169
170
  usage_type: string;
170
171
  file_type: FileType;
171
- fleet_fuel_removal_id: string;
172
172
  file_url?: string | undefined;
173
173
  file_key?: string | undefined;
174
174
  file_name?: string | undefined;
@@ -177,26 +177,26 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
177
177
  file_metadata?: Record<string, any> | undefined;
178
178
  }>, "many">>>;
179
179
  }, "strip", z.ZodTypeAny, {
180
+ odometer_reading: number;
181
+ date_time: string;
182
+ admin_verify_status: GPSFuelApproveStatus;
183
+ transporter_verify_status: GPSFuelApproveStatus;
184
+ fuel_removal_reason_id: string;
185
+ removal_details: string;
186
+ entry_source: RefillEntrySource;
187
+ source_reference_id: string;
188
+ source_notes: string;
189
+ google_location: string;
180
190
  status: Status;
181
191
  organisation_id: string;
182
192
  user_id: string;
183
193
  vehicle_id: string;
184
194
  driver_id: string;
185
195
  device_id: string;
186
- time_zone_id: string;
187
196
  vehicle_fuel_type_id: string;
188
197
  vehicle_fuel_unit_id: string;
189
- odometer_reading: number;
190
- google_location: string;
191
- date_time: string;
192
- admin_verify_status: GPSFuelApproveStatus;
193
- transporter_verify_status: GPSFuelApproveStatus;
194
- entry_source: RefillEntrySource;
195
- source_reference_id: string;
196
- source_notes: string;
197
- fuel_removal_reason_id: string;
198
- removal_details: string;
199
198
  FleetFuelRemovalFile: {
199
+ fleet_fuel_removal_id: string;
200
200
  status: Status;
201
201
  organisation_id: string;
202
202
  usage_type: string;
@@ -207,52 +207,52 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
207
207
  file_description: string;
208
208
  file_size: number;
209
209
  file_metadata: Record<string, any>;
210
- fleet_fuel_removal_id: string;
211
210
  }[];
212
- latitude?: number | undefined;
213
- longitude?: number | undefined;
214
- cost_per_unit?: number | undefined;
215
- total_cost?: number | undefined;
211
+ time_zone_id: string;
216
212
  before_removal_quantity?: number | undefined;
217
213
  after_removal_quantity?: number | undefined;
218
214
  removal_quantity?: number | undefined;
219
215
  verified_removal_quantity?: number | undefined;
220
216
  diff_removal_quantity?: number | undefined;
217
+ cost_per_unit?: number | undefined;
218
+ total_cost?: number | undefined;
219
+ latitude?: number | undefined;
220
+ longitude?: number | undefined;
221
221
  }, {
222
+ date_time: string;
223
+ admin_verify_status: GPSFuelApproveStatus;
224
+ transporter_verify_status: GPSFuelApproveStatus;
225
+ fuel_removal_reason_id: string;
222
226
  status: Status;
223
227
  organisation_id: string;
224
228
  user_id: string;
225
229
  vehicle_id: string;
226
230
  driver_id: string;
227
231
  device_id: string;
228
- time_zone_id: string;
229
232
  vehicle_fuel_type_id: string;
230
233
  vehicle_fuel_unit_id: string;
231
- date_time: string;
232
- admin_verify_status: GPSFuelApproveStatus;
233
- transporter_verify_status: GPSFuelApproveStatus;
234
- fuel_removal_reason_id: string;
235
- odometer_reading?: unknown;
236
- latitude?: unknown;
237
- longitude?: unknown;
238
- google_location?: string | undefined;
239
- cost_per_unit?: unknown;
240
- total_cost?: unknown;
241
- entry_source?: RefillEntrySource | undefined;
242
- source_reference_id?: string | undefined;
243
- source_notes?: string | undefined;
234
+ time_zone_id: string;
244
235
  before_removal_quantity?: unknown;
245
236
  after_removal_quantity?: unknown;
246
237
  removal_quantity?: unknown;
247
238
  verified_removal_quantity?: unknown;
248
239
  diff_removal_quantity?: unknown;
240
+ odometer_reading?: unknown;
241
+ cost_per_unit?: unknown;
242
+ total_cost?: unknown;
249
243
  removal_details?: string | undefined;
244
+ entry_source?: RefillEntrySource | undefined;
245
+ source_reference_id?: string | undefined;
246
+ source_notes?: string | undefined;
247
+ latitude?: unknown;
248
+ longitude?: unknown;
249
+ google_location?: string | undefined;
250
250
  FleetFuelRemovalFile?: {
251
+ fleet_fuel_removal_id: string;
251
252
  status: Status;
252
253
  organisation_id: string;
253
254
  usage_type: string;
254
255
  file_type: FileType;
255
- fleet_fuel_removal_id: string;
256
256
  file_url?: string | undefined;
257
257
  file_key?: string | undefined;
258
258
  file_name?: string | undefined;
@@ -307,7 +307,11 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
307
307
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
308
308
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
309
309
  }, "strip", z.ZodTypeAny, {
310
+ admin_verify_status: GPSFuelApproveStatus[];
311
+ transporter_verify_status: GPSFuelApproveStatus[];
312
+ entry_source: RefillEntrySource[];
310
313
  status: Status[];
314
+ time_zone_id: string;
311
315
  search: string;
312
316
  paging: PAGING;
313
317
  page_count: number;
@@ -327,25 +331,24 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
327
331
  }[];
328
332
  include_master_data: YesNo;
329
333
  date_format_id: string;
330
- time_zone_id: string;
331
334
  organisation_ids: string[];
332
335
  user_ids: string[];
333
336
  vehicle_ids: string[];
334
337
  driver_ids: string[];
335
338
  device_ids: string[];
336
- from_date: string;
337
- to_date: string;
338
339
  vehicle_fuel_type_ids: string[];
339
- admin_verify_status: GPSFuelApproveStatus[];
340
- transporter_verify_status: GPSFuelApproveStatus[];
341
- entry_source: RefillEntrySource[];
342
340
  vehicle_fuel_unit_ids: string[];
343
341
  fuel_removal_reason_ids: string[];
342
+ from_date: string;
343
+ to_date: string;
344
344
  }, {
345
- date_format_id: string;
346
345
  time_zone_id: string;
346
+ date_format_id: string;
347
347
  from_date: string;
348
348
  to_date: string;
349
+ admin_verify_status?: GPSFuelApproveStatus[] | undefined;
350
+ transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
351
+ entry_source?: RefillEntrySource[] | undefined;
349
352
  status?: Status[] | undefined;
350
353
  search?: string | undefined;
351
354
  paging?: PAGING | undefined;
@@ -371,9 +374,6 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
371
374
  driver_ids?: string[] | undefined;
372
375
  device_ids?: string[] | undefined;
373
376
  vehicle_fuel_type_ids?: string[] | undefined;
374
- admin_verify_status?: GPSFuelApproveStatus[] | undefined;
375
- transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
376
- entry_source?: RefillEntrySource[] | undefined;
377
377
  vehicle_fuel_unit_ids?: string[] | undefined;
378
378
  fuel_removal_reason_ids?: string[] | undefined;
379
379
  }>;
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
36
36
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
37
37
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
38
38
  }, "strip", z.ZodTypeAny, {
39
- geofence_status_type: GeofenceStatusType;
40
- geofence_time: string;
41
39
  status: Status;
42
40
  organisation_id: string;
43
41
  vehicle_id: string;
44
42
  driver_id: string;
45
43
  gps_geofence_id: string;
46
44
  time_zone_id: string;
47
- }, {
48
45
  geofence_status_type: GeofenceStatusType;
49
46
  geofence_time: string;
47
+ }, {
50
48
  status: Status;
51
49
  organisation_id: string;
52
50
  vehicle_id: string;
53
51
  driver_id: string;
54
52
  gps_geofence_id: string;
55
53
  time_zone_id: string;
54
+ geofence_status_type: GeofenceStatusType;
55
+ geofence_time: string;
56
56
  }>;
57
57
  type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
58
58
  declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
@@ -94,7 +94,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
94
94
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
95
95
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
96
96
  }, "strip", z.ZodTypeAny, {
97
- geofence_status_type: GeofenceStatusType[];
98
97
  status: Status[];
99
98
  time_zone_id: string;
100
99
  search: string;
@@ -122,12 +121,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
122
121
  gps_geofence_ids: string[];
123
122
  from_date: string;
124
123
  to_date: string;
124
+ geofence_status_type: GeofenceStatusType[];
125
125
  }, {
126
126
  time_zone_id: string;
127
127
  date_format_id: string;
128
128
  from_date: string;
129
129
  to_date: string;
130
- geofence_status_type?: GeofenceStatusType[] | undefined;
131
130
  status?: Status[] | undefined;
132
131
  search?: string | undefined;
133
132
  paging?: PAGING | undefined;
@@ -151,6 +150,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
151
150
  vehicle_ids?: string[] | undefined;
152
151
  driver_ids?: string[] | undefined;
153
152
  gps_geofence_ids?: string[] | undefined;
153
+ geofence_status_type?: GeofenceStatusType[] | undefined;
154
154
  }>;
155
155
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
156
156
  declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
@@ -46,27 +46,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
46
46
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
47
47
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
48
48
  }, "strip", z.ZodTypeAny, {
49
+ geofence_enter_date_time: string;
50
+ geofence_exit_date_time: string;
51
+ duration_seconds: number;
49
52
  status: Status;
50
53
  organisation_id: string;
51
54
  vehicle_id: string;
52
55
  driver_id: string;
53
56
  gps_geofence_id: string;
54
- time_zone_id: string;
55
- geofence_enter_date_time: string;
56
- geofence_exit_date_time: string;
57
- duration_seconds: number;
58
57
  enter_gps_geofence_transaction_id: string;
59
58
  exit_gps_geofence_transaction_id: string;
59
+ time_zone_id: string;
60
60
  }, {
61
+ geofence_enter_date_time: string;
61
62
  status: Status;
62
63
  organisation_id: string;
63
64
  vehicle_id: string;
64
65
  driver_id: string;
65
66
  gps_geofence_id: string;
66
- time_zone_id: string;
67
- geofence_enter_date_time: string;
68
67
  enter_gps_geofence_transaction_id: string;
69
68
  exit_gps_geofence_transaction_id: string;
69
+ time_zone_id: string;
70
70
  geofence_exit_date_time?: string | undefined;
71
71
  duration_seconds?: unknown;
72
72
  }>;
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
55
55
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
56
56
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
57
57
  }, "strip", z.ZodTypeAny, {
58
+ duration_seconds: number;
58
59
  status: Status;
59
60
  organisation_id: string;
60
61
  vehicle_id: string;
61
62
  driver_id: string;
62
63
  time_zone_id: string;
63
- duration_seconds: number;
64
64
  from_geofence_exit_date_time: string;
65
65
  to_geofence_enter_date_time: string;
66
66
  travel_duration_seconds: number;
@@ -1,5 +1,5 @@
1
1
  import { LinkType, LinkStatus, Status, ShareChannel, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../core/BaseResponse.js';
2
+ import { FBR, BR, SBR } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-DqZC6EYi.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
@@ -71,79 +71,36 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
71
71
  expire_milliseconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
72
72
  link_status: z.ZodType<LinkStatus, z.ZodTypeDef, LinkStatus>;
73
73
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
74
- GPSLiveTrackShareLinkNotification: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
75
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
76
- gps_live_track_share_link_id: z.ZodEffects<z.ZodString, string, string>;
77
- share_channels: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ShareChannel>, "many">>;
78
- mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
79
- email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
80
- cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
81
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
82
- }, z.UnknownKeysParam, z.ZodTypeAny, {
83
- gps_live_track_share_link_id: string;
84
- status: Status;
85
- organisation_id: string;
86
- share_channels: ShareChannel.Email[];
87
- mobile_numbers: string;
88
- email_ids: string;
89
- cc_email_ids: string;
90
- }, {
91
- gps_live_track_share_link_id: string;
92
- status: Status;
93
- organisation_id: string;
94
- share_channels?: ShareChannel.Email[] | undefined;
95
- mobile_numbers?: string | undefined;
96
- email_ids?: string | undefined;
97
- cc_email_ids?: string | undefined;
98
- }>, "many">>>;
99
74
  }, "strip", z.ZodTypeAny, {
100
75
  link_status: LinkStatus;
101
76
  status: Status;
102
77
  organisation_id: string;
103
78
  vehicle_id: string;
104
79
  expire_milliseconds: number;
105
- GPSLiveTrackShareLinkNotification: {
106
- gps_live_track_share_link_id: string;
107
- status: Status;
108
- organisation_id: string;
109
- share_channels: ShareChannel.Email[];
110
- mobile_numbers: string;
111
- email_ids: string;
112
- cc_email_ids: string;
113
- }[];
114
80
  }, {
115
81
  link_status: LinkStatus;
116
82
  status: Status;
117
83
  organisation_id: string;
118
84
  vehicle_id: string;
119
85
  expire_milliseconds?: unknown;
120
- GPSLiveTrackShareLinkNotification?: {
121
- gps_live_track_share_link_id: string;
122
- status: Status;
123
- organisation_id: string;
124
- share_channels?: ShareChannel.Email[] | undefined;
125
- mobile_numbers?: string | undefined;
126
- email_ids?: string | undefined;
127
- cc_email_ids?: string | undefined;
128
- }[] | undefined;
129
86
  }>;
130
87
  type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
131
- declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
88
+ declare const GPSLiveTrackShareLinkUpdateExpiryTimeSchema: z.ZodObject<{
132
89
  expire_milliseconds: z.ZodEffects<z.ZodNumber, number, unknown>;
133
90
  }, "strip", z.ZodTypeAny, {
134
91
  expire_milliseconds: number;
135
92
  }, {
136
93
  expire_milliseconds?: unknown;
137
94
  }>;
138
- type GPSLiveTrackShareLinkTimeDTO = z.infer<typeof GPSLiveTrackShareLinkTimeSchema>;
139
- declare const GPSLiveTrackShareLinkStatusSchema: z.ZodObject<{
95
+ type GPSLiveTrackShareLinkUpdateExpiryTimeDTO = z.infer<typeof GPSLiveTrackShareLinkUpdateExpiryTimeSchema>;
96
+ declare const GPSLiveTrackShareLinkUpdateLinkStatusSchema: z.ZodObject<{
140
97
  link_status: z.ZodType<LinkStatus, z.ZodTypeDef, LinkStatus>;
141
98
  }, "strip", z.ZodTypeAny, {
142
99
  link_status: LinkStatus;
143
100
  }, {
144
101
  link_status: LinkStatus;
145
102
  }>;
146
- type GPSLiveTrackShareLinkStatusDTO = z.infer<typeof GPSLiveTrackShareLinkStatusSchema>;
103
+ type GPSLiveTrackShareLinkUpdateLinkStatusDTO = z.infer<typeof GPSLiveTrackShareLinkUpdateLinkStatusSchema>;
147
104
  declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
148
105
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
149
106
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
@@ -236,10 +193,10 @@ type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySc
236
193
  declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
237
194
  declare const newGPSLiveTrackShareLinkPayload: () => GPSLiveTrackShareLinkDTO;
238
195
  declare const findGPSLiveTrackShareLink: (data: GPSLiveTrackShareLinkQueryDTO) => Promise<FBR<GPSLiveTrackShareLink[]>>;
239
- declare const createGPSLiveTrackShareLink: (data: GPSLiveTrackShareLinkDTO) => Promise<SBR>;
240
- declare const extendGPSLiveTrackLinkTime: (id: string, data: GPSLiveTrackShareLinkTimeDTO) => Promise<SBR>;
241
- declare const updateGPSLiveTrackLinkStatus: (id: string, data: GPSLiveTrackShareLinkStatusDTO) => Promise<SBR>;
196
+ declare const createGPSLiveTrackShareLink: (data: GPSLiveTrackShareLinkDTO) => Promise<BR<GPSLiveTrackShareLink>>;
197
+ declare const extendGPSLiveTrackLinkTime: (id: string, data: GPSLiveTrackShareLinkUpdateExpiryTimeDTO) => Promise<SBR>;
198
+ declare const updateGPSLiveTrackLinkStatus: (id: string, data: GPSLiveTrackShareLinkUpdateLinkStatusDTO) => Promise<SBR>;
242
199
  declare const deleteGPSLiveTrackShareLink: (id: string) => Promise<SBR>;
243
200
  declare const createGPSLiveTrackShareLinkNotification: (data: GPSLiveTrackShareLinkNotificationDTO) => Promise<SBR>;
244
201
 
245
- export { type GPSLiveTrackShareLink, type GPSLiveTrackShareLinkDTO, type GPSLiveTrackShareLinkNotification, type GPSLiveTrackShareLinkNotificationDTO, GPSLiveTrackShareLinkNotificationSchema, type GPSLiveTrackShareLinkQueryDTO, GPSLiveTrackShareLinkQuerySchema, GPSLiveTrackShareLinkSchema, type GPSLiveTrackShareLinkStatusDTO, GPSLiveTrackShareLinkStatusSchema, type GPSLiveTrackShareLinkTimeDTO, GPSLiveTrackShareLinkTimeSchema, createGPSLiveTrackShareLink, createGPSLiveTrackShareLinkNotification, deleteGPSLiveTrackShareLink, extendGPSLiveTrackLinkTime, findGPSLiveTrackShareLink, newGPSLiveTrackShareLinkPayload, toGPSLiveTrackShareLinkPayload, updateGPSLiveTrackLinkStatus };
202
+ export { type GPSLiveTrackShareLink, type GPSLiveTrackShareLinkDTO, type GPSLiveTrackShareLinkNotification, type GPSLiveTrackShareLinkNotificationDTO, GPSLiveTrackShareLinkNotificationSchema, type GPSLiveTrackShareLinkQueryDTO, GPSLiveTrackShareLinkQuerySchema, GPSLiveTrackShareLinkSchema, type GPSLiveTrackShareLinkUpdateExpiryTimeDTO, GPSLiveTrackShareLinkUpdateExpiryTimeSchema, type GPSLiveTrackShareLinkUpdateLinkStatusDTO, GPSLiveTrackShareLinkUpdateLinkStatusSchema, createGPSLiveTrackShareLink, createGPSLiveTrackShareLinkNotification, deleteGPSLiveTrackShareLink, extendGPSLiveTrackLinkTime, findGPSLiveTrackShareLink, newGPSLiveTrackShareLinkPayload, toGPSLiveTrackShareLinkPayload, updateGPSLiveTrackLinkStatus };
@@ -132,18 +132,6 @@ var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumTyp
132
132
  return schema.optional().default(() => defaultValue);
133
133
  };
134
134
  var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
135
- var nestedArrayOfObjectsOptional = (fieldName, schema, defaultValue = [], min = 0, max) => {
136
- let arraySchema = z.array(schema, {
137
- invalid_type_error: `${fieldName} must be an array of objects.`
138
- }).min(min, `${fieldName} must contain at least ${min} items.`);
139
- if (max !== void 0) {
140
- arraySchema = arraySchema.max(
141
- max,
142
- `${fieldName} must contain at most ${max} items.`
143
- );
144
- }
145
- return arraySchema.optional().default(() => defaultValue);
146
- };
147
135
  var single_select_mandatory = (fieldName) => {
148
136
  const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
149
137
  return schema;
@@ -307,6 +295,7 @@ var GPSLiveTrackShareLinkNotificationSchema = z3.object({
307
295
  organisation_id: single_select_optional("UserOrganisation"),
308
296
  // ✅ Single-Selection -> UserOrganisation
309
297
  gps_live_track_share_link_id: single_select_optional("GPSLiveTrackShareLink"),
298
+ // ✅ Single-Selection -> GPSLiveTrackShareLink
310
299
  share_channels: enumArrayMandatory(
311
300
  "Share Channels",
312
301
  ShareChannel,
@@ -322,17 +311,12 @@ var GPSLiveTrackShareLinkSchema = z3.object({
322
311
  vehicle_id: single_select_mandatory("Vehicle ID"),
323
312
  expire_milliseconds: numberOptional("Expire Milliseconds"),
324
313
  link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */),
325
- status: enumMandatory("Status", Status, "Active" /* Active */),
326
- GPSLiveTrackShareLinkNotification: nestedArrayOfObjectsOptional(
327
- "GPSLiveTrackShareLinkNotification",
328
- GPSLiveTrackShareLinkNotificationSchema,
329
- []
330
- )
314
+ status: enumMandatory("Status", Status, "Active" /* Active */)
331
315
  });
332
- var GPSLiveTrackShareLinkTimeSchema = z3.object({
316
+ var GPSLiveTrackShareLinkUpdateExpiryTimeSchema = z3.object({
333
317
  expire_milliseconds: numberMandatory("Expire Milliseconds")
334
318
  });
335
- var GPSLiveTrackShareLinkStatusSchema = z3.object({
319
+ var GPSLiveTrackShareLinkUpdateLinkStatusSchema = z3.object({
336
320
  link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */)
337
321
  });
338
322
  var GPSLiveTrackShareLinkQuerySchema = BaseQuerySchema.extend({
@@ -353,16 +337,14 @@ var toGPSLiveTrackShareLinkPayload = (data) => ({
353
337
  vehicle_id: data.vehicle_id,
354
338
  expire_milliseconds: 0,
355
339
  link_status: data.link_status,
356
- status: data.status,
357
- GPSLiveTrackShareLinkNotification: []
340
+ status: data.status
358
341
  });
359
342
  var newGPSLiveTrackShareLinkPayload = () => ({
360
343
  organisation_id: "",
361
344
  vehicle_id: "",
362
345
  expire_milliseconds: 0,
363
346
  link_status: "Active" /* Active */,
364
- status: "Active" /* Active */,
365
- GPSLiveTrackShareLinkNotification: []
347
+ status: "Active" /* Active */
366
348
  });
367
349
  var findGPSLiveTrackShareLink = async (data) => {
368
350
  return apiPost(ENDPOINTS.find, data);
@@ -386,8 +368,8 @@ export {
386
368
  GPSLiveTrackShareLinkNotificationSchema,
387
369
  GPSLiveTrackShareLinkQuerySchema,
388
370
  GPSLiveTrackShareLinkSchema,
389
- GPSLiveTrackShareLinkStatusSchema,
390
- GPSLiveTrackShareLinkTimeSchema,
371
+ GPSLiveTrackShareLinkUpdateExpiryTimeSchema,
372
+ GPSLiveTrackShareLinkUpdateLinkStatusSchema,
391
373
  createGPSLiveTrackShareLink,
392
374
  createGPSLiveTrackShareLinkNotification,
393
375
  deleteGPSLiveTrackShareLink,
@@ -73,31 +73,6 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
73
73
  link_status: z.ZodType<TrackHistoryLinkStatus, z.ZodTypeDef, TrackHistoryLinkStatus>;
74
74
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
75
75
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
76
- GPSTrackHistoryShareLinkNotification: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
77
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
78
- gps_track_history_share_link_id: z.ZodEffects<z.ZodString, string, string>;
79
- share_channels: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ShareChannel>, "many">>;
80
- mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
81
- email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
82
- cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
83
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
84
- }, z.UnknownKeysParam, z.ZodTypeAny, {
85
- status: Status;
86
- organisation_id: string;
87
- share_channels: ShareChannel.Email[];
88
- mobile_numbers: string;
89
- email_ids: string;
90
- cc_email_ids: string;
91
- gps_track_history_share_link_id: string;
92
- }, {
93
- status: Status;
94
- organisation_id: string;
95
- gps_track_history_share_link_id: string;
96
- share_channels?: ShareChannel.Email[] | undefined;
97
- mobile_numbers?: string | undefined;
98
- email_ids?: string | undefined;
99
- cc_email_ids?: string | undefined;
100
- }>, "many">>>;
101
76
  }, "strip", z.ZodTypeAny, {
102
77
  link_status: TrackHistoryLinkStatus;
103
78
  status: Status;
@@ -106,15 +81,6 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
106
81
  time_zone_id: string;
107
82
  from_date_time: string;
108
83
  to_date_time: string;
109
- GPSTrackHistoryShareLinkNotification: {
110
- status: Status;
111
- organisation_id: string;
112
- share_channels: ShareChannel.Email[];
113
- mobile_numbers: string;
114
- email_ids: string;
115
- cc_email_ids: string;
116
- gps_track_history_share_link_id: string;
117
- }[];
118
84
  }, {
119
85
  link_status: TrackHistoryLinkStatus;
120
86
  status: Status;
@@ -123,17 +89,16 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
123
89
  time_zone_id: string;
124
90
  from_date_time: string;
125
91
  to_date_time: string;
126
- GPSTrackHistoryShareLinkNotification?: {
127
- status: Status;
128
- organisation_id: string;
129
- gps_track_history_share_link_id: string;
130
- share_channels?: ShareChannel.Email[] | undefined;
131
- mobile_numbers?: string | undefined;
132
- email_ids?: string | undefined;
133
- cc_email_ids?: string | undefined;
134
- }[] | undefined;
135
92
  }>;
136
93
  type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
94
+ declare const GPSTrackHistoryShareLinkUpdateLinkStatusSchema: z.ZodObject<{
95
+ link_status: z.ZodType<TrackHistoryLinkStatus, z.ZodTypeDef, TrackHistoryLinkStatus>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ link_status: TrackHistoryLinkStatus;
98
+ }, {
99
+ link_status: TrackHistoryLinkStatus;
100
+ }>;
101
+ type GPSTrackHistoryShareLinkUpdateLinkStatusDTO = z.infer<typeof GPSTrackHistoryShareLinkUpdateLinkStatusSchema>;
137
102
  declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
138
103
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
139
104
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
@@ -227,8 +192,8 @@ declare const toGPSTrackHistoryShareLinkPayload: (data: GPSTrackHistoryShareLink
227
192
  declare const newGPSTrackHistoryShareLinkPayload: () => GPSTrackHistoryShareLinkDTO;
228
193
  declare const findGPSTrackHistoryShareLink: (data: GPSTrackHistoryShareLinkQueryDTO) => Promise<FBR<GPSTrackHistoryShareLink[]>>;
229
194
  declare const createGPSTrackHistoryShareLink: (data: GPSTrackHistoryShareLinkDTO) => Promise<SBR>;
230
- declare const updateGPSTrackHistoryShareLink: (id: string, data: GPSTrackHistoryShareLinkDTO) => Promise<SBR>;
195
+ declare const update_track_history_link_status: (id: string, data: GPSTrackHistoryShareLinkUpdateLinkStatusDTO) => Promise<SBR>;
231
196
  declare const deleteGPSTrackHistoryShareLink: (id: string) => Promise<SBR>;
232
197
  declare const createGPSTrackHistoryShareLinkNotification: (data: GPSTrackHistoryShareLinkNotificationDTO) => Promise<SBR>;
233
198
 
234
- export { type GPSTrackHistoryShareLink, type GPSTrackHistoryShareLinkDTO, type GPSTrackHistoryShareLinkNotification, type GPSTrackHistoryShareLinkNotificationDTO, GPSTrackHistoryShareLinkNotificationSchema, type GPSTrackHistoryShareLinkQueryDTO, GPSTrackHistoryShareLinkQuerySchema, GPSTrackHistoryShareLinkSchema, createGPSTrackHistoryShareLink, createGPSTrackHistoryShareLinkNotification, deleteGPSTrackHistoryShareLink, findGPSTrackHistoryShareLink, newGPSTrackHistoryShareLinkPayload, toGPSTrackHistoryShareLinkPayload, updateGPSTrackHistoryShareLink };
199
+ export { type GPSTrackHistoryShareLink, type GPSTrackHistoryShareLinkDTO, type GPSTrackHistoryShareLinkNotification, type GPSTrackHistoryShareLinkNotificationDTO, GPSTrackHistoryShareLinkNotificationSchema, type GPSTrackHistoryShareLinkQueryDTO, GPSTrackHistoryShareLinkQuerySchema, GPSTrackHistoryShareLinkSchema, type GPSTrackHistoryShareLinkUpdateLinkStatusDTO, GPSTrackHistoryShareLinkUpdateLinkStatusSchema, createGPSTrackHistoryShareLink, createGPSTrackHistoryShareLinkNotification, deleteGPSTrackHistoryShareLink, findGPSTrackHistoryShareLink, newGPSTrackHistoryShareLinkPayload, toGPSTrackHistoryShareLinkPayload, update_track_history_link_status };
@@ -118,18 +118,6 @@ var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumTyp
118
118
  return schema.optional().default(() => defaultValue);
119
119
  };
120
120
  var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
121
- var nestedArrayOfObjectsOptional = (fieldName, schema, defaultValue = [], min = 0, max) => {
122
- let arraySchema = z.array(schema, {
123
- invalid_type_error: `${fieldName} must be an array of objects.`
124
- }).min(min, `${fieldName} must contain at least ${min} items.`);
125
- if (max !== void 0) {
126
- arraySchema = arraySchema.max(
127
- max,
128
- `${fieldName} must contain at most ${max} items.`
129
- );
130
- }
131
- return arraySchema.optional().default(() => defaultValue);
132
- };
133
121
  var single_select_mandatory = (fieldName) => {
134
122
  const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
135
123
  return schema;
@@ -285,7 +273,7 @@ var ENDPOINTS = {
285
273
  find: `${URL}/search`,
286
274
  create_notification: `${URL}/create_notification`,
287
275
  create: URL,
288
- update: (id) => `${URL}/${id}`,
276
+ update_track_history_link_status: (id) => `${URL}/update_track_history_link_status/${id}`,
289
277
  delete: (id) => `${URL}/${id}`
290
278
  };
291
279
  var GPSTrackHistoryShareLinkNotificationSchema = z3.object({
@@ -315,11 +303,13 @@ var GPSTrackHistoryShareLinkSchema = z3.object({
315
303
  "Active" /* Active */
316
304
  ),
317
305
  status: enumMandatory("Status", Status, "Active" /* Active */),
318
- time_zone_id: single_select_mandatory("MasterMainTimeZone"),
319
- GPSTrackHistoryShareLinkNotification: nestedArrayOfObjectsOptional(
320
- "GPSTrackHistoryShareLinkNotification",
321
- GPSTrackHistoryShareLinkNotificationSchema,
322
- []
306
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
307
+ });
308
+ var GPSTrackHistoryShareLinkUpdateLinkStatusSchema = z3.object({
309
+ link_status: enumMandatory(
310
+ "Track History Link Status",
311
+ TrackHistoryLinkStatus,
312
+ "Active" /* Active */
323
313
  )
324
314
  });
325
315
  var GPSTrackHistoryShareLinkQuerySchema = BaseQuerySchema.extend({
@@ -344,7 +334,6 @@ var toGPSTrackHistoryShareLinkPayload = (data) => ({
344
334
  to_date_time: data.to_date_time,
345
335
  link_status: data.link_status,
346
336
  status: data.status,
347
- GPSTrackHistoryShareLinkNotification: [],
348
337
  time_zone_id: ""
349
338
  // Needs to be provided manually
350
339
  });
@@ -355,7 +344,6 @@ var newGPSTrackHistoryShareLinkPayload = () => ({
355
344
  to_date_time: "",
356
345
  link_status: "Active" /* Active */,
357
346
  status: "Active" /* Active */,
358
- GPSTrackHistoryShareLinkNotification: [],
359
347
  time_zone_id: ""
360
348
  // Needs to be provided manually
361
349
  });
@@ -365,8 +353,8 @@ var findGPSTrackHistoryShareLink = async (data) => {
365
353
  var createGPSTrackHistoryShareLink = async (data) => {
366
354
  return apiPost(ENDPOINTS.create, data);
367
355
  };
368
- var updateGPSTrackHistoryShareLink = async (id, data) => {
369
- return apiPatch(ENDPOINTS.update(id), data);
356
+ var update_track_history_link_status = async (id, data) => {
357
+ return apiPatch(ENDPOINTS.update_track_history_link_status(id), data);
370
358
  };
371
359
  var deleteGPSTrackHistoryShareLink = async (id) => {
372
360
  return apiDelete(ENDPOINTS.delete(id));
@@ -378,11 +366,12 @@ export {
378
366
  GPSTrackHistoryShareLinkNotificationSchema,
379
367
  GPSTrackHistoryShareLinkQuerySchema,
380
368
  GPSTrackHistoryShareLinkSchema,
369
+ GPSTrackHistoryShareLinkUpdateLinkStatusSchema,
381
370
  createGPSTrackHistoryShareLink,
382
371
  createGPSTrackHistoryShareLinkNotification,
383
372
  deleteGPSTrackHistoryShareLink,
384
373
  findGPSTrackHistoryShareLink,
385
374
  newGPSTrackHistoryShareLinkPayload,
386
375
  toGPSTrackHistoryShareLinkPayload,
387
- updateGPSTrackHistoryShareLink
376
+ update_track_history_link_status
388
377
  };
@@ -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;
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>;
@@ -39,6 +39,7 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
39
39
  longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
40
40
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
41
41
  }, "strip", z.ZodTypeAny, {
42
+ google_location: string;
42
43
  status: Status;
43
44
  country_id: string;
44
45
  state_id: string;
@@ -47,7 +48,6 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
47
48
  locality: string;
48
49
  city_district_town: string;
49
50
  zip_code: string;
50
- google_location: string;
51
51
  latitude?: number | undefined;
52
52
  longitude?: number | undefined;
53
53
  }, {
@@ -55,13 +55,13 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
55
55
  country_id: string;
56
56
  state_id: string;
57
57
  landmark_name: string;
58
+ latitude?: unknown;
59
+ longitude?: unknown;
60
+ google_location?: string | undefined;
58
61
  location?: string | undefined;
59
62
  locality?: string | undefined;
60
63
  city_district_town?: string | undefined;
61
64
  zip_code?: string | undefined;
62
- latitude?: unknown;
63
- longitude?: unknown;
64
- google_location?: string | undefined;
65
65
  }>;
66
66
  type MasterMainLandmarkDTO = z.infer<typeof MasterMainLandmarkSchema>;
67
67
  declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
@@ -100,6 +100,7 @@ declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
100
100
  landmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
101
101
  }, "strip", z.ZodTypeAny, {
102
102
  status: Status[];
103
+ time_zone_id: string;
103
104
  search: string;
104
105
  paging: PAGING;
105
106
  page_count: number;
@@ -119,13 +120,12 @@ declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
119
120
  }[];
120
121
  include_master_data: YesNo;
121
122
  date_format_id: string;
122
- time_zone_id: string;
123
123
  country_ids: string[];
124
124
  state_ids: string[];
125
125
  landmark_ids: string[];
126
126
  }, {
127
- date_format_id: string;
128
127
  time_zone_id: string;
128
+ date_format_id: string;
129
129
  status?: Status[] | undefined;
130
130
  search?: string | undefined;
131
131
  paging?: PAGING | undefined;
@@ -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>;
@@ -70,6 +70,7 @@ declare const MasterVehicleFuelRemovalReasonQuerySchema: z.ZodObject<{
70
70
  fuel_removal_reason_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  status: Status[];
73
+ time_zone_id: string;
73
74
  search: string;
74
75
  paging: PAGING;
75
76
  page_count: number;
@@ -89,12 +90,11 @@ declare const MasterVehicleFuelRemovalReasonQuerySchema: z.ZodObject<{
89
90
  }[];
90
91
  include_master_data: YesNo;
91
92
  date_format_id: string;
92
- time_zone_id: string;
93
93
  organisation_ids: string[];
94
94
  fuel_removal_reason_ids: string[];
95
95
  }, {
96
- date_format_id: string;
97
96
  time_zone_id: string;
97
+ date_format_id: string;
98
98
  status?: Status[] | undefined;
99
99
  search?: string | undefined;
100
100
  paging?: PAGING | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "65.0.0",
3
+ "version": "70.0.0",
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",