@7365admin1/module-hygiene 4.3.0 → 4.5.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 +43 -1
- package/dist/index.js +1235 -705
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1076 -550
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @7365admin1/module-hygiene
|
|
2
2
|
|
|
3
|
+
## 4.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Hygiene Area and Unit Export
|
|
8
|
+
|
|
9
|
+
## 4.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Skip importing areas and units with names starting with "Sample:" in import functions
|
|
14
|
+
|
|
3
15
|
## 4.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ declare function useAreaService(): {
|
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
message: string;
|
|
88
88
|
}>;
|
|
89
|
+
exportAreas: (site: string | ObjectId) => Promise<Buffer>;
|
|
89
90
|
};
|
|
90
91
|
|
|
91
92
|
interface MulterRequest extends Request {
|
|
@@ -104,6 +105,7 @@ declare function useAreaController(): {
|
|
|
104
105
|
updateArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
105
106
|
deleteArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
106
107
|
importArea: (req: MulterRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
108
|
+
exportAreas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
107
109
|
};
|
|
108
110
|
|
|
109
111
|
type TUnit = {
|
|
@@ -141,6 +143,7 @@ declare function useUnitService(): {
|
|
|
141
143
|
}>;
|
|
142
144
|
updateUnit: (_id: string | ObjectId, value: TUnitUpdate) => Promise<number>;
|
|
143
145
|
deleteUnit: (_id: string | ObjectId) => Promise<number>;
|
|
146
|
+
exportUnits: (site: string | ObjectId) => Promise<Buffer>;
|
|
144
147
|
};
|
|
145
148
|
|
|
146
149
|
declare function useUnitRepository(): {
|
|
@@ -159,6 +162,7 @@ declare function useUnitController(): {
|
|
|
159
162
|
updateUnit: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
160
163
|
deleteUnit: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
161
164
|
importUnit: (req: MulterRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
165
|
+
exportUnits: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
162
166
|
};
|
|
163
167
|
|
|
164
168
|
type TParentChecklist = {
|
|
@@ -256,6 +260,35 @@ declare function useAreaChecklistService(): {
|
|
|
256
260
|
completeAreaChecklistUnits: (_id: string | ObjectId, set: number, unitId: string | ObjectId, value: TAreaChecklistUnitsUpdate) => Promise<void>;
|
|
257
261
|
};
|
|
258
262
|
|
|
263
|
+
interface AreaUnit {
|
|
264
|
+
unit?: string;
|
|
265
|
+
name?: string;
|
|
266
|
+
}
|
|
267
|
+
interface Area {
|
|
268
|
+
_id?: string;
|
|
269
|
+
name?: string;
|
|
270
|
+
type?: string;
|
|
271
|
+
set?: number;
|
|
272
|
+
units?: AreaUnit[];
|
|
273
|
+
status?: string;
|
|
274
|
+
createdAt?: string | Date;
|
|
275
|
+
updatedAt?: string | Date;
|
|
276
|
+
}
|
|
277
|
+
declare function useAreaExportService(): {
|
|
278
|
+
generateAreaExcel: (areas: Area[]) => Promise<Buffer>;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
interface Unit {
|
|
282
|
+
_id?: string;
|
|
283
|
+
name?: string;
|
|
284
|
+
status?: string;
|
|
285
|
+
createdAt?: string | Date;
|
|
286
|
+
updatedAt?: string | Date;
|
|
287
|
+
}
|
|
288
|
+
declare function useUnitExportService(): {
|
|
289
|
+
generateUnitExcel: (units: Unit[]) => Promise<Buffer>;
|
|
290
|
+
};
|
|
291
|
+
|
|
259
292
|
declare function useAreaChecklistRepo(): {
|
|
260
293
|
createIndex: () => Promise<void>;
|
|
261
294
|
createTextIndex: () => Promise<void>;
|
|
@@ -536,4 +569,13 @@ declare function useScheduleTaskController(): {
|
|
|
536
569
|
updateScheduleTask: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
537
570
|
};
|
|
538
571
|
|
|
539
|
-
|
|
572
|
+
declare function useQRService(): {
|
|
573
|
+
generateQRImage: (qrUrl: string) => Promise<Buffer>;
|
|
574
|
+
generateQRPDF: (qrUrl: string, title?: string) => Promise<Buffer>;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
declare function useQRController(): {
|
|
578
|
+
generateQR: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
export { MArea, MAreaChecklist, MCheckOutItem, MParentChecklist, MScheduleTask, MStock, MSupply, MUnit, TArea, TAreaChecklist, TAreaChecklistBatchCreate, TAreaChecklistCreate, TAreaChecklistUnits, TAreaChecklistUnitsUpdate, TAreaChecklistUpdate, TAreaCreate, TAreaGetQuery, TAreaUnits, TAreaUpdate, TAreaUpdateChecklist, TCheckOutItem, TCheckOutItemCreate, TCheckOutItemCreateByBatchService, TCheckOutItemCreateService, TCheckOutItemGetById, TCheckOutItemGetQuery, TCleaningScheduleArea, TCleaningScheduleAreaGetQuery, TGetStocksQuery, TParentChecklist, TParentChecklistGetQuery, TScheduleTask, TScheduleTaskCreate, TScheduleTaskGetById, TScheduleTaskGetQuery, TScheduleTaskUpdate, TStock, TStockCreate, TStockCreateService, TSupply, TSupplyCreate, TSupplyGetById, TSupplyGetQuery, TSupplyUpdate, TUnit, TUnitCreate, TUnitGetQuery, TUnitUpdate, allowedCheckOutItemStatus, allowedChecklistStatus, allowedPeriods, allowedStatus, allowedTypes, areaChecklistSchema, areaSchema, checkOutItemSchema, parentChecklistSchema, scheduleTaskSchema, stockSchema, supplySchema, unitSchema, useAreaChecklistController, useAreaChecklistRepo, useAreaChecklistService, useAreaController, useAreaExportService, useAreaRepo, useAreaService, useCheckOutItemController, useCheckOutItemRepository, useCheckOutItemService, useHygieneDashboardController, useHygieneDashboardRepository, useParentChecklistController, useParentChecklistRepo, useQRController, useQRService, useScheduleTaskController, useScheduleTaskRepository, useScheduleTaskService, useStockController, useStockRepository, useStockService, useSupplyController, useSupplyRepository, useUnitController, useUnitExportService, useUnitRepository, useUnitService };
|