vms-nest-api-document 49.0.0 → 51.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 (29) hide show
  1. package/dist/services/account/analytics/admin_login_analytics_service.d.ts +12 -27
  2. package/dist/services/account/analytics/admin_login_analytics_service.js +4 -19
  3. package/dist/services/account/analytics/driver_login_analytics_service.d.ts +19 -40
  4. package/dist/services/account/analytics/driver_login_analytics_service.js +4 -21
  5. package/dist/services/account/analytics/parent_login_analytics_service.d.ts +19 -40
  6. package/dist/services/account/analytics/parent_login_analytics_service.js +4 -21
  7. package/dist/services/account/analytics/student_login_analytics_service.d.ts +19 -40
  8. package/dist/services/account/analytics/student_login_analytics_service.js +4 -21
  9. package/dist/services/account/analytics/user_login_analytics_service.d.ts +13 -31
  10. package/dist/services/account/analytics/user_login_analytics_service.js +4 -20
  11. package/dist/services/account/analytics/user_page_analytics_service.d.ts +189 -10
  12. package/dist/services/account/analytics/user_page_analytics_service.js +20 -1
  13. package/dist/services/account/analytics/user_report_analytics_service.d.ts +189 -10
  14. package/dist/services/account/analytics/user_report_analytics_service.js +20 -1
  15. package/dist/services/account/user_bookmark_service.d.ts +1 -1
  16. package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.d.ts +25 -11
  17. package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.d.ts +14 -0
  18. package/dist/services/main/device/master_data_check_service.d.ts +3 -3
  19. package/dist/services/main/device/master_device_service.d.ts +4 -4
  20. package/dist/services/main/device/master_traccar_server_service.d.ts +4 -4
  21. package/dist/services/master/bookmark/master_bookmark_module_service.d.ts +1 -1
  22. package/dist/services/master/bookmark/master_bookmark_module_service.js +21 -1
  23. package/dist/services/master/bookmark/master_bookmark_page_service.d.ts +26 -1
  24. package/dist/services/master/bookmark/master_bookmark_page_service.js +29 -1
  25. package/dist/services/master/bookmark/master_bookmark_sub_module_service.d.ts +1 -1
  26. package/dist/services/master/bookmark/master_bookmark_sub_module_service.js +29 -1
  27. package/dist/services/website/contact_us_detail_service.d.ts +3 -3
  28. package/dist/services/website/request_demo.service.d.ts +12 -12
  29. package/package.json +1 -1
@@ -1,5 +1,30 @@
1
1
  interface GPSOverSpeedViolation extends Record<string, unknown> {
2
2
  si: number;
3
+ date_f: string;
4
+ day: string;
5
+ org_id: string;
6
+ db_i: string;
7
+ db_g: string;
8
+ v_id: string;
9
+ vn_f: string;
10
+ vt: string;
11
+ fleet_name?: string;
12
+ sub_company_name?: string;
13
+ branch_name?: string;
14
+ color_name?: string;
15
+ tag_name?: string;
16
+ vehicle_type?: string;
17
+ vehicle_make?: string;
18
+ vehicle_model?: string;
19
+ vehicle_sub_model?: string;
20
+ status_type?: string;
21
+ ownership_type?: string;
22
+ associated_to?: string;
23
+ fuel_type?: string;
24
+ fuel_unit?: string;
25
+ d_id: string;
26
+ dr_f?: string;
27
+ dr_url?: string;
3
28
  fdt: string;
4
29
  tdt: string;
5
30
  fdts: number;
@@ -14,17 +39,6 @@ interface GPSOverSpeedViolation extends Record<string, unknown> {
14
39
  fdt_f_db: string;
15
40
  tdt_f_db: string;
16
41
  ts_f: string;
17
- date_f: string;
18
- day: string;
19
- org_id: string;
20
- db_i: string;
21
- db_g: string;
22
- vn_f: string;
23
- vt: string;
24
- dr_f?: string;
25
- dr_url?: string;
26
- v_id: string;
27
- d_id: string;
28
42
  s_la: number;
29
43
  s_lo: number;
30
44
  s_gl: string;
@@ -13,6 +13,20 @@ interface OverSpeedSummaryData extends Record<string, unknown> {
13
13
  d_id: string;
14
14
  dr_f?: string;
15
15
  dr_url?: string;
16
+ fleet_name?: string;
17
+ sub_company_name?: string;
18
+ branch_name?: string;
19
+ color_name?: string;
20
+ tag_name?: string;
21
+ vehicle_type?: string;
22
+ vehicle_make?: string;
23
+ vehicle_model?: string;
24
+ vehicle_sub_model?: string;
25
+ status_type?: string;
26
+ ownership_type?: string;
27
+ associated_to?: string;
28
+ fuel_type?: string;
29
+ fuel_unit?: string;
16
30
  i_c: number;
17
31
  ts: number;
18
32
  dm: number;
@@ -120,9 +120,8 @@ declare const MasterDataCheckQuerySchema: z.ZodObject<{
120
120
  master_traccar_server_id: z.ZodEffects<z.ZodString, string, string>;
121
121
  search: z.ZodEffects<z.ZodString, string, string>;
122
122
  }, "strip", z.ZodTypeAny, {
123
- master_traccar_server_id: string;
124
- status: Status[];
125
123
  search: string;
124
+ status: Status[];
126
125
  paging: PAGING;
127
126
  page_count: number;
128
127
  page_index: number;
@@ -142,11 +141,12 @@ declare const MasterDataCheckQuerySchema: z.ZodObject<{
142
141
  include_master_data: YesNo;
143
142
  date_format_id: string;
144
143
  time_zone_id: string;
145
- }, {
146
144
  master_traccar_server_id: string;
145
+ }, {
147
146
  search: string;
148
147
  date_format_id: string;
149
148
  time_zone_id: string;
149
+ master_traccar_server_id: string;
150
150
  status?: Status[] | undefined;
151
151
  paging?: PAGING | undefined;
152
152
  page_count?: unknown;
@@ -74,9 +74,8 @@ declare const MasterDeviceQuerySchema: z.ZodObject<{
74
74
  } & {
75
75
  master_traccar_server_id: z.ZodEffects<z.ZodString, string, string>;
76
76
  }, "strip", z.ZodTypeAny, {
77
- master_traccar_server_id: string;
78
- status: Status[];
79
77
  search: string;
78
+ status: Status[];
80
79
  paging: PAGING;
81
80
  page_count: number;
82
81
  page_index: number;
@@ -96,12 +95,13 @@ declare const MasterDeviceQuerySchema: z.ZodObject<{
96
95
  include_master_data: YesNo;
97
96
  date_format_id: string;
98
97
  time_zone_id: string;
99
- }, {
100
98
  master_traccar_server_id: string;
99
+ }, {
101
100
  date_format_id: string;
102
101
  time_zone_id: string;
103
- status?: Status[] | undefined;
102
+ master_traccar_server_id: string;
104
103
  search?: string | undefined;
104
+ status?: Status[] | undefined;
105
105
  paging?: PAGING | undefined;
106
106
  page_count?: unknown;
107
107
  page_index?: unknown;
@@ -35,6 +35,7 @@ declare const MasterTraccarServerSchema: z.ZodObject<{
35
35
  api_admin_password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
36
36
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
37
37
  }, "strip", z.ZodTypeAny, {
38
+ status: Status;
38
39
  server_code: string;
39
40
  db_host: string;
40
41
  db_port: number;
@@ -47,10 +48,9 @@ declare const MasterTraccarServerSchema: z.ZodObject<{
47
48
  api_base_url: string;
48
49
  api_admin_email: string;
49
50
  api_admin_password: string;
50
- status: Status;
51
51
  }, {
52
- server_code: string;
53
52
  status: Status;
53
+ server_code: string;
54
54
  db_host?: string | undefined;
55
55
  db_port?: unknown;
56
56
  db_name?: string | undefined;
@@ -97,8 +97,8 @@ declare const MasterTraccarServerQuerySchema: z.ZodObject<{
97
97
  } & {
98
98
  master_traccar_server_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
99
99
  }, "strip", z.ZodTypeAny, {
100
- status: Status[];
101
100
  search: string;
101
+ status: Status[];
102
102
  paging: PAGING;
103
103
  page_count: number;
104
104
  page_index: number;
@@ -122,8 +122,8 @@ declare const MasterTraccarServerQuerySchema: z.ZodObject<{
122
122
  }, {
123
123
  date_format_id: string;
124
124
  time_zone_id: string;
125
- status?: Status[] | undefined;
126
125
  search?: string | undefined;
126
+ status?: Status[] | undefined;
127
127
  paging?: PAGING | undefined;
128
128
  page_count?: unknown;
129
129
  page_index?: unknown;
@@ -1,7 +1,7 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { h as MasterBookmarkModule, i as MasterBookmarkModuleDTO, j as MasterBookmarkModuleQueryDTO, k as MasterBookmarkModuleQuerySchema, l as MasterBookmarkModuleSchema, m as createMasterBookmarkModule, o as deleteMasterBookmarkModule, p as findMasterBookmarkModules, q as newMasterBookmarkModulePayload, r as toMasterBookmarkModulePayload, s as updateMasterBookmarkModule } from './master_bookmark_page_service.js';
4
+ export { l as MasterBookmarkModule, m as MasterBookmarkModuleDTO, o as MasterBookmarkModuleQueryDTO, p as MasterBookmarkModuleQuerySchema, q as MasterBookmarkModuleSchema, r as createMasterBookmarkModule, s as deleteMasterBookmarkModule, v as findMasterBookmarkModules, w as getMasterBookmarkModuleCache, x as getMasterBookmarkModuleCacheChild, y as getMasterBookmarkModuleCacheCount, z as newMasterBookmarkModulePayload, A as toMasterBookmarkModulePayload, B as updateMasterBookmarkModule } from './master_bookmark_page_service.js';
5
5
  import '../../../user_organisation_service-4_J4l-fj.js';
6
6
  import '../../../zod_utils/zod_base_schema.js';
7
7
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -9,6 +9,10 @@ var getAxiosInstance = () => {
9
9
  };
10
10
 
11
11
  // src/core/apiCall.ts
12
+ var apiGet = async (url, params) => {
13
+ const response = await getAxiosInstance().get(url, { params });
14
+ return response.data;
15
+ };
12
16
  var apiPost = async (url, data) => {
13
17
  const response = await getAxiosInstance().post(url, data);
14
18
  return response.data;
@@ -259,7 +263,11 @@ var ENDPOINTS = {
259
263
  find: `${URL}/search`,
260
264
  create: URL,
261
265
  update: (id) => `${URL}/${id}`,
262
- delete: (id) => `${URL}/${id}`
266
+ delete: (id) => `${URL}/${id}`,
267
+ // Cache APIs
268
+ cache: `${URL}/cache`,
269
+ cache_count: `${URL}/cache_count`,
270
+ cache_child: `${URL}/cache_child`
263
271
  };
264
272
  var MasterBookmarkModuleSchema = z3.object({
265
273
  // Main Field Details
@@ -294,12 +302,24 @@ var updateMasterBookmarkModule = async (id, data) => {
294
302
  var deleteMasterBookmarkModule = async (id) => {
295
303
  return apiDelete(ENDPOINTS.delete(id));
296
304
  };
305
+ var getMasterBookmarkModuleCache = async () => {
306
+ return apiGet(ENDPOINTS.cache);
307
+ };
308
+ var getMasterBookmarkModuleCacheCount = async () => {
309
+ return apiGet(ENDPOINTS.cache_count);
310
+ };
311
+ var getMasterBookmarkModuleCacheChild = async () => {
312
+ return apiGet(ENDPOINTS.cache_child);
313
+ };
297
314
  export {
298
315
  MasterBookmarkModuleQuerySchema,
299
316
  MasterBookmarkModuleSchema,
300
317
  createMasterBookmarkModule,
301
318
  deleteMasterBookmarkModule,
302
319
  findMasterBookmarkModules,
320
+ getMasterBookmarkModuleCache,
321
+ getMasterBookmarkModuleCacheChild,
322
+ getMasterBookmarkModuleCacheCount,
303
323
  newMasterBookmarkModulePayload,
304
324
  toMasterBookmarkModulePayload,
305
325
  updateMasterBookmarkModule
@@ -137,12 +137,23 @@ declare const MasterBookmarkPageQuerySchema: z.ZodObject<{
137
137
  bookmark_sub_module_ids?: string[] | undefined;
138
138
  }>;
139
139
  type MasterBookmarkPageQueryDTO = z.infer<typeof MasterBookmarkPageQuerySchema>;
140
+ declare const FindCacheSchema$1: z.ZodObject<{
141
+ bookmark_sub_module_id: z.ZodEffects<z.ZodString, string, string>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ bookmark_sub_module_id: string;
144
+ }, {
145
+ bookmark_sub_module_id: string;
146
+ }>;
147
+ type FindCacheDTO$1 = z.infer<typeof FindCacheSchema$1>;
140
148
  declare const toMasterBookmarkPagePayload: (row: MasterBookmarkPage) => MasterBookmarkPageDTO;
141
149
  declare const newMasterBookmarkPagePayload: () => MasterBookmarkPageDTO;
142
150
  declare const findMasterBookmarkPages: (data: MasterBookmarkPageQueryDTO) => Promise<FBR<MasterBookmarkPage[]>>;
143
151
  declare const createMasterBookmarkPage: (data: MasterBookmarkPageDTO) => Promise<SBR>;
144
152
  declare const updateMasterBookmarkPage: (id: string, data: MasterBookmarkPageDTO) => Promise<SBR>;
145
153
  declare const deleteMasterBookmarkPage: (id: string) => Promise<SBR>;
154
+ declare const getMasterBookmarkPageCache: (bookmark_sub_module_id: string) => Promise<FBR<MasterBookmarkPage[]>>;
155
+ declare const getMasterBookmarkPageCacheCount: (bookmark_sub_module_id: string) => Promise<FBR<MasterBookmarkPage[]>>;
156
+ declare const getMasterBookmarkPageCacheChild: (bookmark_sub_module_id: string) => Promise<FBR<MasterBookmarkPage[]>>;
146
157
 
147
158
  interface MasterBookmarkSubModule extends Record<string, unknown> {
148
159
  bookmark_sub_module_id: string;
@@ -261,12 +272,23 @@ declare const MasterBookmarkSubModuleQuerySchema: z.ZodObject<{
261
272
  bookmark_sub_module_ids?: string[] | undefined;
262
273
  }>;
263
274
  type MasterBookmarkSubModuleQueryDTO = z.infer<typeof MasterBookmarkSubModuleQuerySchema>;
275
+ declare const FindCacheSchema: z.ZodObject<{
276
+ bookmark_module_id: z.ZodEffects<z.ZodString, string, string>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ bookmark_module_id: string;
279
+ }, {
280
+ bookmark_module_id: string;
281
+ }>;
282
+ type FindCacheDTO = z.infer<typeof FindCacheSchema>;
264
283
  declare const toMasterBookmarkSubModulePayload: (row: MasterBookmarkSubModule) => MasterBookmarkSubModuleDTO;
265
284
  declare const newMasterBookmarkSubModulePayload: () => MasterBookmarkSubModuleDTO;
266
285
  declare const findMasterBookmarkSubModules: (data: MasterBookmarkSubModuleQueryDTO) => Promise<FBR<MasterBookmarkSubModule[]>>;
267
286
  declare const createMasterBookmarkSubModule: (data: MasterBookmarkSubModuleDTO) => Promise<SBR>;
268
287
  declare const updateMasterBookmarkSubModule: (id: string, data: MasterBookmarkSubModuleDTO) => Promise<SBR>;
269
288
  declare const deleteMasterBookmarkSubModule: (id: string) => Promise<SBR>;
289
+ declare const getMasterBookmarkSubModuleCache: (bookmark_module_id: string) => Promise<FBR<MasterBookmarkSubModule[]>>;
290
+ declare const getMasterBookmarkSubModuleCacheCount: (bookmark_module_id: string) => Promise<FBR<MasterBookmarkSubModule[]>>;
291
+ declare const getMasterBookmarkSubModuleCacheChild: (bookmark_module_id: string) => Promise<FBR<MasterBookmarkSubModule[]>>;
270
292
 
271
293
  interface MasterBookmarkModule extends Record<string, unknown> {
272
294
  bookmark_module_id: string;
@@ -384,6 +406,9 @@ declare const findMasterBookmarkModules: (data: MasterBookmarkModuleQueryDTO) =>
384
406
  declare const createMasterBookmarkModule: (data: MasterBookmarkModuleDTO) => Promise<SBR>;
385
407
  declare const updateMasterBookmarkModule: (id: string, data: MasterBookmarkModuleDTO) => Promise<SBR>;
386
408
  declare const deleteMasterBookmarkModule: (id: string) => Promise<SBR>;
409
+ declare const getMasterBookmarkModuleCache: () => Promise<FBR<MasterBookmarkModule[]>>;
410
+ declare const getMasterBookmarkModuleCacheCount: () => Promise<FBR<MasterBookmarkModule[]>>;
411
+ declare const getMasterBookmarkModuleCacheChild: () => Promise<FBR<MasterBookmarkModule[]>>;
387
412
 
388
413
  interface UserBookmark {
389
414
  user_bookmark_id: string;
@@ -467,4 +492,4 @@ declare const user_bookmark_get_selection_list: (data: UserBookmarkSelectionQuer
467
492
  declare const user_bookmark_save_selection: (data: UserBookmarkSaveSelectionDTO) => Promise<SBR>;
468
493
  declare const user_bookmark_get_selected_list: (data: UserBookmarkSelectionQueryDTO) => Promise<FBR<UserBookmark[]>>;
469
494
 
470
- export { user_bookmark_get_selected_list as A, user_bookmark_get_selection_list as B, user_bookmark_save_selection as C, type MasterBookmarkSubModule as M, type MasterBookmarkPage, type MasterBookmarkPageDTO, type MasterBookmarkPageQueryDTO, MasterBookmarkPageQuerySchema, MasterBookmarkPageSchema, type UserBookmark as U, type MasterBookmarkSubModuleDTO as a, type MasterBookmarkSubModuleQueryDTO as b, MasterBookmarkSubModuleQuerySchema as c, createMasterBookmarkPage, MasterBookmarkSubModuleSchema as d, deleteMasterBookmarkPage, createMasterBookmarkSubModule as e, deleteMasterBookmarkSubModule as f, findMasterBookmarkPages, findMasterBookmarkSubModules as g, type MasterBookmarkModule as h, type MasterBookmarkModuleDTO as i, type MasterBookmarkModuleQueryDTO as j, MasterBookmarkModuleQuerySchema as k, MasterBookmarkModuleSchema as l, createMasterBookmarkModule as m, newMasterBookmarkSubModulePayload as n, newMasterBookmarkPagePayload, deleteMasterBookmarkModule as o, findMasterBookmarkModules as p, newMasterBookmarkModulePayload as q, toMasterBookmarkModulePayload as r, updateMasterBookmarkModule as s, toMasterBookmarkSubModulePayload as t, toMasterBookmarkPagePayload, updateMasterBookmarkSubModule as u, updateMasterBookmarkPage, type UserBookmarkSaveSelectionDTO as v, UserBookmarkSaveSelectionItemSchema as w, UserBookmarkSaveSelectionSchema as x, type UserBookmarkSelectionQueryDTO as y, UserBookmarkSelectionQuerySchema as z };
495
+ export { toMasterBookmarkModulePayload as A, updateMasterBookmarkModule as B, type UserBookmarkSaveSelectionDTO as C, UserBookmarkSaveSelectionItemSchema as D, UserBookmarkSaveSelectionSchema as E, type FindCacheDTO as F, type FindCacheDTO$1 as FindCacheDTO, FindCacheSchema$1 as FindCacheSchema, type UserBookmarkSelectionQueryDTO as G, UserBookmarkSelectionQuerySchema as H, user_bookmark_get_selected_list as I, user_bookmark_get_selection_list as J, user_bookmark_save_selection as K, type MasterBookmarkSubModule as M, type MasterBookmarkPage, type MasterBookmarkPageDTO, type MasterBookmarkPageQueryDTO, MasterBookmarkPageQuerySchema, MasterBookmarkPageSchema, type UserBookmark as U, FindCacheSchema as a, type MasterBookmarkSubModuleDTO as b, type MasterBookmarkSubModuleQueryDTO as c, createMasterBookmarkPage, MasterBookmarkSubModuleQuerySchema as d, deleteMasterBookmarkPage, MasterBookmarkSubModuleSchema as e, createMasterBookmarkSubModule as f, findMasterBookmarkPages, deleteMasterBookmarkSubModule as g, getMasterBookmarkPageCache, getMasterBookmarkPageCacheChild, getMasterBookmarkPageCacheCount, findMasterBookmarkSubModules as h, getMasterBookmarkSubModuleCache as i, getMasterBookmarkSubModuleCacheChild as j, getMasterBookmarkSubModuleCacheCount as k, type MasterBookmarkModule as l, type MasterBookmarkModuleDTO as m, newMasterBookmarkSubModulePayload as n, newMasterBookmarkPagePayload, type MasterBookmarkModuleQueryDTO as o, MasterBookmarkModuleQuerySchema as p, MasterBookmarkModuleSchema as q, createMasterBookmarkModule as r, deleteMasterBookmarkModule as s, toMasterBookmarkSubModulePayload as t, toMasterBookmarkPagePayload, updateMasterBookmarkSubModule as u, updateMasterBookmarkPage, findMasterBookmarkModules as v, getMasterBookmarkModuleCache as w, getMasterBookmarkModuleCacheChild as x, getMasterBookmarkModuleCacheCount as y, newMasterBookmarkModulePayload as z };
@@ -9,6 +9,10 @@ var getAxiosInstance = () => {
9
9
  };
10
10
 
11
11
  // src/core/apiCall.ts
12
+ var apiGet = async (url, params) => {
13
+ const response = await getAxiosInstance().get(url, { params });
14
+ return response.data;
15
+ };
12
16
  var apiPost = async (url, data) => {
13
17
  const response = await getAxiosInstance().post(url, data);
14
18
  return response.data;
@@ -35,6 +39,10 @@ var r_log = (data = {}) => {
35
39
 
36
40
  // src/zod_utils/zod_utils.ts
37
41
  var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
42
+ var stringUUIDMandatory = (fieldName) => {
43
+ const schema = z.string().trim().uuid({ message: `${fieldName} must be a valid UUID` }).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
44
+ return schema;
45
+ };
38
46
  var stringMandatory = (fieldName, min = 1, max = 100) => {
39
47
  const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
40
48
  return schema;
@@ -263,7 +271,11 @@ var ENDPOINTS = {
263
271
  find: `${URL}/search`,
264
272
  create: URL,
265
273
  update: (id) => `${URL}/${id}`,
266
- delete: (id) => `${URL}/${id}`
274
+ delete: (id) => `${URL}/${id}`,
275
+ // Cache APIs
276
+ cache: (bookmark_sub_module_id) => `${URL}/cache?bookmark_sub_module_id=${bookmark_sub_module_id}`,
277
+ cache_count: (bookmark_sub_module_id) => `${URL}/cache_count?bookmark_sub_module_id=${bookmark_sub_module_id}`,
278
+ cache_child: (bookmark_sub_module_id) => `${URL}/cache_child?bookmark_sub_module_id=${bookmark_sub_module_id}`
267
279
  };
268
280
  var MasterBookmarkPageSchema = z3.object({
269
281
  // Relations - Parent
@@ -284,6 +296,9 @@ var MasterBookmarkPageQuerySchema = BaseQuerySchema.extend({
284
296
  bookmark_module_ids: multi_select_optional("MasterBookmarkModule"),
285
297
  bookmark_sub_module_ids: multi_select_optional("MasterBookmarkSubModule")
286
298
  });
299
+ var FindCacheSchema = z3.object({
300
+ bookmark_sub_module_id: stringUUIDMandatory("bookmark_sub_module_id")
301
+ });
287
302
  var toMasterBookmarkPagePayload = (row) => ({
288
303
  bookmark_module_id: row.bookmark_module_id || "",
289
304
  bookmark_sub_module_id: row.bookmark_sub_module_id || "",
@@ -314,12 +329,25 @@ var updateMasterBookmarkPage = async (id, data) => {
314
329
  var deleteMasterBookmarkPage = async (id) => {
315
330
  return apiDelete(ENDPOINTS.delete(id));
316
331
  };
332
+ var getMasterBookmarkPageCache = async (bookmark_sub_module_id) => {
333
+ return apiGet(ENDPOINTS.cache(bookmark_sub_module_id));
334
+ };
335
+ var getMasterBookmarkPageCacheCount = async (bookmark_sub_module_id) => {
336
+ return apiGet(ENDPOINTS.cache_count(bookmark_sub_module_id));
337
+ };
338
+ var getMasterBookmarkPageCacheChild = async (bookmark_sub_module_id) => {
339
+ return apiGet(ENDPOINTS.cache_child(bookmark_sub_module_id));
340
+ };
317
341
  export {
342
+ FindCacheSchema,
318
343
  MasterBookmarkPageQuerySchema,
319
344
  MasterBookmarkPageSchema,
320
345
  createMasterBookmarkPage,
321
346
  deleteMasterBookmarkPage,
322
347
  findMasterBookmarkPages,
348
+ getMasterBookmarkPageCache,
349
+ getMasterBookmarkPageCacheChild,
350
+ getMasterBookmarkPageCacheCount,
323
351
  newMasterBookmarkPagePayload,
324
352
  toMasterBookmarkPagePayload,
325
353
  updateMasterBookmarkPage
@@ -1,7 +1,7 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { M as MasterBookmarkSubModule, a as MasterBookmarkSubModuleDTO, b as MasterBookmarkSubModuleQueryDTO, c as MasterBookmarkSubModuleQuerySchema, d as MasterBookmarkSubModuleSchema, e as createMasterBookmarkSubModule, f as deleteMasterBookmarkSubModule, g as findMasterBookmarkSubModules, n as newMasterBookmarkSubModulePayload, t as toMasterBookmarkSubModulePayload, u as updateMasterBookmarkSubModule } from './master_bookmark_page_service.js';
4
+ export { F as FindCacheDTO, a as FindCacheSchema, M as MasterBookmarkSubModule, b as MasterBookmarkSubModuleDTO, c as MasterBookmarkSubModuleQueryDTO, d as MasterBookmarkSubModuleQuerySchema, e as MasterBookmarkSubModuleSchema, f as createMasterBookmarkSubModule, g as deleteMasterBookmarkSubModule, h as findMasterBookmarkSubModules, i as getMasterBookmarkSubModuleCache, j as getMasterBookmarkSubModuleCacheChild, k as getMasterBookmarkSubModuleCacheCount, n as newMasterBookmarkSubModulePayload, t as toMasterBookmarkSubModulePayload, u as updateMasterBookmarkSubModule } from './master_bookmark_page_service.js';
5
5
  import '../../../user_organisation_service-4_J4l-fj.js';
6
6
  import '../../../zod_utils/zod_base_schema.js';
7
7
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -9,6 +9,10 @@ var getAxiosInstance = () => {
9
9
  };
10
10
 
11
11
  // src/core/apiCall.ts
12
+ var apiGet = async (url, params) => {
13
+ const response = await getAxiosInstance().get(url, { params });
14
+ return response.data;
15
+ };
12
16
  var apiPost = async (url, data) => {
13
17
  const response = await getAxiosInstance().post(url, data);
14
18
  return response.data;
@@ -35,6 +39,10 @@ var r_log = (data = {}) => {
35
39
 
36
40
  // src/zod_utils/zod_utils.ts
37
41
  var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
42
+ var stringUUIDMandatory = (fieldName) => {
43
+ const schema = z.string().trim().uuid({ message: `${fieldName} must be a valid UUID` }).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
44
+ return schema;
45
+ };
38
46
  var stringMandatory = (fieldName, min = 1, max = 100) => {
39
47
  const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
40
48
  return schema;
@@ -263,7 +271,11 @@ var ENDPOINTS = {
263
271
  find: `${URL}/search`,
264
272
  create: URL,
265
273
  update: (id) => `${URL}/${id}`,
266
- delete: (id) => `${URL}/${id}`
274
+ delete: (id) => `${URL}/${id}`,
275
+ // Cache APIs
276
+ cache: (bookmark_module_id) => `${URL}/cache?bookmark_module_id=${bookmark_module_id}`,
277
+ cache_count: (bookmark_module_id) => `${URL}/cache_count?bookmark_module_id=${bookmark_module_id}`,
278
+ cache_child: (bookmark_module_id) => `${URL}/cache_child?bookmark_module_id=${bookmark_module_id}`
267
279
  };
268
280
  var MasterBookmarkSubModuleSchema = z3.object({
269
281
  // Relations - Parent
@@ -280,6 +292,9 @@ var MasterBookmarkSubModuleQuerySchema = BaseQuerySchema.extend({
280
292
  // Relations - Parent
281
293
  bookmark_module_ids: multi_select_optional("MasterBookmarkModule")
282
294
  });
295
+ var FindCacheSchema = z3.object({
296
+ bookmark_module_id: stringUUIDMandatory("bookmark_module_id")
297
+ });
283
298
  var toMasterBookmarkSubModulePayload = (row) => ({
284
299
  bookmark_module_id: row.bookmark_module_id || "",
285
300
  sub_module_name: row.sub_module_name || "",
@@ -304,12 +319,25 @@ var updateMasterBookmarkSubModule = async (id, data) => {
304
319
  var deleteMasterBookmarkSubModule = async (id) => {
305
320
  return apiDelete(ENDPOINTS.delete(id));
306
321
  };
322
+ var getMasterBookmarkSubModuleCache = async (bookmark_module_id) => {
323
+ return apiGet(ENDPOINTS.cache(bookmark_module_id));
324
+ };
325
+ var getMasterBookmarkSubModuleCacheCount = async (bookmark_module_id) => {
326
+ return apiGet(ENDPOINTS.cache_count(bookmark_module_id));
327
+ };
328
+ var getMasterBookmarkSubModuleCacheChild = async (bookmark_module_id) => {
329
+ return apiGet(ENDPOINTS.cache_child(bookmark_module_id));
330
+ };
307
331
  export {
332
+ FindCacheSchema,
308
333
  MasterBookmarkSubModuleQuerySchema,
309
334
  MasterBookmarkSubModuleSchema,
310
335
  createMasterBookmarkSubModule,
311
336
  deleteMasterBookmarkSubModule,
312
337
  findMasterBookmarkSubModules,
338
+ getMasterBookmarkSubModuleCache,
339
+ getMasterBookmarkSubModuleCacheChild,
340
+ getMasterBookmarkSubModuleCacheCount,
313
341
  newMasterBookmarkSubModulePayload,
314
342
  toMasterBookmarkSubModulePayload,
315
343
  updateMasterBookmarkSubModule
@@ -31,8 +31,9 @@ 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
- mobile_number: string;
35
34
  email: string;
35
+ status: Status;
36
+ mobile_number: string;
36
37
  facebook_link: string;
37
38
  twitter_link: string;
38
39
  instagram_link: string;
@@ -41,11 +42,10 @@ 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
- mobile_number?: string | undefined;
48
47
  email?: string | undefined;
48
+ mobile_number?: string | undefined;
49
49
  facebook_link?: string | undefined;
50
50
  twitter_link?: string | undefined;
51
51
  instagram_link?: string | undefined;
@@ -25,23 +25,23 @@ declare const RequestDemoSchema: z.ZodObject<{
25
25
  admin_view: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
26
26
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- email: string;
29
- status: Status;
30
- message: string;
31
28
  name: string;
32
29
  mobile: string;
33
- admin_message: string;
30
+ email: string;
31
+ message: string;
34
32
  city: string;
33
+ admin_message: string;
35
34
  admin_view: YesNo;
36
- }, {
37
35
  status: Status;
36
+ }, {
38
37
  name: string;
39
38
  admin_view: YesNo;
39
+ status: Status;
40
+ mobile?: string | undefined;
40
41
  email?: string | undefined;
41
42
  message?: string | undefined;
42
- mobile?: string | undefined;
43
- admin_message?: string | undefined;
44
43
  city?: string | undefined;
44
+ admin_message?: string | undefined;
45
45
  }>;
46
46
  type RequestDemoDTO = z.infer<typeof RequestDemoSchema>;
47
47
  declare const RequestDemoQuerySchema: z.ZodObject<{
@@ -78,6 +78,7 @@ declare const RequestDemoQuerySchema: z.ZodObject<{
78
78
  request_demo_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
79
79
  admin_view: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
80
80
  }, "strip", z.ZodTypeAny, {
81
+ admin_view: YesNo[];
81
82
  status: Status[];
82
83
  search: string;
83
84
  paging: PAGING;
@@ -99,11 +100,11 @@ declare const RequestDemoQuerySchema: z.ZodObject<{
99
100
  include_master_data: YesNo;
100
101
  date_format_id: string;
101
102
  time_zone_id: string;
102
- admin_view: YesNo[];
103
103
  request_demo_ids: string[];
104
104
  }, {
105
105
  date_format_id: string;
106
106
  time_zone_id: string;
107
+ admin_view?: YesNo[] | undefined;
107
108
  status?: Status[] | undefined;
108
109
  search?: string | undefined;
109
110
  paging?: PAGING | undefined;
@@ -123,7 +124,6 @@ declare const RequestDemoQuerySchema: z.ZodObject<{
123
124
  direction: OrderBy;
124
125
  }[] | undefined;
125
126
  include_master_data?: YesNo | undefined;
126
- admin_view?: YesNo[] | undefined;
127
127
  request_demo_ids?: string[] | undefined;
128
128
  }>;
129
129
  type RequestDemoQueryDTO = z.infer<typeof RequestDemoQuerySchema>;
@@ -134,16 +134,16 @@ declare const RequestDemoCreateSchema: z.ZodObject<{
134
134
  message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
135
135
  city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
136
136
  }, "strip", z.ZodTypeAny, {
137
- email: string;
138
- message: string;
139
137
  name: string;
140
138
  mobile: string;
139
+ email: string;
140
+ message: string;
141
141
  city: string;
142
142
  }, {
143
143
  name: string;
144
+ mobile?: string | undefined;
144
145
  email?: string | undefined;
145
146
  message?: string | undefined;
146
- mobile?: string | undefined;
147
147
  city?: string | undefined;
148
148
  }>;
149
149
  type RequestDemoCreateDTO = z.infer<typeof RequestDemoCreateSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-api-document",
3
- "version": "49.0.0",
3
+ "version": "51.0.0",
4
4
  "description": "Reusable API SDK built with NestJS, Prisma, Axios, and Zod for VMS frontends.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",