vms-nest-prisma-api-document 6.0.50 → 7.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.
@@ -1,24 +1,26 @@
1
- import { GeofenceType, GeofencePurposeType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
1
+ import { GeofencePurposeType, GeofenceType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation } from '../../../../user_organisation_service-BmevBmkg.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../../master/main/master_main_sim_provider_service.js';
7
7
 
8
- interface GPSGeofenceData extends Record<string, unknown> {
8
+ interface GPSGeofence extends Record<string, unknown> {
9
9
  gps_geofence_id: string;
10
10
  geofence_name: string;
11
- location_name: string;
11
+ geofence_purpose_type: GeofencePurposeType;
12
+ geofence_description?: string;
13
+ geofence_location: string;
12
14
  geofence_type: GeofenceType;
15
+ radius_m?: number;
13
16
  radius_km?: number;
14
17
  latitude?: number;
15
18
  longitude?: number;
16
19
  poliline_data?: GPSGeofencePolilineData[];
17
- geofence_description?: string;
18
- geofence_purpose_type: GeofencePurposeType;
19
20
  status: Status;
20
21
  added_date_time: string;
21
22
  modified_date_time: string;
23
+ geofence_details?: String;
22
24
  organisation_id: string;
23
25
  UserOrganisation?: UserOrganisation;
24
26
  }
@@ -37,12 +39,15 @@ declare const GPSGeofencePolilineDataSchema: z.ZodObject<{
37
39
  longitude?: unknown;
38
40
  }>;
39
41
  type GPSGeofencePolilineDataDTO = z.infer<typeof GPSGeofencePolilineDataSchema>;
40
- declare const GPSGeofenceDataSchema: z.ZodObject<{
42
+ declare const GPSGeofenceSchema: z.ZodObject<{
41
43
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
42
44
  geofence_name: z.ZodEffects<z.ZodString, string, string>;
43
- location_name: z.ZodEffects<z.ZodString, string, string>;
45
+ geofence_location: z.ZodEffects<z.ZodString, string, string>;
46
+ geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
47
+ geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
44
48
  geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
45
49
  radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
50
+ radius_m: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
46
51
  latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
47
52
  longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
48
53
  poliline_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -55,42 +60,42 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
55
60
  latitude?: unknown;
56
61
  longitude?: unknown;
57
62
  }>, "many">>>;
58
- geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
59
- geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
60
63
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
61
64
  }, "strip", z.ZodTypeAny, {
65
+ status: Status;
66
+ organisation_id: string;
62
67
  geofence_name: string;
63
- location_name: string;
68
+ geofence_purpose_type: GeofencePurposeType;
69
+ geofence_description: string;
70
+ geofence_location: string;
64
71
  geofence_type: GeofenceType;
65
72
  poliline_data: {
66
73
  latitude: number;
67
74
  longitude: number;
68
75
  }[];
69
- geofence_description: string;
70
- geofence_purpose_type: GeofencePurposeType;
71
- status: Status;
72
- organisation_id: string;
73
- radius_km?: number | undefined;
74
76
  latitude?: number | undefined;
75
77
  longitude?: number | undefined;
78
+ radius_m?: number | undefined;
79
+ radius_km?: number | undefined;
76
80
  }, {
77
- geofence_name: string;
78
- location_name: string;
79
- geofence_type: GeofenceType;
80
- geofence_purpose_type: GeofencePurposeType;
81
81
  status: Status;
82
82
  organisation_id: string;
83
- radius_km?: unknown;
83
+ geofence_name: string;
84
+ geofence_purpose_type: GeofencePurposeType;
85
+ geofence_location: string;
86
+ geofence_type: GeofenceType;
84
87
  latitude?: unknown;
85
88
  longitude?: unknown;
89
+ geofence_description?: string | undefined;
90
+ radius_m?: unknown;
91
+ radius_km?: unknown;
86
92
  poliline_data?: {
87
93
  latitude?: unknown;
88
94
  longitude?: unknown;
89
95
  }[] | undefined;
90
- geofence_description?: string | undefined;
91
96
  }>;
92
- type GPSGeofenceDataDTO = z.infer<typeof GPSGeofenceDataSchema>;
93
- declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
97
+ type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
98
+ declare const GPSGeofenceQuerySchema: z.ZodObject<{
94
99
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
95
100
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
96
101
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -122,12 +127,12 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
122
127
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
123
128
  } & {
124
129
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
125
- geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
126
130
  geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
131
+ geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
132
+ gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
127
133
  }, "strip", z.ZodTypeAny, {
128
- geofence_type: GeofenceType[];
129
- geofence_purpose_type: GeofencePurposeType[];
130
134
  status: Status[];
135
+ time_zone_id: string;
131
136
  search: string;
132
137
  paging: PAGING;
133
138
  page_count: number;
@@ -147,13 +152,13 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
147
152
  }[];
148
153
  include_master_data: YesNo;
149
154
  date_format_id: string;
150
- time_zone_id: string;
151
155
  organisation_ids: string[];
156
+ gps_geofence_ids: string[];
157
+ geofence_purpose_type: GeofencePurposeType[];
158
+ geofence_type: GeofenceType[];
152
159
  }, {
153
- date_format_id: string;
154
160
  time_zone_id: string;
155
- geofence_type?: GeofenceType[] | undefined;
156
- geofence_purpose_type?: GeofencePurposeType[] | undefined;
161
+ date_format_id: string;
157
162
  status?: Status[] | undefined;
158
163
  search?: string | undefined;
159
164
  paging?: PAGING | undefined;
@@ -174,13 +179,16 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
174
179
  }[] | undefined;
175
180
  include_master_data?: YesNo | undefined;
176
181
  organisation_ids?: string[] | undefined;
182
+ gps_geofence_ids?: string[] | undefined;
183
+ geofence_purpose_type?: GeofencePurposeType[] | undefined;
184
+ geofence_type?: GeofenceType[] | undefined;
177
185
  }>;
178
- type GPSGeofenceDataQueryDTO = z.infer<typeof GPSGeofenceDataQuerySchema>;
179
- declare const toGPSGeofenceDataPayload: (data: GPSGeofenceData) => GPSGeofenceDataDTO;
180
- declare const newGPSGeofenceDataPayload: () => GPSGeofenceDataDTO;
181
- declare const findGPSGeofenceData: (data: GPSGeofenceDataQueryDTO) => Promise<FBR<GPSGeofenceData[]>>;
182
- declare const createGPSGeofenceData: (data: GPSGeofenceDataDTO) => Promise<SBR>;
183
- declare const updateGPSGeofenceData: (id: string, data: GPSGeofenceDataDTO) => Promise<SBR>;
184
- declare const deleteGPSGeofenceData: (id: string) => Promise<SBR>;
186
+ type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
187
+ declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
188
+ declare const newGPSGeofencePayload: () => GPSGeofenceDTO;
189
+ declare const findGPSGeofence: (data: GPSGeofenceQueryDTO) => Promise<FBR<GPSGeofence[]>>;
190
+ declare const createGPSGeofence: (data: GPSGeofenceDTO) => Promise<SBR>;
191
+ declare const updateGPSGeofence: (id: string, data: GPSGeofenceDTO) => Promise<SBR>;
192
+ declare const deleteGPSGeofence: (id: string) => Promise<SBR>;
185
193
 
186
- export { type GPSGeofenceData, type GPSGeofenceDataDTO, type GPSGeofenceDataQueryDTO, GPSGeofenceDataQuerySchema, GPSGeofenceDataSchema, type GPSGeofencePolilineData, type GPSGeofencePolilineDataDTO, GPSGeofencePolilineDataSchema, createGPSGeofenceData, deleteGPSGeofenceData, findGPSGeofenceData, newGPSGeofenceDataPayload, toGPSGeofenceDataPayload, updateGPSGeofenceData };
194
+ export { type GPSGeofence, type GPSGeofenceDTO, type GPSGeofencePolilineData, type GPSGeofencePolilineDataDTO, GPSGeofencePolilineDataSchema, type GPSGeofenceQueryDTO, GPSGeofenceQuerySchema, GPSGeofenceSchema, createGPSGeofence, deleteGPSGeofence, findGPSGeofence, newGPSGeofencePayload, toGPSGeofencePayload, updateGPSGeofence };
@@ -22,7 +22,7 @@ var apiDelete = async (url) => {
22
22
  return response.data;
23
23
  };
24
24
 
25
- // src/services/gps/features/geofence/gps_geofence_data_service.ts
25
+ // src/services/gps/features/geofence/gps_geofence_service.ts
26
26
  import { z as z3 } from "zod";
27
27
 
28
28
  // src/zod_utils/zod_utils.ts
@@ -347,8 +347,8 @@ var MongoBaseQuerySchema = z2.object({
347
347
  // ✅ Single-selection -> MasterMainTimeZone
348
348
  });
349
349
 
350
- // src/services/gps/features/geofence/gps_geofence_data_service.ts
351
- var URL = "gps/features/gps_geofence_data";
350
+ // src/services/gps/features/geofence/gps_geofence_service.ts
351
+ var URL = "gps/features/gps_geofence";
352
352
  var ENDPOINTS = {
353
353
  find: `${URL}/search`,
354
354
  create: URL,
@@ -359,16 +359,23 @@ var GPSGeofencePolilineDataSchema = z3.object({
359
359
  latitude: doubleMandatoryLatLng("latitude"),
360
360
  longitude: doubleMandatoryLatLng("longitude")
361
361
  });
362
- var GPSGeofenceDataSchema = z3.object({
363
- organisation_id: single_select_mandatory("Organisation ID"),
362
+ var GPSGeofenceSchema = z3.object({
363
+ organisation_id: single_select_mandatory("UserOrganisation"),
364
364
  geofence_name: stringMandatory("Geofence Name", 3, 100),
365
- location_name: stringMandatory("Location Name", 3, 100),
365
+ geofence_location: stringMandatory("Geofence Location", 3, 200),
366
+ geofence_description: stringOptional("Geofence Description", 0, 500),
367
+ geofence_purpose_type: enumMandatory(
368
+ "Geofence Purpuse Type",
369
+ GeofencePurposeType,
370
+ "TripSourceLocation" /* TripSourceLocation */
371
+ ),
366
372
  geofence_type: enumMandatory(
367
373
  "Geofence Type",
368
374
  GeofenceType,
369
375
  "Circle" /* Circle */
370
376
  ),
371
377
  radius_km: doubleOptional("radius_km"),
378
+ radius_m: doubleOptional("radius_m"),
372
379
  latitude: doubleOptionalLatLng("latitude"),
373
380
  longitude: doubleOptionalLatLng("longitude"),
374
381
  poliline_data: nestedArrayOfObjectsOptional(
@@ -376,74 +383,72 @@ var GPSGeofenceDataSchema = z3.object({
376
383
  GPSGeofencePolilineDataSchema,
377
384
  []
378
385
  ),
379
- geofence_description: stringOptional("Geofence Description", 0, 500),
380
- geofence_purpose_type: enumMandatory(
381
- "Geofence Purpuse Type",
382
- GeofencePurposeType,
383
- "TripSourceLocation" /* TripSourceLocation */
384
- ),
385
386
  status: enumMandatory("Status", Status, "Active" /* Active */)
386
387
  });
387
- var GPSGeofenceDataQuerySchema = BaseQuerySchema.extend({
388
- organisation_ids: multi_select_optional("User Organisation IDs"),
388
+ var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
389
+ organisation_ids: multi_select_optional("UserOrganisation"),
389
390
  // ✅ Multi-selection -> UserOrganisation
391
+ geofence_purpose_type: enumArrayOptional(
392
+ "Geofence Purpose Type",
393
+ GeofencePurposeType,
394
+ getAllEnums(GeofencePurposeType)
395
+ ),
390
396
  geofence_type: enumArrayOptional(
391
397
  "Geofence Type",
392
398
  GeofenceType,
393
399
  getAllEnums(GeofenceType)
394
400
  ),
395
- geofence_purpose_type: enumArrayOptional(
396
- "Geofence Purpose Type",
397
- GeofencePurposeType,
398
- getAllEnums(GeofencePurposeType)
399
- )
401
+ gps_geofence_ids: multi_select_optional("GPSGeofence")
402
+ // Multi-selection -> GPSGeofence
400
403
  });
401
- var toGPSGeofenceDataPayload = (data) => ({
404
+ var toGPSGeofencePayload = (data) => ({
402
405
  organisation_id: data.organisation_id,
403
406
  geofence_name: data.geofence_name,
404
- location_name: data.location_name,
407
+ geofence_location: data.geofence_location,
408
+ geofence_description: data.geofence_description ?? "",
409
+ geofence_purpose_type: data.geofence_purpose_type,
405
410
  geofence_type: data.geofence_type,
411
+ radius_m: data.radius_m,
406
412
  radius_km: data.radius_km,
407
413
  latitude: data.latitude,
408
414
  longitude: data.longitude,
409
415
  poliline_data: data.poliline_data ?? [],
410
- geofence_description: data.geofence_description ?? "",
411
- geofence_purpose_type: data.geofence_purpose_type,
412
416
  status: data.status
413
417
  });
414
- var newGPSGeofenceDataPayload = () => ({
418
+ var newGPSGeofencePayload = () => ({
415
419
  organisation_id: "",
416
420
  geofence_name: "",
417
- location_name: "",
421
+ geofence_location: "",
422
+ geofence_description: "",
423
+ geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
418
424
  geofence_type: "Circle" /* Circle */,
425
+ radius_m: 0,
419
426
  radius_km: 0,
420
427
  latitude: 0,
421
428
  longitude: 0,
422
429
  poliline_data: [],
423
- geofence_description: "",
424
- geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
425
430
  status: "Active" /* Active */
426
431
  });
427
- var findGPSGeofenceData = async (data) => {
432
+ var findGPSGeofence = async (data) => {
428
433
  return apiPost(ENDPOINTS.find, data);
429
434
  };
430
- var createGPSGeofenceData = async (data) => {
435
+ var createGPSGeofence = async (data) => {
431
436
  return apiPost(ENDPOINTS.create, data);
432
437
  };
433
- var updateGPSGeofenceData = async (id, data) => {
438
+ var updateGPSGeofence = async (id, data) => {
434
439
  return apiPatch(ENDPOINTS.update(id), data);
435
440
  };
436
- var deleteGPSGeofenceData = async (id) => {
441
+ var deleteGPSGeofence = async (id) => {
437
442
  return apiDelete(ENDPOINTS.delete(id));
438
443
  };
439
444
  export {
440
- GPSGeofenceDataQuerySchema,
441
- GPSGeofenceDataSchema,
442
445
  GPSGeofencePolilineDataSchema,
443
- createGPSGeofenceData,
444
- deleteGPSGeofenceData,
445
- findGPSGeofenceData,
446
- newGPSGeofenceDataPayload,
447
- toGPSGeofenceDataPayload,
448
- updateGPSGeofenceData
446
+ GPSGeofenceQuerySchema,
447
+ GPSGeofenceSchema,
448
+ createGPSGeofence,
449
+ deleteGPSGeofence,
450
+ findGPSGeofence,
451
+ newGPSGeofencePayload,
452
+ toGPSGeofencePayload,
453
+ updateGPSGeofence
449
454
  };
@@ -2,7 +2,7 @@ import { GeofenceStatusType, Status, PAGING, LoadParents, LoadChild, LoadChildCo
2
2
  import { FBR, SBR } from '../../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-BmevBmkg.js';
5
- import { GPSGeofenceData } from './gps_geofence_data_service.js';
5
+ import { GPSGeofence } from './gps_geofence_service.js';
6
6
  import '../../../../zod_utils/zod_base_schema.js';
7
7
  import '../../../master/main/master_main_sim_provider_service.js';
8
8
 
@@ -23,7 +23,7 @@ interface GPSGeofenceTransaction extends Record<string, unknown> {
23
23
  MasterDriver?: MasterDriver;
24
24
  driver_details?: string;
25
25
  gps_geofence_id: string;
26
- GPSGeofenceData?: GPSGeofenceData;
26
+ GPSGeofenceData?: GPSGeofence;
27
27
  geofence_details?: string;
28
28
  }
29
29
  declare const GPSGeofenceTransactionSchema: z.ZodObject<{
@@ -34,20 +34,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
34
34
  geofence_status_type: z.ZodType<GeofenceStatusType, z.ZodTypeDef, GeofenceStatusType>;
35
35
  geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
36
36
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
37
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
37
38
  }, "strip", z.ZodTypeAny, {
38
- gps_geofence_id: string;
39
39
  status: Status;
40
40
  organisation_id: string;
41
- driver_id: string;
42
41
  vehicle_id: string;
42
+ driver_id: string;
43
+ gps_geofence_id: string;
44
+ time_zone_id: string;
43
45
  geofence_status_type: GeofenceStatusType;
44
46
  geofence_time: string;
45
47
  }, {
46
- gps_geofence_id: string;
47
48
  status: Status;
48
49
  organisation_id: string;
49
- driver_id: string;
50
50
  vehicle_id: string;
51
+ driver_id: string;
52
+ gps_geofence_id: string;
53
+ time_zone_id: string;
51
54
  geofence_status_type: GeofenceStatusType;
52
55
  geofence_time: string;
53
56
  }>;
@@ -88,8 +91,11 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
88
91
  driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
89
92
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
90
93
  geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
94
+ from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
95
+ to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
91
96
  }, "strip", z.ZodTypeAny, {
92
97
  status: Status[];
98
+ time_zone_id: string;
93
99
  search: string;
94
100
  paging: PAGING;
95
101
  page_count: number;
@@ -109,15 +115,18 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
109
115
  }[];
110
116
  include_master_data: YesNo;
111
117
  date_format_id: string;
112
- time_zone_id: string;
113
118
  organisation_ids: string[];
114
119
  vehicle_ids: string[];
115
120
  driver_ids: string[];
116
- geofence_status_type: GeofenceStatusType[];
117
121
  gps_geofence_ids: string[];
122
+ from_date: string;
123
+ to_date: string;
124
+ geofence_status_type: GeofenceStatusType[];
118
125
  }, {
119
- date_format_id: string;
120
126
  time_zone_id: string;
127
+ date_format_id: string;
128
+ from_date: string;
129
+ to_date: string;
121
130
  status?: Status[] | undefined;
122
131
  search?: string | undefined;
123
132
  paging?: PAGING | undefined;
@@ -140,15 +149,15 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
140
149
  organisation_ids?: string[] | undefined;
141
150
  vehicle_ids?: string[] | undefined;
142
151
  driver_ids?: string[] | undefined;
143
- geofence_status_type?: GeofenceStatusType[] | undefined;
144
152
  gps_geofence_ids?: string[] | undefined;
153
+ geofence_status_type?: GeofenceStatusType[] | undefined;
145
154
  }>;
146
155
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
147
156
  declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
148
157
  declare const newGPSGeofenceTransactionPayload: () => GPSGeofenceTransactionDTO;
149
- declare const findGPSGeofenceTransactions: (data: GPSGeofenceTransactionQueryDTO) => Promise<FBR<GPSGeofenceTransaction[]>>;
158
+ declare const findGPSGeofenceTransaction: (data: GPSGeofenceTransactionQueryDTO) => Promise<FBR<GPSGeofenceTransaction[]>>;
150
159
  declare const createGPSGeofenceTransaction: (data: GPSGeofenceTransactionDTO) => Promise<SBR>;
151
160
  declare const updateGPSGeofenceTransaction: (id: string, data: GPSGeofenceTransactionDTO) => Promise<SBR>;
152
161
  declare const deleteGPSGeofenceTransaction: (id: string) => Promise<SBR>;
153
162
 
154
- export { type GPSGeofenceTransaction, type GPSGeofenceTransactionDTO, type GPSGeofenceTransactionQueryDTO, GPSGeofenceTransactionQuerySchema, GPSGeofenceTransactionSchema, createGPSGeofenceTransaction, deleteGPSGeofenceTransaction, findGPSGeofenceTransactions, newGPSGeofenceTransactionPayload, toGPSGeofenceTransactionPayload, updateGPSGeofenceTransaction };
163
+ export { type GPSGeofenceTransaction, type GPSGeofenceTransactionDTO, type GPSGeofenceTransactionQueryDTO, GPSGeofenceTransactionQuerySchema, GPSGeofenceTransactionSchema, createGPSGeofenceTransaction, deleteGPSGeofenceTransaction, findGPSGeofenceTransaction, newGPSGeofenceTransactionPayload, toGPSGeofenceTransactionPayload, updateGPSGeofenceTransaction };
@@ -264,7 +264,7 @@ var ENDPOINTS = {
264
264
  delete: (id) => `${URL}/${id}`
265
265
  };
266
266
  var GPSGeofenceTransactionSchema = z3.object({
267
- organisation_id: single_select_mandatory("Organisation ID"),
267
+ organisation_id: single_select_mandatory("UserOrganisation"),
268
268
  vehicle_id: single_select_mandatory("Master Vehicle ID"),
269
269
  driver_id: single_select_optional("Driver ID"),
270
270
  gps_geofence_id: single_select_mandatory("GPS Geofence ID"),
@@ -274,22 +274,25 @@ var GPSGeofenceTransactionSchema = z3.object({
274
274
  "Enter" /* Enter */
275
275
  ),
276
276
  geofence_time: dateMandatory("Geofence Time"),
277
- status: enumMandatory("Status", Status, "Active" /* Active */)
277
+ status: enumMandatory("Status", Status, "Active" /* Active */),
278
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
278
279
  });
279
280
  var GPSGeofenceTransactionQuerySchema = BaseQuerySchema.extend({
280
- organisation_ids: multi_select_optional("User Organisation IDs"),
281
+ organisation_ids: multi_select_optional("UserOrganisation"),
281
282
  // ✅ Multi-selection -> UserOrganisation
282
- vehicle_ids: multi_select_optional("Master Vehicle IDs"),
283
- // ✅ Multi-selection -> Master Vehicle
284
- driver_ids: multi_select_optional("Master Driver IDs"),
285
- // ✅ Multi-selection -> Master Driver
283
+ vehicle_ids: multi_select_optional("MasterVehicle"),
284
+ // ✅ Multi-selection -> MasterVehicle
285
+ driver_ids: multi_select_optional("MasterDriver"),
286
+ // ✅ Multi-selection -> MasterDriver
286
287
  gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
287
288
  // ✅ Multi-selection -> Gps Geofence
288
289
  geofence_status_type: enumArrayOptional(
289
290
  "Geofence Status Type",
290
291
  GeofenceStatusType,
291
292
  getAllEnums(GeofenceStatusType)
292
- )
293
+ ),
294
+ from_date: dateMandatory("From Date"),
295
+ to_date: dateMandatory("To Date")
293
296
  });
294
297
  var toGPSGeofenceTransactionPayload = (data) => ({
295
298
  organisation_id: data.organisation_id,
@@ -298,7 +301,8 @@ var toGPSGeofenceTransactionPayload = (data) => ({
298
301
  driver_id: data.driver_id || "",
299
302
  geofence_status_type: data.geofence_status_type,
300
303
  geofence_time: data.geofence_time,
301
- status: data.status
304
+ status: data.status,
305
+ time_zone_id: ""
302
306
  });
303
307
  var newGPSGeofenceTransactionPayload = () => ({
304
308
  organisation_id: "",
@@ -307,9 +311,10 @@ var newGPSGeofenceTransactionPayload = () => ({
307
311
  driver_id: "",
308
312
  geofence_status_type: "Enter" /* Enter */,
309
313
  geofence_time: (/* @__PURE__ */ new Date()).toISOString(),
310
- status: "Active" /* Active */
314
+ status: "Active" /* Active */,
315
+ time_zone_id: ""
311
316
  });
312
- var findGPSGeofenceTransactions = async (data) => {
317
+ var findGPSGeofenceTransaction = async (data) => {
313
318
  return apiPost(ENDPOINTS.find, data);
314
319
  };
315
320
  var createGPSGeofenceTransaction = async (data) => {
@@ -326,7 +331,7 @@ export {
326
331
  GPSGeofenceTransactionSchema,
327
332
  createGPSGeofenceTransaction,
328
333
  deleteGPSGeofenceTransaction,
329
- findGPSGeofenceTransactions,
334
+ findGPSGeofenceTransaction,
330
335
  newGPSGeofenceTransactionPayload,
331
336
  toGPSGeofenceTransactionPayload,
332
337
  updateGPSGeofenceTransaction
@@ -2,7 +2,7 @@ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo
2
2
  import { FBR, SBR } from '../../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-BmevBmkg.js';
5
- import { GPSGeofenceData } from './gps_geofence_data_service.js';
5
+ import { GPSGeofence } from './gps_geofence_service.js';
6
6
  import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
7
7
  import '../../../../zod_utils/zod_base_schema.js';
8
8
  import '../../../master/main/master_main_sim_provider_service.js';
@@ -25,7 +25,7 @@ interface GPSGeofenceTransactionSummary extends Record<string, unknown> {
25
25
  MasterDriver?: MasterDriver;
26
26
  driver_details?: string;
27
27
  gps_geofence_id: string;
28
- GPSGeofenceData?: GPSGeofenceData;
28
+ GPSGeofenceData?: GPSGeofence;
29
29
  geofence_details?: string;
30
30
  enter_gps_geofence_transaction_id: string;
31
31
  EnterGPSGeofenceTransaction?: GPSGeofenceTransaction;
@@ -44,26 +44,29 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
44
44
  geofence_exit_date_time: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
45
45
  duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
46
46
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
47
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
47
48
  }, "strip", z.ZodTypeAny, {
48
- gps_geofence_id: string;
49
- status: Status;
50
- organisation_id: string;
51
- driver_id: string;
52
- vehicle_id: string;
53
49
  geofence_enter_date_time: string;
54
50
  geofence_exit_date_time: string;
55
51
  duration_seconds: number;
52
+ status: Status;
53
+ organisation_id: string;
54
+ vehicle_id: string;
55
+ driver_id: string;
56
+ gps_geofence_id: string;
56
57
  enter_gps_geofence_transaction_id: string;
57
58
  exit_gps_geofence_transaction_id: string;
59
+ time_zone_id: string;
58
60
  }, {
59
- gps_geofence_id: string;
61
+ geofence_enter_date_time: string;
60
62
  status: Status;
61
63
  organisation_id: string;
62
- driver_id: string;
63
64
  vehicle_id: string;
64
- geofence_enter_date_time: string;
65
+ driver_id: string;
66
+ gps_geofence_id: string;
65
67
  enter_gps_geofence_transaction_id: string;
66
68
  exit_gps_geofence_transaction_id: string;
69
+ time_zone_id: string;
67
70
  geofence_exit_date_time?: string | undefined;
68
71
  duration_seconds?: unknown;
69
72
  }>;
@@ -107,6 +110,7 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
107
110
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
108
111
  }, "strip", z.ZodTypeAny, {
109
112
  status: Status[];
113
+ time_zone_id: string;
110
114
  search: string;
111
115
  paging: PAGING;
112
116
  page_count: number;
@@ -126,7 +130,6 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
126
130
  }[];
127
131
  include_master_data: YesNo;
128
132
  date_format_id: string;
129
- time_zone_id: string;
130
133
  organisation_ids: string[];
131
134
  vehicle_ids: string[];
132
135
  driver_ids: string[];
@@ -134,8 +137,8 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
134
137
  from_date: string;
135
138
  to_date: string;
136
139
  }, {
137
- date_format_id: string;
138
140
  time_zone_id: string;
141
+ date_format_id: string;
139
142
  from_date: string;
140
143
  to_date: string;
141
144
  status?: Status[] | undefined;
@@ -165,9 +168,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
165
168
  type GPSGeofenceTransactionSummaryQueryDTO = z.infer<typeof GPSGeofenceTransactionSummaryQuerySchema>;
166
169
  declare const toGPSGeofenceTransactionSummaryPayload: (data: GPSGeofenceTransactionSummary) => GPSGeofenceTransactionSummaryDTO;
167
170
  declare const newGPSGeofenceTransactionSummaryPayload: () => GPSGeofenceTransactionSummaryDTO;
168
- declare const findGPSGeofenceTransactionSummaries: (data: GPSGeofenceTransactionSummaryQueryDTO) => Promise<FBR<GPSGeofenceTransactionSummary[]>>;
171
+ declare const findGPSGeofenceTransactionSummary: (data: GPSGeofenceTransactionSummaryQueryDTO) => Promise<FBR<GPSGeofenceTransactionSummary[]>>;
169
172
  declare const createGPSGeofenceTransactionSummary: (data: GPSGeofenceTransactionSummaryDTO) => Promise<SBR>;
170
173
  declare const updateGPSGeofenceTransactionSummary: (id: string, data: GPSGeofenceTransactionSummaryDTO) => Promise<SBR>;
171
174
  declare const deleteGPSGeofenceTransactionSummary: (id: string) => Promise<SBR>;
172
175
 
173
- export { type GPSGeofenceTransactionSummary, type GPSGeofenceTransactionSummaryDTO, type GPSGeofenceTransactionSummaryQueryDTO, GPSGeofenceTransactionSummaryQuerySchema, GPSGeofenceTransactionSummarySchema, createGPSGeofenceTransactionSummary, deleteGPSGeofenceTransactionSummary, findGPSGeofenceTransactionSummaries, newGPSGeofenceTransactionSummaryPayload, toGPSGeofenceTransactionSummaryPayload, updateGPSGeofenceTransactionSummary };
176
+ export { type GPSGeofenceTransactionSummary, type GPSGeofenceTransactionSummaryDTO, type GPSGeofenceTransactionSummaryQueryDTO, GPSGeofenceTransactionSummaryQuerySchema, GPSGeofenceTransactionSummarySchema, createGPSGeofenceTransactionSummary, deleteGPSGeofenceTransactionSummary, findGPSGeofenceTransactionSummary, newGPSGeofenceTransactionSummaryPayload, toGPSGeofenceTransactionSummaryPayload, updateGPSGeofenceTransactionSummary };
@@ -275,7 +275,7 @@ var ENDPOINTS = {
275
275
  delete: (id) => `${URL}/${id}`
276
276
  };
277
277
  var GPSGeofenceTransactionSummarySchema = z3.object({
278
- organisation_id: single_select_mandatory("Organisation ID"),
278
+ organisation_id: single_select_mandatory("UserOrganisation"),
279
279
  vehicle_id: single_select_mandatory("Master Vehicle ID"),
280
280
  driver_id: single_select_optional("Driver ID"),
281
281
  gps_geofence_id: single_select_mandatory("GPS Geofence ID"),
@@ -288,15 +288,16 @@ var GPSGeofenceTransactionSummarySchema = z3.object({
288
288
  geofence_enter_date_time: dateMandatory("Geofence Enter Date Time"),
289
289
  geofence_exit_date_time: dateOptional("Geofence Exit Date Time"),
290
290
  duration_seconds: numberOptional("Duration Seconds"),
291
- status: enumMandatory("Status", Status, "Active" /* Active */)
291
+ status: enumMandatory("Status", Status, "Active" /* Active */),
292
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
292
293
  });
293
294
  var GPSGeofenceTransactionSummaryQuerySchema = BaseQuerySchema.extend({
294
- organisation_ids: multi_select_optional("User Organisation IDs"),
295
+ organisation_ids: multi_select_optional("UserOrganisation"),
295
296
  // ✅ Multi-selection -> UserOrganisation
296
- vehicle_ids: multi_select_optional("Master Vehicle IDs"),
297
+ vehicle_ids: multi_select_optional("MasterVehicle"),
297
298
  // ✅ Multi-selection -> MasterVehicle
298
- driver_ids: multi_select_optional("Master Driver IDs"),
299
- // ✅ Multi-selection -> Master Driver
299
+ driver_ids: multi_select_optional("MasterDriver"),
300
+ // ✅ Multi-selection -> MasterDriver
300
301
  gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
301
302
  // ✅ Multi-selection -> Gps Geofence
302
303
  from_date: dateMandatory("From Date"),
@@ -312,7 +313,8 @@ var toGPSGeofenceTransactionSummaryPayload = (data) => ({
312
313
  geofence_enter_date_time: data.geofence_enter_date_time,
313
314
  geofence_exit_date_time: data.geofence_exit_date_time || "",
314
315
  duration_seconds: data.duration_seconds || 0,
315
- status: data.status
316
+ status: data.status,
317
+ time_zone_id: ""
316
318
  });
317
319
  var newGPSGeofenceTransactionSummaryPayload = () => ({
318
320
  organisation_id: "",
@@ -324,9 +326,10 @@ var newGPSGeofenceTransactionSummaryPayload = () => ({
324
326
  geofence_enter_date_time: "",
325
327
  geofence_exit_date_time: "",
326
328
  duration_seconds: 0,
327
- status: "Active" /* Active */
329
+ status: "Active" /* Active */,
330
+ time_zone_id: ""
328
331
  });
329
- var findGPSGeofenceTransactionSummaries = async (data) => {
332
+ var findGPSGeofenceTransactionSummary = async (data) => {
330
333
  return apiPost(ENDPOINTS.find, data);
331
334
  };
332
335
  var createGPSGeofenceTransactionSummary = async (data) => {
@@ -343,7 +346,7 @@ export {
343
346
  GPSGeofenceTransactionSummarySchema,
344
347
  createGPSGeofenceTransactionSummary,
345
348
  deleteGPSGeofenceTransactionSummary,
346
- findGPSGeofenceTransactionSummaries,
349
+ findGPSGeofenceTransactionSummary,
347
350
  newGPSGeofenceTransactionSummaryPayload,
348
351
  toGPSGeofenceTransactionSummaryPayload,
349
352
  updateGPSGeofenceTransactionSummary
@@ -2,7 +2,6 @@ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo
2
2
  import { FBR, SBR } from '../../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-BmevBmkg.js';
5
- import { GPSGeofenceData } from './gps_geofence_data_service.js';
6
5
  import '../../../../zod_utils/zod_base_schema.js';
7
6
  import '../../../master/main/master_main_sim_provider_service.js';
8
7
 
@@ -29,10 +28,10 @@ interface TripGeofenceToGeofence extends Record<string, unknown> {
29
28
  MasterDriver?: MasterDriver;
30
29
  driver_details?: string;
31
30
  from_geofence_id: string;
32
- FromGeofence?: GPSGeofenceData;
31
+ FromGeofence?: TripGeofenceToGeofence;
33
32
  from_geofence_details?: string;
34
33
  to_geofence_id: string;
35
- ToGeofence?: GPSGeofenceData;
34
+ ToGeofence?: TripGeofenceToGeofence;
36
35
  to_geofence_details?: string;
37
36
  duration_seconds_f?: string;
38
37
  travel_duration_seconds_f?: string;
@@ -54,12 +53,14 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
54
53
  max_speed: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
55
54
  avg_speed: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
56
55
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
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
- driver_id: string;
61
61
  vehicle_id: string;
62
- duration_seconds: number;
62
+ driver_id: string;
63
+ time_zone_id: string;
63
64
  from_geofence_exit_date_time: string;
64
65
  to_geofence_enter_date_time: string;
65
66
  travel_duration_seconds: number;
@@ -72,8 +73,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
72
73
  }, {
73
74
  status: Status;
74
75
  organisation_id: string;
75
- driver_id: string;
76
76
  vehicle_id: string;
77
+ driver_id: string;
78
+ time_zone_id: string;
77
79
  from_geofence_exit_date_time: string;
78
80
  to_geofence_enter_date_time: string;
79
81
  from_geofence_id: string;
@@ -126,6 +128,7 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
126
128
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
127
129
  }, "strip", z.ZodTypeAny, {
128
130
  status: Status[];
131
+ time_zone_id: string;
129
132
  search: string;
130
133
  paging: PAGING;
131
134
  page_count: number;
@@ -145,7 +148,6 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
145
148
  }[];
146
149
  include_master_data: YesNo;
147
150
  date_format_id: string;
148
- time_zone_id: string;
149
151
  organisation_ids: string[];
150
152
  vehicle_ids: string[];
151
153
  driver_ids: string[];
@@ -154,8 +156,8 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
154
156
  from_geofence_ids: string[];
155
157
  to_geofence_ids: string[];
156
158
  }, {
157
- date_format_id: string;
158
159
  time_zone_id: string;
160
+ date_format_id: string;
159
161
  from_date: string;
160
162
  to_date: string;
161
163
  status?: Status[] | undefined;
@@ -287,7 +287,7 @@ var ENDPOINTS = {
287
287
  delete: (id) => `${URL}/${id}`
288
288
  };
289
289
  var TripGeofenceToGeofenceSchema = z3.object({
290
- organisation_id: single_select_mandatory("Organisation ID"),
290
+ organisation_id: single_select_mandatory("UserOrganisation"),
291
291
  vehicle_id: single_select_mandatory("Master Vehicle ID"),
292
292
  driver_id: single_select_optional("Driver ID"),
293
293
  from_geofence_id: single_select_mandatory("From Geofence ID"),
@@ -301,15 +301,16 @@ var TripGeofenceToGeofenceSchema = z3.object({
301
301
  distance_meters: doubleOptional("Distance KM"),
302
302
  max_speed: numberOptional("Max Speed"),
303
303
  avg_speed: numberOptional("Avg Speed"),
304
- status: enumMandatory("Status", Status, "Active" /* Active */)
304
+ status: enumMandatory("Status", Status, "Active" /* Active */),
305
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
305
306
  });
306
307
  var TripGeofenceToGeofenceQuerySchema = BaseQuerySchema.extend({
307
- organisation_ids: multi_select_optional("User Organisation IDs"),
308
+ organisation_ids: multi_select_optional("UserOrganisation"),
308
309
  // ✅ Multi-selection -> UserOrganisation
309
- vehicle_ids: multi_select_optional("Master Vehicle IDs"),
310
+ vehicle_ids: multi_select_optional("MasterVehicle"),
310
311
  // ✅ Multi-selection -> MasterVehicle
311
- driver_ids: multi_select_optional("Master Driver IDs"),
312
- // ✅ Multi-selection -> Master Driver
312
+ driver_ids: multi_select_optional("MasterDriver"),
313
+ // ✅ Multi-selection -> MasterDriver
313
314
  from_geofence_ids: multi_select_optional("From Geofence IDs"),
314
315
  // ✅ Multi-selection -> From Geofence
315
316
  to_geofence_ids: multi_select_optional("To Geofence IDs"),
@@ -331,7 +332,8 @@ var toTripGeofenceToGeofencePayload = (data) => ({
331
332
  distance_meters: data.distance_meters,
332
333
  max_speed: data.max_speed || 0,
333
334
  avg_speed: data.avg_speed || 0,
334
- status: data.status
335
+ status: data.status,
336
+ time_zone_id: ""
335
337
  });
336
338
  var newTripGeofenceToGeofencePayload = () => ({
337
339
  organisation_id: "",
@@ -347,7 +349,8 @@ var newTripGeofenceToGeofencePayload = () => ({
347
349
  distance_meters: 0,
348
350
  max_speed: 0,
349
351
  avg_speed: 0,
350
- status: "Active" /* Active */
352
+ status: "Active" /* Active */,
353
+ time_zone_id: ""
351
354
  });
352
355
  var findTripGeofenceToGeofence = async (data) => {
353
356
  return apiPost(ENDPOINTS.find, data);
@@ -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>;
@@ -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;
31
32
  description: string;
33
+ logo_url: string;
34
+ logo_key: string;
32
35
  status: Status;
33
36
  organisation_id: string;
34
37
  country_id: string;
35
- logo_key: string;
36
- logo_url: string;
37
- company_name: string;
38
38
  }, {
39
+ company_name: string;
39
40
  status: Status;
40
41
  organisation_id: string;
41
42
  country_id: string;
42
- company_name: string;
43
43
  description?: string | undefined;
44
- logo_key?: string | undefined;
45
44
  logo_url?: string | undefined;
45
+ logo_key?: 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;
25
24
  description: string;
26
25
  status: Status;
27
26
  organisation_id: string;
28
- }, {
29
27
  document_type: string;
28
+ }, {
30
29
  status: Status;
31
30
  organisation_id: string;
31
+ document_type: string;
32
32
  description?: string | undefined;
33
33
  }>;
34
34
  type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "6.0.50",
3
+ "version": "7.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",