@7365admin1/module-hygiene 4.21.0 → 4.22.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +30 -8
- package/dist/index.js +699 -392
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +714 -406
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as mongodb from 'mongodb';
|
|
2
2
|
import { ObjectId, ClientSession } from 'mongodb';
|
|
3
|
+
import { TAppServiceType, AppServiceType } from '@7365admin1/core';
|
|
3
4
|
import { Request, Response, NextFunction } from 'express';
|
|
4
5
|
import Joi from 'joi';
|
|
5
|
-
import { TAppServiceType, AppServiceType } from '@7365admin1/core';
|
|
6
6
|
import * as bson from 'bson';
|
|
7
7
|
|
|
8
8
|
declare const allowedTypes: string[];
|
|
@@ -10,19 +10,41 @@ declare const allowedStatus: string[];
|
|
|
10
10
|
declare const allowedPeriods: string[];
|
|
11
11
|
|
|
12
12
|
declare function useHygieneDashboardRepository(): {
|
|
13
|
-
getHygieneDashboard: ({ site,
|
|
13
|
+
getHygieneDashboard: ({ site, serviceType, period, }: {
|
|
14
|
+
site: string | ObjectId;
|
|
15
|
+
serviceType: TAppServiceType;
|
|
16
|
+
period?: string | undefined;
|
|
17
|
+
}) => Promise<{}>;
|
|
18
|
+
getWeeklyActivity: ({ site, serviceType, }: {
|
|
14
19
|
site: string | ObjectId;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
serviceType: TAppServiceType;
|
|
21
|
+
}) => Promise<{}>;
|
|
22
|
+
getTodayTaskSchedule: ({ site, serviceType, page, limit, }: {
|
|
23
|
+
site: string | ObjectId;
|
|
24
|
+
serviceType: TAppServiceType;
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
}) => Promise<{}>;
|
|
28
|
+
getStaffAttendance: ({ site, serviceType, page, limit, }: {
|
|
29
|
+
site: string | ObjectId;
|
|
30
|
+
serviceType: TAppServiceType;
|
|
31
|
+
page?: number | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
}) => Promise<{}>;
|
|
34
|
+
getRecentFeedbacks: ({ site, serviceType, page, limit, }: {
|
|
35
|
+
site: string | ObjectId;
|
|
36
|
+
serviceType: TAppServiceType;
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
limit?: number | undefined;
|
|
21
39
|
}) => Promise<{}>;
|
|
22
40
|
};
|
|
23
41
|
|
|
24
42
|
declare function useHygieneDashboardController(): {
|
|
25
43
|
getHygieneDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
44
|
+
getWeeklyActivity: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
45
|
+
getTodayTaskSchedule: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
46
|
+
getStaffAttendance: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
47
|
+
getRecentFeedbacks: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
26
48
|
};
|
|
27
49
|
|
|
28
50
|
type TAreaUnits = {
|