@7365admin1/module-hygiene 4.8.0 → 4.10.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.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update Hygiene App Enhancements
8
+
9
+ ## 4.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Update Hygiene App Enhancements
14
+
3
15
  ## 4.8.0
4
16
 
5
17
  ### Minor Changes
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(): {
@@ -450,8 +452,8 @@ type TCheckOutItem = {
450
452
  };
451
453
  type TCheckOutItemCreate = Pick<TCheckOutItem, "site" | "supply" | "supplyName" | "qty" | "attachment" | "createdBy" | "createdByName">;
452
454
  type TCheckOutItemCreateService = Pick<TCheckOutItem, "site" | "supply" | "qty" | "attachment" | "createdBy">;
453
- type TCheckOutItemCreateByBatchService = Pick<TCheckOutItem, "site" | "attachment" | "createdBy"> & {
454
- items: Pick<TCheckOutItem, "supply" | "qty">[];
455
+ type TCheckOutItemCreateByBatchService = Pick<TCheckOutItem, "site" | "createdBy"> & {
456
+ items: Pick<TCheckOutItem, "supply" | "qty" | "attachment">[];
455
457
  };
456
458
  type TCheckOutItemGetQuery = {
457
459
  page?: number;
@@ -502,8 +504,7 @@ type TScheduleTask = {
502
504
  site: string | ObjectId;
503
505
  title: string;
504
506
  time: string;
505
- startDate: string;
506
- endDate?: string;
507
+ dates: string[];
507
508
  description?: string;
508
509
  areas: {
509
510
  name: string;
@@ -515,21 +516,20 @@ type TScheduleTask = {
515
516
  updatedAt?: string | Date;
516
517
  deletedAt?: string | Date;
517
518
  };
518
- type TScheduleTaskCreate = Pick<TScheduleTask, "site" | "title" | "time" | "startDate" | "endDate" | "description" | "areas" | "createdBy">;
519
+ type TScheduleTaskCreate = Pick<TScheduleTask, "site" | "title" | "time" | "dates" | "description" | "areas" | "createdBy">;
519
520
  type TScheduleTaskGetQuery = {
520
521
  page?: number;
521
522
  limit?: number;
522
523
  search?: string;
523
524
  } & Pick<TScheduleTask, "site">;
524
- type TScheduleTaskGetById = Pick<TScheduleTask, "title" | "time" | "startDate" | "endDate" | "description" | "areas" | "status" | "createdBy" | "createdAt">;
525
- type TScheduleTaskUpdate = Partial<Pick<TScheduleTask, "title" | "time" | "startDate" | "endDate" | "description" | "areas">>;
525
+ type TScheduleTaskGetById = Pick<TScheduleTask, "title" | "time" | "dates" | "description" | "areas" | "status" | "createdBy" | "createdAt">;
526
+ type TScheduleTaskUpdate = Partial<Pick<TScheduleTask, "title" | "time" | "dates" | "description" | "areas">>;
526
527
  declare const scheduleTaskSchema: Joi.ObjectSchema<any>;
527
528
  declare function MScheduleTask(value: TScheduleTaskCreate): {
528
529
  site: string | ObjectId;
529
530
  title: string;
530
531
  time: string;
531
- startDate: string;
532
- endDate: string | undefined;
532
+ dates: string[];
533
533
  description: string | undefined;
534
534
  areas: {
535
535
  name: string;
@@ -576,7 +576,7 @@ declare function useScheduleTaskController(): {
576
576
 
577
577
  declare function useQRService(): {
578
578
  generateQRImage: (qrUrl: string) => Promise<Buffer>;
579
- generateQRPDF: (qrUrl: string, title?: string) => Promise<Buffer>;
579
+ generateQRPDF: (qrUrl: string, title?: string, subtitle?: string) => Promise<Buffer>;
580
580
  };
581
581
 
582
582
  declare function useQRController(): {