@7365admin1/layer-common 3.0.21 → 3.0.23

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 (32) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/DashboardMain.vue +211 -58
  3. package/components/InvitationMain.vue +32 -3
  4. package/components/MemberMain.vue +1 -1
  5. package/components/Nfc/NFCPatrolReportMain.vue +48 -541
  6. package/components/Nfc/PatrolReport/DailyReportTab.vue +59 -0
  7. package/components/Nfc/PatrolReport/MonthlyReportTab.vue +59 -0
  8. package/components/Nfc/PatrolReport/PatrolActivityTable.vue +81 -0
  9. package/components/Nfc/PatrolReport/PatrolReportTab.vue +73 -0
  10. package/components/Nfc/PatrolReport/PatrolRouteSummary.vue +63 -0
  11. package/components/Nfc/PatrolReport/RemarksDialog.vue +37 -0
  12. package/components/Nfc/PatrolReport/ReportEmptyState.vue +24 -0
  13. package/components/Nfc/PatrolReport/ReportFilters.vue +88 -0
  14. package/components/Nfc/PatrolReport/ReportLocationHeader.vue +17 -0
  15. package/components/Nfc/PatrolReport/SummaryReportTable.vue +51 -0
  16. package/components/ScheduleTaskMain.vue +47 -12
  17. package/components/ServiceProviderMain.vue +182 -184
  18. package/components/UnitMain.vue +8 -1
  19. package/components/VisitorForm.vue +2 -0
  20. package/components/VisitorManagement.vue +31 -0
  21. package/components/VisitorSocketPopUp.vue +292 -0
  22. package/composables/useNFCPatrolDailyReport.ts +27 -0
  23. package/composables/useNFCPatrolMonthlyReport.ts +27 -0
  24. package/composables/useNFCPatrolReport.ts +38 -0
  25. package/composables/useNFCPatrolReportExport.ts +31 -0
  26. package/composables/useNFCPatrolReportFilters.ts +39 -0
  27. package/composables/useVisitor.ts +3 -0
  28. package/composables/useVisitorSocket.ts +25 -0
  29. package/package.json +2 -1
  30. package/services/nfcPatrolReport.ts +172 -0
  31. package/types/nfc-patrol-report.ts +73 -0
  32. package/types/verification.d.ts +6 -1
@@ -0,0 +1,73 @@
1
+ export type NFCPatrolReportTab = "patrol" | "daily" | "monthly";
2
+
3
+ export type NFCPatrolActivityStatus = "Completed" | "Skipped";
4
+
5
+ export interface NFCPatrolReportFilters {
6
+ route: string;
7
+ timeRange: string;
8
+ date: string;
9
+ }
10
+
11
+ export interface NFCPatrolReportExportRequest {
12
+ tab: NFCPatrolReportTab;
13
+ filters: NFCPatrolReportFilters;
14
+ }
15
+
16
+ export interface NFCPatrolReportFilterOptions {
17
+ routes: string[];
18
+ timeRanges: string[];
19
+ }
20
+
21
+ export interface NFCPatrolReportLocation {
22
+ name: string;
23
+ address: string;
24
+ }
25
+
26
+ export interface NFCPatrolRouteSummary {
27
+ routeName: string;
28
+ tolerance: number;
29
+ schedule: {
30
+ start: string;
31
+ end: string;
32
+ totalTime: string;
33
+ };
34
+ actual: {
35
+ start: string;
36
+ end: string;
37
+ totalTime: string;
38
+ };
39
+ }
40
+
41
+ export interface NFCPatrolActivity {
42
+ id: string;
43
+ checkpoint: string;
44
+ startTime: string;
45
+ endTime: string;
46
+ actualTime: string;
47
+ expectedTime: string;
48
+ status: NFCPatrolActivityStatus;
49
+ remarks?: string;
50
+ }
51
+
52
+ export interface NFCPatrolReport {
53
+ location: NFCPatrolReportLocation;
54
+ routeSummary: NFCPatrolRouteSummary | null;
55
+ activities: NFCPatrolActivity[];
56
+ }
57
+
58
+ export type NFCPatrolReportSummaryStatus = "Completed" | "Incomplete";
59
+
60
+ export interface NFCPatrolReportSummaryRow {
61
+ id: string;
62
+ routeName: string;
63
+ securityCheckSchedule: string;
64
+ checked: number;
65
+ missed: number;
66
+ status: NFCPatrolReportSummaryStatus;
67
+ }
68
+
69
+ export interface NFCPatrolSummaryReport {
70
+ location: NFCPatrolReportLocation;
71
+ title: string;
72
+ rows: NFCPatrolReportSummaryRow[];
73
+ }
@@ -1,11 +1,15 @@
1
1
  declare type TVerificationMetadata = {
2
2
  app?: string;
3
3
  role?: string;
4
+ name?: string;
5
+ org?: string;
6
+ siteId?: string;
7
+ siteName?: string;
4
8
  };
5
9
 
6
10
  declare type TMiniVerification = Pick<
7
11
  TVerification,
8
- "createdAt" | "email" | "_id" | "status"
12
+ "createdAt" | "email" | "_id" | "status" | "metadata" | "roleName"
9
13
  >;
10
14
 
11
15
  declare type TVerification = {
@@ -13,6 +17,7 @@ declare type TVerification = {
13
17
  type: string;
14
18
  email: string;
15
19
  metadata?: TVerificationMetadata;
20
+ roleName?: string;
16
21
  status?: string;
17
22
  createdAt?: string;
18
23
  updatedAt?: string | null;