@7365admin1/core 2.19.0 → 2.21.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/dist/index.d.ts CHANGED
@@ -1145,6 +1145,7 @@ declare function MFeedback(value: TFeedback): {
1145
1145
  workOrderId: string | ObjectId;
1146
1146
  };
1147
1147
 
1148
+ declare const feedbacks_namespace_collection = "feedbacks";
1148
1149
  declare function useFeedbackRepo(): {
1149
1150
  createIndex: () => Promise<void>;
1150
1151
  createTextIndex: () => Promise<void>;
@@ -1283,6 +1284,7 @@ declare function MWorkOrder(value: TWorkOrder): {
1283
1284
  deletedAt: string | Date;
1284
1285
  };
1285
1286
 
1287
+ declare const work_orders_namespace_collection = "work-orders";
1286
1288
  declare function useWorkOrderRepo(): {
1287
1289
  createIndex: () => Promise<void>;
1288
1290
  createTextIndex: () => Promise<void>;
@@ -1477,7 +1479,6 @@ declare function useCustomerController(): {
1477
1479
  deleteCustomer: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1478
1480
  };
1479
1481
 
1480
- declare const updateSiteSchema: Joi.ObjectSchema<any>;
1481
1482
  declare enum SiteStatus {
1482
1483
  ACTIVE = "active",
1483
1484
  PENDING = "pending"
@@ -1515,6 +1516,9 @@ type TSite = {
1515
1516
  status?: string;
1516
1517
  address?: SiteAddress;
1517
1518
  category?: SiteCategories;
1519
+ deliveryCompanyList?: string[];
1520
+ isOpenGate?: Boolean | null;
1521
+ dahuaTimeExpiration?: number | null;
1518
1522
  createdAt?: Date;
1519
1523
  updatedAt?: string | Date;
1520
1524
  deletedAt?: string | Date;
@@ -1522,6 +1526,7 @@ type TSite = {
1522
1526
  type TSiteUpdateBlock = NonNullable<TSiteMetadata["block"]>;
1523
1527
  declare const allowedFieldsSite: string[];
1524
1528
  declare const siteSchema: Joi.ObjectSchema<any>;
1529
+ declare const updateSiteSchema: Joi.ObjectSchema<any>;
1525
1530
  declare function MSite(value: TSite): {
1526
1531
  name: string;
1527
1532
  description: string;
@@ -1531,6 +1536,9 @@ declare function MSite(value: TSite): {
1531
1536
  createdAt: Date;
1532
1537
  address: SiteAddress | undefined;
1533
1538
  category: SiteCategories | undefined;
1539
+ deliveryCompanyList: string[];
1540
+ isOpenGate: Boolean | null | undefined;
1541
+ dahuaTimeExpiration: number | null | undefined;
1534
1542
  updatedAt: string | Date;
1535
1543
  deletedAt: string | Date;
1536
1544
  };
@@ -1725,6 +1733,7 @@ declare function MBuildingUnit(value: TBuildingUnit): {
1725
1733
  billing: TBilling[];
1726
1734
  };
1727
1735
 
1736
+ declare const buildings_namespace_collection = "buildings";
1728
1737
  declare function useBuildingRepo(): {
1729
1738
  createIndexes: () => Promise<void>;
1730
1739
  add: (value: TBuilding, session?: ClientSession) => Promise<ObjectId>;
@@ -1811,6 +1820,7 @@ declare function useDahuaService(): {
1811
1820
  start?: string;
1812
1821
  end?: string;
1813
1822
  owner?: string;
1823
+ openGate?: boolean;
1814
1824
  }) => Promise<urllib.HttpClientResponse<any>>;
1815
1825
  removePlateNumber: (value: {
1816
1826
  host: string;
@@ -1829,29 +1839,31 @@ declare function useDahuaService(): {
1829
1839
  start?: string;
1830
1840
  end?: string;
1831
1841
  owner?: string;
1842
+ isOpenGate?: Boolean;
1832
1843
  }) => Promise<urllib.HttpClientResponse<any>>;
1833
1844
  };
1834
1845
 
1835
1846
  type TVehicle = {
1836
1847
  _id?: ObjectId;
1837
- plateNumber: string | string[];
1838
- type: string;
1839
- category: string;
1840
1848
  name: string;
1841
1849
  phoneNumber?: string;
1842
- recNo?: string;
1843
- org: string | ObjectId;
1844
- site: string | ObjectId;
1850
+ type: string;
1851
+ email?: string;
1845
1852
  block?: number;
1846
1853
  level?: string;
1847
1854
  unit?: string | ObjectId;
1848
- nric?: string;
1849
- remarks?: string;
1850
- seasonPassType?: string;
1851
1855
  start?: Date | string;
1852
1856
  end?: Date | string;
1853
1857
  status?: string;
1858
+ nric?: string;
1859
+ remarks?: string;
1860
+ org: string | ObjectId;
1861
+ site: string | ObjectId;
1862
+ plateNumber: string | string[];
1854
1863
  unitName?: string;
1864
+ category: string;
1865
+ recNo?: string;
1866
+ seasonPassType?: string;
1855
1867
  createdAt?: Date | string;
1856
1868
  updatedAt?: Date | string;
1857
1869
  deletedAt?: Date | string;
@@ -1939,6 +1951,7 @@ declare function MVehicleTransaction(value: TVehicleTransaction): {
1939
1951
  category: string;
1940
1952
  };
1941
1953
 
1954
+ declare const vehicles_namespace_collection = "vehicles";
1942
1955
  declare function useVehicleRepo(): {
1943
1956
  createIndex: () => Promise<void>;
1944
1957
  createTextIndex: () => Promise<void>;
@@ -1973,6 +1986,7 @@ declare function useVehicleRepo(): {
1973
1986
  }) => Promise<{}>;
1974
1987
  };
1975
1988
 
1989
+ declare function formatDahuaDate(date: Date): string;
1976
1990
  declare function useVehicleService(): {
1977
1991
  add: (value: TVehicle) => Promise<string>;
1978
1992
  deleteVehicle: (_id: string, recno: string, site: string, type: string, bypass?: boolean) => Promise<string>;
@@ -1995,6 +2009,10 @@ declare function useVehicleController(): {
1995
2009
  getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1996
2010
  };
1997
2011
 
2012
+ declare enum CameraType {
2013
+ IP = "ip",
2014
+ ANPR = "anpr"
2015
+ }
1998
2016
  type TCamera = {
1999
2017
  host: string;
2000
2018
  username: string;
@@ -2253,6 +2271,16 @@ type TPlates = {
2253
2271
  plateNumber: string;
2254
2272
  recNo: string;
2255
2273
  };
2274
+ declare enum PersonTypes {
2275
+ WALK_IN = "walk-in",
2276
+ DROP_OFF = "drop-off",
2277
+ CONTRACTOR = "contractor",
2278
+ DELIVERY = "delivery",
2279
+ PICK_UP = "pick-up",
2280
+ GUEST = "guest",
2281
+ TENANT = "tenant",
2282
+ RESIDENT = "resident"
2283
+ }
2256
2284
  type TFiles = {
2257
2285
  id: string | ObjectId;
2258
2286
  name: string;
@@ -2315,27 +2343,39 @@ declare function MPerson(value: TPerson): {
2315
2343
  deletedAt: string | Date | undefined;
2316
2344
  };
2317
2345
 
2318
- type SiteType = (typeof PERSON_TYPES)[number];
2346
+ declare enum VisitorSort {
2347
+ CREATED_AT = "createdAt",
2348
+ NAME = "name",
2349
+ ID = "_id"
2350
+ }
2351
+ declare enum VisitorStatus {
2352
+ REGISTERED = "registered",
2353
+ UNREGISTERED = "unregistered",
2354
+ PENDING = "pending"
2355
+ }
2319
2356
  type TVisitorTransaction = {
2320
2357
  _id?: ObjectId;
2321
2358
  name?: string;
2322
- type?: SiteType;
2323
- company?: string;
2324
- org?: string | ObjectId;
2325
- site?: string | ObjectId;
2359
+ contact?: string;
2360
+ type?: PersonTypes;
2326
2361
  block?: number;
2327
2362
  level?: string;
2328
2363
  unit?: string | ObjectId;
2329
- contact?: string;
2330
- plateNumber?: string;
2331
2364
  checkIn?: string | Date;
2332
2365
  checkOut?: string | Date;
2333
2366
  status?: string;
2367
+ nric?: string;
2334
2368
  remarks?: string;
2369
+ org?: string | ObjectId;
2370
+ site?: string | ObjectId;
2371
+ plateNumber?: string;
2372
+ recNo?: string;
2373
+ unitName?: string;
2374
+ company?: string;
2335
2375
  deliveryType?: string;
2336
2376
  attachments?: string[];
2337
- snapshotKey?: string;
2338
- nric?: string;
2377
+ snapshotEntryImage?: string;
2378
+ snapshotExitImage?: string;
2339
2379
  contractorType?: string;
2340
2380
  manualCheckout?: boolean;
2341
2381
  direction?: string;
@@ -2346,7 +2386,7 @@ type TVisitorTransaction = {
2346
2386
  contact: string;
2347
2387
  }[];
2348
2388
  visitorPass?: string | null;
2349
- unitName?: string;
2389
+ expiredAt?: string | Date | null;
2350
2390
  createdAt?: string | Date;
2351
2391
  updatedAt?: string | Date;
2352
2392
  deletedAt?: string | Date;
@@ -2356,7 +2396,7 @@ declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
2356
2396
  declare function MVisitorTransaction(value: TVisitorTransaction): {
2357
2397
  _id: ObjectId | undefined;
2358
2398
  name: string | undefined;
2359
- type: "resident" | "walk-in" | "drop-off" | "contractor" | "delivery" | "pick-up" | "guest" | "tenant" | undefined;
2399
+ type: PersonTypes | undefined;
2360
2400
  org: string | ObjectId | undefined;
2361
2401
  site: string | ObjectId | undefined;
2362
2402
  company: string | undefined;
@@ -2365,27 +2405,31 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2365
2405
  unit: string | ObjectId | undefined;
2366
2406
  contact: string | undefined;
2367
2407
  plateNumber: string | undefined;
2408
+ recNo: string | undefined;
2368
2409
  checkIn: string | Date;
2369
2410
  checkOut: string | Date | undefined;
2370
- status: string;
2411
+ status: string | undefined;
2371
2412
  remarks: string | undefined;
2372
2413
  deliveryType: string | undefined;
2373
2414
  attachments: string[] | undefined;
2374
- snapshotKey: string | undefined;
2415
+ snapshotEntryImage: string | undefined;
2416
+ snapshotExitImage: string | undefined;
2375
2417
  nric: string | undefined;
2376
2418
  contractorType: string | undefined;
2377
2419
  manualCheckout: boolean;
2378
2420
  direction: string | undefined;
2379
2421
  visitorPass: string | null | undefined;
2380
2422
  unitName: string | undefined;
2423
+ expiredAt: string | Date | null;
2381
2424
  createdAt: string | Date;
2382
2425
  updatedAt: string | Date;
2383
2426
  deletedAt: string | Date;
2384
2427
  };
2385
2428
 
2429
+ declare const visitors_namespace_collection = "visitor.transactions";
2386
2430
  declare function useVisitorTransactionRepo(): {
2387
2431
  add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
2388
- getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, }: {
2432
+ getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, }: {
2389
2433
  search?: string | undefined;
2390
2434
  page?: number | undefined;
2391
2435
  limit?: number | undefined;
@@ -2396,17 +2440,22 @@ declare function useVisitorTransactionRepo(): {
2396
2440
  dateTo?: string | undefined;
2397
2441
  dateFrom?: string | undefined;
2398
2442
  type?: string | undefined;
2399
- checkedOut?: string | undefined;
2443
+ checkedOut?: Boolean | undefined;
2444
+ plateNumber?: string | undefined;
2400
2445
  }, session?: ClientSession) => Promise<{}>;
2401
2446
  getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null>;
2402
2447
  updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
2403
2448
  deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
2404
2449
  createTextIndex: () => Promise<void>;
2450
+ getDeliveryPickupTransactions: () => Promise<mongodb.WithId<bson.Document>[]>;
2451
+ getExpiredCheckedOutTransactionsBySite: (siteId: string | ObjectId) => Promise<mongodb.WithId<bson.Document>[]>;
2452
+ updateManyDahuaSyncStatus: (ids: (string | ObjectId)[], dahuaSyncStatus: "removed", session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
2405
2453
  };
2406
2454
 
2407
2455
  declare function useVisitorTransactionService(): {
2408
- add: (value: TVisitorTransaction) => Promise<string>;
2456
+ add: (value: TVisitorTransaction) => Promise<ObjectId>;
2409
2457
  updateById: (id: string | ObjectId, value: TVisitorTransaction) => Promise<string>;
2458
+ processTransactionDahuaStatus: () => Promise<void>;
2410
2459
  };
2411
2460
 
2412
2461
  declare function useVisitorTransactionController(): {
@@ -2416,11 +2465,19 @@ declare function useVisitorTransactionController(): {
2416
2465
  deleteVisitorTransaction: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2417
2466
  };
2418
2467
 
2468
+ declare enum GuestStatus {
2469
+ PENDING = "pending",
2470
+ ACTIVE = "active"
2471
+ }
2472
+ declare enum GuestSort {
2473
+ CREATED_AT = "createdAt",
2474
+ NAME = "name",
2475
+ ID = "_id"
2476
+ }
2419
2477
  type TGuestManagement = {
2420
2478
  _id?: ObjectId;
2421
2479
  name: string;
2422
2480
  contact?: string;
2423
- nirc?: string;
2424
2481
  type?: string;
2425
2482
  email?: string;
2426
2483
  block: string;
@@ -2462,6 +2519,7 @@ declare function MGuestManagement(value: TGuestManagement): {
2462
2519
  deletedAt: string | Date | undefined;
2463
2520
  };
2464
2521
 
2522
+ declare const guests_namespace_collection = "visitor.guests";
2465
2523
  declare function useGuestManagementRepo(): {
2466
2524
  add: (value: TGuestManagement, session?: ClientSession) => Promise<ObjectId>;
2467
2525
  getAll: ({ search, page, limit, sort, status, dateFrom, dateTo, org, site, }: {
@@ -2492,6 +2550,7 @@ declare function useGuestManagementController(): {
2492
2550
  deleteVisitorGuest: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2493
2551
  };
2494
2552
 
2553
+ declare const site_people_namespace_collection = "site.people";
2495
2554
  declare function usePersonRepo(): {
2496
2555
  add: (value: TPerson, session?: ClientSession) => Promise<ObjectId>;
2497
2556
  getAll: ({ search, page, limit, sort, status, dateFrom, dateTo, org, site, type, }: {
@@ -3263,6 +3322,7 @@ declare function MSiteFacilityBooking(value: TSiteFacilityBooking): {
3263
3322
  deletedAt: string | Date | undefined;
3264
3323
  };
3265
3324
 
3325
+ declare const facility_bookings_namespace_collection = "site.facilty-booking";
3266
3326
  declare function useSiteFacilityBookingRepo(): {
3267
3327
  add: (value: TSiteFacilityBooking, session?: ClientSession) => Promise<ObjectId>;
3268
3328
  getAll: ({ search, page, limit, sort, site, status, }: {
@@ -3373,10 +3433,26 @@ declare function useDocumentManagementController(): {
3373
3433
  getDocumentsBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3374
3434
  };
3375
3435
 
3376
- declare const BULLETIN_RECIPIENTS: readonly ["resident", "security_agency", "cleaning_services", "mechanical_electrical", "property_management_agency"];
3377
- declare const STATUS_VALUES: readonly ["active", "expired", "deleted"];
3378
- type BulletinRecipient = (typeof BULLETIN_RECIPIENTS)[number];
3379
- type StatusValue = (typeof STATUS_VALUES)[number];
3436
+ declare enum BulletinRecipient {
3437
+ RESIDENT = "resident",
3438
+ SECURITY_AGENCY = "security_agency",
3439
+ CLEANING_SERVICES = "cleaning_services",
3440
+ MECHANICAL_ELECTRICAL = "mechanical_electrical",
3441
+ PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
3442
+ PEST_CONTROL_SERVICES = "pest_control_services",
3443
+ LANDSCAPING_SERVICES = "landscaping_services",
3444
+ POOL_MAINTENANCE_SERVICES = "pool_maintenance_services"
3445
+ }
3446
+ declare enum BulletinStatus {
3447
+ ACTIVE = "active",
3448
+ EXPIRED = "expired",
3449
+ DELETED = "deleted"
3450
+ }
3451
+ declare enum BulletinSort {
3452
+ CREATED_AT = "createdAt",
3453
+ NAME = "name",
3454
+ ID = "_id"
3455
+ }
3380
3456
  type TBulletinBoard = {
3381
3457
  _id?: ObjectId;
3382
3458
  site?: string | ObjectId;
@@ -3392,7 +3468,7 @@ type TBulletinBoard = {
3392
3468
  noExpiration?: boolean;
3393
3469
  startDate?: string | Date;
3394
3470
  endDate?: string | Date;
3395
- status?: StatusValue;
3471
+ status?: BulletinStatus | undefined;
3396
3472
  createdAt?: Date | string;
3397
3473
  updatedAt?: Date | string;
3398
3474
  deletedAt?: Date | string;
@@ -3403,7 +3479,7 @@ declare function MBulletinBoard(value: TBulletinBoard): {
3403
3479
  _id: ObjectId;
3404
3480
  site: string | ObjectId;
3405
3481
  orgId: string | ObjectId;
3406
- recipients: ("property_management_agency" | "security_agency" | "cleaning_services" | "resident" | "mechanical_electrical")[];
3482
+ recipients: BulletinRecipient[];
3407
3483
  title: string;
3408
3484
  content: string;
3409
3485
  file: {
@@ -3413,13 +3489,14 @@ declare function MBulletinBoard(value: TBulletinBoard): {
3413
3489
  }[];
3414
3490
  noExpiration: boolean;
3415
3491
  startDate: string;
3416
- endDate: string | Date;
3417
- status: "active" | "deleted" | "expired";
3492
+ endDate: string;
3493
+ status: BulletinStatus | undefined;
3418
3494
  createdAt: string | Date;
3419
3495
  updatedAt: string | Date | undefined;
3420
3496
  deletedAt: string | Date | undefined;
3421
3497
  };
3422
3498
 
3499
+ declare const bulletin_boards_namespace_collection = "bulletin-boards";
3423
3500
  declare function useBulletinBoardRepo(): {
3424
3501
  add: (value: TBulletinBoard, session?: ClientSession) => Promise<ObjectId>;
3425
3502
  getAll: ({ search, page, limit, sort, site, status, recipients, }: {
@@ -3646,6 +3723,7 @@ declare function MEventManagement(value: TEventManagement): {
3646
3723
  deletedAt: string | Date | undefined;
3647
3724
  };
3648
3725
 
3726
+ declare const events_namespace_collection = "event-management";
3649
3727
  declare function useEventManagementRepo(): {
3650
3728
  add: (value: TEventManagement, session?: ClientSession) => Promise<ObjectId>;
3651
3729
  getAll: ({ search, page, limit, sort, site, status, type, date, }: {
@@ -3846,6 +3924,9 @@ interface IAccessCard {
3846
3924
  requestDate?: Date;
3847
3925
  vmsRemarks?: string;
3848
3926
  isWinsland?: boolean;
3927
+ one_time?: boolean;
3928
+ purpose?: string;
3929
+ status?: string;
3849
3930
  }
3850
3931
  declare enum AccessTypeProps {
3851
3932
  NORMAL = "Normal",
@@ -4167,6 +4248,30 @@ declare function UseAccessManagementRepo(): {
4167
4248
  insertedCount: number;
4168
4249
  insertedIds: Record<number, ObjectId>;
4169
4250
  }>;
4251
+ addVisitorAccessCardRepo: (params: {
4252
+ site: string;
4253
+ unitId: string;
4254
+ quantity: number;
4255
+ type: string;
4256
+ nfcCards: {
4257
+ _id: string;
4258
+ cardNo: string;
4259
+ }[];
4260
+ visitorId: string;
4261
+ acm_url: string;
4262
+ }) => Promise<{
4263
+ visitorId: ObjectId | undefined;
4264
+ registeredAt: Date;
4265
+ accessCards: any;
4266
+ code: any;
4267
+ }>;
4268
+ signQrCodeRepo: (params: {
4269
+ cardId: string;
4270
+ purpose: string;
4271
+ }) => Promise<string>;
4272
+ checkoutVisitorRepo: (params: {
4273
+ userId: string;
4274
+ }) => Promise<mongodb.UpdateResult<bson.Document>>;
4170
4275
  };
4171
4276
 
4172
4277
  declare function useAccessManagementController(): {
@@ -4197,6 +4302,9 @@ declare function useAccessManagementController(): {
4197
4302
  allQrTag: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4198
4303
  availableCardContractors: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4199
4304
  vmsgenerateQrCodes: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4305
+ addVisitorAccessCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4306
+ signQrCode: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4307
+ checkoutVisitor: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4200
4308
  };
4201
4309
 
4202
4310
  declare const DEVICE_STATUS: {
@@ -4671,6 +4779,7 @@ type TIncidentTypeAndTime = {
4671
4779
  incidentEnd?: string;
4672
4780
  typeOfIncident: string;
4673
4781
  dateOfIncident?: string | Date;
4782
+ timeOfResponse?: string;
4674
4783
  };
4675
4784
  type TAuthoritiesCalled = {
4676
4785
  type: string;
@@ -4682,8 +4791,6 @@ type TAuthoritiesCalled = {
4682
4791
  type TSubmissionForm = {
4683
4792
  dateOfReport: string | Date;
4684
4793
  time?: string;
4685
- timeOfResponse?: string;
4686
- dateOfIncident?: string | Date;
4687
4794
  };
4688
4795
  type TComplaintInfo = {
4689
4796
  complainant?: string;
@@ -4709,10 +4816,22 @@ type TIncidentInformation = {
4709
4816
  recipientOfComplaint?: TRecipientOfComplaint;
4710
4817
  complaintReceivedTo: TComplaintReceivedTo;
4711
4818
  };
4819
+ type TResident = {
4820
+ _id: ObjectId | string;
4821
+ name: string;
4822
+ };
4712
4823
  type TAffectedInjured = {
4713
4824
  name: string;
4714
4825
  contact?: string;
4715
4826
  nric?: string;
4827
+ block?: number;
4828
+ level?: string;
4829
+ unit?: string | ObjectId;
4830
+ other?: string | null;
4831
+ isOther: boolean;
4832
+ incidentLocation: string;
4833
+ remarks?: string;
4834
+ resident: TResident;
4716
4835
  };
4717
4836
  type TanyoneDamageToProperty = {
4718
4837
  description: string;
@@ -4722,10 +4841,9 @@ type TanyoneDamageToProperty = {
4722
4841
  blkLevelUnit: string;
4723
4842
  name: string;
4724
4843
  contact: string;
4844
+ resident: TResident;
4725
4845
  };
4726
4846
  type TAffectedEntities = {
4727
- anyUnitAffectedValue: "yes" | "no";
4728
- affectedUnit?: Record<string, any> | ObjectId;
4729
4847
  anyoneAffectedValue: "yes" | "no";
4730
4848
  affectedInjured: TAffectedInjured[];
4731
4849
  anyPropertyAffectedValue: "yes" | "no";
@@ -4734,13 +4852,13 @@ type TAffectedEntities = {
4734
4852
  type TAuthorities = {
4735
4853
  authoritiesValue: "yes" | "no";
4736
4854
  authoritiesCalled: TAuthoritiesCalled[];
4737
- incidentThereAfter?: string;
4855
+ incidentThereAfter?: TActionStatus;
4738
4856
  managementNotified?: TActionStatus;
4739
- incidentResolved?: string;
4740
- causeOfIncident?: string;
4741
- systemUsed?: string;
4742
- cctvRecord?: string;
4743
- particularsOwner?: string;
4857
+ incidentResolved?: TActionStatus;
4858
+ causeOfIncident?: TActionStatus;
4859
+ systemUsed?: TActionStatus;
4860
+ cctvRecord?: TActionStatus;
4861
+ particularsOwner?: TActionStatus;
4744
4862
  whenIncidentResolve?: TActionStatus;
4745
4863
  nameOfShiftIncharge?: {
4746
4864
  personInCharge?: string;
@@ -4748,8 +4866,9 @@ type TAuthorities = {
4748
4866
  shiftStart?: string;
4749
4867
  shiftEnd?: string;
4750
4868
  time?: string;
4869
+ status: string;
4751
4870
  };
4752
- securityImplication?: string;
4871
+ securityImplication?: TActionStatus;
4753
4872
  };
4754
4873
  type TIncidentReport = {
4755
4874
  _id?: ObjectId;
@@ -4806,8 +4925,10 @@ declare function useIncidentReportController(): {
4806
4925
  deleteIncidentReportById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4807
4926
  createIncidentSummary: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4808
4927
  reviewIncidentReport: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4928
+ getAllForVirtualPatrolLogs: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4809
4929
  };
4810
4930
 
4931
+ declare const incidents_namespace_collection = "incident-reports";
4811
4932
  declare function useIncidentReportRepo(): {
4812
4933
  add: (value: TIncidentReport, session?: ClientSession) => Promise<ObjectId>;
4813
4934
  getAll: ({ search, page, limit, sort, site, status, dateFrom, }: {
@@ -4829,6 +4950,19 @@ declare function useIncidentReportRepo(): {
4829
4950
  createIndexes: () => Promise<void>;
4830
4951
  createTextIndex: () => Promise<void>;
4831
4952
  reviewIncidentReport: (_id: ObjectId | string, value: Partial<TIncidentReport>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
4953
+ getAllForVirtualPatrolLogs: ({ search, page, limit, sort, site, status, dateFrom, }: {
4954
+ search?: string | undefined;
4955
+ page?: number | undefined;
4956
+ limit?: number | undefined;
4957
+ sort?: Record<string, any> | undefined;
4958
+ site: string | ObjectId;
4959
+ status?: string | undefined;
4960
+ dateFrom?: string | undefined;
4961
+ }, session?: ClientSession) => Promise<{
4962
+ items: any[];
4963
+ pages: number;
4964
+ pageRange: string;
4965
+ }>;
4832
4966
  };
4833
4967
 
4834
4968
  type TNfcPatrolSettings = {
@@ -5161,4 +5295,244 @@ declare function useAddressRepo(): {
5161
5295
  getByUserId: (user: string | ObjectId) => Promise<TAddress | null>;
5162
5296
  };
5163
5297
 
5164
- export { ANPRMode, AccessTypeProps, AssignCardConfig, BULLETIN_RECIPIENTS, BuildingStatus, BulkCardUpdate, Camera, DEVICE_STATUS, EAccessCardTypes, EAccessCardUserTypes, FacilitySort, FacilityStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBillingConfiguration, MBillingItem, MBuilding, MBuildingUnit, MBulletinBoard, MBulletinVideo, MChat, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MGuestManagement, MIncidentReport, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPromoCode, MRobot, MRole, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVisitorTransaction, MWorkOrder, OrgNature, PERSON_TYPES, PersonType, QrTagProps, STATUS_VALUES, SiteAddress, SiteCategories, SiteStatus, SiteType, SortFields, SortOrder, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TChat, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCustomer, TCustomerSite, TDayNumber, TDefaultAccessCard, TDocs, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRobot, TRobotMetadata, TRole, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, chatSchema, customerSchema, feedbackSchema, incidentReport, incidentReportLog, logCamera, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, orgSchema, promoCodeSchema, robotSchema, schema, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, siteSchema, tokenSchema, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useChatController, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useMemberController, useMemberRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgRepo, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleRepo, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useUserController, useUserRepo, useUserService, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationRepo, useVerificationService, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, workOrderSchema };
5298
+ declare enum Period {
5299
+ TODAY = "today",
5300
+ THIS_WEEK = "thisWeek",
5301
+ THIS_MONTH = "thisMonth"
5302
+ }
5303
+ declare const securityDashboardCollection = "security-dashboard";
5304
+ declare const PMDashboardCollection = "PM-dashboard";
5305
+ declare const pestDashboardCollection = "pest-dashboard";
5306
+ declare const poolDashboardCollection = "pool-dashboard";
5307
+ declare const mAndEDashboardCollection = "M&E-dashboard";
5308
+ declare const landscapeDashboardCollection = "landscape-dashboard";
5309
+ declare function getPeriodRangeWithPrevious(period: Period): {
5310
+ current: {
5311
+ start: string;
5312
+ end: string;
5313
+ };
5314
+ previous: {
5315
+ start: string;
5316
+ end: string;
5317
+ };
5318
+ };
5319
+ declare function calculatePercentage(current: number, previous: number): number;
5320
+ declare function useNewDashboardRepo(): {
5321
+ getSecurityDashboard: ({ siteId, feedback, workOrder, vehicle, building, visitor, incident, guest, }: {
5322
+ siteId: string;
5323
+ feedback?: Period | undefined;
5324
+ workOrder?: Period | undefined;
5325
+ vehicle?: Period | undefined;
5326
+ building?: Period | undefined;
5327
+ visitor?: Period | undefined;
5328
+ incident?: Period | undefined;
5329
+ guest?: Period | undefined;
5330
+ }) => Promise<any>;
5331
+ getPropertyManagementDashboard: ({ siteId, feedback, workOrder, sitePeople, facilityBooking, bulletinBoard, event, vehicle, building, visitor, incident, }: {
5332
+ siteId: string;
5333
+ feedback?: Period | undefined;
5334
+ workOrder?: Period | undefined;
5335
+ sitePeople?: Period | undefined;
5336
+ facilityBooking?: Period | undefined;
5337
+ bulletinBoard?: Period | undefined;
5338
+ event?: Period | undefined;
5339
+ vehicle?: Period | undefined;
5340
+ building?: Period | undefined;
5341
+ visitor?: Period | undefined;
5342
+ incident?: Period | undefined;
5343
+ }) => Promise<any>;
5344
+ getPestManagementDashboard: ({ siteId, feedback, workOrder, }: {
5345
+ siteId: string;
5346
+ feedback?: Period | undefined;
5347
+ workOrder?: Period | undefined;
5348
+ }) => Promise<any>;
5349
+ getPoolManagementDashboard: ({ siteId, feedback, workOrder, }: {
5350
+ siteId: string;
5351
+ feedback?: Period | undefined;
5352
+ workOrder?: Period | undefined;
5353
+ }) => Promise<any>;
5354
+ getMAndEManagementDashboard: ({ siteId, feedback, workOrder, }: {
5355
+ siteId: string;
5356
+ feedback?: Period | undefined;
5357
+ workOrder?: Period | undefined;
5358
+ }) => Promise<any>;
5359
+ getLandscapeDashboard: ({ siteId, feedback, workOrder, }: {
5360
+ siteId: string;
5361
+ feedback?: Period | undefined;
5362
+ workOrder?: Period | undefined;
5363
+ }) => Promise<any>;
5364
+ };
5365
+
5366
+ declare function useNewDashboardController(): {
5367
+ getSecurityDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5368
+ getPropertyManagementDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5369
+ getPestManagementDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5370
+ getPoolManagementDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5371
+ getMAndEManagementDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5372
+ getLandscapeDashboard: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5373
+ };
5374
+
5375
+ type TShifts = {
5376
+ name: string;
5377
+ checkIn: string;
5378
+ checkOut: string;
5379
+ lateCheckInAlert: string;
5380
+ alertFrequencyMins: number;
5381
+ earlyOutAlert: boolean;
5382
+ };
5383
+ type TManpowerMonitoring = {
5384
+ _id?: ObjectId;
5385
+ serviceProviderId?: string | ObjectId;
5386
+ siteId: string | ObjectId;
5387
+ siteName: string;
5388
+ shiftType: string;
5389
+ enabled: boolean;
5390
+ shifts: {
5391
+ "2-shifts": TShifts[];
5392
+ "3-shifts": TShifts[];
5393
+ };
5394
+ createdBy?: string | ObjectId;
5395
+ createdByName?: string;
5396
+ createdAt?: Date;
5397
+ updatedAt?: string | Date;
5398
+ emails?: string[];
5399
+ };
5400
+ type TManpowerSearchFilter = {
5401
+ page?: number;
5402
+ limit?: number;
5403
+ search?: string;
5404
+ };
5405
+ type TManpowerMonitoringUpdate = Partial<Pick<TManpowerMonitoring, "shiftType" | "enabled" | "shifts" | "updatedAt" | "emails">>;
5406
+ declare const shiftSchema: Joi.ObjectSchema<any>;
5407
+ declare const manpowerMonitoringSchema: Joi.ObjectSchema<any>;
5408
+ declare class MManpowerMonitoring implements Partial<TManpowerMonitoring> {
5409
+ _id?: ObjectId;
5410
+ serviceProviderId: string | ObjectId;
5411
+ siteId: string | ObjectId;
5412
+ siteName: string;
5413
+ shiftType: string;
5414
+ enabled: boolean;
5415
+ shifts: {
5416
+ "2-shifts": TShifts[];
5417
+ "3-shifts": TShifts[];
5418
+ };
5419
+ createdBy: string | ObjectId;
5420
+ createdByName: string;
5421
+ createdAt: Date;
5422
+ updatedAt: string | Date;
5423
+ emails: string[];
5424
+ constructor(data: TManpowerMonitoring);
5425
+ }
5426
+
5427
+ declare function useManpowerMonitoringRepo(): {
5428
+ createManpowerMonitoringSettings: (value: TManpowerMonitoring, session?: ClientSession) => Promise<mongodb.InsertOneResult<bson.Document>>;
5429
+ getAllManpowerSettings: ({ page, limit, search, }: TManpowerSearchFilter) => Promise<{
5430
+ items: any[];
5431
+ pages: number;
5432
+ pageRange: string;
5433
+ }>;
5434
+ getManpowerSettingsBySiteId: (_id: string | ObjectId, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
5435
+ updateManpowerMonitoringSettings: (_id: string | ObjectId, value: TManpowerMonitoringUpdate) => Promise<number>;
5436
+ multipleManpowerMonitoringSettings: (value: TManpowerMonitoring[]) => Promise<{
5437
+ updated: number;
5438
+ inserted: number;
5439
+ success: boolean;
5440
+ message: string;
5441
+ }>;
5442
+ getAllSites: (serviceProviderId: string | ObjectId) => Promise<any>;
5443
+ };
5444
+
5445
+ declare function useManpowerMonitoringSrvc(): {
5446
+ createManpowerMonitoringSettings: (payload: any) => Promise<mongodb.InsertOneResult<bson.Document>>;
5447
+ };
5448
+
5449
+ declare function useManpowerMonitoringCtrl(): {
5450
+ createManpowerMonitoringSettings: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5451
+ getAllManpowerSettings: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5452
+ getManpowerSettingsBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5453
+ updateManpowerMonitoringSettings: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5454
+ multipleManpowerMonitoringSettings: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5455
+ getAllSites: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5456
+ };
5457
+
5458
+ type TDesignations = {
5459
+ title: string;
5460
+ shifts: {
5461
+ morningShift: number;
5462
+ afternoonShift?: number;
5463
+ nightShift: number;
5464
+ };
5465
+ };
5466
+ type TManpowerDesignations = {
5467
+ _id?: ObjectId;
5468
+ serviceProviderId?: string | ObjectId;
5469
+ siteId: string | ObjectId;
5470
+ siteName: string;
5471
+ designations: TDesignations[];
5472
+ createdBy?: string | ObjectId;
5473
+ createdByName?: string;
5474
+ createdAt?: Date;
5475
+ updatedAt?: string | Date;
5476
+ };
5477
+ type TManpowerDesignationsUpdate = Partial<Pick<TManpowerDesignations, "designations" | "updatedAt">>;
5478
+ declare const designationsSchema: Joi.ObjectSchema<any>;
5479
+ declare const manpowerDesignationsSchema: Joi.ObjectSchema<any>;
5480
+ declare class MManpowerDesignations implements Partial<TManpowerDesignations> {
5481
+ _id?: ObjectId;
5482
+ siteId: string | ObjectId;
5483
+ siteName: string;
5484
+ serviceProviderId: string | ObjectId;
5485
+ designations: TDesignations[];
5486
+ createdBy?: string | ObjectId;
5487
+ createdByName?: string;
5488
+ createdAt?: Date;
5489
+ updatedAt?: string | Date;
5490
+ constructor(data: Partial<TManpowerDesignations>);
5491
+ }
5492
+
5493
+ declare function useManpowerDesignationRepo(): {
5494
+ createManpowerDesignations: (value: TManpowerDesignations) => Promise<mongodb.InsertOneResult<bson.Document>>;
5495
+ getManpowerDesignationsBySiteId: (_id: string | ObjectId, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
5496
+ updateManpowerDesignations: (_id: string | ObjectId, value: TManpowerDesignationsUpdate) => Promise<number>;
5497
+ };
5498
+
5499
+ declare function useManpowerDesignationCtrl(): {
5500
+ createManpowerDesignations: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5501
+ getManpowerSettingsBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5502
+ updateManpowerDesignations: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5503
+ };
5504
+
5505
+ declare const schemaOvernightParkingApprovalHours: Joi.ObjectSchema<any>;
5506
+ type TDaySchedule = {
5507
+ isEnabled: boolean;
5508
+ startTime: string;
5509
+ endTime: string;
5510
+ };
5511
+ type TOvernightParkingApprovalHours = {
5512
+ _id?: ObjectId;
5513
+ site: string | ObjectId;
5514
+ monday: TDaySchedule;
5515
+ tuesday: TDaySchedule;
5516
+ wednesday: TDaySchedule;
5517
+ thursday: TDaySchedule;
5518
+ friday: TDaySchedule;
5519
+ saturday: TDaySchedule;
5520
+ sunday: TDaySchedule;
5521
+ createdAt?: Date | string;
5522
+ updatedAt?: Date | string;
5523
+ deletedAt?: Date | string;
5524
+ };
5525
+ declare function MOvernightParkingApprovalHours(value: TOvernightParkingApprovalHours): TOvernightParkingApprovalHours;
5526
+
5527
+ declare function useOvernightParkingRepo(): {
5528
+ upsert: (value: TOvernightParkingApprovalHours, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5529
+ getSiteOvernightParking: (site: string | ObjectId) => Promise<{} | null>;
5530
+ createIndexes: () => Promise<void>;
5531
+ };
5532
+
5533
+ declare function useOvernightParkingController(): {
5534
+ upsert: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5535
+ getSiteOvernightParking: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5536
+ };
5537
+
5538
+ export { ANPRMode, AccessTypeProps, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinRecipient, BulletinSort, BulletinStatus, Camera, CameraType, DEVICE_STATUS, EAccessCardTypes, EAccessCardUserTypes, FacilitySort, FacilityStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBillingConfiguration, MBillingItem, MBuilding, MBuildingUnit, MBulletinBoard, MBulletinVideo, MChat, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MGuestManagement, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPromoCode, MRobot, MRole, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVisitorTransaction, MWorkOrder, OrgNature, PERSON_TYPES, PMDashboardCollection, Period, PersonType, PersonTypes, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TChat, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerSearchFilter, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TResident, TRobot, TRobotMetadata, TRole, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VisitorSort, VisitorStatus, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks_namespace_collection, formatDahuaDate, getPeriodRangeWithPrevious, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, landscapeDashboardCollection, logCamera, mAndEDashboardCollection, manpowerDesignationsSchema, manpowerMonitoringSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, orgSchema, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, robotSchema, schema, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, securityDashboardCollection, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useChatController, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useMemberController, useMemberRepo, useNewDashboardController, useNewDashboardRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleRepo, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useUserController, useUserRepo, useUserService, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationRepo, useVerificationService, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitors_namespace_collection, workOrderSchema, work_orders_namespace_collection };