vms-nest-prisma-api-document 6.0.3 → 6.0.5

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 +1 -0
  4. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +38 -37
  5. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +16 -15
  6. package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +10 -10
  7. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +9 -9
  8. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +4 -4
  9. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
  10. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +43 -43
  11. package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
  12. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
  13. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
  14. package/dist/services/website/contact_us_detail_service.d.ts +1 -1
  15. package/dist/services/website/faq_service.d.ts +1 -1
  16. package/package.json +1 -1
  17. package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +0 -282
  18. package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +0 -379
  19. package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +0 -230
  20. package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +0 -432
  21. package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +0 -230
  22. package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +0 -432
@@ -28,21 +28,21 @@ declare const MasterFuelCompanySchema: z.ZodObject<{
28
28
  logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
29
29
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
30
30
  }, "strip", z.ZodTypeAny, {
31
+ company_name: string;
31
32
  description: string;
33
+ logo_url: string;
34
+ logo_key: string;
32
35
  status: Status;
33
36
  organisation_id: string;
34
37
  country_id: string;
35
- logo_key: string;
36
- logo_url: string;
37
- company_name: string;
38
38
  }, {
39
+ company_name: string;
39
40
  status: Status;
40
41
  organisation_id: string;
41
42
  country_id: string;
42
- company_name: string;
43
43
  description?: string | undefined;
44
- logo_key?: string | undefined;
45
44
  logo_url?: string | undefined;
45
+ logo_key?: string | undefined;
46
46
  }>;
47
47
  type MasterFuelCompanyDTO = z.infer<typeof MasterFuelCompanySchema>;
48
48
  declare const MasterFuelCompanyQuerySchema: z.ZodObject<{
@@ -21,14 +21,14 @@ declare const MasterVendorDocumentTypeSchema: z.ZodObject<{
21
21
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
22
22
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- document_type: string;
25
24
  description: string;
26
25
  status: Status;
27
26
  organisation_id: string;
28
- }, {
29
27
  document_type: string;
28
+ }, {
30
29
  status: Status;
31
30
  organisation_id: string;
31
+ document_type: string;
32
32
  description?: string | undefined;
33
33
  }>;
34
34
  type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
@@ -24,14 +24,14 @@ declare const MasterVehicleFuelRemovalReasonSchema: z.ZodObject<{
24
24
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
25
25
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- removal_reason: string;
28
27
  status: Status;
29
28
  organisation_id: string;
30
29
  description: string;
31
- }, {
32
30
  removal_reason: string;
31
+ }, {
33
32
  status: Status;
34
33
  organisation_id: string;
34
+ removal_reason: string;
35
35
  description?: string | undefined;
36
36
  }>;
37
37
  type MasterVehicleFuelRemovalReasonDTO = z.infer<typeof MasterVehicleFuelRemovalReasonSchema>;
@@ -31,6 +31,7 @@ declare const ContactUsDetailSchema: z.ZodObject<{
31
31
  telegram_chat_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
32
32
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
33
33
  }, "strip", z.ZodTypeAny, {
34
+ status: Status;
34
35
  mobile_number: string;
35
36
  email: string;
36
37
  facebook_link: string;
@@ -41,7 +42,6 @@ declare const ContactUsDetailSchema: z.ZodObject<{
41
42
  pinterest_link: string;
42
43
  whats_app_chat_url: string;
43
44
  telegram_chat_url: string;
44
- status: Status;
45
45
  }, {
46
46
  status: Status;
47
47
  mobile_number?: string | undefined;
@@ -17,10 +17,10 @@ declare const FaqSchema: z.ZodObject<{
17
17
  faq_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
18
18
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- status: Status;
21
20
  faq_section: string;
22
21
  faq_header: string;
23
22
  faq_content: string;
23
+ status: Status;
24
24
  }, {
25
25
  status: Status;
26
26
  faq_section?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "description": "Reusable API SDK built with NestJS, Prisma, Axios, and Zod for VMS frontends.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,282 +0,0 @@
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, c as MasterDevice, b as MasterDriver } from '../../../../user_organisation_service-_rBwGIT-.js';
5
- import { FuelConsumptionMonthly } from '../../reports/gps_models/FuelConsumptionMonthly.js';
6
- import '../../../../zod_utils/zod_base_schema.js';
7
- import '../../../master/main/master_main_sim_provider_service.js';
8
-
9
- interface GPSFuelVehicleDailySummary extends Record<string, unknown> {
10
- gps_fuel_vehicle_daily_summary_id: string;
11
- start_fuel_liters: number;
12
- end_fuel_liters: number;
13
- total_km: number;
14
- consumed_fuel_liters: number;
15
- refills_count: number;
16
- refill_liters: number;
17
- removals_count: number;
18
- removal_liters: number;
19
- mileage: number;
20
- date: string;
21
- date_f: string;
22
- status: Status;
23
- added_date_time: string;
24
- modified_date_time: string;
25
- organisation_id: string;
26
- UserOrganisation?: UserOrganisation;
27
- vehicle_id: string;
28
- MasterVehicle?: MasterVehicle;
29
- device_id: string;
30
- MasterDevice?: MasterDevice;
31
- driver_id?: string;
32
- MasterDriver?: MasterDriver;
33
- }
34
- declare const GPSFuelVehicleDailySummarySchema: z.ZodObject<{
35
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
36
- vehicle_id: z.ZodEffects<z.ZodString, string, string>;
37
- driver_id: z.ZodEffects<z.ZodString, string, string>;
38
- device_id: z.ZodEffects<z.ZodString, string, string>;
39
- start_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
40
- end_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
41
- total_km: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
42
- consumed_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
43
- refills_count: z.ZodEffects<z.ZodNumber, number, unknown>;
44
- refills_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
45
- removals_count: z.ZodEffects<z.ZodNumber, number, unknown>;
46
- removals_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
47
- mileage: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
48
- date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
49
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
50
- }, "strip", z.ZodTypeAny, {
51
- status: Status;
52
- organisation_id: string;
53
- vehicle_id: string;
54
- device_id: string;
55
- driver_id: string;
56
- date: string;
57
- total_km: number;
58
- consumed_fuel_liters: number;
59
- refills_count: number;
60
- refills_liters: number;
61
- start_fuel_liters: number;
62
- end_fuel_liters: number;
63
- removals_count: number;
64
- mileage: number;
65
- removals_liters: number;
66
- }, {
67
- status: Status;
68
- organisation_id: string;
69
- vehicle_id: string;
70
- device_id: string;
71
- driver_id: string;
72
- date: string;
73
- total_km?: unknown;
74
- consumed_fuel_liters?: unknown;
75
- refills_count?: unknown;
76
- refills_liters?: unknown;
77
- start_fuel_liters?: unknown;
78
- end_fuel_liters?: unknown;
79
- removals_count?: unknown;
80
- mileage?: unknown;
81
- removals_liters?: unknown;
82
- }>;
83
- type GPSFuelVehicleDailySummaryDTO = z.infer<typeof GPSFuelVehicleDailySummarySchema>;
84
- declare const GPSFuelVehicleDailySummaryQuerySchema: z.ZodObject<{
85
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
86
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
87
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
88
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
89
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
90
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
91
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
92
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
93
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
94
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
95
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
96
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
97
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
98
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
99
- name: z.ZodEffects<z.ZodString, string, string>;
100
- field: z.ZodEffects<z.ZodString, string, string>;
101
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
102
- }, "strip", z.ZodTypeAny, {
103
- name: string;
104
- field: string;
105
- direction: OrderBy;
106
- }, {
107
- name: string;
108
- field: string;
109
- direction: OrderBy;
110
- }>, "many">>>;
111
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
112
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
113
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
114
- } & {
115
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
116
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
117
- device_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
118
- driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
119
- from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
120
- to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
121
- vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
122
- day_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
123
- }, "strip", z.ZodTypeAny, {
124
- status: Status[];
125
- time_zone_id: string;
126
- search: string;
127
- paging: PAGING;
128
- page_count: number;
129
- page_index: number;
130
- load_parents: LoadParents;
131
- load_parents_list: string[];
132
- load_child: LoadChild;
133
- load_child_list: string[];
134
- load_child_count: LoadChildCount;
135
- load_child_count_list: string[];
136
- include_details: Record<string, any>;
137
- where_relations: Record<string, any>;
138
- order_by: {
139
- name: string;
140
- field: string;
141
- direction: OrderBy;
142
- }[];
143
- include_master_data: YesNo;
144
- date_format_id: string;
145
- organisation_ids: string[];
146
- vehicle_ids: string[];
147
- device_ids: string[];
148
- driver_ids: string[];
149
- from_date: string;
150
- to_date: string;
151
- vehicle_summary: YesNo;
152
- day_summary: YesNo;
153
- }, {
154
- time_zone_id: string;
155
- date_format_id: string;
156
- from_date: string;
157
- to_date: string;
158
- status?: Status[] | undefined;
159
- search?: string | undefined;
160
- paging?: PAGING | undefined;
161
- page_count?: unknown;
162
- page_index?: unknown;
163
- load_parents?: LoadParents | undefined;
164
- load_parents_list?: string[] | undefined;
165
- load_child?: LoadChild | undefined;
166
- load_child_list?: string[] | undefined;
167
- load_child_count?: LoadChildCount | undefined;
168
- load_child_count_list?: string[] | undefined;
169
- include_details?: Record<string, any> | undefined;
170
- where_relations?: Record<string, any> | undefined;
171
- order_by?: {
172
- name: string;
173
- field: string;
174
- direction: OrderBy;
175
- }[] | undefined;
176
- include_master_data?: YesNo | undefined;
177
- organisation_ids?: string[] | undefined;
178
- vehicle_ids?: string[] | undefined;
179
- device_ids?: string[] | undefined;
180
- driver_ids?: string[] | undefined;
181
- vehicle_summary?: YesNo | undefined;
182
- day_summary?: YesNo | undefined;
183
- }>;
184
- type GPSFuelVehicleDailySummaryQueryDTO = z.infer<typeof GPSFuelVehicleDailySummaryQuerySchema>;
185
- declare const GPSFuelVehicleMonthlySummaryQuerySchema: z.ZodObject<{
186
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
187
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
188
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
189
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
190
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
191
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
192
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
193
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
194
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
195
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
196
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
197
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
198
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
199
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
200
- name: z.ZodEffects<z.ZodString, string, string>;
201
- field: z.ZodEffects<z.ZodString, string, string>;
202
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
203
- }, "strip", z.ZodTypeAny, {
204
- name: string;
205
- field: string;
206
- direction: OrderBy;
207
- }, {
208
- name: string;
209
- field: string;
210
- direction: OrderBy;
211
- }>, "many">>>;
212
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
213
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
214
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
215
- } & {
216
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
217
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
218
- from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
219
- to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
220
- }, "strip", z.ZodTypeAny, {
221
- status: Status[];
222
- time_zone_id: string;
223
- search: string;
224
- paging: PAGING;
225
- page_count: number;
226
- page_index: number;
227
- load_parents: LoadParents;
228
- load_parents_list: string[];
229
- load_child: LoadChild;
230
- load_child_list: string[];
231
- load_child_count: LoadChildCount;
232
- load_child_count_list: string[];
233
- include_details: Record<string, any>;
234
- where_relations: Record<string, any>;
235
- order_by: {
236
- name: string;
237
- field: string;
238
- direction: OrderBy;
239
- }[];
240
- include_master_data: YesNo;
241
- date_format_id: string;
242
- organisation_ids: string[];
243
- vehicle_ids: string[];
244
- from_date: string;
245
- to_date: string;
246
- }, {
247
- time_zone_id: string;
248
- date_format_id: string;
249
- from_date: string;
250
- to_date: string;
251
- status?: Status[] | undefined;
252
- search?: string | undefined;
253
- paging?: PAGING | undefined;
254
- page_count?: unknown;
255
- page_index?: unknown;
256
- load_parents?: LoadParents | undefined;
257
- load_parents_list?: string[] | undefined;
258
- load_child?: LoadChild | undefined;
259
- load_child_list?: string[] | undefined;
260
- load_child_count?: LoadChildCount | undefined;
261
- load_child_count_list?: string[] | undefined;
262
- include_details?: Record<string, any> | undefined;
263
- where_relations?: Record<string, any> | undefined;
264
- order_by?: {
265
- name: string;
266
- field: string;
267
- direction: OrderBy;
268
- }[] | undefined;
269
- include_master_data?: YesNo | undefined;
270
- organisation_ids?: string[] | undefined;
271
- vehicle_ids?: string[] | undefined;
272
- }>;
273
- type GPSFuelVehicleMonthlySummaryQueryDTO = z.infer<typeof GPSFuelVehicleMonthlySummaryQuerySchema>;
274
- declare const toPayload: (obj: GPSFuelVehicleDailySummary) => GPSFuelVehicleDailySummaryDTO;
275
- declare const newPayload: () => GPSFuelVehicleDailySummaryDTO;
276
- declare const findGPSFuelVehicleDailySummary: (data: GPSFuelVehicleDailySummaryQueryDTO) => Promise<FBR<GPSFuelVehicleDailySummary[]>>;
277
- declare const findGPSFuelVehicleMonthlySummary: (data: GPSFuelVehicleMonthlySummaryQueryDTO) => Promise<FBR<FuelConsumptionMonthly[]>>;
278
- declare const createGPSFuelVehicleDailySummary: (data: GPSFuelVehicleDailySummaryDTO) => Promise<SBR>;
279
- declare const updateGPSFuelVehicleDailySummary: (id: string, data: GPSFuelVehicleDailySummaryDTO) => Promise<SBR>;
280
- declare const deleteGPSFuelVehicleDailySummary: (id: string) => Promise<SBR>;
281
-
282
- export { type GPSFuelVehicleDailySummary, type GPSFuelVehicleDailySummaryDTO, type GPSFuelVehicleDailySummaryQueryDTO, GPSFuelVehicleDailySummaryQuerySchema, GPSFuelVehicleDailySummarySchema, type GPSFuelVehicleMonthlySummaryQueryDTO, GPSFuelVehicleMonthlySummaryQuerySchema, createGPSFuelVehicleDailySummary, deleteGPSFuelVehicleDailySummary, findGPSFuelVehicleDailySummary, findGPSFuelVehicleMonthlySummary, newPayload, toPayload, updateGPSFuelVehicleDailySummary };