vms-nest-prisma-api-document 320.0.0 → 360.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.
Files changed (113) hide show
  1. package/dist/{user_organisation_service-Cbc_ZtO4.d.ts → bookmark_service-5dgfuboV.d.ts} +12609 -8259
  2. package/dist/services/account/bookmark_service.d.ts +5 -166
  3. package/dist/services/account/notification_preferences.service.d.ts +5 -220
  4. package/dist/services/account/report_preferences.service.d.ts +5 -310
  5. package/dist/services/account/ticket_service.d.ts +2 -2
  6. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +2 -1
  7. package/dist/services/fleet/bus_mangement/calender.d.ts +5 -146
  8. package/dist/services/fleet/bus_mangement/master_route.d.ts +2 -1
  9. package/dist/services/fleet/bus_mangement/notice_board.d.ts +5 -141
  10. package/dist/services/fleet/bus_mangement/student.d.ts +2 -1
  11. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +5 -410
  12. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +2 -1
  13. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +2 -1
  14. package/dist/services/fleet/incident_management/incident_management_service.d.ts +2 -1
  15. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +2 -1
  16. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +2 -1
  17. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +2 -1
  18. package/dist/services/fleet/issue_management/issue_management_service.d.ts +2 -1
  19. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +2 -1
  20. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +2 -1
  21. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +2 -1
  22. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +2 -1
  23. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +2 -1
  24. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +5 -232
  25. package/dist/services/gps/features/geofence/gps_geofence_service.js +24 -23
  26. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +5 -161
  27. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +10 -7
  28. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -174
  29. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +9 -6
  30. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +5 -194
  31. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -8
  32. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -200
  33. package/dist/services/gps/features/gps_live_track_share_link_service.js +5 -4
  34. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +5 -197
  35. package/dist/services/gps/features/gps_track_history_share_link_service.js +7 -6
  36. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  37. package/dist/services/main/devices/master_device_service.d.ts +2 -1
  38. package/dist/services/main/devices/master_device_service.js +16 -24
  39. package/dist/services/main/drivers/master_driver_service.d.ts +2 -1
  40. package/dist/services/main/drivers/master_driver_service.js +84 -81
  41. package/dist/services/main/sims/master_sim_service.d.ts +2 -1
  42. package/dist/services/main/sims/master_sim_service.js +8 -7
  43. package/dist/services/main/users/auth_service.d.ts +2 -2
  44. package/dist/services/main/users/user_admin_service.d.ts +6 -541
  45. package/dist/services/main/users/user_admin_service.js +25 -23
  46. package/dist/services/main/users/user_organisation_service.d.ts +2 -1
  47. package/dist/services/main/users/user_organisation_service.js +52 -49
  48. package/dist/services/main/users/user_service.d.ts +2 -1
  49. package/dist/services/main/users/user_service.js +41 -40
  50. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +2 -1
  51. package/dist/services/main/vehicle/master_vehicle_service.d.ts +2 -1
  52. package/dist/services/main/vehicle/master_vehicle_service.js +60 -60
  53. package/dist/services/master/bus/master_class_service.d.ts +2 -1
  54. package/dist/services/master/bus/master_program_service.d.ts +2 -1
  55. package/dist/services/master/bus/master_relationship_service.d.ts +2 -1
  56. package/dist/services/master/bus/master_section_service.d.ts +2 -1
  57. package/dist/services/master/bus/master_semester_service.d.ts +2 -1
  58. package/dist/services/master/bus/master_stream_service.d.ts +2 -1
  59. package/dist/services/master/bus/master_year_service.d.ts +2 -1
  60. package/dist/services/master/device/master_device_manufacturer_service.d.ts +2 -1
  61. package/dist/services/master/device/master_device_model_service.d.ts +2 -1
  62. package/dist/services/master/device/master_device_type_service.d.ts +2 -1
  63. package/dist/services/master/expense/master_expense_name_service.d.ts +2 -1
  64. package/dist/services/master/expense/master_expense_type_service.d.ts +5 -125
  65. package/dist/services/master/expense/master_fuel_company_service.d.ts +2 -1
  66. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -1
  67. package/dist/services/master/expense/master_vendor_tag_service.d.ts +2 -1
  68. package/dist/services/master/expense/master_vendor_type_service.d.ts +2 -1
  69. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +2 -1
  70. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +2 -1
  71. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +2 -1
  72. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +2 -1
  73. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +2 -1
  74. package/dist/services/master/main/master_main_country_service.d.ts +2 -1
  75. package/dist/services/master/main/master_main_currency_service.d.ts +2 -1
  76. package/dist/services/master/main/master_main_date_format_service.d.ts +2 -1
  77. package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
  78. package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
  79. package/dist/services/master/main/master_main_industry_service.d.ts +2 -1
  80. package/dist/services/master/main/master_main_landmark_service.d.ts +2 -1
  81. package/dist/services/master/main/master_main_language_service.d.ts +2 -1
  82. package/dist/services/master/main/master_main_sim_provider_service.d.ts +2 -1
  83. package/dist/services/master/main/master_main_state_service.d.ts +2 -1
  84. package/dist/services/master/main/master_main_timezone_service.d.ts +2 -1
  85. package/dist/services/master/main/master_main_unit_distance_service.d.ts +2 -1
  86. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +2 -1
  87. package/dist/services/master/main/master_main_unit_volume_service.d.ts +2 -1
  88. package/dist/services/master/organisation/organisation_branch_service.d.ts +2 -1
  89. package/dist/services/master/organisation/organisation_color_service.d.ts +2 -1
  90. package/dist/services/master/organisation/organisation_group_service.d.ts +2 -1
  91. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +2 -1
  92. package/dist/services/master/organisation/organisation_tag_service.d.ts +2 -1
  93. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +2 -2
  94. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +5 -269
  95. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +5 -132
  96. package/dist/services/master/trip/master_trip_party_type_service.d.ts +5 -127
  97. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +5 -128
  98. package/dist/services/master/tyre/master_tyre_make_service.d.ts +2 -2
  99. package/dist/services/master/tyre/master_tyre_model_service.d.ts +5 -261
  100. package/dist/services/master/user/master_user_role_service.d.ts +2 -1
  101. package/dist/services/master/user/master_user_status_service.d.ts +2 -1
  102. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +2 -1
  103. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +2 -1
  104. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -1
  105. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +2 -1
  106. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +2 -1
  107. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +2 -1
  108. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +2 -1
  109. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +2 -1
  110. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +2 -1
  111. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +2 -1
  112. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +2 -1
  113. package/package.json +1 -1
@@ -1,233 +1,6 @@
1
- import { GeofencePurposeType, GeofenceType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../../core/BaseResponse.js';
3
- import { z } from 'zod';
4
- import { U as UserOrganisation } from '../../../../user_organisation_service-Cbc_ZtO4.js';
1
+ import '../../../../core/Enums.js';
2
+ import '../../../../core/BaseResponse.js';
3
+ import 'zod';
4
+ export { bO as GPSGeofence, bT as GPSGeofenceDTO, bP as GPSGeofencePolilineData, bR as GPSGeofencePolilineDataDTO, bQ as GPSGeofencePolilineDataSchema, bV as GPSGeofenceQueryDTO, bU as GPSGeofenceQuerySchema, bS as GPSGeofenceSchema, bZ as createGPSGeofence, b$ as deleteGPSGeofence, bY as findGPSGeofence, bX as newGPSGeofencePayload, bW as toGPSGeofencePayload, b_ as updateGPSGeofence } from '../../../../bookmark_service-5dgfuboV.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
-
7
- interface GPSGeofence extends Record<string, unknown> {
8
- gps_geofence_id: string;
9
- geofence_name: string;
10
- geofence_purpose_type: GeofencePurposeType;
11
- geofence_description?: string;
12
- geofence_type: GeofenceType;
13
- radius_m?: number;
14
- radius_km?: number;
15
- latitude?: number;
16
- longitude?: number;
17
- poliline_data?: GPSGeofencePolilineData[];
18
- address_line1?: string;
19
- address_line2?: string;
20
- locality_landmark?: string;
21
- neighborhood?: string;
22
- town_city?: string;
23
- district_county?: string;
24
- state_province_region?: string;
25
- postal_code?: string;
26
- country?: string;
27
- country_code?: string;
28
- google_location?: string;
29
- status: Status;
30
- added_date_time: string;
31
- modified_date_time: string;
32
- geofence_details?: string;
33
- organisation_id: string;
34
- UserOrganisation?: UserOrganisation;
35
- }
36
- interface GPSGeofencePolilineData {
37
- latitude: number;
38
- longitude: number;
39
- }
40
- declare const GPSGeofencePolilineDataSchema: z.ZodObject<{
41
- latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
42
- longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
43
- }, "strip", z.ZodTypeAny, {
44
- latitude: number;
45
- longitude: number;
46
- }, {
47
- latitude?: unknown;
48
- longitude?: unknown;
49
- }>;
50
- type GPSGeofencePolilineDataDTO = z.infer<typeof GPSGeofencePolilineDataSchema>;
51
- declare const GPSGeofenceSchema: z.ZodObject<{
52
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
53
- geofence_name: z.ZodEffects<z.ZodString, string, string>;
54
- geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
55
- geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
56
- geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
57
- radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
58
- radius_m: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
59
- latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
60
- longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
61
- poliline_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
62
- latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
63
- longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
64
- }, z.UnknownKeysParam, z.ZodTypeAny, {
65
- latitude: number;
66
- longitude: number;
67
- }, {
68
- latitude?: unknown;
69
- longitude?: unknown;
70
- }>, "many">>>;
71
- address_line1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
72
- address_line2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
73
- locality_landmark: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
74
- neighborhood: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
75
- town_city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
76
- district_county: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
77
- state_province_region: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
78
- postal_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
79
- country: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
80
- country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
81
- google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
82
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
83
- }, "strip", z.ZodTypeAny, {
84
- status: Status;
85
- organisation_id: string;
86
- address_line1: string;
87
- address_line2: string;
88
- locality_landmark: string;
89
- neighborhood: string;
90
- town_city: string;
91
- district_county: string;
92
- state_province_region: string;
93
- postal_code: string;
94
- country: string;
95
- country_code: string;
96
- google_location: string;
97
- geofence_type: GeofenceType;
98
- geofence_name: string;
99
- geofence_purpose_type: GeofencePurposeType;
100
- geofence_description: string;
101
- poliline_data: {
102
- latitude: number;
103
- longitude: number;
104
- }[];
105
- radius_km?: number | undefined;
106
- latitude?: number | undefined;
107
- longitude?: number | undefined;
108
- radius_m?: number | undefined;
109
- }, {
110
- status: Status;
111
- organisation_id: string;
112
- geofence_type: GeofenceType;
113
- geofence_name: string;
114
- geofence_purpose_type: GeofencePurposeType;
115
- address_line1?: string | undefined;
116
- address_line2?: string | undefined;
117
- locality_landmark?: string | undefined;
118
- neighborhood?: string | undefined;
119
- town_city?: string | undefined;
120
- district_county?: string | undefined;
121
- state_province_region?: string | undefined;
122
- postal_code?: string | undefined;
123
- country?: string | undefined;
124
- country_code?: string | undefined;
125
- google_location?: string | undefined;
126
- radius_km?: unknown;
127
- latitude?: unknown;
128
- longitude?: unknown;
129
- geofence_description?: string | undefined;
130
- radius_m?: unknown;
131
- poliline_data?: {
132
- latitude?: unknown;
133
- longitude?: unknown;
134
- }[] | undefined;
135
- }>;
136
- type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
137
- declare const GPSGeofenceQuerySchema: z.ZodObject<{
138
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
139
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
140
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
141
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
142
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
143
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
144
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
145
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
146
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
147
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
148
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
149
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
150
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
151
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
152
- name: z.ZodEffects<z.ZodString, string, string>;
153
- field: z.ZodEffects<z.ZodString, string, string>;
154
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
155
- }, "strip", z.ZodTypeAny, {
156
- name: string;
157
- field: string;
158
- direction: OrderBy;
159
- }, {
160
- name: string;
161
- field: string;
162
- direction: OrderBy;
163
- }>, "many">>>;
164
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
165
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
166
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
167
- } & {
168
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
169
- geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
170
- geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
171
- gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
172
- }, "strip", z.ZodTypeAny, {
173
- status: Status[];
174
- gps_geofence_ids: string[];
175
- search: string;
176
- paging: PAGING;
177
- page_count: number;
178
- page_index: number;
179
- load_parents: LoadParents;
180
- load_parents_list: string[];
181
- load_child: LoadChild;
182
- load_child_list: string[];
183
- load_child_count: LoadChildCount;
184
- load_child_count_list: string[];
185
- include_details: Record<string, any>;
186
- where_relations: Record<string, any>;
187
- order_by: {
188
- name: string;
189
- field: string;
190
- direction: OrderBy;
191
- }[];
192
- include_master_data: YesNo;
193
- date_format_id: string;
194
- time_zone_id: string;
195
- organisation_ids: string[];
196
- geofence_type: GeofenceType[];
197
- geofence_purpose_type: GeofencePurposeType[];
198
- }, {
199
- date_format_id: string;
200
- time_zone_id: string;
201
- status?: Status[] | undefined;
202
- gps_geofence_ids?: string[] | undefined;
203
- search?: string | undefined;
204
- paging?: PAGING | undefined;
205
- page_count?: unknown;
206
- page_index?: unknown;
207
- load_parents?: LoadParents | undefined;
208
- load_parents_list?: string[] | undefined;
209
- load_child?: LoadChild | undefined;
210
- load_child_list?: string[] | undefined;
211
- load_child_count?: LoadChildCount | undefined;
212
- load_child_count_list?: string[] | undefined;
213
- include_details?: Record<string, any> | undefined;
214
- where_relations?: Record<string, any> | undefined;
215
- order_by?: {
216
- name: string;
217
- field: string;
218
- direction: OrderBy;
219
- }[] | undefined;
220
- include_master_data?: YesNo | undefined;
221
- organisation_ids?: string[] | undefined;
222
- geofence_type?: GeofenceType[] | undefined;
223
- geofence_purpose_type?: GeofencePurposeType[] | undefined;
224
- }>;
225
- type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
226
- declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
227
- declare const newGPSGeofencePayload: () => GPSGeofenceDTO;
228
- declare const findGPSGeofence: (data: GPSGeofenceQueryDTO) => Promise<FBR<GPSGeofence[]>>;
229
- declare const createGPSGeofence: (data: GPSGeofenceDTO) => Promise<SBR>;
230
- declare const updateGPSGeofence: (id: string, data: GPSGeofenceDTO) => Promise<SBR>;
231
- declare const deleteGPSGeofence: (id: string) => Promise<SBR>;
232
-
233
- export { type GPSGeofence, type GPSGeofenceDTO, type GPSGeofencePolilineData, type GPSGeofencePolilineDataDTO, GPSGeofencePolilineDataSchema, type GPSGeofenceQueryDTO, GPSGeofenceQuerySchema, GPSGeofenceSchema, createGPSGeofence, deleteGPSGeofence, findGPSGeofence, newGPSGeofencePayload, toGPSGeofencePayload, updateGPSGeofence };
6
+ import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -364,6 +364,7 @@ var MongoBaseQuerySchema = z2.object({
364
364
  // src/services/gps/features/geofence/gps_geofence_service.ts
365
365
  var URL = "gps/features/gps_geofence";
366
366
  var ENDPOINTS = {
367
+ // GPSGeofence APIs
367
368
  find: `${URL}/search`,
368
369
  create: URL,
369
370
  update: (id) => `${URL}/${id}`,
@@ -425,29 +426,29 @@ var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
425
426
  gps_geofence_ids: multi_select_optional("GPSGeofence")
426
427
  // ✅ Multi-selection -> GPSGeofence
427
428
  });
428
- var toGPSGeofencePayload = (data) => ({
429
- organisation_id: data.organisation_id,
430
- geofence_name: data.geofence_name,
431
- geofence_description: data.geofence_description ?? "",
432
- geofence_purpose_type: data.geofence_purpose_type,
433
- geofence_type: data.geofence_type,
434
- radius_m: data.radius_m,
435
- radius_km: data.radius_km,
436
- latitude: data.latitude,
437
- longitude: data.longitude,
438
- poliline_data: data.poliline_data ?? [],
439
- address_line1: data.address_line1 ?? "",
440
- address_line2: data.address_line2 ?? "",
441
- locality_landmark: data.locality_landmark ?? "",
442
- neighborhood: data.neighborhood ?? "",
443
- town_city: data.town_city ?? "",
444
- district_county: data.district_county ?? "",
445
- state_province_region: data.state_province_region ?? "",
446
- postal_code: data.postal_code ?? "",
447
- country: data.country ?? "",
448
- country_code: data.country_code ?? "",
449
- google_location: data.google_location ?? "",
450
- status: data.status
429
+ var toGPSGeofencePayload = (row) => ({
430
+ organisation_id: row.organisation_id || "",
431
+ geofence_name: row.geofence_name || "",
432
+ geofence_description: row.geofence_description || "",
433
+ geofence_purpose_type: row.geofence_purpose_type || "TripSourceLocation" /* TripSourceLocation */,
434
+ geofence_type: row.geofence_type || "Circle" /* Circle */,
435
+ radius_m: row.radius_m || 0,
436
+ radius_km: row.radius_km || 0,
437
+ latitude: row.latitude || 0,
438
+ longitude: row.longitude || 0,
439
+ poliline_data: row.poliline_data || [],
440
+ address_line1: row.address_line1 || "",
441
+ address_line2: row.address_line2 || "",
442
+ locality_landmark: row.locality_landmark || "",
443
+ neighborhood: row.neighborhood || "",
444
+ town_city: row.town_city || "",
445
+ district_county: row.district_county || "",
446
+ state_province_region: row.state_province_region || "",
447
+ postal_code: row.postal_code || "",
448
+ country: row.country || "",
449
+ country_code: row.country_code || "",
450
+ google_location: row.google_location || "",
451
+ status: row.status || "Active" /* Active */
451
452
  });
452
453
  var newGPSGeofencePayload = () => ({
453
454
  organisation_id: "",
@@ -1,162 +1,6 @@
1
- import { GeofenceStatusType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../../core/BaseResponse.js';
3
- import { z } from 'zod';
4
- import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-Cbc_ZtO4.js';
5
- import { GPSGeofence } from './gps_geofence_service.js';
1
+ import '../../../../core/Enums.js';
2
+ import '../../../../core/BaseResponse.js';
3
+ import 'zod';
4
+ export { bs as GPSGeofenceTransaction, bu as GPSGeofenceTransactionDTO, bw as GPSGeofenceTransactionQueryDTO, bv as GPSGeofenceTransactionQuerySchema, bt as GPSGeofenceTransactionSchema, bA as createGPSGeofenceTransaction, bC as deleteGPSGeofenceTransaction, bz as findGPSGeofenceTransaction, by as newGPSGeofenceTransactionPayload, bx as toGPSGeofenceTransactionPayload, bB as updateGPSGeofenceTransaction } from '../../../../bookmark_service-5dgfuboV.js';
6
5
  import '../../../../zod_utils/zod_base_schema.js';
7
-
8
- interface GPSGeofenceTransaction extends Record<string, unknown> {
9
- gps_geofence_transaction_id: string;
10
- geofence_status_type: GeofenceStatusType;
11
- geofence_time: string;
12
- status: Status;
13
- added_date_time: string;
14
- modified_date_time: string;
15
- organisation_id: string;
16
- UserOrganisation?: UserOrganisation;
17
- vehicle_id: string;
18
- MasterVehicle?: MasterVehicle;
19
- vehicle_number?: string;
20
- vehicle_type?: string;
21
- driver_id?: string;
22
- MasterDriver?: MasterDriver;
23
- driver_details?: string;
24
- gps_geofence_id: string;
25
- GPSGeofenceData?: GPSGeofence;
26
- geofence_details?: string;
27
- }
28
- declare const GPSGeofenceTransactionSchema: z.ZodObject<{
29
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
30
- vehicle_id: z.ZodEffects<z.ZodString, string, string>;
31
- driver_id: z.ZodEffects<z.ZodString, string, string>;
32
- gps_geofence_id: z.ZodEffects<z.ZodString, string, string>;
33
- geofence_status_type: z.ZodType<GeofenceStatusType, z.ZodTypeDef, GeofenceStatusType>;
34
- geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
35
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
36
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
37
- }, "strip", z.ZodTypeAny, {
38
- geofence_status_type: GeofenceStatusType;
39
- geofence_time: string;
40
- status: Status;
41
- organisation_id: string;
42
- vehicle_id: string;
43
- driver_id: string;
44
- gps_geofence_id: string;
45
- time_zone_id: string;
46
- }, {
47
- geofence_status_type: GeofenceStatusType;
48
- geofence_time: string;
49
- status: Status;
50
- organisation_id: string;
51
- vehicle_id: string;
52
- driver_id: string;
53
- gps_geofence_id: string;
54
- time_zone_id: string;
55
- }>;
56
- type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
57
- declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
58
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
59
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
60
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
61
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
62
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
63
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
64
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
65
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
66
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
67
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
68
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
69
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
70
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
71
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
72
- name: z.ZodEffects<z.ZodString, string, string>;
73
- field: z.ZodEffects<z.ZodString, string, string>;
74
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
75
- }, "strip", z.ZodTypeAny, {
76
- name: string;
77
- field: string;
78
- direction: OrderBy;
79
- }, {
80
- name: string;
81
- field: string;
82
- direction: OrderBy;
83
- }>, "many">>>;
84
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
85
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
86
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
87
- } & {
88
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
89
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
90
- driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
91
- gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
92
- geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
93
- from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
94
- to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
95
- }, "strip", z.ZodTypeAny, {
96
- geofence_status_type: GeofenceStatusType[];
97
- status: Status[];
98
- time_zone_id: string;
99
- search: string;
100
- paging: PAGING;
101
- page_count: number;
102
- page_index: number;
103
- load_parents: LoadParents;
104
- load_parents_list: string[];
105
- load_child: LoadChild;
106
- load_child_list: string[];
107
- load_child_count: LoadChildCount;
108
- load_child_count_list: string[];
109
- include_details: Record<string, any>;
110
- where_relations: Record<string, any>;
111
- order_by: {
112
- name: string;
113
- field: string;
114
- direction: OrderBy;
115
- }[];
116
- include_master_data: YesNo;
117
- date_format_id: string;
118
- organisation_ids: string[];
119
- vehicle_ids: string[];
120
- driver_ids: string[];
121
- gps_geofence_ids: string[];
122
- from_date: string;
123
- to_date: string;
124
- }, {
125
- time_zone_id: string;
126
- date_format_id: string;
127
- from_date: string;
128
- to_date: string;
129
- geofence_status_type?: GeofenceStatusType[] | undefined;
130
- status?: Status[] | undefined;
131
- search?: string | undefined;
132
- paging?: PAGING | undefined;
133
- page_count?: unknown;
134
- page_index?: unknown;
135
- load_parents?: LoadParents | undefined;
136
- load_parents_list?: string[] | undefined;
137
- load_child?: LoadChild | undefined;
138
- load_child_list?: string[] | undefined;
139
- load_child_count?: LoadChildCount | undefined;
140
- load_child_count_list?: string[] | undefined;
141
- include_details?: Record<string, any> | undefined;
142
- where_relations?: Record<string, any> | undefined;
143
- order_by?: {
144
- name: string;
145
- field: string;
146
- direction: OrderBy;
147
- }[] | undefined;
148
- include_master_data?: YesNo | undefined;
149
- organisation_ids?: string[] | undefined;
150
- vehicle_ids?: string[] | undefined;
151
- driver_ids?: string[] | undefined;
152
- gps_geofence_ids?: string[] | undefined;
153
- }>;
154
- type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
155
- declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
156
- declare const newGPSGeofenceTransactionPayload: () => GPSGeofenceTransactionDTO;
157
- declare const findGPSGeofenceTransaction: (data: GPSGeofenceTransactionQueryDTO) => Promise<FBR<GPSGeofenceTransaction[]>>;
158
- declare const createGPSGeofenceTransaction: (data: GPSGeofenceTransactionDTO) => Promise<SBR>;
159
- declare const updateGPSGeofenceTransaction: (id: string, data: GPSGeofenceTransactionDTO) => Promise<SBR>;
160
- declare const deleteGPSGeofenceTransaction: (id: string) => Promise<SBR>;
161
-
162
- export { type GPSGeofenceTransaction, type GPSGeofenceTransactionDTO, type GPSGeofenceTransactionQueryDTO, GPSGeofenceTransactionQuerySchema, GPSGeofenceTransactionSchema, createGPSGeofenceTransaction, deleteGPSGeofenceTransaction, findGPSGeofenceTransaction, newGPSGeofenceTransactionPayload, toGPSGeofenceTransactionPayload, updateGPSGeofenceTransaction };
6
+ import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -272,6 +272,7 @@ var MongoBaseQuerySchema = z2.object({
272
272
  // src/services/gps/features/geofence/gps_geofence_transaction_service.ts
273
273
  var URL = "gps/features/gps_geofence_transaction";
274
274
  var ENDPOINTS = {
275
+ // GPSGeofenceTransaction APIs
275
276
  find: `${URL}/search`,
276
277
  create: URL,
277
278
  update: (id) => `${URL}/${id}`,
@@ -309,14 +310,15 @@ var GPSGeofenceTransactionQuerySchema = BaseQuerySchema.extend({
309
310
  to_date: dateMandatory("To Date")
310
311
  });
311
312
  var toGPSGeofenceTransactionPayload = (data) => ({
312
- organisation_id: data.organisation_id,
313
- vehicle_id: data.vehicle_id,
314
- gps_geofence_id: data.gps_geofence_id,
313
+ organisation_id: data.organisation_id || "",
314
+ vehicle_id: data.vehicle_id || "",
315
+ gps_geofence_id: data.gps_geofence_id || "",
315
316
  driver_id: data.driver_id || "",
316
- geofence_status_type: data.geofence_status_type,
317
- geofence_time: data.geofence_time,
318
- status: data.status,
317
+ geofence_status_type: data.geofence_status_type || "Enter" /* Enter */,
318
+ geofence_time: data.geofence_time || "",
319
+ status: data.status || "Active" /* Active */,
319
320
  time_zone_id: ""
321
+ // Needs to be provided manually
320
322
  });
321
323
  var newGPSGeofenceTransactionPayload = () => ({
322
324
  organisation_id: "",
@@ -324,9 +326,10 @@ var newGPSGeofenceTransactionPayload = () => ({
324
326
  gps_geofence_id: "",
325
327
  driver_id: "",
326
328
  geofence_status_type: "Enter" /* Enter */,
327
- geofence_time: (/* @__PURE__ */ new Date()).toISOString(),
329
+ geofence_time: "",
328
330
  status: "Active" /* Active */,
329
331
  time_zone_id: ""
332
+ // Needs to be provided manually
330
333
  });
331
334
  var findGPSGeofenceTransaction = async (data) => {
332
335
  return apiPost(ENDPOINTS.find, data);