vms-nest-prisma-api-document 310.0.0 → 340.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 (112) hide show
  1. package/dist/{user_organisation_service-XbbpZf5F.d.ts → bookmark_service-4h5nJVo2.d.ts} +12548 -8202
  2. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  3. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  4. package/dist/services/account/bookmark_service.d.ts +5 -166
  5. package/dist/services/account/notification_preferences.service.d.ts +5 -220
  6. package/dist/services/account/report_preferences.service.d.ts +5 -310
  7. package/dist/services/account/ticket_service.d.ts +2 -2
  8. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +2 -1
  9. package/dist/services/fleet/bus_mangement/calender.d.ts +5 -146
  10. package/dist/services/fleet/bus_mangement/master_route.d.ts +2 -1
  11. package/dist/services/fleet/bus_mangement/notice_board.d.ts +5 -141
  12. package/dist/services/fleet/bus_mangement/student.d.ts +2 -1
  13. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +5 -410
  14. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +2 -1
  15. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +2 -1
  16. package/dist/services/fleet/incident_management/incident_management_service.d.ts +2 -1
  17. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +2 -1
  18. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +2 -1
  19. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +2 -1
  20. package/dist/services/fleet/issue_management/issue_management_service.d.ts +2 -1
  21. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +2 -1
  22. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +2 -1
  23. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +2 -1
  24. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +2 -1
  25. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +2 -1
  26. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +5 -232
  27. package/dist/services/gps/features/geofence/gps_geofence_service.js +24 -23
  28. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +5 -161
  29. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +10 -7
  30. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -174
  31. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +9 -6
  32. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +5 -194
  33. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -8
  34. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -200
  35. package/dist/services/gps/features/gps_live_track_share_link_service.js +5 -4
  36. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +5 -197
  37. package/dist/services/gps/features/gps_track_history_share_link_service.js +7 -6
  38. package/dist/services/main/devices/master_device_service.d.ts +2 -1
  39. package/dist/services/main/devices/master_device_service.js +16 -24
  40. package/dist/services/main/drivers/master_driver_service.d.ts +2 -1
  41. package/dist/services/main/drivers/master_driver_service.js +84 -81
  42. package/dist/services/main/sims/master_sim_service.d.ts +2 -1
  43. package/dist/services/main/sims/master_sim_service.js +8 -7
  44. package/dist/services/main/users/auth_service.d.ts +2 -2
  45. package/dist/services/main/users/user_admin_service.d.ts +6 -541
  46. package/dist/services/main/users/user_admin_service.js +25 -23
  47. package/dist/services/main/users/user_organisation_service.d.ts +2 -1
  48. package/dist/services/main/users/user_organisation_service.js +52 -49
  49. package/dist/services/main/users/user_service.d.ts +2 -1
  50. package/dist/services/main/users/user_service.js +41 -40
  51. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +2 -1
  52. package/dist/services/main/vehicle/master_vehicle_service.d.ts +2 -1
  53. package/dist/services/main/vehicle/master_vehicle_service.js +60 -60
  54. package/dist/services/master/bus/master_class_service.d.ts +2 -1
  55. package/dist/services/master/bus/master_program_service.d.ts +2 -1
  56. package/dist/services/master/bus/master_relationship_service.d.ts +2 -1
  57. package/dist/services/master/bus/master_section_service.d.ts +2 -1
  58. package/dist/services/master/bus/master_semester_service.d.ts +2 -1
  59. package/dist/services/master/bus/master_stream_service.d.ts +2 -1
  60. package/dist/services/master/bus/master_year_service.d.ts +2 -1
  61. package/dist/services/master/device/master_device_manufacturer_service.d.ts +2 -1
  62. package/dist/services/master/device/master_device_model_service.d.ts +2 -1
  63. package/dist/services/master/device/master_device_type_service.d.ts +2 -1
  64. package/dist/services/master/expense/master_expense_name_service.d.ts +2 -1
  65. package/dist/services/master/expense/master_expense_type_service.d.ts +5 -125
  66. package/dist/services/master/expense/master_fuel_company_service.d.ts +2 -1
  67. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -1
  68. package/dist/services/master/expense/master_vendor_tag_service.d.ts +2 -1
  69. package/dist/services/master/expense/master_vendor_type_service.d.ts +2 -1
  70. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +2 -1
  71. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +2 -1
  72. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +2 -1
  73. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +2 -1
  74. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +2 -1
  75. package/dist/services/master/main/master_main_country_service.d.ts +2 -1
  76. package/dist/services/master/main/master_main_currency_service.d.ts +2 -1
  77. package/dist/services/master/main/master_main_date_format_service.d.ts +2 -1
  78. package/dist/services/master/main/master_main_industry_service.d.ts +2 -1
  79. package/dist/services/master/main/master_main_landmark_service.d.ts +2 -1
  80. package/dist/services/master/main/master_main_language_service.d.ts +2 -1
  81. package/dist/services/master/main/master_main_sim_provider_service.d.ts +2 -1
  82. package/dist/services/master/main/master_main_state_service.d.ts +2 -1
  83. package/dist/services/master/main/master_main_timezone_service.d.ts +2 -1
  84. package/dist/services/master/main/master_main_unit_distance_service.d.ts +2 -1
  85. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +2 -1
  86. package/dist/services/master/main/master_main_unit_volume_service.d.ts +2 -1
  87. package/dist/services/master/organisation/organisation_branch_service.d.ts +2 -1
  88. package/dist/services/master/organisation/organisation_color_service.d.ts +2 -1
  89. package/dist/services/master/organisation/organisation_group_service.d.ts +2 -1
  90. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +2 -1
  91. package/dist/services/master/organisation/organisation_tag_service.d.ts +2 -1
  92. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +2 -2
  93. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +5 -269
  94. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +5 -132
  95. package/dist/services/master/trip/master_trip_party_type_service.d.ts +5 -127
  96. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +5 -128
  97. package/dist/services/master/tyre/master_tyre_make_service.d.ts +2 -2
  98. package/dist/services/master/tyre/master_tyre_model_service.d.ts +5 -261
  99. package/dist/services/master/user/master_user_role_service.d.ts +2 -1
  100. package/dist/services/master/user/master_user_status_service.d.ts +2 -1
  101. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +2 -1
  102. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +2 -1
  103. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -1
  104. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +2 -1
  105. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +2 -1
  106. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +2 -1
  107. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +2 -1
  108. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +2 -1
  109. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +2 -1
  110. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +2 -1
  111. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +2 -1
  112. package/package.json +1 -1
@@ -1,175 +1,6 @@
1
- import { 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-XbbpZf5F.js';
5
- import { GPSGeofence } from './gps_geofence_service.js';
6
- import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
1
+ import '../../../../core/Enums.js';
2
+ import '../../../../core/BaseResponse.js';
3
+ import 'zod';
4
+ export { bh as GPSGeofenceTransactionSummary, bj as GPSGeofenceTransactionSummaryDTO, bl as GPSGeofenceTransactionSummaryQueryDTO, bk as GPSGeofenceTransactionSummaryQuerySchema, bi as GPSGeofenceTransactionSummarySchema, bp as createGPSGeofenceTransactionSummary, br as deleteGPSGeofenceTransactionSummary, bo as findGPSGeofenceTransactionSummary, bn as newGPSGeofenceTransactionSummaryPayload, bm as toGPSGeofenceTransactionSummaryPayload, bq as updateGPSGeofenceTransactionSummary } from '../../../../bookmark_service-4h5nJVo2.js';
7
5
  import '../../../../zod_utils/zod_base_schema.js';
8
-
9
- interface GPSGeofenceTransactionSummary extends Record<string, unknown> {
10
- gps_geofence_transaction_summary_id: string;
11
- geofence_enter_date_time: string;
12
- geofence_exit_date_time?: string;
13
- duration_seconds?: number;
14
- status: Status;
15
- added_date_time: string;
16
- modified_date_time: string;
17
- organisation_id: string;
18
- UserOrganisation?: UserOrganisation;
19
- vehicle_id: string;
20
- MasterVehicle?: MasterVehicle;
21
- vehicle_number?: string;
22
- vehicle_type?: string;
23
- driver_id?: string;
24
- MasterDriver?: MasterDriver;
25
- driver_details?: string;
26
- gps_geofence_id: string;
27
- GPSGeofenceData?: GPSGeofence;
28
- geofence_details?: string;
29
- enter_gps_geofence_transaction_id: string;
30
- EnterGPSGeofenceTransaction?: GPSGeofenceTransaction;
31
- exit_gps_geofence_transaction_id?: string;
32
- ExitGPSGeofenceTransaction?: GPSGeofenceTransaction;
33
- duration_seconds_f?: string;
34
- }
35
- declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
36
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
37
- vehicle_id: z.ZodEffects<z.ZodString, string, string>;
38
- driver_id: z.ZodEffects<z.ZodString, string, string>;
39
- gps_geofence_id: z.ZodEffects<z.ZodString, string, string>;
40
- enter_gps_geofence_transaction_id: z.ZodEffects<z.ZodString, string, string>;
41
- exit_gps_geofence_transaction_id: z.ZodEffects<z.ZodString, string, string>;
42
- geofence_enter_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
43
- geofence_exit_date_time: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
44
- duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
45
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
46
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
47
- }, "strip", z.ZodTypeAny, {
48
- geofence_enter_date_time: string;
49
- geofence_exit_date_time: string;
50
- duration_seconds: number;
51
- status: Status;
52
- organisation_id: string;
53
- vehicle_id: string;
54
- driver_id: string;
55
- gps_geofence_id: string;
56
- enter_gps_geofence_transaction_id: string;
57
- exit_gps_geofence_transaction_id: string;
58
- time_zone_id: string;
59
- }, {
60
- geofence_enter_date_time: string;
61
- status: Status;
62
- organisation_id: string;
63
- vehicle_id: string;
64
- driver_id: string;
65
- gps_geofence_id: string;
66
- enter_gps_geofence_transaction_id: string;
67
- exit_gps_geofence_transaction_id: string;
68
- time_zone_id: string;
69
- geofence_exit_date_time?: string | undefined;
70
- duration_seconds?: unknown;
71
- }>;
72
- type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
73
- declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
74
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
75
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
76
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
77
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
78
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
79
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
80
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
81
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
82
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
83
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
84
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
85
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
86
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
87
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
88
- name: z.ZodEffects<z.ZodString, string, string>;
89
- field: z.ZodEffects<z.ZodString, string, string>;
90
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
91
- }, "strip", z.ZodTypeAny, {
92
- name: string;
93
- field: string;
94
- direction: OrderBy;
95
- }, {
96
- name: string;
97
- field: string;
98
- direction: OrderBy;
99
- }>, "many">>>;
100
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
101
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
102
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
103
- } & {
104
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
105
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
106
- driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
107
- gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
108
- from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
109
- to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
110
- }, "strip", z.ZodTypeAny, {
111
- status: Status[];
112
- time_zone_id: string;
113
- search: string;
114
- paging: PAGING;
115
- page_count: number;
116
- page_index: number;
117
- load_parents: LoadParents;
118
- load_parents_list: string[];
119
- load_child: LoadChild;
120
- load_child_list: string[];
121
- load_child_count: LoadChildCount;
122
- load_child_count_list: string[];
123
- include_details: Record<string, any>;
124
- where_relations: Record<string, any>;
125
- order_by: {
126
- name: string;
127
- field: string;
128
- direction: OrderBy;
129
- }[];
130
- include_master_data: YesNo;
131
- date_format_id: string;
132
- organisation_ids: string[];
133
- vehicle_ids: string[];
134
- driver_ids: string[];
135
- gps_geofence_ids: string[];
136
- from_date: string;
137
- to_date: string;
138
- }, {
139
- time_zone_id: string;
140
- date_format_id: string;
141
- from_date: string;
142
- to_date: string;
143
- status?: Status[] | undefined;
144
- search?: string | undefined;
145
- paging?: PAGING | undefined;
146
- page_count?: unknown;
147
- page_index?: unknown;
148
- load_parents?: LoadParents | undefined;
149
- load_parents_list?: string[] | undefined;
150
- load_child?: LoadChild | undefined;
151
- load_child_list?: string[] | undefined;
152
- load_child_count?: LoadChildCount | undefined;
153
- load_child_count_list?: string[] | undefined;
154
- include_details?: Record<string, any> | undefined;
155
- where_relations?: Record<string, any> | undefined;
156
- order_by?: {
157
- name: string;
158
- field: string;
159
- direction: OrderBy;
160
- }[] | undefined;
161
- include_master_data?: YesNo | undefined;
162
- organisation_ids?: string[] | undefined;
163
- vehicle_ids?: string[] | undefined;
164
- driver_ids?: string[] | undefined;
165
- gps_geofence_ids?: string[] | undefined;
166
- }>;
167
- type GPSGeofenceTransactionSummaryQueryDTO = z.infer<typeof GPSGeofenceTransactionSummaryQuerySchema>;
168
- declare const toGPSGeofenceTransactionSummaryPayload: (data: GPSGeofenceTransactionSummary) => GPSGeofenceTransactionSummaryDTO;
169
- declare const newGPSGeofenceTransactionSummaryPayload: () => GPSGeofenceTransactionSummaryDTO;
170
- declare const findGPSGeofenceTransactionSummary: (data: GPSGeofenceTransactionSummaryQueryDTO) => Promise<FBR<GPSGeofenceTransactionSummary[]>>;
171
- declare const createGPSGeofenceTransactionSummary: (data: GPSGeofenceTransactionSummaryDTO) => Promise<SBR>;
172
- declare const updateGPSGeofenceTransactionSummary: (id: string, data: GPSGeofenceTransactionSummaryDTO) => Promise<SBR>;
173
- declare const deleteGPSGeofenceTransactionSummary: (id: string) => Promise<SBR>;
174
-
175
- export { type GPSGeofenceTransactionSummary, type GPSGeofenceTransactionSummaryDTO, type GPSGeofenceTransactionSummaryQueryDTO, GPSGeofenceTransactionSummaryQuerySchema, GPSGeofenceTransactionSummarySchema, createGPSGeofenceTransactionSummary, deleteGPSGeofenceTransactionSummary, findGPSGeofenceTransactionSummary, newGPSGeofenceTransactionSummaryPayload, toGPSGeofenceTransactionSummaryPayload, updateGPSGeofenceTransactionSummary };
6
+ import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -283,6 +283,7 @@ var MongoBaseQuerySchema = z2.object({
283
283
  // src/services/gps/features/geofence/gps_geofence_transaction_summary_service.ts
284
284
  var URL = "gps/features/gps_geofence_transaction_summary";
285
285
  var ENDPOINTS = {
286
+ // GPSGeofenceTransactionSummary APIs
286
287
  find: `${URL}/search`,
287
288
  create: URL,
288
289
  update: (id) => `${URL}/${id}`,
@@ -318,17 +319,18 @@ var GPSGeofenceTransactionSummaryQuerySchema = BaseQuerySchema.extend({
318
319
  to_date: dateMandatory("To Date")
319
320
  });
320
321
  var toGPSGeofenceTransactionSummaryPayload = (data) => ({
321
- organisation_id: data.organisation_id,
322
- vehicle_id: data.vehicle_id,
322
+ organisation_id: data.organisation_id || "",
323
+ vehicle_id: data.vehicle_id || "",
323
324
  driver_id: data.driver_id || "",
324
- gps_geofence_id: data.gps_geofence_id,
325
- enter_gps_geofence_transaction_id: data.enter_gps_geofence_transaction_id,
325
+ gps_geofence_id: data.gps_geofence_id || "",
326
+ enter_gps_geofence_transaction_id: data.enter_gps_geofence_transaction_id || "",
326
327
  exit_gps_geofence_transaction_id: data.exit_gps_geofence_transaction_id || "",
327
- geofence_enter_date_time: data.geofence_enter_date_time,
328
+ geofence_enter_date_time: data.geofence_enter_date_time || "",
328
329
  geofence_exit_date_time: data.geofence_exit_date_time || "",
329
330
  duration_seconds: data.duration_seconds || 0,
330
- status: data.status,
331
+ status: data.status || "Active" /* Active */,
331
332
  time_zone_id: ""
333
+ // Needs to be provided manually
332
334
  });
333
335
  var newGPSGeofenceTransactionSummaryPayload = () => ({
334
336
  organisation_id: "",
@@ -342,6 +344,7 @@ var newGPSGeofenceTransactionSummaryPayload = () => ({
342
344
  duration_seconds: 0,
343
345
  status: "Active" /* Active */,
344
346
  time_zone_id: ""
347
+ // Needs to be provided manually
345
348
  });
346
349
  var findGPSGeofenceTransactionSummary = async (data) => {
347
350
  return apiPost(ENDPOINTS.find, data);
@@ -1,195 +1,6 @@
1
- import { 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-XbbpZf5F.js';
1
+ import '../../../../core/Enums.js';
2
+ import '../../../../core/BaseResponse.js';
3
+ import 'zod';
4
+ export { bD as TripGeofenceToGeofence, bF as TripGeofenceToGeofenceDTO, bH as TripGeofenceToGeofenceQueryDTO, bG as TripGeofenceToGeofenceQuerySchema, bE as TripGeofenceToGeofenceSchema, bL as createTripGeofenceToGeofence, bN as deleteTripGeofenceToGeofence, bK as findTripGeofenceToGeofence, bJ as newTripGeofenceToGeofencePayload, bI as toTripGeofenceToGeofencePayload, bM as updateTripGeofenceToGeofence } from '../../../../bookmark_service-4h5nJVo2.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
-
7
- interface TripGeofenceToGeofence extends Record<string, unknown> {
8
- trip_geofence_to_geofence_id: string;
9
- from_geofence_exit_date_time: string;
10
- to_geofence_enter_date_time: string;
11
- duration_seconds: number;
12
- travel_duration_seconds?: number;
13
- stopped_duration_seconds?: number;
14
- distance_meters?: number;
15
- max_speed?: number;
16
- avg_speed?: number;
17
- status: Status;
18
- added_date_time: string;
19
- modified_date_time: string;
20
- organisation_id: string;
21
- UserOrganisation?: UserOrganisation;
22
- vehicle_id: string;
23
- MasterVehicle?: MasterVehicle;
24
- vehicle_number?: string;
25
- vehicle_type?: string;
26
- driver_id?: string;
27
- MasterDriver?: MasterDriver;
28
- driver_details?: string;
29
- from_geofence_id: string;
30
- FromGeofence?: TripGeofenceToGeofence;
31
- from_geofence_details?: string;
32
- to_geofence_id: string;
33
- ToGeofence?: TripGeofenceToGeofence;
34
- to_geofence_details?: string;
35
- duration_seconds_f?: string;
36
- travel_duration_seconds_f?: string;
37
- stopped_duration_seconds_f?: string;
38
- distance_km_f?: string;
39
- }
40
- declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
41
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
42
- vehicle_id: z.ZodEffects<z.ZodString, string, string>;
43
- driver_id: z.ZodEffects<z.ZodString, string, string>;
44
- from_geofence_id: z.ZodEffects<z.ZodString, string, string>;
45
- to_geofence_id: z.ZodEffects<z.ZodString, string, string>;
46
- from_geofence_exit_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
47
- to_geofence_enter_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
48
- duration_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
49
- travel_duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
50
- stopped_duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
51
- distance_meters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
52
- max_speed: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
53
- avg_speed: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
54
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
55
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
56
- }, "strip", z.ZodTypeAny, {
57
- duration_seconds: number;
58
- status: Status;
59
- organisation_id: string;
60
- vehicle_id: string;
61
- driver_id: string;
62
- time_zone_id: string;
63
- from_geofence_exit_date_time: string;
64
- to_geofence_enter_date_time: string;
65
- travel_duration_seconds: number;
66
- stopped_duration_seconds: number;
67
- max_speed: number;
68
- avg_speed: number;
69
- from_geofence_id: string;
70
- to_geofence_id: string;
71
- distance_meters?: number | undefined;
72
- }, {
73
- status: Status;
74
- organisation_id: string;
75
- vehicle_id: string;
76
- driver_id: string;
77
- time_zone_id: string;
78
- from_geofence_exit_date_time: string;
79
- to_geofence_enter_date_time: string;
80
- from_geofence_id: string;
81
- to_geofence_id: string;
82
- duration_seconds?: unknown;
83
- travel_duration_seconds?: unknown;
84
- stopped_duration_seconds?: unknown;
85
- distance_meters?: unknown;
86
- max_speed?: unknown;
87
- avg_speed?: unknown;
88
- }>;
89
- type TripGeofenceToGeofenceDTO = z.infer<typeof TripGeofenceToGeofenceSchema>;
90
- declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
91
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
92
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
93
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
94
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
95
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
96
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
97
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
98
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
99
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
100
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
101
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
102
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
103
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
104
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
105
- name: z.ZodEffects<z.ZodString, string, string>;
106
- field: z.ZodEffects<z.ZodString, string, string>;
107
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
108
- }, "strip", z.ZodTypeAny, {
109
- name: string;
110
- field: string;
111
- direction: OrderBy;
112
- }, {
113
- name: string;
114
- field: string;
115
- direction: OrderBy;
116
- }>, "many">>>;
117
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
118
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
119
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
120
- } & {
121
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
122
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
123
- driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
124
- from_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
125
- to_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
126
- from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
127
- to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
128
- }, "strip", z.ZodTypeAny, {
129
- status: Status[];
130
- time_zone_id: string;
131
- search: string;
132
- paging: PAGING;
133
- page_count: number;
134
- page_index: number;
135
- load_parents: LoadParents;
136
- load_parents_list: string[];
137
- load_child: LoadChild;
138
- load_child_list: string[];
139
- load_child_count: LoadChildCount;
140
- load_child_count_list: string[];
141
- include_details: Record<string, any>;
142
- where_relations: Record<string, any>;
143
- order_by: {
144
- name: string;
145
- field: string;
146
- direction: OrderBy;
147
- }[];
148
- include_master_data: YesNo;
149
- date_format_id: string;
150
- organisation_ids: string[];
151
- vehicle_ids: string[];
152
- driver_ids: string[];
153
- from_date: string;
154
- to_date: string;
155
- from_geofence_ids: string[];
156
- to_geofence_ids: string[];
157
- }, {
158
- time_zone_id: string;
159
- date_format_id: string;
160
- from_date: string;
161
- to_date: string;
162
- status?: Status[] | undefined;
163
- search?: string | undefined;
164
- paging?: PAGING | undefined;
165
- page_count?: unknown;
166
- page_index?: unknown;
167
- load_parents?: LoadParents | undefined;
168
- load_parents_list?: string[] | undefined;
169
- load_child?: LoadChild | undefined;
170
- load_child_list?: string[] | undefined;
171
- load_child_count?: LoadChildCount | undefined;
172
- load_child_count_list?: string[] | undefined;
173
- include_details?: Record<string, any> | undefined;
174
- where_relations?: Record<string, any> | undefined;
175
- order_by?: {
176
- name: string;
177
- field: string;
178
- direction: OrderBy;
179
- }[] | undefined;
180
- include_master_data?: YesNo | undefined;
181
- organisation_ids?: string[] | undefined;
182
- vehicle_ids?: string[] | undefined;
183
- driver_ids?: string[] | undefined;
184
- from_geofence_ids?: string[] | undefined;
185
- to_geofence_ids?: string[] | undefined;
186
- }>;
187
- type TripGeofenceToGeofenceQueryDTO = z.infer<typeof TripGeofenceToGeofenceQuerySchema>;
188
- declare const toTripGeofenceToGeofencePayload: (data: TripGeofenceToGeofence) => TripGeofenceToGeofenceDTO;
189
- declare const newTripGeofenceToGeofencePayload: () => TripGeofenceToGeofenceDTO;
190
- declare const findTripGeofenceToGeofence: (data: TripGeofenceToGeofenceQueryDTO) => Promise<FBR<TripGeofenceToGeofence[]>>;
191
- declare const createTripGeofenceToGeofence: (data: TripGeofenceToGeofenceDTO) => Promise<SBR>;
192
- declare const updateTripGeofenceToGeofence: (id: string, data: TripGeofenceToGeofenceDTO) => Promise<SBR>;
193
- declare const deleteTripGeofenceToGeofence: (id: string) => Promise<SBR>;
194
-
195
- export { type TripGeofenceToGeofence, type TripGeofenceToGeofenceDTO, type TripGeofenceToGeofenceQueryDTO, TripGeofenceToGeofenceQuerySchema, TripGeofenceToGeofenceSchema, createTripGeofenceToGeofence, deleteTripGeofenceToGeofence, findTripGeofenceToGeofence, newTripGeofenceToGeofencePayload, toTripGeofenceToGeofencePayload, updateTripGeofenceToGeofence };
6
+ import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -295,6 +295,7 @@ var MongoBaseQuerySchema = z2.object({
295
295
  // src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
296
296
  var URL = "gps/features/trip_geofence_to_geofence";
297
297
  var ENDPOINTS = {
298
+ // TripGeofenceToGeofence APIs
298
299
  find: `${URL}/search`,
299
300
  create: URL,
300
301
  update: (id) => `${URL}/${id}`,
@@ -333,21 +334,22 @@ var TripGeofenceToGeofenceQuerySchema = BaseQuerySchema.extend({
333
334
  to_date: dateMandatory("To Date")
334
335
  });
335
336
  var toTripGeofenceToGeofencePayload = (data) => ({
336
- organisation_id: data.organisation_id,
337
- vehicle_id: data.vehicle_id,
337
+ organisation_id: data.organisation_id || "",
338
+ vehicle_id: data.vehicle_id || "",
338
339
  driver_id: data.driver_id || "",
339
- from_geofence_id: data.from_geofence_id,
340
- to_geofence_id: data.to_geofence_id,
341
- from_geofence_exit_date_time: data.from_geofence_exit_date_time,
342
- to_geofence_enter_date_time: data.to_geofence_enter_date_time,
343
- duration_seconds: data.duration_seconds,
340
+ from_geofence_id: data.from_geofence_id || "",
341
+ to_geofence_id: data.to_geofence_id || "",
342
+ from_geofence_exit_date_time: data.from_geofence_exit_date_time || "",
343
+ to_geofence_enter_date_time: data.to_geofence_enter_date_time || "",
344
+ duration_seconds: data.duration_seconds || 0,
344
345
  travel_duration_seconds: data.travel_duration_seconds || 0,
345
346
  stopped_duration_seconds: data.stopped_duration_seconds || 0,
346
347
  distance_meters: data.distance_meters,
347
348
  max_speed: data.max_speed || 0,
348
349
  avg_speed: data.avg_speed || 0,
349
- status: data.status,
350
+ status: data.status || "Active" /* Active */,
350
351
  time_zone_id: ""
352
+ // Needs to be provided manually
351
353
  });
352
354
  var newTripGeofenceToGeofencePayload = () => ({
353
355
  organisation_id: "",
@@ -365,6 +367,7 @@ var newTripGeofenceToGeofencePayload = () => ({
365
367
  avg_speed: 0,
366
368
  status: "Active" /* Active */,
367
369
  time_zone_id: ""
370
+ // Needs to be provided manually
368
371
  });
369
372
  var findTripGeofenceToGeofence = async (data) => {
370
373
  return apiPost(ENDPOINTS.find, data);