@diasro/ucsd-its-frontend 0.1.9 → 0.2.2

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 (78) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/assets/ucsd-its-frontend.css +1 -1
  3. package/dist/config/ucsd.config.d.ts +18 -0
  4. package/dist/lib/CommonRoutes.d.ts +7 -0
  5. package/dist/{UcsdPlugin.d.ts → lib/UcsdPlugin.d.ts} +2 -2
  6. package/dist/{components → lib/components}/TileButton.vue.d.ts +21 -15
  7. package/dist/lib/components/authorization/Login.vue.d.ts +2 -0
  8. package/dist/lib/components/authorization/LoginSuccess.vue.d.ts +2 -0
  9. package/dist/lib/components/authorization/Logout.vue.d.ts +2 -0
  10. package/dist/lib/components/authorization/LogoutSuccess.vue.d.ts +2 -0
  11. package/dist/lib/components/authorization/Unauthorized.vue.d.ts +2 -0
  12. package/dist/lib/components/commons/ChangeHistory.vue.d.ts +58 -0
  13. package/dist/lib/components/commons/ProgressDialog.vue.d.ts +2 -0
  14. package/dist/{composables → lib/composables}/layout.d.ts +2 -2
  15. package/dist/{composables → lib/composables}/utils/ucsdAppUtils.d.ts +6 -3
  16. package/dist/lib/index.d.ts +31 -0
  17. package/dist/lib/layouts/AppLayout.vue.d.ts +2 -0
  18. package/dist/lib/layouts/DefaultLayout.vue.d.ts +35 -0
  19. package/dist/lib/layouts/FixedLayout.vue.d.ts +35 -0
  20. package/dist/lib/layouts/FloatingLayout.vue.d.ts +17 -0
  21. package/dist/lib/layouts/TopLayout.vue.d.ts +35 -0
  22. package/dist/lib/layouts/UcsdFooter.vue.d.ts +2 -0
  23. package/dist/lib/layouts/UcsdHeader.vue.d.ts +39 -0
  24. package/dist/lib/layouts/UserPanel.vue.d.ts +2 -0
  25. package/dist/lib/layouts/menu/FloatMenu.vue.d.ts +2 -0
  26. package/dist/{layouts → lib/layouts}/menu/RailMenu.vue.d.ts +6 -4
  27. package/dist/lib/layouts/menu/SettingsMenu.vue.d.ts +2 -0
  28. package/dist/lib/layouts/menu/TopMenu.vue.d.ts +2 -0
  29. package/dist/lib/shared.config.d.ts +2 -0
  30. package/dist/{stores → lib/stores}/its-app.d.ts +64 -69
  31. package/dist/{stores → lib/stores}/its-audit.d.ts +127 -15
  32. package/dist/{stores → lib/stores}/its-auth.d.ts +14 -14
  33. package/dist/lib/types/FieldMeta.d.ts +12 -0
  34. package/dist/{types → lib/types}/UcsdConfig.d.ts +3 -1
  35. package/dist/main.d.ts +6 -0
  36. package/dist/pages/DashBoard.vue.d.ts +2 -0
  37. package/dist/pages/FixedPage.vue.d.ts +2 -0
  38. package/dist/pages/HomePage.vue.d.ts +2 -0
  39. package/dist/pages/TreeDemo.vue.d.ts +2 -0
  40. package/dist/pages/admin/AdminPage.vue.d.ts +2 -0
  41. package/dist/pages/customer/CustomerHome.vue.d.ts +2 -0
  42. package/dist/pages/customer/CustomerSearch.vue.d.ts +2 -0
  43. package/dist/pages/customer/SimpleForm.vue.d.ts +602 -0
  44. package/dist/pages/invoices/InvoiceHome.vue.d.ts +2 -0
  45. package/dist/plugins/index.d.ts +2 -0
  46. package/dist/plugins/vuetify.d.ts +85 -0
  47. package/dist/router/index.d.ts +2 -0
  48. package/dist/router/routes.d.ts +3 -0
  49. package/dist/stores/app.d.ts +48 -0
  50. package/dist/stores/index.d.ts +2 -0
  51. package/dist/ucsd-its-frontend.js +6486 -6048
  52. package/dist/ucsd-its-frontend.umd.cjs +279 -286
  53. package/package.json +3 -4
  54. package/dist/CommonRoutes.d.ts +0 -7
  55. package/dist/components/authorization/Login.vue.d.ts +0 -2
  56. package/dist/components/authorization/LoginSuccess.vue.d.ts +0 -2
  57. package/dist/components/authorization/Logout.vue.d.ts +0 -2
  58. package/dist/components/authorization/LogoutSuccess.vue.d.ts +0 -2
  59. package/dist/components/authorization/Unauthorized.vue.d.ts +0 -2
  60. package/dist/components/commons/ChangeHistory.vue.d.ts +0 -54
  61. package/dist/components/commons/ProgressDialog.vue.d.ts +0 -2
  62. package/dist/composables/auditLog.d.ts +0 -25
  63. package/dist/index.d.ts +0 -32
  64. package/dist/layouts/AppLayout.vue.d.ts +0 -2
  65. package/dist/layouts/DefaultLayout.vue.d.ts +0 -20
  66. package/dist/layouts/FixedLayout.vue.d.ts +0 -20
  67. package/dist/layouts/FloatingLayout.vue.d.ts +0 -2
  68. package/dist/layouts/TopLayout.vue.d.ts +0 -20
  69. package/dist/layouts/UcsdFooter.vue.d.ts +0 -2
  70. package/dist/layouts/UcsdHeader.vue.d.ts +0 -23
  71. package/dist/layouts/UserPanel.vue.d.ts +0 -2
  72. package/dist/layouts/menu/FloatMenu.vue.d.ts +0 -2
  73. package/dist/layouts/menu/SettingsMenu.vue.d.ts +0 -2
  74. package/dist/layouts/menu/TopMenu.vue.d.ts +0 -2
  75. /package/dist/{types → lib/types}/ApiError.d.ts +0 -0
  76. /package/dist/{types → lib/types}/LoginUser.d.ts +0 -0
  77. /package/dist/{types → lib/types}/TileRecord.d.ts +0 -0
  78. /package/dist/{types → lib/types}/audit.d.ts +0 -0
@@ -1,4 +1,5 @@
1
- import { TileRecord } from "../types/TileRecord";
1
+ import { TileRecord } from '../types/TileRecord';
2
+ import { UcsdConfig } from '../types/UcsdConfig';
2
3
  /**
3
4
  * Represents the store for managing application state, particularly related to user interface elements,
4
5
  * menus, themes, layouts, navigation, and progress tracking.
@@ -18,11 +19,11 @@ import { TileRecord } from "../types/TileRecord";
18
19
  * - Role-based route and menu filtering secured through user roles and authentication.
19
20
  * - Utility methods for menu initialization, state switches, and route management.
20
21
  */
21
- export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app", Pick<{
22
- currentTheme: import("vue").Ref<string | undefined, string | undefined>;
23
- currentLayout: import("vue").Ref<string | undefined, string | undefined>;
24
- layoutRail: import("vue").Ref<boolean, boolean>;
25
- activeMenu: import("vue").Ref<{
22
+ export declare const useItsAppStore: import('pinia').StoreDefinition<"its-app", Pick<{
23
+ currentTheme: import('vue').Ref<string | undefined, string | undefined>;
24
+ currentLayout: import('vue').Ref<string | undefined, string | undefined>;
25
+ layoutRail: import('vue').Ref<boolean, boolean>;
26
+ activeMenu: import('vue').Ref<{
26
27
  label: string;
27
28
  key: string;
28
29
  icon?: string | undefined;
@@ -38,7 +39,7 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
38
39
  active?: boolean | undefined;
39
40
  childDropdown?: boolean | undefined;
40
41
  hide?: boolean | undefined;
41
- children?: any[] | undefined;
42
+ children?: /*elided*/ any[] | undefined;
42
43
  }[], TileRecord[] | {
43
44
  label: string;
44
45
  key: string;
@@ -55,10 +56,10 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
55
56
  active?: boolean | undefined;
56
57
  childDropdown?: boolean | undefined;
57
58
  hide?: boolean | undefined;
58
- children?: any[] | undefined;
59
+ children?: /*elided*/ any[] | undefined;
59
60
  }[]>;
60
- activeMenuVal: import("vue").Ref<string, string>;
61
- rootMenu: import("vue").Ref<{
61
+ activeMenuVal: import('vue').Ref<string, string>;
62
+ rootMenu: import('vue').Ref<{
62
63
  label: string;
63
64
  key: string;
64
65
  icon?: string | undefined;
@@ -74,7 +75,7 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
74
75
  active?: boolean | undefined;
75
76
  childDropdown?: boolean | undefined;
76
77
  hide?: boolean | undefined;
77
- children?: any[] | undefined;
78
+ children?: /*elided*/ any[] | undefined;
78
79
  }, TileRecord | {
79
80
  label: string;
80
81
  key: string;
@@ -91,18 +92,17 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
91
92
  active?: boolean | undefined;
92
93
  childDropdown?: boolean | undefined;
93
94
  hide?: boolean | undefined;
94
- children?: any[] | undefined;
95
+ children?: /*elided*/ any[] | undefined;
95
96
  }>;
96
- currentPageHeader: import("vue").Ref<string | undefined, string | undefined>;
97
- currentSubHdr: import("vue").Ref<string | undefined, string | undefined>;
98
- floatMenu: import("vue").Ref<boolean, boolean>;
99
- dockPosition: import("vue").Ref<string, string>;
100
- dockVisible: import("vue").Ref<boolean, boolean>;
101
- navDrawer: import("vue").Ref<boolean, boolean>;
102
- progressMessage: import("vue").Ref<string, string>;
103
- progressStep: import("vue").Ref<number, number>;
104
- authUrl: () => string;
105
- ssoUrl: () => string;
97
+ currentPageHeader: import('vue').Ref<string | undefined, string | undefined>;
98
+ currentSubHdr: import('vue').Ref<string | undefined, string | undefined>;
99
+ floatMenu: import('vue').Ref<boolean, boolean>;
100
+ dockPosition: import('vue').Ref<string, string>;
101
+ dockVisible: import('vue').Ref<boolean, boolean>;
102
+ navDrawer: import('vue').Ref<boolean, boolean>;
103
+ progressMessage: import('vue').Ref<string, string>;
104
+ progressStep: import('vue').Ref<number, number>;
105
+ getConfigUrl: (urlKey: keyof Pick<UcsdConfig, "authUrl" | "auditLogUrl" | "errorReportUrl" | "accessTokenUrl" | "ssoUrl">) => string;
106
106
  toggleTheme: () => void;
107
107
  setDockVisible: (flag: boolean) => void;
108
108
  setNavDrawer: (flag: boolean) => void;
@@ -124,16 +124,15 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
124
124
  getCustomAuth: () => (() => Promise<any>) | undefined;
125
125
  secureRoutes: () => void;
126
126
  startProgTimer: () => void;
127
- isInProgress: import("vue").Ref<boolean, boolean>;
127
+ isInProgress: import('vue').Ref<boolean, boolean>;
128
128
  setInProgress: (flag: boolean, message: string, step: number) => void;
129
129
  reBuildOnLayoutSwitch: () => void;
130
130
  apiClientKeys: () => any;
131
- accessTokenUrl: () => string;
132
131
  }, "rootMenu" | "currentTheme" | "currentLayout" | "dockPosition" | "layoutRail" | "activeMenu" | "activeMenuVal" | "currentPageHeader" | "currentSubHdr" | "floatMenu" | "dockVisible" | "navDrawer" | "progressMessage" | "progressStep" | "isInProgress">, Pick<{
133
- currentTheme: import("vue").Ref<string | undefined, string | undefined>;
134
- currentLayout: import("vue").Ref<string | undefined, string | undefined>;
135
- layoutRail: import("vue").Ref<boolean, boolean>;
136
- activeMenu: import("vue").Ref<{
132
+ currentTheme: import('vue').Ref<string | undefined, string | undefined>;
133
+ currentLayout: import('vue').Ref<string | undefined, string | undefined>;
134
+ layoutRail: import('vue').Ref<boolean, boolean>;
135
+ activeMenu: import('vue').Ref<{
137
136
  label: string;
138
137
  key: string;
139
138
  icon?: string | undefined;
@@ -149,7 +148,7 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
149
148
  active?: boolean | undefined;
150
149
  childDropdown?: boolean | undefined;
151
150
  hide?: boolean | undefined;
152
- children?: any[] | undefined;
151
+ children?: /*elided*/ any[] | undefined;
153
152
  }[], TileRecord[] | {
154
153
  label: string;
155
154
  key: string;
@@ -166,10 +165,10 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
166
165
  active?: boolean | undefined;
167
166
  childDropdown?: boolean | undefined;
168
167
  hide?: boolean | undefined;
169
- children?: any[] | undefined;
168
+ children?: /*elided*/ any[] | undefined;
170
169
  }[]>;
171
- activeMenuVal: import("vue").Ref<string, string>;
172
- rootMenu: import("vue").Ref<{
170
+ activeMenuVal: import('vue').Ref<string, string>;
171
+ rootMenu: import('vue').Ref<{
173
172
  label: string;
174
173
  key: string;
175
174
  icon?: string | undefined;
@@ -185,7 +184,7 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
185
184
  active?: boolean | undefined;
186
185
  childDropdown?: boolean | undefined;
187
186
  hide?: boolean | undefined;
188
- children?: any[] | undefined;
187
+ children?: /*elided*/ any[] | undefined;
189
188
  }, TileRecord | {
190
189
  label: string;
191
190
  key: string;
@@ -202,18 +201,17 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
202
201
  active?: boolean | undefined;
203
202
  childDropdown?: boolean | undefined;
204
203
  hide?: boolean | undefined;
205
- children?: any[] | undefined;
204
+ children?: /*elided*/ any[] | undefined;
206
205
  }>;
207
- currentPageHeader: import("vue").Ref<string | undefined, string | undefined>;
208
- currentSubHdr: import("vue").Ref<string | undefined, string | undefined>;
209
- floatMenu: import("vue").Ref<boolean, boolean>;
210
- dockPosition: import("vue").Ref<string, string>;
211
- dockVisible: import("vue").Ref<boolean, boolean>;
212
- navDrawer: import("vue").Ref<boolean, boolean>;
213
- progressMessage: import("vue").Ref<string, string>;
214
- progressStep: import("vue").Ref<number, number>;
215
- authUrl: () => string;
216
- ssoUrl: () => string;
206
+ currentPageHeader: import('vue').Ref<string | undefined, string | undefined>;
207
+ currentSubHdr: import('vue').Ref<string | undefined, string | undefined>;
208
+ floatMenu: import('vue').Ref<boolean, boolean>;
209
+ dockPosition: import('vue').Ref<string, string>;
210
+ dockVisible: import('vue').Ref<boolean, boolean>;
211
+ navDrawer: import('vue').Ref<boolean, boolean>;
212
+ progressMessage: import('vue').Ref<string, string>;
213
+ progressStep: import('vue').Ref<number, number>;
214
+ getConfigUrl: (urlKey: keyof Pick<UcsdConfig, "authUrl" | "auditLogUrl" | "errorReportUrl" | "accessTokenUrl" | "ssoUrl">) => string;
217
215
  toggleTheme: () => void;
218
216
  setDockVisible: (flag: boolean) => void;
219
217
  setNavDrawer: (flag: boolean) => void;
@@ -235,16 +233,15 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
235
233
  getCustomAuth: () => (() => Promise<any>) | undefined;
236
234
  secureRoutes: () => void;
237
235
  startProgTimer: () => void;
238
- isInProgress: import("vue").Ref<boolean, boolean>;
236
+ isInProgress: import('vue').Ref<boolean, boolean>;
239
237
  setInProgress: (flag: boolean, message: string, step: number) => void;
240
238
  reBuildOnLayoutSwitch: () => void;
241
239
  apiClientKeys: () => any;
242
- accessTokenUrl: () => string;
243
240
  }, never>, Pick<{
244
- currentTheme: import("vue").Ref<string | undefined, string | undefined>;
245
- currentLayout: import("vue").Ref<string | undefined, string | undefined>;
246
- layoutRail: import("vue").Ref<boolean, boolean>;
247
- activeMenu: import("vue").Ref<{
241
+ currentTheme: import('vue').Ref<string | undefined, string | undefined>;
242
+ currentLayout: import('vue').Ref<string | undefined, string | undefined>;
243
+ layoutRail: import('vue').Ref<boolean, boolean>;
244
+ activeMenu: import('vue').Ref<{
248
245
  label: string;
249
246
  key: string;
250
247
  icon?: string | undefined;
@@ -260,7 +257,7 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
260
257
  active?: boolean | undefined;
261
258
  childDropdown?: boolean | undefined;
262
259
  hide?: boolean | undefined;
263
- children?: any[] | undefined;
260
+ children?: /*elided*/ any[] | undefined;
264
261
  }[], TileRecord[] | {
265
262
  label: string;
266
263
  key: string;
@@ -277,10 +274,10 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
277
274
  active?: boolean | undefined;
278
275
  childDropdown?: boolean | undefined;
279
276
  hide?: boolean | undefined;
280
- children?: any[] | undefined;
277
+ children?: /*elided*/ any[] | undefined;
281
278
  }[]>;
282
- activeMenuVal: import("vue").Ref<string, string>;
283
- rootMenu: import("vue").Ref<{
279
+ activeMenuVal: import('vue').Ref<string, string>;
280
+ rootMenu: import('vue').Ref<{
284
281
  label: string;
285
282
  key: string;
286
283
  icon?: string | undefined;
@@ -296,7 +293,7 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
296
293
  active?: boolean | undefined;
297
294
  childDropdown?: boolean | undefined;
298
295
  hide?: boolean | undefined;
299
- children?: any[] | undefined;
296
+ children?: /*elided*/ any[] | undefined;
300
297
  }, TileRecord | {
301
298
  label: string;
302
299
  key: string;
@@ -313,18 +310,17 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
313
310
  active?: boolean | undefined;
314
311
  childDropdown?: boolean | undefined;
315
312
  hide?: boolean | undefined;
316
- children?: any[] | undefined;
313
+ children?: /*elided*/ any[] | undefined;
317
314
  }>;
318
- currentPageHeader: import("vue").Ref<string | undefined, string | undefined>;
319
- currentSubHdr: import("vue").Ref<string | undefined, string | undefined>;
320
- floatMenu: import("vue").Ref<boolean, boolean>;
321
- dockPosition: import("vue").Ref<string, string>;
322
- dockVisible: import("vue").Ref<boolean, boolean>;
323
- navDrawer: import("vue").Ref<boolean, boolean>;
324
- progressMessage: import("vue").Ref<string, string>;
325
- progressStep: import("vue").Ref<number, number>;
326
- authUrl: () => string;
327
- ssoUrl: () => string;
315
+ currentPageHeader: import('vue').Ref<string | undefined, string | undefined>;
316
+ currentSubHdr: import('vue').Ref<string | undefined, string | undefined>;
317
+ floatMenu: import('vue').Ref<boolean, boolean>;
318
+ dockPosition: import('vue').Ref<string, string>;
319
+ dockVisible: import('vue').Ref<boolean, boolean>;
320
+ navDrawer: import('vue').Ref<boolean, boolean>;
321
+ progressMessage: import('vue').Ref<string, string>;
322
+ progressStep: import('vue').Ref<number, number>;
323
+ getConfigUrl: (urlKey: keyof Pick<UcsdConfig, "authUrl" | "auditLogUrl" | "errorReportUrl" | "accessTokenUrl" | "ssoUrl">) => string;
328
324
  toggleTheme: () => void;
329
325
  setDockVisible: (flag: boolean) => void;
330
326
  setNavDrawer: (flag: boolean) => void;
@@ -346,9 +342,8 @@ export declare const useItsAppStore: import("pinia").StoreDefinition<"its-app",
346
342
  getCustomAuth: () => (() => Promise<any>) | undefined;
347
343
  secureRoutes: () => void;
348
344
  startProgTimer: () => void;
349
- isInProgress: import("vue").Ref<boolean, boolean>;
345
+ isInProgress: import('vue').Ref<boolean, boolean>;
350
346
  setInProgress: (flag: boolean, message: string, step: number) => void;
351
347
  reBuildOnLayoutSwitch: () => void;
352
348
  apiClientKeys: () => any;
353
- accessTokenUrl: () => string;
354
- }, "authUrl" | "ssoUrl" | "toggleTheme" | "setDockVisible" | "setNavDrawer" | "setDockPosition" | "setCurrentTheme" | "setFloatMenu" | "setCurrentPageHdr" | "setCurrentSubHdr" | "init" | "setLayoutRail" | "setCurrentLayout" | "setActiveMenuVal" | "setActiveMenu" | "getBadgeContent" | "execAction" | "renderIcon" | "invokeLoginCallback" | "invokeLogoutCallback" | "getCustomAuth" | "secureRoutes" | "startProgTimer" | "setInProgress" | "reBuildOnLayoutSwitch" | "apiClientKeys" | "accessTokenUrl">>;
349
+ }, "getConfigUrl" | "toggleTheme" | "setDockVisible" | "setNavDrawer" | "setDockPosition" | "setCurrentTheme" | "setFloatMenu" | "setCurrentPageHdr" | "setCurrentSubHdr" | "init" | "setLayoutRail" | "setCurrentLayout" | "setActiveMenuVal" | "setActiveMenu" | "getBadgeContent" | "execAction" | "renderIcon" | "invokeLoginCallback" | "invokeLogoutCallback" | "getCustomAuth" | "secureRoutes" | "startProgTimer" | "setInProgress" | "reBuildOnLayoutSwitch" | "apiClientKeys">>;
@@ -1,8 +1,6 @@
1
- import { Audit } from "../types/audit";
2
- import { ChangeData } from "../types/audit";
3
- import { AuditDetail } from "../types/audit";
4
- export declare const useItsAuditStore: import("pinia").StoreDefinition<"its-audit", Pick<{
5
- auditQueue: import("vue").Ref<{
1
+ import { Audit, AuditTimeLine, ChangeData, AuditDetail } from '../types/audit';
2
+ export declare const useItsAuditStore: import('pinia').StoreDefinition<"its-audit", Pick<{
3
+ auditQueue: import('vue').Ref<{
6
4
  audits: {
7
5
  auditId?: number | undefined;
8
6
  event: string;
@@ -57,12 +55,50 @@ export declare const useItsAuditStore: import("pinia").StoreDefinition<"its-audi
57
55
  }[] | undefined;
58
56
  }[];
59
57
  }>;
60
- addToAuditQueue: (audit: Audit, detailsIdentifier: AuditDetail[], changeData: Array<ChangeData>) => void;
61
- postAudit: () => Promise<void>;
58
+ addToAuditQueue: (audit: Audit, auditDetails: AuditDetail[], changeData: Array<ChangeData>) => void;
59
+ postAudit: () => Promise<boolean>;
62
60
  getAuditQueue: (detailKey?: string, userEmail?: string) => Array<Audit>;
61
+ auditReason: import('vue').Ref<any, any>;
63
62
  resetAuditQueue: () => void;
64
- }, "auditQueue">, Pick<{
65
- auditQueue: import("vue").Ref<{
63
+ getAuditsByDetailKey: (detailKey: string) => Promise<Audit[]>;
64
+ mapAuditToTimeLine: (audits: Audit[]) => AuditTimeLine[];
65
+ getPreviewHtml: (changeData: ChangeData[]) => string;
66
+ commitSessionAudits: () => Promise<{
67
+ success: boolean;
68
+ message: string;
69
+ reason?: undefined;
70
+ error?: undefined;
71
+ } | {
72
+ success: boolean;
73
+ message: string;
74
+ reason: any;
75
+ error?: undefined;
76
+ } | {
77
+ success: boolean;
78
+ message: string;
79
+ error: unknown;
80
+ reason: any;
81
+ }>;
82
+ startAuditSession: (reason: any) => void;
83
+ endAuditSession: () => void;
84
+ commitChanges: (formId: string, data: any, audit: Audit, detailKeyIdentifier: string, actionType: "delete" | "update" | "new", propertyForNew: Array<string>, addnDetailValue?: any, requireConfirmation?: boolean) => Promise<{
85
+ success: boolean;
86
+ message?: string;
87
+ queued?: boolean;
88
+ }> | {
89
+ preview: any;
90
+ confirm: () => Promise<{
91
+ success: boolean;
92
+ message?: string;
93
+ queued?: boolean;
94
+ }>;
95
+ };
96
+ trackChanges: (formId: string, data: any, isNew: boolean) => void;
97
+ resetChanges: (formId: string) => void;
98
+ resetAllChanges: () => void;
99
+ updateSessionReason: (updates: any) => void;
100
+ }, "auditQueue" | "auditReason">, Pick<{
101
+ auditQueue: import('vue').Ref<{
66
102
  audits: {
67
103
  auditId?: number | undefined;
68
104
  event: string;
@@ -117,12 +153,50 @@ export declare const useItsAuditStore: import("pinia").StoreDefinition<"its-audi
117
153
  }[] | undefined;
118
154
  }[];
119
155
  }>;
120
- addToAuditQueue: (audit: Audit, detailsIdentifier: AuditDetail[], changeData: Array<ChangeData>) => void;
121
- postAudit: () => Promise<void>;
156
+ addToAuditQueue: (audit: Audit, auditDetails: AuditDetail[], changeData: Array<ChangeData>) => void;
157
+ postAudit: () => Promise<boolean>;
122
158
  getAuditQueue: (detailKey?: string, userEmail?: string) => Array<Audit>;
159
+ auditReason: import('vue').Ref<any, any>;
123
160
  resetAuditQueue: () => void;
161
+ getAuditsByDetailKey: (detailKey: string) => Promise<Audit[]>;
162
+ mapAuditToTimeLine: (audits: Audit[]) => AuditTimeLine[];
163
+ getPreviewHtml: (changeData: ChangeData[]) => string;
164
+ commitSessionAudits: () => Promise<{
165
+ success: boolean;
166
+ message: string;
167
+ reason?: undefined;
168
+ error?: undefined;
169
+ } | {
170
+ success: boolean;
171
+ message: string;
172
+ reason: any;
173
+ error?: undefined;
174
+ } | {
175
+ success: boolean;
176
+ message: string;
177
+ error: unknown;
178
+ reason: any;
179
+ }>;
180
+ startAuditSession: (reason: any) => void;
181
+ endAuditSession: () => void;
182
+ commitChanges: (formId: string, data: any, audit: Audit, detailKeyIdentifier: string, actionType: "delete" | "update" | "new", propertyForNew: Array<string>, addnDetailValue?: any, requireConfirmation?: boolean) => Promise<{
183
+ success: boolean;
184
+ message?: string;
185
+ queued?: boolean;
186
+ }> | {
187
+ preview: any;
188
+ confirm: () => Promise<{
189
+ success: boolean;
190
+ message?: string;
191
+ queued?: boolean;
192
+ }>;
193
+ };
194
+ trackChanges: (formId: string, data: any, isNew: boolean) => void;
195
+ resetChanges: (formId: string) => void;
196
+ resetAllChanges: () => void;
197
+ updateSessionReason: (updates: any) => void;
124
198
  }, never>, Pick<{
125
- auditQueue: import("vue").Ref<{
199
+ auditQueue: import('vue').Ref<{
126
200
  audits: {
127
201
  auditId?: number | undefined;
128
202
  event: string;
@@ -177,8 +251,46 @@ export declare const useItsAuditStore: import("pinia").StoreDefinition<"its-audi
177
251
  }[] | undefined;
178
252
  }[];
179
253
  }>;
180
- addToAuditQueue: (audit: Audit, detailsIdentifier: AuditDetail[], changeData: Array<ChangeData>) => void;
181
- postAudit: () => Promise<void>;
254
+ addToAuditQueue: (audit: Audit, auditDetails: AuditDetail[], changeData: Array<ChangeData>) => void;
255
+ postAudit: () => Promise<boolean>;
182
256
  getAuditQueue: (detailKey?: string, userEmail?: string) => Array<Audit>;
257
+ auditReason: import('vue').Ref<any, any>;
183
258
  resetAuditQueue: () => void;
184
- }, "addToAuditQueue" | "postAudit" | "getAuditQueue" | "resetAuditQueue">>;
259
+ getAuditsByDetailKey: (detailKey: string) => Promise<Audit[]>;
260
+ mapAuditToTimeLine: (audits: Audit[]) => AuditTimeLine[];
261
+ getPreviewHtml: (changeData: ChangeData[]) => string;
262
+ commitSessionAudits: () => Promise<{
263
+ success: boolean;
264
+ message: string;
265
+ reason?: undefined;
266
+ error?: undefined;
267
+ } | {
268
+ success: boolean;
269
+ message: string;
270
+ reason: any;
271
+ error?: undefined;
272
+ } | {
273
+ success: boolean;
274
+ message: string;
275
+ error: unknown;
276
+ reason: any;
277
+ }>;
278
+ startAuditSession: (reason: any) => void;
279
+ endAuditSession: () => void;
280
+ commitChanges: (formId: string, data: any, audit: Audit, detailKeyIdentifier: string, actionType: "delete" | "update" | "new", propertyForNew: Array<string>, addnDetailValue?: any, requireConfirmation?: boolean) => Promise<{
281
+ success: boolean;
282
+ message?: string;
283
+ queued?: boolean;
284
+ }> | {
285
+ preview: any;
286
+ confirm: () => Promise<{
287
+ success: boolean;
288
+ message?: string;
289
+ queued?: boolean;
290
+ }>;
291
+ };
292
+ trackChanges: (formId: string, data: any, isNew: boolean) => void;
293
+ resetChanges: (formId: string) => void;
294
+ resetAllChanges: () => void;
295
+ updateSessionReason: (updates: any) => void;
296
+ }, "addToAuditQueue" | "postAudit" | "getAuditQueue" | "resetAuditQueue" | "getAuditsByDetailKey" | "mapAuditToTimeLine" | "getPreviewHtml" | "commitSessionAudits" | "startAuditSession" | "endAuditSession" | "commitChanges" | "trackChanges" | "resetChanges" | "resetAllChanges" | "updateSessionReason">>;
@@ -1,4 +1,4 @@
1
- import { LoginUser } from "../types/LoginUser";
1
+ import { LoginUser } from '../types/LoginUser';
2
2
  /**
3
3
  * The `useItsAuthStore` variable represents a centralized Vue store module defined using `defineStore`.
4
4
  * It is used for managing authentication-related state and provides methods for handling various
@@ -34,10 +34,10 @@ import { LoginUser } from "../types/LoginUser";
34
34
  * Persistence:
35
35
  * - The store uses `persist` to store specific state properties (`accessToken`, `pkceCodeVerifier`, and `userDetails`) in `sessionStorage`.
36
36
  */
37
- export declare const useItsAuthStore: import("pinia").StoreDefinition<"its-auth", Pick<{
38
- accessToken: import("vue").Ref<string, string>;
39
- pkceCodeVerifier: import("vue").Ref<string, string>;
40
- userDetails: import("vue").Ref<{
37
+ export declare const useItsAuthStore: import('pinia').StoreDefinition<"its-auth", Pick<{
38
+ accessToken: import('vue').Ref<string, string>;
39
+ pkceCodeVerifier: import('vue').Ref<string, string>;
40
+ userDetails: import('vue').Ref<{
41
41
  id: number;
42
42
  firstName?: string | undefined;
43
43
  lastName?: string | undefined;
@@ -66,7 +66,7 @@ export declare const useItsAuthStore: import("pinia").StoreDefinition<"its-auth"
66
66
  targetEnv?: string | undefined;
67
67
  appVersion?: string | undefined;
68
68
  }>;
69
- preAuthRoute: import("vue").Ref<{
69
+ preAuthRoute: import('vue').Ref<{
70
70
  path: string;
71
71
  query: Record<string, any>;
72
72
  } | null, {
@@ -95,9 +95,9 @@ export declare const useItsAuthStore: import("pinia").StoreDefinition<"its-auth"
95
95
  getUserEmail: () => string;
96
96
  logoutSSO: () => void;
97
97
  }, "accessToken" | "pkceCodeVerifier" | "userDetails" | "preAuthRoute">, Pick<{
98
- accessToken: import("vue").Ref<string, string>;
99
- pkceCodeVerifier: import("vue").Ref<string, string>;
100
- userDetails: import("vue").Ref<{
98
+ accessToken: import('vue').Ref<string, string>;
99
+ pkceCodeVerifier: import('vue').Ref<string, string>;
100
+ userDetails: import('vue').Ref<{
101
101
  id: number;
102
102
  firstName?: string | undefined;
103
103
  lastName?: string | undefined;
@@ -126,7 +126,7 @@ export declare const useItsAuthStore: import("pinia").StoreDefinition<"its-auth"
126
126
  targetEnv?: string | undefined;
127
127
  appVersion?: string | undefined;
128
128
  }>;
129
- preAuthRoute: import("vue").Ref<{
129
+ preAuthRoute: import('vue').Ref<{
130
130
  path: string;
131
131
  query: Record<string, any>;
132
132
  } | null, {
@@ -155,9 +155,9 @@ export declare const useItsAuthStore: import("pinia").StoreDefinition<"its-auth"
155
155
  getUserEmail: () => string;
156
156
  logoutSSO: () => void;
157
157
  }, never>, Pick<{
158
- accessToken: import("vue").Ref<string, string>;
159
- pkceCodeVerifier: import("vue").Ref<string, string>;
160
- userDetails: import("vue").Ref<{
158
+ accessToken: import('vue').Ref<string, string>;
159
+ pkceCodeVerifier: import('vue').Ref<string, string>;
160
+ userDetails: import('vue').Ref<{
161
161
  id: number;
162
162
  firstName?: string | undefined;
163
163
  lastName?: string | undefined;
@@ -186,7 +186,7 @@ export declare const useItsAuthStore: import("pinia").StoreDefinition<"its-auth"
186
186
  targetEnv?: string | undefined;
187
187
  appVersion?: string | undefined;
188
188
  }>;
189
- preAuthRoute: import("vue").Ref<{
189
+ preAuthRoute: import('vue').Ref<{
190
190
  path: string;
191
191
  query: Record<string, any>;
192
192
  } | null, {
@@ -0,0 +1,12 @@
1
+ export type FieldMeta = {
2
+ value: any;
3
+ label?: string;
4
+ icon?: string;
5
+ color?: string;
6
+ tooltip?: string;
7
+ action?: 'E' | 'V' | 'L' | string;
8
+ onClick?: () => void;
9
+ visible?: boolean;
10
+ vChip?: boolean;
11
+ };
12
+ export type RecordWithMeta = Record<string, FieldMeta>;
@@ -1,4 +1,4 @@
1
- import { TileRecord } from "../types/TileRecord";
1
+ import { TileRecord } from '../types/TileRecord';
2
2
  /**
3
3
  * Configuration interface for UCSD application settings.
4
4
  *
@@ -26,6 +26,8 @@ export interface UcsdConfig {
26
26
  authUrl?: string;
27
27
  ssoUrl?: string;
28
28
  accessTokenUrl?: string;
29
+ auditLogUrl?: string;
30
+ errorReportUrl?: string;
29
31
  initCallback?: () => void;
30
32
  customAuth?: () => Promise<any>;
31
33
  loginCallback?: () => Promise<any>;
package/dist/main.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * main.ts
3
+ *
4
+ * Bootstraps Vuetify and other plugins then mounts the App`
5
+ */
6
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;