@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 +6 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +390 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +390 -129
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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(): {
|