vms-nest-prisma-api-document 6.0.51 → 7.0.1

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.
Files changed (22) hide show
  1. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  2. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  3. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
  4. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +49 -49
  5. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +34 -34
  6. package/dist/services/gps/features/geofence/{gps_geofence_data_service.d.ts → gps_geofence_service.d.ts} +75 -28
  7. package/dist/services/gps/features/geofence/{gps_geofence_data_service.js → gps_geofence_service.js} +74 -39
  8. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +15 -6
  9. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +17 -12
  10. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +9 -6
  11. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +13 -10
  12. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +5 -3
  13. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -8
  14. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +16 -16
  15. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +9 -9
  16. package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
  17. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
  18. package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
  19. package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
  20. package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
  21. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
  22. package/package.json +1 -1
@@ -1,21 +1,32 @@
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-D3GhFJqI.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;
12
13
  geofence_type: GeofenceType;
14
+ radius_m?: number;
13
15
  radius_km?: number;
14
16
  latitude?: number;
15
17
  longitude?: number;
16
18
  poliline_data?: GPSGeofencePolilineData[];
17
- geofence_description?: string;
18
- geofence_purpose_type: GeofencePurposeType;
19
+ address_line1?: string;
20
+ address_line2?: string;
21
+ locality_landmark?: string;
22
+ neighborhood?: string;
23
+ town_city?: string;
24
+ district_county?: string;
25
+ state_province_region?: string;
26
+ postal_code?: string;
27
+ country?: string;
28
+ country_code?: string;
29
+ google_location?: string;
19
30
  status: Status;
20
31
  added_date_time: string;
21
32
  modified_date_time: string;
@@ -38,12 +49,14 @@ declare const GPSGeofencePolilineDataSchema: z.ZodObject<{
38
49
  longitude?: unknown;
39
50
  }>;
40
51
  type GPSGeofencePolilineDataDTO = z.infer<typeof GPSGeofencePolilineDataSchema>;
41
- declare const GPSGeofenceDataSchema: z.ZodObject<{
52
+ declare const GPSGeofenceSchema: z.ZodObject<{
42
53
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
43
54
  geofence_name: z.ZodEffects<z.ZodString, string, string>;
44
- location_name: z.ZodEffects<z.ZodString, string, string>;
55
+ geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
56
+ geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
45
57
  geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
46
58
  radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
59
+ radius_m: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
47
60
  latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
48
61
  longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
49
62
  poliline_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -56,31 +69,52 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
56
69
  latitude?: unknown;
57
70
  longitude?: unknown;
58
71
  }>, "many">>>;
59
- geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
60
- geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
72
+ address_line1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
73
+ address_line2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
74
+ locality_landmark: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
75
+ neighborhood: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
76
+ town_city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
77
+ district_county: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
78
+ state_province_region: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
79
+ postal_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
80
+ country: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
81
+ country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
82
+ google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
61
83
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
62
84
  }, "strip", z.ZodTypeAny, {
63
85
  geofence_name: string;
64
- location_name: string;
86
+ geofence_purpose_type: GeofencePurposeType;
87
+ geofence_description: string;
65
88
  geofence_type: GeofenceType;
66
89
  poliline_data: {
67
90
  latitude: number;
68
91
  longitude: number;
69
92
  }[];
70
- geofence_description: string;
71
- geofence_purpose_type: GeofencePurposeType;
93
+ address_line1: string;
94
+ address_line2: string;
95
+ locality_landmark: string;
96
+ neighborhood: string;
97
+ town_city: string;
98
+ district_county: string;
99
+ state_province_region: string;
100
+ postal_code: string;
101
+ country: string;
102
+ country_code: string;
103
+ google_location: string;
72
104
  status: Status;
73
105
  organisation_id: string;
106
+ radius_m?: number | undefined;
74
107
  radius_km?: number | undefined;
75
108
  latitude?: number | undefined;
76
109
  longitude?: number | undefined;
77
110
  }, {
78
111
  geofence_name: string;
79
- location_name: string;
80
- geofence_type: GeofenceType;
81
112
  geofence_purpose_type: GeofencePurposeType;
113
+ geofence_type: GeofenceType;
82
114
  status: Status;
83
115
  organisation_id: string;
116
+ geofence_description?: string | undefined;
117
+ radius_m?: unknown;
84
118
  radius_km?: unknown;
85
119
  latitude?: unknown;
86
120
  longitude?: unknown;
@@ -88,10 +122,20 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
88
122
  latitude?: unknown;
89
123
  longitude?: unknown;
90
124
  }[] | undefined;
91
- geofence_description?: string | undefined;
125
+ address_line1?: string | undefined;
126
+ address_line2?: string | undefined;
127
+ locality_landmark?: string | undefined;
128
+ neighborhood?: string | undefined;
129
+ town_city?: string | undefined;
130
+ district_county?: string | undefined;
131
+ state_province_region?: string | undefined;
132
+ postal_code?: string | undefined;
133
+ country?: string | undefined;
134
+ country_code?: string | undefined;
135
+ google_location?: string | undefined;
92
136
  }>;
93
- type GPSGeofenceDataDTO = z.infer<typeof GPSGeofenceDataSchema>;
94
- declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
137
+ type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
138
+ declare const GPSGeofenceQuerySchema: z.ZodObject<{
95
139
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
96
140
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
97
141
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -123,11 +167,12 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
123
167
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
124
168
  } & {
125
169
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
126
- geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
127
170
  geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
171
+ geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
172
+ gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
128
173
  }, "strip", z.ZodTypeAny, {
129
- geofence_type: GeofenceType[];
130
174
  geofence_purpose_type: GeofencePurposeType[];
175
+ geofence_type: GeofenceType[];
131
176
  status: Status[];
132
177
  search: string;
133
178
  paging: PAGING;
@@ -150,11 +195,12 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
150
195
  date_format_id: string;
151
196
  time_zone_id: string;
152
197
  organisation_ids: string[];
198
+ gps_geofence_ids: string[];
153
199
  }, {
154
200
  date_format_id: string;
155
201
  time_zone_id: string;
156
- geofence_type?: GeofenceType[] | undefined;
157
202
  geofence_purpose_type?: GeofencePurposeType[] | undefined;
203
+ geofence_type?: GeofenceType[] | undefined;
158
204
  status?: Status[] | undefined;
159
205
  search?: string | undefined;
160
206
  paging?: PAGING | undefined;
@@ -175,13 +221,14 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
175
221
  }[] | undefined;
176
222
  include_master_data?: YesNo | undefined;
177
223
  organisation_ids?: string[] | undefined;
224
+ gps_geofence_ids?: string[] | undefined;
178
225
  }>;
179
- type GPSGeofenceDataQueryDTO = z.infer<typeof GPSGeofenceDataQuerySchema>;
180
- declare const toGPSGeofenceDataPayload: (data: GPSGeofenceData) => GPSGeofenceDataDTO;
181
- declare const newGPSGeofenceDataPayload: () => GPSGeofenceDataDTO;
182
- declare const findGPSGeofenceData: (data: GPSGeofenceDataQueryDTO) => Promise<FBR<GPSGeofenceData[]>>;
183
- declare const createGPSGeofenceData: (data: GPSGeofenceDataDTO) => Promise<SBR>;
184
- declare const updateGPSGeofenceData: (id: string, data: GPSGeofenceDataDTO) => Promise<SBR>;
185
- declare const deleteGPSGeofenceData: (id: string) => Promise<SBR>;
226
+ type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
227
+ declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
228
+ declare const newGPSGeofencePayload: () => GPSGeofenceDTO;
229
+ declare const findGPSGeofence: (data: GPSGeofenceQueryDTO) => Promise<FBR<GPSGeofence[]>>;
230
+ declare const createGPSGeofence: (data: GPSGeofenceDTO) => Promise<SBR>;
231
+ declare const updateGPSGeofence: (id: string, data: GPSGeofenceDTO) => Promise<SBR>;
232
+ declare const deleteGPSGeofence: (id: string) => Promise<SBR>;
186
233
 
187
- export { type GPSGeofenceData, type GPSGeofenceDataDTO, type GPSGeofenceDataQueryDTO, GPSGeofenceDataQuerySchema, GPSGeofenceDataSchema, type GPSGeofencePolilineData, type GPSGeofencePolilineDataDTO, GPSGeofencePolilineDataSchema, createGPSGeofenceData, deleteGPSGeofenceData, findGPSGeofenceData, newGPSGeofenceDataPayload, toGPSGeofenceDataPayload, updateGPSGeofenceData };
234
+ 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,22 @@ 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_purpose_type: enumMandatory(
366
+ "Geofence Purpuse Type",
367
+ GeofencePurposeType,
368
+ "TripSourceLocation" /* TripSourceLocation */
369
+ ),
370
+ geofence_description: stringOptional("Geofence Description", 0, 500),
366
371
  geofence_type: enumMandatory(
367
372
  "Geofence Type",
368
373
  GeofenceType,
369
374
  "Circle" /* Circle */
370
375
  ),
371
376
  radius_km: doubleOptional("radius_km"),
377
+ radius_m: doubleOptional("radius_m"),
372
378
  latitude: doubleOptionalLatLng("latitude"),
373
379
  longitude: doubleOptionalLatLng("longitude"),
374
380
  poliline_data: nestedArrayOfObjectsOptional(
@@ -376,74 +382,103 @@ var GPSGeofenceDataSchema = z3.object({
376
382
  GPSGeofencePolilineDataSchema,
377
383
  []
378
384
  ),
379
- geofence_description: stringOptional("Geofence Description", 0, 500),
380
- geofence_purpose_type: enumMandatory(
381
- "Geofence Purpuse Type",
382
- GeofencePurposeType,
383
- "TripSourceLocation" /* TripSourceLocation */
384
- ),
385
+ address_line1: stringOptional("Address Line 1", 0, 150),
386
+ address_line2: stringOptional("Address Line 2", 0, 150),
387
+ locality_landmark: stringOptional("Locality / Landmark", 0, 150),
388
+ neighborhood: stringOptional("Neighborhood", 0, 100),
389
+ town_city: stringOptional("Town / City", 0, 100),
390
+ district_county: stringOptional("District / County", 0, 100),
391
+ state_province_region: stringOptional("State / Province / Region", 0, 100),
392
+ postal_code: stringOptional("Postal Code", 0, 20),
393
+ country: stringOptional("Country", 0, 100),
394
+ country_code: stringOptional("Country Code", 0, 5),
395
+ google_location: stringOptional("Google Location", 0, 100),
385
396
  status: enumMandatory("Status", Status, "Active" /* Active */)
386
397
  });
387
- var GPSGeofenceDataQuerySchema = BaseQuerySchema.extend({
388
- organisation_ids: multi_select_optional("User Organisation IDs"),
398
+ var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
399
+ organisation_ids: multi_select_optional("UserOrganisation"),
389
400
  // ✅ Multi-selection -> UserOrganisation
401
+ geofence_purpose_type: enumArrayOptional(
402
+ "Geofence Purpose Type",
403
+ GeofencePurposeType,
404
+ getAllEnums(GeofencePurposeType)
405
+ ),
390
406
  geofence_type: enumArrayOptional(
391
407
  "Geofence Type",
392
408
  GeofenceType,
393
409
  getAllEnums(GeofenceType)
394
410
  ),
395
- geofence_purpose_type: enumArrayOptional(
396
- "Geofence Purpose Type",
397
- GeofencePurposeType,
398
- getAllEnums(GeofencePurposeType)
399
- )
411
+ gps_geofence_ids: multi_select_optional("GPSGeofence")
412
+ // Multi-selection -> GPSGeofence
400
413
  });
401
- var toGPSGeofenceDataPayload = (data) => ({
414
+ var toGPSGeofencePayload = (data) => ({
402
415
  organisation_id: data.organisation_id,
403
416
  geofence_name: data.geofence_name,
404
- location_name: data.location_name,
417
+ geofence_description: data.geofence_description ?? "",
418
+ geofence_purpose_type: data.geofence_purpose_type,
405
419
  geofence_type: data.geofence_type,
420
+ radius_m: data.radius_m,
406
421
  radius_km: data.radius_km,
407
422
  latitude: data.latitude,
408
423
  longitude: data.longitude,
409
424
  poliline_data: data.poliline_data ?? [],
410
- geofence_description: data.geofence_description ?? "",
411
- geofence_purpose_type: data.geofence_purpose_type,
425
+ address_line1: data.address_line1 ?? "",
426
+ address_line2: data.address_line2 ?? "",
427
+ locality_landmark: data.locality_landmark ?? "",
428
+ neighborhood: data.neighborhood ?? "",
429
+ town_city: data.town_city ?? "",
430
+ district_county: data.district_county ?? "",
431
+ state_province_region: data.state_province_region ?? "",
432
+ postal_code: data.postal_code ?? "",
433
+ country: data.country ?? "",
434
+ country_code: data.country_code ?? "",
435
+ google_location: data.google_location ?? "",
412
436
  status: data.status
413
437
  });
414
- var newGPSGeofenceDataPayload = () => ({
438
+ var newGPSGeofencePayload = () => ({
415
439
  organisation_id: "",
416
440
  geofence_name: "",
417
- location_name: "",
441
+ geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
442
+ geofence_description: "",
418
443
  geofence_type: "Circle" /* Circle */,
444
+ radius_m: 0,
419
445
  radius_km: 0,
420
446
  latitude: 0,
421
447
  longitude: 0,
422
448
  poliline_data: [],
423
- geofence_description: "",
424
- geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
449
+ address_line1: "",
450
+ address_line2: "",
451
+ locality_landmark: "",
452
+ neighborhood: "",
453
+ town_city: "",
454
+ district_county: "",
455
+ state_province_region: "",
456
+ postal_code: "",
457
+ country: "",
458
+ country_code: "",
459
+ google_location: "",
425
460
  status: "Active" /* Active */
426
461
  });
427
- var findGPSGeofenceData = async (data) => {
462
+ var findGPSGeofence = async (data) => {
428
463
  return apiPost(ENDPOINTS.find, data);
429
464
  };
430
- var createGPSGeofenceData = async (data) => {
465
+ var createGPSGeofence = async (data) => {
431
466
  return apiPost(ENDPOINTS.create, data);
432
467
  };
433
- var updateGPSGeofenceData = async (id, data) => {
468
+ var updateGPSGeofence = async (id, data) => {
434
469
  return apiPatch(ENDPOINTS.update(id), data);
435
470
  };
436
- var deleteGPSGeofenceData = async (id) => {
471
+ var deleteGPSGeofence = async (id) => {
437
472
  return apiDelete(ENDPOINTS.delete(id));
438
473
  };
439
474
  export {
440
- GPSGeofenceDataQuerySchema,
441
- GPSGeofenceDataSchema,
442
475
  GPSGeofencePolilineDataSchema,
443
- createGPSGeofenceData,
444
- deleteGPSGeofenceData,
445
- findGPSGeofenceData,
446
- newGPSGeofenceDataPayload,
447
- toGPSGeofenceDataPayload,
448
- updateGPSGeofenceData
476
+ GPSGeofenceQuerySchema,
477
+ GPSGeofenceSchema,
478
+ createGPSGeofence,
479
+ deleteGPSGeofence,
480
+ findGPSGeofence,
481
+ newGPSGeofencePayload,
482
+ toGPSGeofencePayload,
483
+ updateGPSGeofence
449
484
  };
@@ -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-D3GhFJqI.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,10 +34,12 @@ 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
39
  gps_geofence_id: string;
39
40
  status: Status;
40
41
  organisation_id: string;
42
+ time_zone_id: string;
41
43
  driver_id: string;
42
44
  vehicle_id: string;
43
45
  geofence_status_type: GeofenceStatusType;
@@ -46,6 +48,7 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
46
48
  gps_geofence_id: string;
47
49
  status: Status;
48
50
  organisation_id: string;
51
+ time_zone_id: string;
49
52
  driver_id: string;
50
53
  vehicle_id: string;
51
54
  geofence_status_type: GeofenceStatusType;
@@ -88,6 +91,8 @@ 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[];
93
98
  search: string;
@@ -111,13 +116,17 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
111
116
  date_format_id: string;
112
117
  time_zone_id: string;
113
118
  organisation_ids: string[];
119
+ gps_geofence_ids: string[];
114
120
  vehicle_ids: string[];
115
121
  driver_ids: string[];
116
122
  geofence_status_type: GeofenceStatusType[];
117
- gps_geofence_ids: string[];
123
+ from_date: string;
124
+ to_date: string;
118
125
  }, {
119
126
  date_format_id: string;
120
127
  time_zone_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;
@@ -138,17 +147,17 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
138
147
  }[] | undefined;
139
148
  include_master_data?: YesNo | undefined;
140
149
  organisation_ids?: string[] | undefined;
150
+ gps_geofence_ids?: string[] | undefined;
141
151
  vehicle_ids?: string[] | undefined;
142
152
  driver_ids?: string[] | undefined;
143
153
  geofence_status_type?: GeofenceStatusType[] | undefined;
144
- gps_geofence_ids?: string[] | 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-D3GhFJqI.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,10 +44,12 @@ 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
49
  gps_geofence_id: string;
49
50
  status: Status;
50
51
  organisation_id: string;
52
+ time_zone_id: string;
51
53
  driver_id: string;
52
54
  vehicle_id: string;
53
55
  geofence_enter_date_time: string;
@@ -59,6 +61,7 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
59
61
  gps_geofence_id: string;
60
62
  status: Status;
61
63
  organisation_id: string;
64
+ time_zone_id: string;
62
65
  driver_id: string;
63
66
  vehicle_id: string;
64
67
  geofence_enter_date_time: string;
@@ -128,9 +131,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
128
131
  date_format_id: string;
129
132
  time_zone_id: string;
130
133
  organisation_ids: string[];
134
+ gps_geofence_ids: string[];
131
135
  vehicle_ids: string[];
132
136
  driver_ids: string[];
133
- gps_geofence_ids: string[];
134
137
  from_date: string;
135
138
  to_date: string;
136
139
  }, {
@@ -158,16 +161,16 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
158
161
  }[] | undefined;
159
162
  include_master_data?: YesNo | undefined;
160
163
  organisation_ids?: string[] | undefined;
164
+ gps_geofence_ids?: string[] | undefined;
161
165
  vehicle_ids?: string[] | undefined;
162
166
  driver_ids?: string[] | undefined;
163
- gps_geofence_ids?: string[] | undefined;
164
167
  }>;
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 };