@7365admin1/module-hygiene 4.6.0 → 4.8.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @7365admin1/module-hygiene
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update Hygiene Cleaning Schedule Checklist
8
+
9
+ ## 4.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Update Cleaning Schedule Area fields
14
+
3
15
  ## 4.6.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -217,6 +217,8 @@ type TCleaningScheduleArea = {
217
217
  type TAreaChecklist = {
218
218
  set: number;
219
219
  units: TAreaChecklistUnits[];
220
+ remarks?: string;
221
+ attachment?: string[];
220
222
  };
221
223
  type TAreaChecklistUnits = {
222
224
  unit: string | ObjectId;
@@ -242,7 +244,7 @@ type TCleaningScheduleAreaGetQuery = {
242
244
  status?: (typeof allowedStatus)[number] | "all";
243
245
  } & Pick<TCleaningScheduleArea, "schedule">;
244
246
  type TAreaChecklistUpdate = Pick<TCleaningScheduleArea, "checklist">;
245
- type TAreaChecklistUnitsUpdate = Pick<TAreaChecklistUnits, "approve" | "reject" | "remarks" | "completedBy">;
247
+ type TAreaChecklistUnitsUpdate = Pick<TAreaChecklistUnits, "approve" | "reject" | "remarks" | "completedBy"> & Pick<TAreaChecklist, "attachment">;
246
248
  declare const areaChecklistSchema: Joi.ObjectSchema<any>;
247
249
  declare function MAreaChecklist(value: TCleaningScheduleArea): {
248
250
  schedule: string | ObjectId;
@@ -327,6 +329,7 @@ declare function useAreaChecklistController(): {
327
329
  getAreaChecklistHistoryDetails: (req: Request, res: Response, next: NextFunction) => Promise<void>;
328
330
  getAreaChecklistUnits: (req: Request, res: Response, next: NextFunction) => Promise<void>;
329
331
  updateAreaChecklistUnits: (req: Request, res: Response, next: NextFunction) => Promise<void>;
332
+ downloadChecklistPdf: (req: Request, res: Response, next: NextFunction) => Promise<void>;
330
333
  };
331
334
 
332
335
  type TSupply = {