@7365admin1/module-hygiene 4.11.0 → 4.12.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,11 @@
1
1
  # @7365admin1/module-hygiene
2
2
 
3
+ ## 4.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update Module Hygiene Enhancements
8
+
3
9
  ## 4.11.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -194,6 +194,10 @@ declare function useParentChecklistRepo(): {
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
196
  closeExpiredParentChecklists: () => Promise<number>;
197
+ getTodayParentChecklists: () => Promise<{
198
+ _id: ObjectId;
199
+ site: ObjectId;
200
+ }[]>;
197
201
  };
198
202
 
199
203
  declare function useParentChecklistController(): {
@@ -220,6 +224,8 @@ type TAreaChecklist = {
220
224
  units: TAreaChecklistUnits[];
221
225
  remarks?: string;
222
226
  attachment?: string[];
227
+ isScheduleTask?: boolean;
228
+ scheduleTaskId?: string | ObjectId;
223
229
  };
224
230
  type TAreaChecklistUnits = {
225
231
  unit: string | ObjectId;
@@ -297,6 +303,7 @@ declare function useUnitExportService(): {
297
303
  declare function useAreaChecklistRepo(): {
298
304
  createIndex: () => Promise<void>;
299
305
  createTextIndex: () => Promise<void>;
306
+ createUniqueIndex: () => Promise<void>;
300
307
  createAreaChecklist: (value: TCleaningScheduleArea, session?: ClientSession) => Promise<ObjectId>;
301
308
  getAllAreaChecklist: ({ page, limit, search, type, status, schedule, }: TCleaningScheduleAreaGetQuery, session?: ClientSession) => Promise<{}>;
302
309
  getAreaChecklistHistory: ({ page, limit, search, type, schedule, status, createdAt, }: {
@@ -323,6 +330,9 @@ declare function useAreaChecklistRepo(): {
323
330
  updateAreaChecklistUnits: (_id: string | ObjectId, set: number, unitId: string | ObjectId, value: TAreaChecklistUnitsUpdate, session?: ClientSession) => Promise<number>;
324
331
  getMaxSetNumberForArea: (areaId: string | ObjectId, session?: ClientSession) => Promise<any>;
325
332
  closeExpiredAreaChecklists: () => Promise<number>;
333
+ pushScheduleTaskSets: (scheduleId: string | ObjectId, areaId: string | ObjectId, scheduleTaskId: string | ObjectId, newSets: TAreaChecklist[]) => Promise<number>;
334
+ insertAutoGenSets: (scheduleId: string | ObjectId, areaId: string | ObjectId, newSets: any[]) => Promise<number>;
335
+ trimOverflowSets: () => Promise<number>;
326
336
  };
327
337
 
328
338
  declare function useAreaChecklistController(): {