vms-nest-prisma-api-document 1.4.0 → 1.5.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.
@@ -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
- country_id: string;
26
25
  login_from: LoginFrom;
26
+ country_id: string;
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
- country_id: string;
33
32
  login_from: LoginFrom;
33
+ country_id: string;
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;
52
51
  search: string;
53
52
  paging: PAGING;
54
53
  page_count: number;
55
54
  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;
47
46
  search: string;
48
47
  paging: PAGING;
49
48
  page_count: number;
50
49
  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>;
@@ -62,6 +62,16 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
62
62
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<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
+ vehicle_id: string;
68
+ device_id: string;
69
+ driver_id: string;
70
+ user_id: string;
71
+ gl: string;
72
+ lid: string;
73
+ ll: string;
74
+ ld: number;
65
75
  before_refill_fuel_liters: number;
66
76
  after_refill_fuel_liters: number;
67
77
  gps_refill_liters: number;
@@ -70,30 +80,26 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
70
80
  approved: GPSFuelApproveStatus;
71
81
  date_time: string;
72
82
  refill_details: string;
73
- gl: string;
74
- lid: string;
75
- ll: string;
76
- ld: number;
77
- status: Status;
78
- organisation_id: string;
79
- vehicle_id: string;
80
- device_id: string;
81
- driver_id: string;
82
- user_id: string;
83
- cost_per_liter?: number | undefined;
84
- total_cost?: number | undefined;
85
83
  latitude?: number | undefined;
86
84
  longitude?: number | undefined;
85
+ cost_per_liter?: number | undefined;
86
+ total_cost?: number | undefined;
87
87
  }, {
88
- verified: YesNo;
89
- approved: GPSFuelApproveStatus;
90
- date_time: string;
91
88
  status: Status;
92
89
  organisation_id: string;
93
90
  vehicle_id: string;
94
91
  device_id: string;
95
92
  driver_id: string;
96
93
  user_id: string;
94
+ verified: YesNo;
95
+ approved: GPSFuelApproveStatus;
96
+ date_time: string;
97
+ latitude?: unknown;
98
+ longitude?: unknown;
99
+ gl?: string | undefined;
100
+ lid?: string | undefined;
101
+ ll?: string | undefined;
102
+ ld?: unknown;
97
103
  before_refill_fuel_liters?: unknown;
98
104
  after_refill_fuel_liters?: unknown;
99
105
  gps_refill_liters?: unknown;
@@ -101,12 +107,6 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
101
107
  cost_per_liter?: unknown;
102
108
  total_cost?: unknown;
103
109
  refill_details?: string | undefined;
104
- latitude?: unknown;
105
- longitude?: unknown;
106
- gl?: string | undefined;
107
- lid?: string | undefined;
108
- ll?: string | undefined;
109
- ld?: unknown;
110
110
  }>;
111
111
  type GPSFuelVehicleRefillDTO = z.infer<typeof GPSFuelVehicleRefillSchema>;
112
112
  declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
@@ -150,8 +150,6 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
150
150
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
151
151
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
152
152
  }, "strip", z.ZodTypeAny, {
153
- verified: YesNo[];
154
- approved: GPSFuelApproveStatus[];
155
153
  status: Status[];
156
154
  search: string;
157
155
  paging: PAGING;
@@ -174,19 +172,19 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
174
172
  date_format_id: string;
175
173
  time_zone_id: string;
176
174
  organisation_ids: string[];
177
- user_ids: string[];
178
175
  vehicle_ids: string[];
179
176
  device_ids: string[];
180
177
  driver_ids: string[];
181
178
  from_date: string;
182
179
  to_date: string;
180
+ user_ids: string[];
181
+ verified: YesNo[];
182
+ approved: GPSFuelApproveStatus[];
183
183
  }, {
184
184
  date_format_id: string;
185
185
  time_zone_id: string;
186
186
  from_date: string;
187
187
  to_date: string;
188
- verified?: YesNo[] | undefined;
189
- approved?: GPSFuelApproveStatus[] | undefined;
190
188
  status?: Status[] | undefined;
191
189
  search?: string | undefined;
192
190
  paging?: PAGING | undefined;
@@ -207,10 +205,12 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
207
205
  }[] | undefined;
208
206
  include_master_data?: YesNo | undefined;
209
207
  organisation_ids?: string[] | undefined;
210
- user_ids?: string[] | undefined;
211
208
  vehicle_ids?: string[] | undefined;
212
209
  device_ids?: string[] | undefined;
213
210
  driver_ids?: string[] | undefined;
211
+ user_ids?: string[] | undefined;
212
+ verified?: YesNo[] | undefined;
213
+ approved?: GPSFuelApproveStatus[] | undefined;
214
214
  }>;
215
215
  type GPSFuelVehicleRefillQueryDTO = z.infer<typeof GPSFuelVehicleRefillQuerySchema>;
216
216
  declare const toGPSFuelVehicleRefillPayload: (data: GPSFuelVehicleRefill) => GPSFuelVehicleRefillDTO;
@@ -62,47 +62,47 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
62
62
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
63
63
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
64
64
  }, "strip", z.ZodTypeAny, {
65
- verified: YesNo;
66
- approved: GPSFuelApproveStatus;
67
- date_time: string;
68
- refill_details: string;
69
- gl: string;
70
- lid: string;
71
- ll: string;
72
- ld: number;
73
65
  status: Status;
74
66
  organisation_id: string;
75
67
  vehicle_id: string;
76
68
  device_id: string;
77
69
  driver_id: string;
78
70
  user_id: string;
71
+ gl: string;
72
+ lid: string;
73
+ ll: string;
74
+ ld: number;
75
+ verified: YesNo;
76
+ approved: GPSFuelApproveStatus;
77
+ date_time: string;
78
+ refill_details: string;
79
79
  before_remove_fuel_liters: number;
80
80
  after_remove_fuel_liters: number;
81
81
  gps_removal_liters: number;
82
82
  verified_removal_liters: number;
83
- cost_per_liter?: number | undefined;
84
- total_cost?: number | undefined;
85
83
  latitude?: number | undefined;
86
84
  longitude?: number | undefined;
85
+ cost_per_liter?: number | undefined;
86
+ total_cost?: number | undefined;
87
87
  }, {
88
- verified: YesNo;
89
- approved: GPSFuelApproveStatus;
90
- date_time: string;
91
88
  status: Status;
92
89
  organisation_id: string;
93
90
  vehicle_id: string;
94
91
  device_id: string;
95
92
  driver_id: string;
96
93
  user_id: string;
97
- cost_per_liter?: unknown;
98
- total_cost?: unknown;
99
- refill_details?: string | undefined;
94
+ verified: YesNo;
95
+ approved: GPSFuelApproveStatus;
96
+ date_time: string;
100
97
  latitude?: unknown;
101
98
  longitude?: unknown;
102
99
  gl?: string | undefined;
103
100
  lid?: string | undefined;
104
101
  ll?: string | undefined;
105
102
  ld?: unknown;
103
+ cost_per_liter?: unknown;
104
+ total_cost?: unknown;
105
+ refill_details?: string | undefined;
106
106
  before_remove_fuel_liters?: unknown;
107
107
  after_remove_fuel_liters?: unknown;
108
108
  gps_removal_liters?: unknown;
@@ -150,8 +150,6 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
150
150
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
151
151
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
152
152
  }, "strip", z.ZodTypeAny, {
153
- verified: YesNo[];
154
- approved: GPSFuelApproveStatus[];
155
153
  status: Status[];
156
154
  search: string;
157
155
  paging: PAGING;
@@ -174,19 +172,19 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
174
172
  date_format_id: string;
175
173
  time_zone_id: string;
176
174
  organisation_ids: string[];
177
- user_ids: string[];
178
175
  vehicle_ids: string[];
179
176
  device_ids: string[];
180
177
  driver_ids: string[];
181
178
  from_date: string;
182
179
  to_date: string;
180
+ user_ids: string[];
181
+ verified: YesNo[];
182
+ approved: GPSFuelApproveStatus[];
183
183
  }, {
184
184
  date_format_id: string;
185
185
  time_zone_id: string;
186
186
  from_date: string;
187
187
  to_date: string;
188
- verified?: YesNo[] | undefined;
189
- approved?: GPSFuelApproveStatus[] | undefined;
190
188
  status?: Status[] | undefined;
191
189
  search?: string | undefined;
192
190
  paging?: PAGING | undefined;
@@ -207,10 +205,12 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
207
205
  }[] | undefined;
208
206
  include_master_data?: YesNo | undefined;
209
207
  organisation_ids?: string[] | undefined;
210
- user_ids?: string[] | undefined;
211
208
  vehicle_ids?: string[] | undefined;
212
209
  device_ids?: string[] | undefined;
213
210
  driver_ids?: string[] | undefined;
211
+ user_ids?: string[] | undefined;
212
+ verified?: YesNo[] | undefined;
213
+ approved?: GPSFuelApproveStatus[] | undefined;
214
214
  }>;
215
215
  type GPSFuelVehicleRemovalQueryDTO = z.infer<typeof GPSFuelVehicleRemovalQuerySchema>;
216
216
  declare const toGPSFuelVehicleRemovalPayload: (item: GPSFuelVehicleRemoval) => GPSFuelVehicleRemovalDTO;
@@ -42,17 +42,17 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
42
42
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
43
43
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- gps_live_track_share_link_id: string;
46
45
  status: Status;
47
46
  organisation_id: string;
48
47
  type: NotificationType;
49
48
  to_recipients: string;
50
- }, {
51
49
  gps_live_track_share_link_id: string;
50
+ }, {
52
51
  status: Status;
53
52
  organisation_id: string;
54
53
  type: NotificationType;
55
54
  to_recipients: string;
55
+ gps_live_track_share_link_id: string;
56
56
  }>;
57
57
  type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
58
58
  declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
@@ -73,54 +73,54 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
73
73
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
74
74
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
75
75
  }, z.UnknownKeysParam, z.ZodTypeAny, {
76
- gps_live_track_share_link_id: string;
77
76
  status: Status;
78
77
  organisation_id: string;
79
78
  type: NotificationType;
80
79
  to_recipients: string;
81
- }, {
82
80
  gps_live_track_share_link_id: string;
81
+ }, {
83
82
  status: Status;
84
83
  organisation_id: string;
85
84
  type: NotificationType;
86
85
  to_recipients: string;
86
+ gps_live_track_share_link_id: string;
87
87
  }>, "many">>>;
88
88
  }, "strip", z.ZodTypeAny, {
89
- link_type: LinkType;
90
- location: string;
91
89
  link_status: LinkStatus;
92
90
  status: Status;
93
91
  organisation_id: string;
94
92
  vehicle_id: string;
95
93
  trip_id: string;
96
- expire_milliseconds: number;
97
94
  notifications: {
98
- gps_live_track_share_link_id: string;
99
95
  status: Status;
100
96
  organisation_id: string;
101
97
  type: NotificationType;
102
98
  to_recipients: string;
99
+ gps_live_track_share_link_id: string;
103
100
  }[];
101
+ link_type: LinkType;
102
+ location: string;
103
+ expire_milliseconds: number;
104
104
  latitude?: number | undefined;
105
105
  longitude?: number | undefined;
106
106
  }, {
107
- link_type: LinkType;
108
107
  link_status: LinkStatus;
109
108
  status: Status;
110
109
  organisation_id: string;
111
110
  vehicle_id: string;
112
111
  trip_id: string;
113
- latitude?: unknown;
114
- longitude?: unknown;
115
- location?: string | undefined;
116
- expire_milliseconds?: unknown;
112
+ link_type: LinkType;
117
113
  notifications?: {
118
- gps_live_track_share_link_id: string;
119
114
  status: Status;
120
115
  organisation_id: string;
121
116
  type: NotificationType;
122
117
  to_recipients: string;
118
+ gps_live_track_share_link_id: string;
123
119
  }[] | undefined;
120
+ latitude?: unknown;
121
+ longitude?: unknown;
122
+ location?: string | undefined;
123
+ expire_milliseconds?: unknown;
124
124
  }>;
125
125
  type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
126
126
  declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
@@ -176,7 +176,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
176
176
  link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
177
177
  link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
- link_type: LinkType[];
180
179
  link_status: LinkStatus[];
181
180
  status: Status[];
182
181
  search: string;
@@ -202,10 +201,10 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
202
201
  organisation_ids: string[];
203
202
  vehicle_ids: string[];
204
203
  trip_ids: string[];
204
+ link_type: LinkType[];
205
205
  }, {
206
206
  date_format_id: string;
207
207
  time_zone_id: string;
208
- link_type?: LinkType[] | undefined;
209
208
  link_status?: LinkStatus[] | undefined;
210
209
  status?: Status[] | undefined;
211
210
  search?: string | undefined;
@@ -229,6 +228,7 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
229
228
  organisation_ids?: string[] | undefined;
230
229
  vehicle_ids?: string[] | undefined;
231
230
  trip_ids?: string[] | undefined;
231
+ link_type?: LinkType[] | undefined;
232
232
  }>;
233
233
  type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
234
234
  declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
40
40
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
41
41
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
42
42
  }, "strip", z.ZodTypeAny, {
43
+ gps_track_history_share_link_id: string;
43
44
  status: Status;
44
45
  organisation_id: string;
45
46
  type: NotificationType;
46
47
  to_recipients: string;
47
- gps_track_history_share_link_id: string;
48
48
  }, {
49
+ gps_track_history_share_link_id: string;
49
50
  status: Status;
50
51
  organisation_id: string;
51
52
  type: NotificationType;
52
53
  to_recipients: string;
53
- gps_track_history_share_link_id: string;
54
54
  }>;
55
55
  type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
56
56
  declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
68
68
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
69
69
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
70
70
  }, z.UnknownKeysParam, z.ZodTypeAny, {
71
+ gps_track_history_share_link_id: string;
71
72
  status: Status;
72
73
  organisation_id: string;
73
74
  type: NotificationType;
74
75
  to_recipients: string;
75
- gps_track_history_share_link_id: string;
76
76
  }, {
77
+ gps_track_history_share_link_id: string;
77
78
  status: Status;
78
79
  organisation_id: string;
79
80
  type: NotificationType;
80
81
  to_recipients: string;
81
- gps_track_history_share_link_id: string;
82
82
  }>, "many">>>;
83
83
  }, "strip", z.ZodTypeAny, {
84
+ from_date_time: string;
85
+ to_date_time: string;
84
86
  link_status: TrackHistoryLinkStatus;
85
87
  status: Status;
86
88
  organisation_id: string;
87
89
  vehicle_id: string;
88
90
  trip_id: string;
89
91
  notifications: {
92
+ gps_track_history_share_link_id: string;
90
93
  status: Status;
91
94
  organisation_id: string;
92
95
  type: NotificationType;
93
96
  to_recipients: string;
94
- gps_track_history_share_link_id: string;
95
97
  }[];
98
+ }, {
96
99
  from_date_time: string;
97
100
  to_date_time: string;
98
- }, {
99
101
  link_status: TrackHistoryLinkStatus;
100
102
  status: Status;
101
103
  organisation_id: string;
102
104
  vehicle_id: string;
103
105
  trip_id: string;
104
- from_date_time: string;
105
- to_date_time: string;
106
106
  notifications?: {
107
+ gps_track_history_share_link_id: string;
107
108
  status: Status;
108
109
  organisation_id: string;
109
110
  type: NotificationType;
110
111
  to_recipients: string;
111
- gps_track_history_share_link_id: string;
112
112
  }[] | undefined;
113
113
  }>;
114
114
  type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
@@ -33,41 +33,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
33
33
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
34
34
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
+ db_index: string;
37
+ db_instance: string;
38
+ night_driving: NightDriving;
36
39
  search: string;
37
40
  paging: PAGING;
38
41
  page_count: number;
39
42
  page_index: number;
40
- login_from: LoginFrom;
41
43
  date_format_id: string;
42
44
  time_zone_id: string;
45
+ login_from: LoginFrom;
43
46
  organisation_id: string;
44
- db_instance: string;
45
- db_index: string;
46
47
  vehicle_ids: string[];
47
48
  from_date: string;
48
49
  to_date: string;
49
50
  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
- login_from: LoginFrom;
56
+ db_index: string;
57
+ db_instance: string;
57
58
  date_format_id: string;
58
59
  time_zone_id: string;
60
+ login_from: LoginFrom;
59
61
  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;
64
65
  search?: string | undefined;
65
66
  paging?: PAGING | undefined;
66
67
  page_count?: unknown;
67
68
  page_index?: unknown;
68
69
  vehicle_ids?: string[] | undefined;
69
70
  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;
99
102
  search: string;
100
103
  paging: PAGING;
101
104
  page_count: number;
102
105
  page_index: number;
103
- login_from: LoginFrom;
104
106
  date_format_id: string;
105
107
  time_zone_id: string;
108
+ login_from: LoginFrom;
106
109
  organisation_id: string;
107
- db_instance: string;
108
- db_index: string;
109
110
  from_date: string;
110
111
  to_date: string;
111
112
  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
- login_from: LoginFrom;
119
+ db_index: string;
120
+ db_instance: string;
120
121
  date_format_id: string;
121
122
  time_zone_id: string;
123
+ login_from: LoginFrom;
122
124
  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;
127
128
  search?: string | undefined;
128
129
  paging?: PAGING | undefined;
129
130
  page_count?: unknown;
130
131
  page_index?: unknown;
131
132
  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;
159
161
  search: string;
160
162
  paging: PAGING;
161
163
  page_count: number;
162
164
  page_index: number;
163
- login_from: LoginFrom;
164
165
  date_format_id: string;
165
166
  time_zone_id: string;
167
+ login_from: LoginFrom;
166
168
  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
- login_from: LoginFrom;
176
+ db_index: string;
177
+ db_instance: string;
177
178
  date_format_id: string;
178
179
  time_zone_id: string;
180
+ login_from: LoginFrom;
179
181
  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;
210
212
  search: string;
211
213
  paging: PAGING;
212
214
  page_count: number;
213
215
  page_index: number;
214
- login_from: LoginFrom;
215
216
  date_format_id: string;
216
217
  time_zone_id: string;
218
+ login_from: LoginFrom;
217
219
  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
- login_from: LoginFrom;
224
+ db_index: string;
225
+ db_instance: string;
225
226
  date_format_id: string;
226
227
  time_zone_id: string;
228
+ login_from: LoginFrom;
227
229
  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;
256
259
  search: string;
257
260
  paging: PAGING;
258
261
  page_count: number;
259
262
  page_index: number;
260
- login_from: LoginFrom;
261
263
  date_format_id: string;
262
264
  time_zone_id: string;
265
+ login_from: LoginFrom;
263
266
  organisation_id: string;
264
- db_instance: string;
265
- db_index: string;
266
267
  interval_seconds: number;
267
- vehicle_id: string;
268
268
  from_date_time: string;
269
269
  to_date_time: string;
270
270
  }, {
271
- login_from: LoginFrom;
271
+ db_index: string;
272
+ db_instance: string;
273
+ vehicle_id: string;
272
274
  date_format_id: string;
273
275
  time_zone_id: string;
276
+ login_from: LoginFrom;
274
277
  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;
301
304
  search: string;
302
305
  paging: PAGING;
303
306
  page_count: number;
304
307
  page_index: number;
305
- login_from: LoginFrom;
306
308
  date_format_id: string;
307
309
  time_zone_id: string;
310
+ login_from: LoginFrom;
308
311
  organisation_id: string;
309
- db_instance: string;
312
+ }, {
310
313
  db_index: string;
314
+ db_instance: string;
311
315
  vehicle_id: string;
312
- }, {
313
- login_from: LoginFrom;
314
316
  date_format_id: string;
315
317
  time_zone_id: string;
318
+ login_from: LoginFrom;
316
319
  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;
18
19
  provider_name: string;
19
20
  provider_code: string;
20
- status: Status;
21
21
  }, {
22
- provider_name: string;
23
22
  status: Status;
23
+ provider_name: string;
24
24
  provider_code?: string | undefined;
25
25
  }>;
26
26
  type MasterMainEwayBillProviderDTO = z.infer<typeof MasterMainEwayBillProviderSchema>;
@@ -15,12 +15,12 @@ declare const 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;
19
18
  bank_name: string;
20
19
  bank_code: string;
21
- }, {
22
20
  status: Status;
21
+ }, {
23
22
  bank_name: string;
23
+ status: Status;
24
24
  bank_code?: string | undefined;
25
25
  }>;
26
26
  type MasterMainFasttagDTO = z.infer<typeof MasterMainFasttagSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "1.4.0",
3
+ "version": "1.5.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",
@@ -47,9 +47,9 @@
47
47
  "import": "./dist/core/*",
48
48
  "require": "./dist/core/*"
49
49
  },
50
- "./zod/*": {
51
- "import": "./dist/zod/*",
52
- "require": "./dist/zod/*"
50
+ "./zod_utils/*": {
51
+ "import": "./dist/zod_utils/*",
52
+ "require": "./dist/zod_utils/*"
53
53
  }
54
54
  },
55
55
  "typesVersions": {
@@ -60,8 +60,8 @@
60
60
  "core/*": [
61
61
  "dist/core/*"
62
62
  ],
63
- "zod/*": [
64
- "dist/zod/*"
63
+ "zod_utils/*": [
64
+ "dist/zod_utils/*"
65
65
  ]
66
66
  }
67
67
  },