vms-nest-prisma-api-document 6.0.15 → 6.0.16

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[];
@@ -65,6 +65,9 @@ declare const NotificationSchema: z.ZodObject<{
65
65
  notification_key_4: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
66
66
  notification_key_5: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
67
67
  notification_key_6: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
68
+ module: z.ZodType<Module, z.ZodTypeDef, Module>;
69
+ alert_type: z.ZodType<AlertType, z.ZodTypeDef, AlertType>;
70
+ alert_sub_type: z.ZodType<AlertSubType, z.ZodTypeDef, AlertSubType>;
68
71
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
69
72
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
70
73
  }, "strip", z.ZodTypeAny, {
@@ -76,6 +79,9 @@ declare const NotificationSchema: z.ZodObject<{
76
79
  vehicle_id: string;
77
80
  gps_geofence_id: string;
78
81
  google_location: string;
82
+ module: Module;
83
+ alert_type: AlertType;
84
+ alert_sub_type: AlertSubType;
79
85
  date_time: string;
80
86
  notification_message: string;
81
87
  notification_html_message: string;
@@ -95,6 +101,9 @@ declare const NotificationSchema: z.ZodObject<{
95
101
  driver_id: string;
96
102
  vehicle_id: string;
97
103
  gps_geofence_id: string;
104
+ module: Module;
105
+ alert_type: AlertType;
106
+ alert_sub_type: AlertSubType;
98
107
  date_time: string;
99
108
  notification_message: string;
100
109
  latitude?: unknown;
@@ -412,6 +412,13 @@ var NotificationSchema = z3.object({
412
412
  notification_key_4: stringOptional("Notification Key 4", 0, 100),
413
413
  notification_key_5: stringOptional("Notification Key 5", 0, 100),
414
414
  notification_key_6: stringOptional("Notification Key 6", 0, 100),
415
+ module: enumMandatory("Module", Module, "GPSModule" /* GPSModule */),
416
+ alert_type: enumMandatory("Alert Type", AlertType, "Ignition" /* Ignition */),
417
+ alert_sub_type: enumMandatory(
418
+ "Alert Sub Type",
419
+ AlertSubType,
420
+ "IgnitionOn" /* IgnitionOn */
421
+ ),
415
422
  status: enumMandatory("Status", Status, "Active" /* Active */),
416
423
  time_zone_id: single_select_mandatory("MasterMainTimeZone")
417
424
  });
@@ -461,6 +468,9 @@ var toNotificationPayload = (row) => ({
461
468
  latitude: row.latitude ?? 0,
462
469
  longitude: row.longitude ?? 0,
463
470
  google_location: row.google_location || "",
471
+ module: row.module,
472
+ alert_type: row.alert_type,
473
+ alert_sub_type: row.alert_sub_type,
464
474
  status: row.status,
465
475
  time_zone_id: ""
466
476
  // Needs to be provided manually
@@ -488,6 +498,9 @@ var newNotificationPayload = () => ({
488
498
  latitude: 0,
489
499
  longitude: 0,
490
500
  google_location: "",
501
+ module: "GPSModule" /* GPSModule */,
502
+ alert_type: "Fuel" /* Fuel */,
503
+ alert_sub_type: "FuelRefill" /* FuelRefill */,
491
504
  // metadata
492
505
  status: "Active" /* Active */,
493
506
  time_zone_id: ""
@@ -31,21 +31,21 @@ 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
- geofence_status_type: GeofenceStatusType;
35
- geofence_time: string;
36
34
  status: Status;
37
35
  organisation_id: string;
38
36
  vehicle_id: string;
39
37
  driver_id: string;
40
38
  gps_geofence_id: string;
41
- }, {
42
39
  geofence_status_type: GeofenceStatusType;
43
40
  geofence_time: string;
41
+ }, {
44
42
  status: Status;
45
43
  organisation_id: string;
46
44
  vehicle_id: string;
47
45
  driver_id: string;
48
46
  gps_geofence_id: string;
47
+ geofence_status_type: GeofenceStatusType;
48
+ geofence_time: string;
49
49
  }>;
50
50
  type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
51
51
  declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
@@ -85,7 +85,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
85
85
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
86
86
  geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
87
87
  }, "strip", z.ZodTypeAny, {
88
- geofence_status_type: GeofenceStatusType[];
89
88
  status: Status[];
90
89
  search: string;
91
90
  paging: PAGING;
@@ -111,10 +110,10 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
111
110
  vehicle_ids: string[];
112
111
  driver_ids: string[];
113
112
  gps_geofence_ids: string[];
113
+ geofence_status_type: GeofenceStatusType[];
114
114
  }, {
115
115
  date_format_id: string;
116
116
  time_zone_id: string;
117
- geofence_status_type?: GeofenceStatusType[] | undefined;
118
117
  status?: Status[] | undefined;
119
118
  search?: string | undefined;
120
119
  paging?: PAGING | undefined;
@@ -138,6 +137,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
138
137
  vehicle_ids?: string[] | undefined;
139
138
  driver_ids?: string[] | undefined;
140
139
  gps_geofence_ids?: string[] | undefined;
140
+ geofence_status_type?: GeofenceStatusType[] | undefined;
141
141
  }>;
142
142
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
143
143
  declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
@@ -40,23 +40,23 @@ 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
+ geofence_enter_date_time: string;
44
+ geofence_exit_date_time: string;
45
+ duration_seconds: number;
43
46
  status: Status;
44
47
  organisation_id: string;
45
48
  vehicle_id: string;
46
49
  driver_id: string;
47
50
  gps_geofence_id: string;
48
- geofence_enter_date_time: string;
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
+ geofence_enter_date_time: string;
54
55
  status: Status;
55
56
  organisation_id: string;
56
57
  vehicle_id: string;
57
58
  driver_id: string;
58
59
  gps_geofence_id: string;
59
- geofence_enter_date_time: string;
60
60
  enter_gps_geofence_transaction_id: string;
61
61
  exit_gps_geofence_transaction_id: string;
62
62
  geofence_exit_date_time?: string | undefined;
@@ -62,11 +62,11 @@ 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
+ duration_seconds: number;
65
66
  status: Status;
66
67
  organisation_id: string;
67
68
  vehicle_id: string;
68
69
  driver_id: string;
69
- duration_seconds: number;
70
70
  from_geofence_exit_date_time: string;
71
71
  to_geofence_enter_date_time: string;
72
72
  travel_duration_seconds: number;
@@ -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;
@@ -31,6 +31,7 @@ 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;
34
35
  mobile_number: string;
35
36
  email: string;
36
37
  facebook_link: string;
@@ -41,7 +42,6 @@ declare const ContactUsDetailSchema: z.ZodObject<{
41
42
  pinterest_link: string;
42
43
  whats_app_chat_url: string;
43
44
  telegram_chat_url: string;
44
- status: Status;
45
45
  }, {
46
46
  status: Status;
47
47
  mobile_number?: string | undefined;
@@ -17,10 +17,10 @@ declare const FaqSchema: z.ZodObject<{
17
17
  faq_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
18
18
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- status: Status;
21
20
  faq_section: string;
22
21
  faq_header: string;
23
22
  faq_content: string;
23
+ status: Status;
24
24
  }, {
25
25
  status: Status;
26
26
  faq_section?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "6.0.15",
3
+ "version": "6.0.16",
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",