@7365admin1/core 2.20.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fab10c3: get latest changes from dashboard, manpower settings, designations, etc.
8
+
3
9
  ## 2.20.0
4
10
 
5
11
  ### Minor Changes
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>;
@@ -1731,6 +1733,7 @@ declare function MBuildingUnit(value: TBuildingUnit): {
1731
1733
  billing: TBilling[];
1732
1734
  };
1733
1735
 
1736
+ declare const buildings_namespace_collection = "buildings";
1734
1737
  declare function useBuildingRepo(): {
1735
1738
  createIndexes: () => Promise<void>;
1736
1739
  add: (value: TBuilding, session?: ClientSession) => Promise<ObjectId>;
@@ -1948,6 +1951,7 @@ declare function MVehicleTransaction(value: TVehicleTransaction): {
1948
1951
  category: string;
1949
1952
  };
1950
1953
 
1954
+ declare const vehicles_namespace_collection = "vehicles";
1951
1955
  declare function useVehicleRepo(): {
1952
1956
  createIndex: () => Promise<void>;
1953
1957
  createTextIndex: () => Promise<void>;
@@ -2382,7 +2386,6 @@ type TVisitorTransaction = {
2382
2386
  contact: string;
2383
2387
  }[];
2384
2388
  visitorPass?: string | null;
2385
- visitorId?: string | ObjectId;
2386
2389
  expiredAt?: string | Date | null;
2387
2390
  createdAt?: string | Date;
2388
2391
  updatedAt?: string | Date;
@@ -2418,12 +2421,12 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2418
2421
  visitorPass: string | null | undefined;
2419
2422
  unitName: string | undefined;
2420
2423
  expiredAt: string | Date | null;
2421
- visitorId: string | ObjectId;
2422
2424
  createdAt: string | Date;
2423
2425
  updatedAt: string | Date;
2424
2426
  deletedAt: string | Date;
2425
2427
  };
2426
2428
 
2429
+ declare const visitors_namespace_collection = "visitor.transactions";
2427
2430
  declare function useVisitorTransactionRepo(): {
2428
2431
  add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
2429
2432
  getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, }: {
@@ -2450,7 +2453,7 @@ declare function useVisitorTransactionRepo(): {
2450
2453
  };
2451
2454
 
2452
2455
  declare function useVisitorTransactionService(): {
2453
- add: (value: TVisitorTransaction) => Promise<string>;
2456
+ add: (value: TVisitorTransaction) => Promise<ObjectId>;
2454
2457
  updateById: (id: string | ObjectId, value: TVisitorTransaction) => Promise<string>;
2455
2458
  processTransactionDahuaStatus: () => Promise<void>;
2456
2459
  };
@@ -2516,6 +2519,7 @@ declare function MGuestManagement(value: TGuestManagement): {
2516
2519
  deletedAt: string | Date | undefined;
2517
2520
  };
2518
2521
 
2522
+ declare const guests_namespace_collection = "visitor.guests";
2519
2523
  declare function useGuestManagementRepo(): {
2520
2524
  add: (value: TGuestManagement, session?: ClientSession) => Promise<ObjectId>;
2521
2525
  getAll: ({ search, page, limit, sort, status, dateFrom, dateTo, org, site, }: {
@@ -2546,6 +2550,7 @@ declare function useGuestManagementController(): {
2546
2550
  deleteVisitorGuest: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2547
2551
  };
2548
2552
 
2553
+ declare const site_people_namespace_collection = "site.people";
2549
2554
  declare function usePersonRepo(): {
2550
2555
  add: (value: TPerson, session?: ClientSession) => Promise<ObjectId>;
2551
2556
  getAll: ({ search, page, limit, sort, status, dateFrom, dateTo, org, site, type, }: {
@@ -3317,6 +3322,7 @@ declare function MSiteFacilityBooking(value: TSiteFacilityBooking): {
3317
3322
  deletedAt: string | Date | undefined;
3318
3323
  };
3319
3324
 
3325
+ declare const facility_bookings_namespace_collection = "site.facilty-booking";
3320
3326
  declare function useSiteFacilityBookingRepo(): {
3321
3327
  add: (value: TSiteFacilityBooking, session?: ClientSession) => Promise<ObjectId>;
3322
3328
  getAll: ({ search, page, limit, sort, site, status, }: {
@@ -3490,6 +3496,7 @@ declare function MBulletinBoard(value: TBulletinBoard): {
3490
3496
  deletedAt: string | Date | undefined;
3491
3497
  };
3492
3498
 
3499
+ declare const bulletin_boards_namespace_collection = "bulletin-boards";
3493
3500
  declare function useBulletinBoardRepo(): {
3494
3501
  add: (value: TBulletinBoard, session?: ClientSession) => Promise<ObjectId>;
3495
3502
  getAll: ({ search, page, limit, sort, site, status, recipients, }: {
@@ -3716,6 +3723,7 @@ declare function MEventManagement(value: TEventManagement): {
3716
3723
  deletedAt: string | Date | undefined;
3717
3724
  };
3718
3725
 
3726
+ declare const events_namespace_collection = "event-management";
3719
3727
  declare function useEventManagementRepo(): {
3720
3728
  add: (value: TEventManagement, session?: ClientSession) => Promise<ObjectId>;
3721
3729
  getAll: ({ search, page, limit, sort, site, status, type, date, }: {
@@ -4261,6 +4269,9 @@ declare function UseAccessManagementRepo(): {
4261
4269
  cardId: string;
4262
4270
  purpose: string;
4263
4271
  }) => Promise<string>;
4272
+ checkoutVisitorRepo: (params: {
4273
+ userId: string;
4274
+ }) => Promise<mongodb.UpdateResult<bson.Document>>;
4264
4275
  };
4265
4276
 
4266
4277
  declare function useAccessManagementController(): {
@@ -4293,6 +4304,7 @@ declare function useAccessManagementController(): {
4293
4304
  vmsgenerateQrCodes: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4294
4305
  addVisitorAccessCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4295
4306
  signQrCode: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4307
+ checkoutVisitor: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4296
4308
  };
4297
4309
 
4298
4310
  declare const DEVICE_STATUS: {
@@ -4916,6 +4928,7 @@ declare function useIncidentReportController(): {
4916
4928
  getAllForVirtualPatrolLogs: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4917
4929
  };
4918
4930
 
4931
+ declare const incidents_namespace_collection = "incident-reports";
4919
4932
  declare function useIncidentReportRepo(): {
4920
4933
  add: (value: TIncidentReport, session?: ClientSession) => Promise<ObjectId>;
4921
4934
  getAll: ({ search, page, limit, sort, site, status, dateFrom, }: {
@@ -5282,4 +5295,244 @@ declare function useAddressRepo(): {
5282
5295
  getByUserId: (user: string | ObjectId) => Promise<TAddress | null>;
5283
5296
  };
5284
5297
 
5285
- 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, 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, 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, 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, TResident, 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, VisitorSort, VisitorStatus, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, chatSchema, customerSchema, feedbackSchema, formatDahuaDate, 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 };