@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 +12 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +584 -283
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +518 -217
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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 = {
|