vms-nest-prisma-api-document 27.0.0 → 28.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.
@@ -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[];
@@ -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;
39
41
  status: Status;
40
42
  organisation_id: string;
41
43
  vehicle_id: string;
42
44
  driver_id: string;
43
45
  gps_geofence_id: string;
44
46
  time_zone_id: string;
47
+ }, {
45
48
  geofence_status_type: GeofenceStatusType;
46
49
  geofence_time: string;
47
- }, {
48
50
  status: Status;
49
51
  organisation_id: string;
50
52
  vehicle_id: string;
51
53
  driver_id: string;
52
54
  gps_geofence_id: string;
53
55
  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,6 +94,7 @@ 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[];
97
98
  status: Status[];
98
99
  time_zone_id: string;
99
100
  search: string;
@@ -121,12 +122,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
121
122
  gps_geofence_ids: string[];
122
123
  from_date: string;
123
124
  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;
130
131
  status?: Status[] | undefined;
131
132
  search?: string | undefined;
132
133
  paging?: PAGING | undefined;
@@ -150,7 +151,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
150
151
  vehicle_ids?: string[] | undefined;
151
152
  driver_ids?: string[] | undefined;
152
153
  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;
52
49
  status: Status;
53
50
  organisation_id: string;
54
51
  vehicle_id: string;
55
52
  driver_id: string;
56
53
  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;
57
58
  enter_gps_geofence_transaction_id: string;
58
59
  exit_gps_geofence_transaction_id: string;
59
- time_zone_id: string;
60
60
  }, {
61
- geofence_enter_date_time: string;
62
61
  status: Status;
63
62
  organisation_id: string;
64
63
  vehicle_id: string;
65
64
  driver_id: string;
66
65
  gps_geofence_id: string;
66
+ time_zone_id: string;
67
+ geofence_enter_date_time: string;
67
68
  enter_gps_geofence_transaction_id: string;
68
69
  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;
59
58
  status: Status;
60
59
  organisation_id: string;
61
60
  vehicle_id: string;
62
61
  driver_id: string;
63
62
  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;
@@ -381,22 +381,13 @@ var getUserPresignedUrl = async (fileName) => {
381
381
  return apiGet(ENDPOINTS.presignedUrl(fileName));
382
382
  };
383
383
  var updateUserDefaultLanguage = async (id, data) => {
384
- return apiPatch(
385
- ENDPOINTS.updateDefaultLanguage(id),
386
- data
387
- );
384
+ return apiPatch(ENDPOINTS.updateDefaultLanguage(id), data);
388
385
  };
389
386
  var updateUserDefaultTimezone = async (id, data) => {
390
- return apiPatch(
391
- ENDPOINTS.updateDefaultTimezone(id),
392
- data
393
- );
387
+ return apiPatch(ENDPOINTS.updateDefaultTimezone(id), data);
394
388
  };
395
389
  var updateUserDefaultDateformat = async (id, data) => {
396
- return apiPatch(
397
- ENDPOINTS.updateDefaultDateformat(id),
398
- data
399
- );
390
+ return apiPatch(ENDPOINTS.updateDefaultDateformat(id), data);
400
391
  };
401
392
  export {
402
393
  CreateUserSchema,
@@ -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 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;
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 MasterMainFasttagBankDTO = z.infer<typeof MasterMainFasttagBankSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "27.0.0",
3
+ "version": "28.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",