@7365admin1/layer-common 3.0.1 → 3.0.3

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.
@@ -95,11 +95,8 @@ export default function usetFacility() {
95
95
  count: number;
96
96
  permanentRemarks: string;
97
97
  }[] = [];
98
- isBookingUnitLimitEnabled: boolean;
99
98
  bookingUnitLimit: number | null;
100
- isMaxNumberGuestLimitEnabled: boolean;
101
99
  maxNumberGuestLimit: number | null;
102
- isCancelAllowedLimitEnabled: boolean;
103
100
  daysAllowedCancel: number | null;
104
101
 
105
102
  constructor(
@@ -191,11 +188,8 @@ export default function usetFacility() {
191
188
  isBookingPolicyEnabled = false,
192
189
  bookingPolicy = "",
193
190
  securityCheckList = [],
194
- isBookingUnitLimitEnabled = false,
195
191
  bookingUnitLimit = null,
196
- isMaxNumberGuestLimitEnabled = false,
197
192
  maxNumberGuestLimit = null,
198
- isCancelAllowedLimitEnabled = false,
199
193
  daysAllowedCancel = null,
200
194
  } = {} as TFacility
201
195
  ) {
@@ -256,11 +250,8 @@ export default function usetFacility() {
256
250
  this.isCancellationAutoRefundEnabled = isCancellationAutoRefundEnabled;
257
251
  this.bookingPolicy = bookingPolicy;
258
252
  this.securityCheckList = securityCheckList ?? [];
259
- this.isBookingUnitLimitEnabled = isBookingUnitLimitEnabled || false;
260
253
  this.bookingUnitLimit = bookingUnitLimit ?? null;
261
- this.isMaxNumberGuestLimitEnabled = isMaxNumberGuestLimitEnabled || false;
262
254
  this.maxNumberGuestLimit = maxNumberGuestLimit ?? null;
263
- this.isCancelAllowedLimitEnabled = isCancelAllowedLimitEnabled || false;
264
255
  this.daysAllowedCancel = daysAllowedCancel ?? null;
265
256
  this.isBookingPolicyEnabled = isBookingPolicyEnabled || false;
266
257
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "3.0.1",
5
+ "version": "3.0.3",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "publishConfig": {
@@ -1,5 +1,15 @@
1
1
  declare type TDashboardValues = "today" | "thisWeek" | "thisMonth";
2
2
 
3
+ declare type TServiceType =
4
+ | "real_estate_developer"
5
+ | "property_management_agency"
6
+ | "security_agency"
7
+ | "cleaning_services"
8
+ | "mechanical_electrical_services"
9
+ | "landscaping_services"
10
+ | "pest_control_services"
11
+ | "pool_maintenance_services";
12
+
3
13
  declare type TDashboardCardValue = {
4
14
  key: string;
5
15
  periodKey: string;
@@ -8,4 +18,60 @@ declare type TDashboardCardValue = {
8
18
  color: string;
9
19
  };
10
20
 
21
+ declare type TDashboardMetric = {
22
+ count?: number;
23
+ percentage?: number;
24
+ overdue?: number;
25
+ inProgress?: number;
26
+ pending?: number;
27
+ highSeverity?: number;
28
+ currentlyOnSite?: number;
29
+ lowStock?: number;
30
+ outOfStock?: number;
31
+ completed?: number;
32
+ total?: number;
33
+ };
34
+
35
+ declare type THygieneDashboardData = {
36
+ openWorkOrder?: TDashboardMetric;
37
+ supplyAlert?: TDashboardMetric;
38
+ taskCompleted?: TDashboardMetric;
39
+ };
40
+
41
+ declare type THygieneWeeklyActivityItem = {
42
+ day: string;
43
+ workOrder: number;
44
+ taskCompleted: number;
45
+ };
46
+
47
+ declare type THygieneTaskScheduleItem = {
48
+ _id: string;
49
+ name: string;
50
+ type: string;
51
+ status: string;
52
+ };
53
+
54
+ declare type THygieneAttendanceItem = {
55
+ _id: string;
56
+ name?: string;
57
+ role?: string;
58
+ status?: string;
59
+ [key: string]: any;
60
+ };
61
+
62
+ declare type THygieneFeedbackItem = {
63
+ _id: string;
64
+ subject: string;
65
+ app: string;
66
+ description: string;
67
+ status: string;
68
+ createdAt: string;
69
+ createdByName: string;
70
+ };
71
+
72
+ declare type THygienePaginatedResponse<T> = {
73
+ items: T[];
74
+ pages: number;
75
+ pageRange: string;
76
+ };
11
77
 
@@ -92,11 +92,8 @@ declare type TFacility = {
92
92
  count: number;
93
93
  permanentRemarks: string;
94
94
  }[];
95
- isBookingUnitLimitEnabled: boolean;
96
95
  bookingUnitLimit: number | null;
97
- isMaxNumberGuestLimitEnabled: boolean;
98
96
  maxNumberGuestLimit: number | null;
99
- isCancelAllowedLimitEnabled: boolean;
100
97
  daysAllowedCancel: number | null;
101
98
  isBookingPolicyEnabled: boolean;
102
99
  updatedBy?: string;
@@ -3,8 +3,14 @@ declare type TVisitor = {
3
3
  name?: string;
4
4
  type: TVisitorType;
5
5
  company?: string | "";
6
- block?: number | string;
7
- level?: string;
6
+ block?: {
7
+ name: string;
8
+ _id: string;
9
+ };
10
+ level?: {
11
+ name: string;
12
+ _id: string;
13
+ };
8
14
  unit?: string;
9
15
  unitName?: string; // only for display purpose
10
16
  contact: string;