@iservice365/module-hygiene 0.0.1 → 0.1.1

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
  # @iservice365/module-hygiene
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 41083ab: Dependencies - update
8
+
9
+ ## 0.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 7fe7aae: Cleaning check list - initial implementation
14
+
3
15
  ## 0.0.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,2 +1,504 @@
1
+ import Joi from 'joi';
2
+ import * as mongodb from 'mongodb';
3
+ import { ObjectId, ClientSession } from 'mongodb';
4
+ import * as bson from 'bson';
5
+ import { Request, Response, NextFunction } from 'express';
1
6
 
2
- export { }
7
+ interface TManageAreaChecklist {
8
+ _id: string | ObjectId;
9
+ name: string;
10
+ }
11
+ type TArea = {
12
+ _id?: ObjectId;
13
+ name: string;
14
+ site?: string | ObjectId;
15
+ createdBy?: string | ObjectId;
16
+ checklist?: TManageAreaChecklist[];
17
+ status?: string;
18
+ createdAt?: Date | string;
19
+ updatedAt?: Date | string;
20
+ deletedAt?: Date | string;
21
+ };
22
+ type TAreaUpdate = Pick<TArea, "name">;
23
+ type TAreaUpdateChecklist = NonNullable<Pick<TArea, "checklist">>;
24
+ declare const areaSchema: Joi.ObjectSchema<any>;
25
+ declare function MArea(value: TArea): {
26
+ name: string;
27
+ site: string | ObjectId | undefined;
28
+ createdBy: string | ObjectId | undefined;
29
+ checklist: TManageAreaChecklist[] | undefined;
30
+ status: string;
31
+ createdAt: Date;
32
+ updatedAt: string | Date;
33
+ deletedAt: string | Date;
34
+ };
35
+
36
+ declare function useAreaRepository(): {
37
+ createIndex: () => Promise<void>;
38
+ createTextIndex: () => Promise<void>;
39
+ createUniqueIndex: () => Promise<void>;
40
+ createArea: (value: TArea, session?: ClientSession) => Promise<ObjectId>;
41
+ getAreas: ({ page, limit, search, startDate, endDate, site, }: {
42
+ page?: number | undefined;
43
+ limit?: number | undefined;
44
+ search?: string | undefined;
45
+ startDate?: string | Date | undefined;
46
+ endDate?: string | Date | undefined;
47
+ site?: string | ObjectId | undefined;
48
+ }) => Promise<{}>;
49
+ getAreaById: (_id: string | ObjectId) => Promise<{}>;
50
+ getAreaByName: (name: string, site?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
51
+ updateArea: (_id: string | ObjectId, value: TAreaUpdate) => Promise<number>;
52
+ updateAreaChecklist: (_id: string | ObjectId, value: TAreaUpdateChecklist) => Promise<number>;
53
+ deleteArea: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
54
+ };
55
+
56
+ declare function useAreaService(): {
57
+ uploadByFile: ({ dataJson, createdBy, site, }: {
58
+ dataJson: string;
59
+ createdBy: string | ObjectId;
60
+ site: string | ObjectId;
61
+ }) => Promise<{
62
+ message: string;
63
+ }>;
64
+ };
65
+
66
+ interface MulterRequest extends Request {
67
+ file?: {
68
+ buffer: Buffer;
69
+ originalname: string;
70
+ mimetype: string;
71
+ size: number;
72
+ };
73
+ }
74
+
75
+ declare function useAreaController(): {
76
+ createArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
77
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
78
+ getAreaById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
79
+ updateArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
80
+ updateAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
81
+ deleteArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
82
+ uploadByFile: (req: MulterRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
83
+ };
84
+
85
+ interface TToiletLocationChecklist {
86
+ _id: string | ObjectId;
87
+ name: string;
88
+ }
89
+ interface TGetToiletLocationsQuery {
90
+ page?: number;
91
+ limit?: number;
92
+ search?: string;
93
+ sort?: Record<string, any>;
94
+ startDate?: Date | string;
95
+ endDate?: Date | string;
96
+ site: ObjectId | string;
97
+ }
98
+ type TToiletLocation = {
99
+ _id?: ObjectId;
100
+ name: string;
101
+ createdBy?: string | ObjectId;
102
+ checklist?: TToiletLocationChecklist[];
103
+ status?: string;
104
+ site?: string | ObjectId;
105
+ createdAt?: string | Date;
106
+ updatedAt?: string | Date;
107
+ deletedAt?: Date | string;
108
+ };
109
+ type TToiletUpdateChecklist = NonNullable<Pick<TToiletLocation, "checklist">>;
110
+ declare const toiletLocationSchema: Joi.ObjectSchema<any>;
111
+ declare function MToiletLocation(value: TToiletLocation): {
112
+ name: string;
113
+ site: string | ObjectId | undefined;
114
+ createdBy: string | ObjectId | undefined;
115
+ checklist: TToiletLocationChecklist[] | undefined;
116
+ status: string;
117
+ createdAt: Date;
118
+ updatedAt: string | Date;
119
+ deletedAt: string | Date;
120
+ };
121
+
122
+ declare function useToiletLocationRepository(): {
123
+ createIndexes: () => Promise<void>;
124
+ createUniqueIndex: () => Promise<void>;
125
+ getToiletLocations: ({ page, limit, search, sort, startDate, endDate, site, }: {
126
+ page?: number | undefined;
127
+ limit?: number | undefined;
128
+ search?: string | undefined;
129
+ sort?: Record<string, any> | undefined;
130
+ startDate?: string | Date | undefined;
131
+ endDate?: string | Date | undefined;
132
+ site?: string | ObjectId | undefined;
133
+ }) => Promise<{}>;
134
+ create: (value: TToiletLocation, session?: ClientSession) => Promise<ObjectId>;
135
+ updateToiletLocation: (_id: string | ObjectId, value: TToiletLocation) => Promise<number>;
136
+ deleteToiletLocation: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
137
+ getToiletLocationByName: (name: string, site?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
138
+ getToiletLocationById: (_id: string | ObjectId) => Promise<{}>;
139
+ updateToiletLocationChecklist: (_id: string | ObjectId, value: TToiletUpdateChecklist) => Promise<number>;
140
+ };
141
+
142
+ declare function useToiletLocationService(): {
143
+ uploadByFile: ({ dataJson, createdBy, site, }: {
144
+ dataJson: string;
145
+ createdBy: string | ObjectId;
146
+ site: string | ObjectId;
147
+ }) => Promise<{
148
+ message: string;
149
+ }>;
150
+ };
151
+
152
+ declare function useToiletLocationController(): {
153
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
154
+ createToiletLocation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
155
+ updateToiletLocation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
156
+ deleteToiletLocation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
157
+ updateToiletLocationChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
158
+ getToiletLocationById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
159
+ uploadByFile: (req: MulterRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
160
+ };
161
+
162
+ declare const allowedTypes: string[];
163
+ declare const allowedStatus: string[];
164
+ interface TParentChecklistStatus {
165
+ type: (typeof allowedTypes)[number];
166
+ site: string | ObjectId;
167
+ status: (typeof allowedStatus)[number];
168
+ completedAt: string | Date;
169
+ }
170
+ type TParentChecklist = {
171
+ _id?: ObjectId;
172
+ date: Date;
173
+ status?: TParentChecklistStatus[];
174
+ createdAt?: Date | string;
175
+ updatedAt?: Date | string;
176
+ deletedAt?: Date | string;
177
+ };
178
+ declare const parentChecklistSchema: Joi.ObjectSchema<any>;
179
+ declare function MParentChecklist(value: TParentChecklist): {
180
+ date: Date;
181
+ status: TParentChecklistStatus[] | undefined;
182
+ createdAt: Date;
183
+ updatedAt: string | Date;
184
+ };
185
+
186
+ declare function useParentChecklistRepo(): {
187
+ createIndex: () => Promise<void>;
188
+ createParentChecklist: (value: TParentChecklist, session?: ClientSession) => Promise<ObjectId>;
189
+ getAllParentChecklist: ({ page, limit, search, site, type, startDate, endDate, }: {
190
+ page?: number | undefined;
191
+ limit?: number | undefined;
192
+ search?: string | undefined;
193
+ site: ObjectId | string;
194
+ type: (typeof allowedTypes)[number];
195
+ startDate?: string | Date | undefined;
196
+ endDate?: string | Date | undefined;
197
+ }) => Promise<{}>;
198
+ updateParentChecklistStatuses: (date?: Date) => Promise<mongodb.BulkWriteResult | null>;
199
+ };
200
+
201
+ declare function useParentChecklistController(): {
202
+ createParentChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
203
+ getAllParentChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
204
+ };
205
+
206
+ interface TUnit {
207
+ _id?: ObjectId;
208
+ name: string;
209
+ site?: string | ObjectId;
210
+ createdBy?: string | ObjectId;
211
+ status?: string;
212
+ createdAt?: string | Date;
213
+ updatedAt?: string | Date;
214
+ deletedAt?: string | Date;
215
+ }
216
+ type TUnitUpdate = Partial<Pick<TUnit, "name">>;
217
+ interface TGetUnitsQuery {
218
+ page?: number;
219
+ limit?: number;
220
+ search?: string;
221
+ startDate?: Date | string;
222
+ endDate?: Date | string;
223
+ site: ObjectId | string;
224
+ }
225
+ declare const unitSchema: Joi.ObjectSchema<any>;
226
+ declare function MUnit(value: TUnit): {
227
+ name: string;
228
+ createdBy: string | ObjectId | undefined;
229
+ site: string | ObjectId | undefined;
230
+ status: string;
231
+ createdAt: Date;
232
+ updatedAt: string | Date;
233
+ deletedAt: string | Date;
234
+ };
235
+
236
+ declare function useUnitService(): {
237
+ uploadByFile: ({ dataJson, createdBy, site, }: {
238
+ dataJson: string;
239
+ createdBy: string | ObjectId;
240
+ site: string | ObjectId;
241
+ }) => Promise<{
242
+ message: string;
243
+ }>;
244
+ };
245
+
246
+ declare function useUnitRepository(): {
247
+ createIndex: () => Promise<void>;
248
+ createTextIndex: () => Promise<void>;
249
+ createUniqueIndex: () => Promise<void>;
250
+ createUnit: (value: TUnit, session?: ClientSession) => Promise<ObjectId>;
251
+ getUnits: ({ page, limit, search, startDate, endDate, site, }: TGetUnitsQuery) => Promise<{}>;
252
+ getUnitByName: (name: string, site?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
253
+ getUnitById: (id: string | ObjectId, site?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
254
+ updateUnit: (_id: string | ObjectId, value: TUnitUpdate) => Promise<number>;
255
+ deleteUnit: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
256
+ };
257
+
258
+ declare function useUnitController(): {
259
+ createUnit: (req: Request, res: Response, next: NextFunction) => Promise<void>;
260
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
261
+ updateUnit: (req: Request, res: Response, next: NextFunction) => Promise<void>;
262
+ deleteUnit: (req: Request, res: Response, next: NextFunction) => Promise<void>;
263
+ uploadByFile: (req: MulterRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
264
+ };
265
+
266
+ interface TScheduleTaskAreaCheckList {
267
+ _id: string | ObjectId;
268
+ name: string;
269
+ }
270
+ interface TGetScheduleTaskAreasQuery {
271
+ page?: number;
272
+ limit?: number;
273
+ search?: string;
274
+ sort?: Record<string, any>;
275
+ startDate?: Date | string;
276
+ endDate?: Date | string;
277
+ site: ObjectId | string;
278
+ }
279
+ type TScheduleTaskArea = {
280
+ _id?: ObjectId;
281
+ name: string;
282
+ site?: string | ObjectId;
283
+ createdBy?: string | ObjectId;
284
+ checklist?: TScheduleTaskAreaCheckList[];
285
+ status?: string;
286
+ createdAt?: Date | string;
287
+ updatedAt?: Date | string;
288
+ deletedAt?: Date | string;
289
+ };
290
+ declare const scheduleTaskAreaSchema: Joi.ObjectSchema<any>;
291
+ declare function MScheduleTaskArea(value: TScheduleTaskArea): {
292
+ name: string;
293
+ site: string | ObjectId | undefined;
294
+ createdBy: string | ObjectId | undefined;
295
+ checklist: TScheduleTaskAreaCheckList[] | undefined;
296
+ status: string;
297
+ createdAt: Date;
298
+ updatedAt: string | Date;
299
+ deletedAt: string | Date;
300
+ };
301
+
302
+ declare function useScheduleTaskAreaRepository(): {
303
+ createUniqueIndex: () => Promise<void>;
304
+ createScheduleTaskArea: (value: TScheduleTaskArea, session?: ClientSession) => Promise<ObjectId>;
305
+ updateScheduleTaskArea: (_id: string | ObjectId, params: TScheduleTaskArea) => Promise<number>;
306
+ deleteScheduleTaskArea: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
307
+ getScheduleTaskAreas: ({ page, limit, search, startDate, endDate, site, }: {
308
+ page?: number | undefined;
309
+ limit?: number | undefined;
310
+ search?: string | undefined;
311
+ startDate?: string | Date | undefined;
312
+ endDate?: string | Date | undefined;
313
+ site?: string | ObjectId | undefined;
314
+ }) => Promise<{}>;
315
+ createIndexes: () => Promise<void>;
316
+ getScheduleTaskAreaByName: (name: string, site?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
317
+ getScheduleTaskAreaById: (id: string | ObjectId, site?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
318
+ getAreaById: (_id: string | ObjectId) => Promise<{}>;
319
+ };
320
+
321
+ declare function useScheduleTaskAreaService(): {
322
+ uploadByFile: ({ dataJson, createdBy, site, }: {
323
+ dataJson: string;
324
+ createdBy: string | ObjectId;
325
+ site: string | ObjectId;
326
+ }) => Promise<{
327
+ message: string;
328
+ }>;
329
+ };
330
+
331
+ declare function useScheduleTaskAreaController(): {
332
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
333
+ getAreaById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
334
+ createScheduleTaskArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
335
+ updateScheduleTaskArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
336
+ deleteScheduleTaskArea: (req: Request, res: Response, next: NextFunction) => Promise<void>;
337
+ uploadByFile: (req: MulterRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
338
+ };
339
+
340
+ type TAreaChecklist = {
341
+ _id?: ObjectId;
342
+ type: (typeof allowedTypes)[number];
343
+ site: string | ObjectId;
344
+ parentChecklist: string | ObjectId;
345
+ area: string | ObjectId;
346
+ name?: string;
347
+ metadata?: TAreaChecklistMetadata;
348
+ status?: (typeof allowedStatus)[number];
349
+ createdBy?: string | ObjectId;
350
+ createdAt?: Date | string;
351
+ acceptedBy?: string | ObjectId;
352
+ acceptedAt?: Date | string;
353
+ startedAt?: Date | string;
354
+ endedAt?: Date | string;
355
+ signature?: string;
356
+ updatedAt?: Date | string;
357
+ };
358
+ type TAreaChecklistMetadata = {
359
+ attachments?: string[];
360
+ };
361
+ type TAreaChecklistCreate = Pick<TAreaChecklist, "type" | "site" | "parentChecklist" | "createdBy"> & {
362
+ areas: Array<{
363
+ area: string | ObjectId;
364
+ name?: string;
365
+ }>;
366
+ };
367
+ declare const areaChecklistSchema: Joi.ObjectSchema<any>;
368
+ declare function MAreaChecklist(value: TAreaChecklist): {
369
+ type: string;
370
+ site: string | ObjectId;
371
+ parentChecklist: string | ObjectId;
372
+ area: string | ObjectId;
373
+ name: string;
374
+ status: string;
375
+ createdBy: string | ObjectId;
376
+ createdAt: Date;
377
+ acceptedBy: string | ObjectId;
378
+ acceptedAt: string | Date;
379
+ startedAt: string | Date;
380
+ endedAt: string | Date;
381
+ signature: string;
382
+ updatedAt: string | Date;
383
+ };
384
+
385
+ declare function useAreaChecklistRepo(): {
386
+ createIndex: () => Promise<void>;
387
+ createTextIndex: () => Promise<void>;
388
+ createAreaChecklist: (value: TAreaChecklist, session?: ClientSession) => Promise<ObjectId>;
389
+ getAllAreaChecklist: ({ page, limit, search, site, type, parentChecklist, }: {
390
+ page?: number | undefined;
391
+ limit?: number | undefined;
392
+ search?: string | undefined;
393
+ site: string | ObjectId;
394
+ type: (typeof allowedTypes)[number];
395
+ parentChecklist: string | ObjectId;
396
+ }) => Promise<{}>;
397
+ getAreaChecklistHistory: ({ page, limit, search, site, type, parentChecklist, status, createdAt, user, }: {
398
+ page?: number | undefined;
399
+ limit?: number | undefined;
400
+ search?: string | undefined;
401
+ site: string | ObjectId;
402
+ type: (typeof allowedTypes)[number];
403
+ parentChecklist: string | ObjectId;
404
+ status?: string | undefined;
405
+ createdAt?: string | Date | undefined;
406
+ user?: string | ObjectId | undefined;
407
+ }) => Promise<{}>;
408
+ getAreaChecklistHistoryDetails: (_id: string | ObjectId) => Promise<{}>;
409
+ acceptAreaChecklist: (_id: string | ObjectId, acceptedBy: string | ObjectId) => Promise<number>;
410
+ attachImageAreaChecklist: (_id: string | ObjectId, attachments: string[], session?: ClientSession) => Promise<number>;
411
+ submitAreaChecklist: (_id: string | ObjectId, signature: string) => Promise<number>;
412
+ completeAreaChecklist: (_id: string | ObjectId, signature: string) => Promise<number>;
413
+ };
414
+
415
+ declare function useAreaChecklistController(): {
416
+ createAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
417
+ getAllAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
418
+ getAreaChecklistHistory: (req: Request, res: Response, next: NextFunction) => Promise<void>;
419
+ getAreaChecklistHistoryDetails: (req: Request, res: Response, next: NextFunction) => Promise<void>;
420
+ acceptAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
421
+ attachImageAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
422
+ submitAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
423
+ completeAreaChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
424
+ };
425
+
426
+ type TUnitChecklistMetadataWorkOrder = {
427
+ attachments?: Array<string>;
428
+ subject: string;
429
+ category: string | ObjectId;
430
+ highPriority?: boolean;
431
+ block?: string;
432
+ level?: string;
433
+ unit?: string;
434
+ location?: string;
435
+ description: string;
436
+ createdBy: string | ObjectId;
437
+ createdByName?: string;
438
+ serviceProvider?: string | ObjectId;
439
+ organization?: string | ObjectId;
440
+ site?: string | ObjectId;
441
+ };
442
+ type TUnitChecklistMetadata = {
443
+ attachments?: string[];
444
+ remarks?: string;
445
+ workOrder?: TUnitChecklistMetadataWorkOrder;
446
+ };
447
+ type TUnitChecklist = {
448
+ _id?: ObjectId;
449
+ site: string | ObjectId;
450
+ type: (typeof allowedTypes)[number];
451
+ parentChecklist: string | ObjectId;
452
+ areaChecklist: string | ObjectId;
453
+ unit: ObjectId;
454
+ name?: string;
455
+ approve?: boolean;
456
+ reject?: boolean;
457
+ checkedBy?: string | ObjectId;
458
+ metadata?: TUnitChecklistMetadata;
459
+ createdBy?: string | ObjectId;
460
+ createdAt?: Date | string;
461
+ updatedAt?: Date | string;
462
+ };
463
+ type TUnitChecklistApprove = Partial<Pick<TUnitChecklist, "approve" | "reject" | "checkedBy">>;
464
+ type TUnitChecklistReject = Partial<Pick<TUnitChecklist, "approve" | "reject" | "checkedBy" | "metadata">>;
465
+ declare const unitChecklistSchema: Joi.ObjectSchema<any>;
466
+ declare function MUnitChecklist(value: TUnitChecklist): {
467
+ site: string | ObjectId;
468
+ type: string;
469
+ parentChecklist: string | ObjectId;
470
+ areaChecklist: string | ObjectId;
471
+ unit: ObjectId;
472
+ name: string;
473
+ approve: boolean;
474
+ reject: boolean;
475
+ createdBy: string | ObjectId;
476
+ createdAt: Date;
477
+ updatedAt: string | Date;
478
+ };
479
+
480
+ declare function useUnitChecklistRepo(): {
481
+ createIndex: () => Promise<void>;
482
+ createTextIndex: () => Promise<void>;
483
+ createUnitChecklist: (value: TUnitChecklist, session?: ClientSession) => Promise<ObjectId>;
484
+ getAllUnitChecklist: ({ page, limit, search, site, type, parentChecklist, areaChecklist, }: {
485
+ page?: number | undefined;
486
+ limit?: number | undefined;
487
+ search?: string | undefined;
488
+ site: string | ObjectId;
489
+ type: (typeof allowedTypes)[number];
490
+ parentChecklist: string | ObjectId;
491
+ areaChecklist: string | ObjectId;
492
+ }) => Promise<{}>;
493
+ getUnitChecklistById: (_id: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
494
+ updateUnitChecklist: (_id: string | ObjectId, value: TUnitChecklistApprove | TUnitChecklistReject, session?: ClientSession) => Promise<number>;
495
+ };
496
+
497
+ declare function useUnitChecklistController(): {
498
+ createUnitChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
499
+ getAllUnitChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
500
+ approveUnitChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
501
+ rejectUnitChecklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
502
+ };
503
+
504
+ export { MArea, MAreaChecklist, MParentChecklist, MScheduleTaskArea, MToiletLocation, MUnit, MUnitChecklist, TArea, TAreaChecklist, TAreaChecklistCreate, TAreaChecklistMetadata, TAreaUpdate, TAreaUpdateChecklist, TGetScheduleTaskAreasQuery, TGetToiletLocationsQuery, TGetUnitsQuery, TManageAreaChecklist, TParentChecklist, TParentChecklistStatus, TScheduleTaskArea, TScheduleTaskAreaCheckList, TToiletLocation, TToiletLocationChecklist, TToiletUpdateChecklist, TUnit, TUnitChecklist, TUnitChecklistApprove, TUnitChecklistMetadata, TUnitChecklistMetadataWorkOrder, TUnitChecklistReject, TUnitUpdate, allowedStatus, allowedTypes, areaChecklistSchema, areaSchema, parentChecklistSchema, scheduleTaskAreaSchema, toiletLocationSchema, unitChecklistSchema, unitSchema, useAreaChecklistController, useAreaChecklistRepo, useAreaController, useAreaRepository, useAreaService, useParentChecklistController, useParentChecklistRepo, useScheduleTaskAreaController, useScheduleTaskAreaRepository, useScheduleTaskAreaService, useToiletLocationController, useToiletLocationRepository, useToiletLocationService, useUnitChecklistController, useUnitChecklistRepo, useUnitController, useUnitRepository, useUnitService };