@7365admin1/module-hygiene 4.7.0 → 4.9.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 +11 -10
- package/dist/index.js +786 -375
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +720 -309
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ declare function useParentChecklistRepo(): {
|
|
|
193
193
|
createParentChecklist: (value: TParentChecklist, session?: ClientSession) => Promise<ObjectId | ObjectId[]>;
|
|
194
194
|
getAllParentChecklist: ({ page, limit, search, site, startDate, endDate, status, }: TParentChecklistGetQuery) => Promise<{}>;
|
|
195
195
|
updateParentChecklistStatuses: (_id: string | ObjectId, status: (typeof allowedStatus)[number], session?: ClientSession) => Promise<number>;
|
|
196
|
+
closeExpiredParentChecklists: () => Promise<number>;
|
|
196
197
|
};
|
|
197
198
|
|
|
198
199
|
declare function useParentChecklistController(): {
|
|
@@ -320,6 +321,7 @@ declare function useAreaChecklistRepo(): {
|
|
|
320
321
|
updateAreaChecklistStatus: (_id: string | ObjectId, status: (typeof allowedStatus)[number], session?: ClientSession) => Promise<number>;
|
|
321
322
|
updateAreaChecklistUnits: (_id: string | ObjectId, set: number, unitId: string | ObjectId, value: TAreaChecklistUnitsUpdate, session?: ClientSession) => Promise<number>;
|
|
322
323
|
getMaxSetNumberForArea: (areaId: string | ObjectId, session?: ClientSession) => Promise<any>;
|
|
324
|
+
closeExpiredAreaChecklists: () => Promise<number>;
|
|
323
325
|
};
|
|
324
326
|
|
|
325
327
|
declare function useAreaChecklistController(): {
|
|
@@ -329,6 +331,7 @@ declare function useAreaChecklistController(): {
|
|
|
329
331
|
getAreaChecklistHistoryDetails: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
330
332
|
getAreaChecklistUnits: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
331
333
|
updateAreaChecklistUnits: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
334
|
+
downloadChecklistPdf: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
332
335
|
};
|
|
333
336
|
|
|
334
337
|
type TSupply = {
|
|
@@ -449,8 +452,8 @@ type TCheckOutItem = {
|
|
|
449
452
|
};
|
|
450
453
|
type TCheckOutItemCreate = Pick<TCheckOutItem, "site" | "supply" | "supplyName" | "qty" | "attachment" | "createdBy" | "createdByName">;
|
|
451
454
|
type TCheckOutItemCreateService = Pick<TCheckOutItem, "site" | "supply" | "qty" | "attachment" | "createdBy">;
|
|
452
|
-
type TCheckOutItemCreateByBatchService = Pick<TCheckOutItem, "site" | "
|
|
453
|
-
items: Pick<TCheckOutItem, "supply" | "qty">[];
|
|
455
|
+
type TCheckOutItemCreateByBatchService = Pick<TCheckOutItem, "site" | "createdBy"> & {
|
|
456
|
+
items: Pick<TCheckOutItem, "supply" | "qty" | "attachment">[];
|
|
454
457
|
};
|
|
455
458
|
type TCheckOutItemGetQuery = {
|
|
456
459
|
page?: number;
|
|
@@ -501,8 +504,7 @@ type TScheduleTask = {
|
|
|
501
504
|
site: string | ObjectId;
|
|
502
505
|
title: string;
|
|
503
506
|
time: string;
|
|
504
|
-
|
|
505
|
-
endDate?: string;
|
|
507
|
+
dates: string[];
|
|
506
508
|
description?: string;
|
|
507
509
|
areas: {
|
|
508
510
|
name: string;
|
|
@@ -514,21 +516,20 @@ type TScheduleTask = {
|
|
|
514
516
|
updatedAt?: string | Date;
|
|
515
517
|
deletedAt?: string | Date;
|
|
516
518
|
};
|
|
517
|
-
type TScheduleTaskCreate = Pick<TScheduleTask, "site" | "title" | "time" | "
|
|
519
|
+
type TScheduleTaskCreate = Pick<TScheduleTask, "site" | "title" | "time" | "dates" | "description" | "areas" | "createdBy">;
|
|
518
520
|
type TScheduleTaskGetQuery = {
|
|
519
521
|
page?: number;
|
|
520
522
|
limit?: number;
|
|
521
523
|
search?: string;
|
|
522
524
|
} & Pick<TScheduleTask, "site">;
|
|
523
|
-
type TScheduleTaskGetById = Pick<TScheduleTask, "title" | "time" | "
|
|
524
|
-
type TScheduleTaskUpdate = Partial<Pick<TScheduleTask, "title" | "time" | "
|
|
525
|
+
type TScheduleTaskGetById = Pick<TScheduleTask, "title" | "time" | "dates" | "description" | "areas" | "status" | "createdBy" | "createdAt">;
|
|
526
|
+
type TScheduleTaskUpdate = Partial<Pick<TScheduleTask, "title" | "time" | "dates" | "description" | "areas">>;
|
|
525
527
|
declare const scheduleTaskSchema: Joi.ObjectSchema<any>;
|
|
526
528
|
declare function MScheduleTask(value: TScheduleTaskCreate): {
|
|
527
529
|
site: string | ObjectId;
|
|
528
530
|
title: string;
|
|
529
531
|
time: string;
|
|
530
|
-
|
|
531
|
-
endDate: string | undefined;
|
|
532
|
+
dates: string[];
|
|
532
533
|
description: string | undefined;
|
|
533
534
|
areas: {
|
|
534
535
|
name: string;
|
|
@@ -575,7 +576,7 @@ declare function useScheduleTaskController(): {
|
|
|
575
576
|
|
|
576
577
|
declare function useQRService(): {
|
|
577
578
|
generateQRImage: (qrUrl: string) => Promise<Buffer>;
|
|
578
|
-
generateQRPDF: (qrUrl: string, title?: string) => Promise<Buffer>;
|
|
579
|
+
generateQRPDF: (qrUrl: string, title?: string, subtitle?: string) => Promise<Buffer>;
|
|
579
580
|
};
|
|
580
581
|
|
|
581
582
|
declare function useQRController(): {
|