@7365admin1/core 2.21.0 → 2.22.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.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 901d37d: Update to latest features and enhancements
8
+
3
9
  ## 2.21.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -475,6 +475,10 @@ declare function useOrgController(): {
475
475
  getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
476
476
  };
477
477
 
478
+ declare enum SubscriptionType {
479
+ ORGANIZATION = "organization",
480
+ AFFILIATE = "affiliate"
481
+ }
478
482
  type TSubscription = {
479
483
  _id?: ObjectId;
480
484
  user?: string | ObjectId;
@@ -1479,6 +1483,7 @@ declare function useCustomerController(): {
1479
1483
  deleteCustomer: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1480
1484
  };
1481
1485
 
1486
+ declare const addressSchema: Joi.ObjectSchema<any>;
1482
1487
  declare enum SiteStatus {
1483
1488
  ACTIVE = "active",
1484
1489
  PENDING = "pending"
@@ -1577,6 +1582,7 @@ declare function useSiteRepo(): {
1577
1582
  getByExactName: (name: string, orgId: string | ObjectId) => Promise<TSite[]>;
1578
1583
  updateSiteIncidentCounter: (_id: string | ObjectId, incidentCounter: number, session?: ClientSession) => Promise<number>;
1579
1584
  updateSiteById: (id: string | ObjectId, payload: TSite, session?: ClientSession) => Promise<number>;
1585
+ getAllSitesUnpaginated: () => Promise<bson.Document[]>;
1580
1586
  };
1581
1587
 
1582
1588
  declare function useSiteService(): {
@@ -2117,6 +2123,8 @@ type TCustomerSite = {
2117
2123
  siteOrgName: string;
2118
2124
  org: ObjectId | string;
2119
2125
  status?: string;
2126
+ address?: SiteAddress;
2127
+ category?: SiteCategories;
2120
2128
  createdAt?: string | Date;
2121
2129
  updatedAt?: string | Date;
2122
2130
  deletedAt?: string | Date;
@@ -2129,6 +2137,8 @@ declare function MCustomerSite(value: TCustomerSite): {
2129
2137
  siteOrg: string | ObjectId;
2130
2138
  siteOrgName: string;
2131
2139
  org: string | ObjectId;
2140
+ address: SiteAddress | undefined;
2141
+ category: SiteCategories | undefined;
2132
2142
  status: string;
2133
2143
  createdAt: string | Date;
2134
2144
  updatedAt: string | Date;
@@ -5502,22 +5512,32 @@ declare function useManpowerDesignationCtrl(): {
5502
5512
  updateManpowerDesignations: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5503
5513
  };
5504
5514
 
5515
+ declare enum DayOfWeek {
5516
+ SUNDAY = "sunday",
5517
+ MONDAY = "monday",
5518
+ TUESDAY = "tuesday",
5519
+ WEDNESDAY = "wednesday",
5520
+ THURSDAY = "thursday",
5521
+ FRIDAY = "friday",
5522
+ SATURDAY = "saturday"
5523
+ }
5505
5524
  declare const schemaOvernightParkingApprovalHours: Joi.ObjectSchema<any>;
5506
5525
  type TDaySchedule = {
5507
5526
  isEnabled: boolean;
5508
- startTime: string;
5509
- endTime: string;
5527
+ startTime: string | null;
5528
+ endTime: string | null;
5510
5529
  };
5511
5530
  type TOvernightParkingApprovalHours = {
5512
5531
  _id?: ObjectId;
5513
5532
  site: string | ObjectId;
5514
- monday: TDaySchedule;
5515
- tuesday: TDaySchedule;
5516
- wednesday: TDaySchedule;
5517
- thursday: TDaySchedule;
5518
- friday: TDaySchedule;
5519
- saturday: TDaySchedule;
5520
- sunday: TDaySchedule;
5533
+ monday?: TDaySchedule | null;
5534
+ tuesday?: TDaySchedule | null;
5535
+ wednesday?: TDaySchedule | null;
5536
+ thursday?: TDaySchedule | null;
5537
+ friday?: TDaySchedule | null;
5538
+ saturday?: TDaySchedule | null;
5539
+ sunday?: TDaySchedule | null;
5540
+ autoApproveOvernightParking?: Boolean;
5521
5541
  createdAt?: Date | string;
5522
5542
  updatedAt?: Date | string;
5523
5543
  deletedAt?: Date | string;
@@ -5526,7 +5546,7 @@ declare function MOvernightParkingApprovalHours(value: TOvernightParkingApproval
5526
5546
 
5527
5547
  declare function useOvernightParkingRepo(): {
5528
5548
  upsert: (value: TOvernightParkingApprovalHours, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5529
- getSiteOvernightParking: (site: string | ObjectId) => Promise<{} | null>;
5549
+ getSiteOvernightParking: (site: string | ObjectId) => Promise<any>;
5530
5550
  createIndexes: () => Promise<void>;
5531
5551
  };
5532
5552
 
@@ -5535,4 +5555,309 @@ declare function useOvernightParkingController(): {
5535
5555
  getSiteOvernightParking: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5536
5556
  };
5537
5557
 
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 };
5558
+ declare enum OvernightParkingRequestStatus {
5559
+ PENDING = "pending",
5560
+ APPROVED = "approved",
5561
+ REJECTED = "rejected",
5562
+ DELETED = "deleted",
5563
+ EXPIRED = "expired"
5564
+ }
5565
+ declare enum OvernightParkingRequestSort {
5566
+ ID = "_id",
5567
+ CREATED_AT = "createdAt"
5568
+ }
5569
+ type TOvernightParkingRequest = {
5570
+ _id?: ObjectId;
5571
+ site: string | ObjectId;
5572
+ name: string;
5573
+ contact: string;
5574
+ email: string;
5575
+ isOvernightParking?: boolean;
5576
+ numberOfPassengers?: number;
5577
+ purposeOfVisit?: string;
5578
+ status?: OvernightParkingRequestStatus;
5579
+ comment?: string | null;
5580
+ createdAt?: string | Date;
5581
+ updatedAt?: string | Date;
5582
+ deletedAt?: string | Date;
5583
+ };
5584
+ declare const schemaOvernightParkingRequest: Joi.ObjectSchema<any>;
5585
+ declare const schemaUpdateOvernightParkingRequest: Joi.ObjectSchema<any>;
5586
+ declare function MOvernightParkingRequest(value: TOvernightParkingRequest): {
5587
+ createdAt: string;
5588
+ updatedAt: string | Date | undefined;
5589
+ deletedAt: string | Date | undefined;
5590
+ _id?: ObjectId | undefined;
5591
+ site: string | ObjectId;
5592
+ name: string;
5593
+ contact: string;
5594
+ email: string;
5595
+ isOvernightParking?: boolean | undefined;
5596
+ numberOfPassengers?: number | undefined;
5597
+ purposeOfVisit?: string | undefined;
5598
+ status?: OvernightParkingRequestStatus | undefined;
5599
+ comment?: string | null | undefined;
5600
+ };
5601
+
5602
+ declare const overnight_parking_requests_namespace_collection = "site.overnight-parking-requests";
5603
+ declare function useOvernightParkingRequestRepo(): {
5604
+ add: (value: TOvernightParkingRequest, session?: ClientSession) => Promise<ObjectId>;
5605
+ getAll: ({ site, page, limit, sort, status, }: {
5606
+ site: string | ObjectId;
5607
+ page: number;
5608
+ limit: number;
5609
+ sort: Record<string, 1 | -1>;
5610
+ status: string;
5611
+ }) => Promise<{}>;
5612
+ getOvernightParkingRequestById: (id: string | ObjectId) => Promise<{}>;
5613
+ updateOvernightParkingRequestById: (id: string | ObjectId, value: TOvernightParkingRequest, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5614
+ deleteOvernightParkingRequestById: (id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5615
+ updateExpiredRequests: (site: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5616
+ };
5617
+
5618
+ declare function useOvernightParkingRequestService(): {
5619
+ add: (value: TOvernightParkingRequest) => Promise<bson.ObjectId>;
5620
+ updateOvernightParkingRequestById: (id: string, value: TOvernightParkingRequest) => Promise<mongodb.UpdateResult<bson.Document>>;
5621
+ deleteOvernightParkingRequestById: (id: string) => Promise<mongodb.UpdateResult<bson.Document>>;
5622
+ processExpiredRequests: () => Promise<void>;
5623
+ };
5624
+
5625
+ declare function useOvernightParkingRequestController(): {
5626
+ add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5627
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5628
+ getOvernightParkingRequestById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5629
+ updateOvernightParkingRequestById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5630
+ deleteOvernightParkingRequestById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5631
+ };
5632
+
5633
+ declare function useHrmLabsAttendanceSrvc(): {
5634
+ getAttendanceData: (payload: any) => Promise<{
5635
+ success: boolean;
5636
+ message: string;
5637
+ items?: undefined;
5638
+ pages?: undefined;
5639
+ pageRange?: undefined;
5640
+ count?: undefined;
5641
+ } | {
5642
+ success: boolean;
5643
+ message: string;
5644
+ items: never[];
5645
+ pages: number;
5646
+ pageRange: string;
5647
+ count: {};
5648
+ } | {
5649
+ items: any[];
5650
+ pages: number;
5651
+ pageRange: string;
5652
+ success?: undefined;
5653
+ message?: undefined;
5654
+ count?: undefined;
5655
+ }>;
5656
+ getAttendanceDataCount: (payload: any) => Promise<{
5657
+ success: boolean;
5658
+ message: string;
5659
+ totalCount?: undefined;
5660
+ } | {
5661
+ totalCount: {
5662
+ dayShift: {
5663
+ actual: any;
5664
+ expected: any;
5665
+ };
5666
+ afternoonShift: {
5667
+ actual: any;
5668
+ expected: any;
5669
+ };
5670
+ nightShift: {
5671
+ actual: any;
5672
+ expected: any;
5673
+ };
5674
+ };
5675
+ success?: undefined;
5676
+ message?: undefined;
5677
+ }>;
5678
+ getAllAttendance: (payload: any) => Promise<{
5679
+ success: boolean;
5680
+ message: string;
5681
+ items?: undefined;
5682
+ count?: undefined;
5683
+ countPerJobTitle?: undefined;
5684
+ totalCount?: undefined;
5685
+ countPerStatus?: undefined;
5686
+ } | {
5687
+ success: boolean;
5688
+ message: string;
5689
+ items: never[];
5690
+ count: {};
5691
+ countPerJobTitle: {
5692
+ name: any;
5693
+ count: number;
5694
+ total: any;
5695
+ }[];
5696
+ totalCount: {
5697
+ dayShift: {
5698
+ actual: number;
5699
+ expected: any;
5700
+ };
5701
+ afternoonShift: {
5702
+ actual: number;
5703
+ expected: any;
5704
+ };
5705
+ nightShift: {
5706
+ actual: number;
5707
+ expected: any;
5708
+ };
5709
+ };
5710
+ countPerStatus: {
5711
+ onTime: number;
5712
+ late: number;
5713
+ noShow: number;
5714
+ earlyOut: number;
5715
+ totalCount: number;
5716
+ };
5717
+ } | {
5718
+ items: any;
5719
+ countPerJobTitle: {
5720
+ name: any;
5721
+ count: number;
5722
+ total: any;
5723
+ }[];
5724
+ totalCount: {
5725
+ dayShift: {
5726
+ actual: any;
5727
+ expected: any;
5728
+ };
5729
+ afternoonShift: {
5730
+ actual: any;
5731
+ expected: any;
5732
+ };
5733
+ nightShift: {
5734
+ actual: any;
5735
+ expected: any;
5736
+ };
5737
+ };
5738
+ countPerStatus: {
5739
+ onTime: number;
5740
+ late: number;
5741
+ noShow: number;
5742
+ earlyOut: number;
5743
+ totalCount: number;
5744
+ };
5745
+ success?: undefined;
5746
+ message?: undefined;
5747
+ count?: undefined;
5748
+ }>;
5749
+ getChartAttendanceData: (payload: any) => Promise<{
5750
+ success: boolean;
5751
+ message: string;
5752
+ items?: undefined;
5753
+ pages?: undefined;
5754
+ pageRange?: undefined;
5755
+ count?: undefined;
5756
+ chartCount?: undefined;
5757
+ } | {
5758
+ success: boolean;
5759
+ message: string;
5760
+ items: never[];
5761
+ pages: number;
5762
+ pageRange: string;
5763
+ count: {};
5764
+ chartCount?: undefined;
5765
+ } | {
5766
+ chartCount: {
5767
+ date: string;
5768
+ late: number;
5769
+ under: number;
5770
+ over: number;
5771
+ normal: number;
5772
+ }[];
5773
+ success?: undefined;
5774
+ message?: undefined;
5775
+ items?: undefined;
5776
+ pages?: undefined;
5777
+ pageRange?: undefined;
5778
+ count?: undefined;
5779
+ }>;
5780
+ };
5781
+
5782
+ declare function useHrmLabsAttendanceCtrl(): {
5783
+ getAttendanceData: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5784
+ getAttendanceDataCount: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5785
+ getAllAttendance: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5786
+ getChartAttendanceData: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5787
+ };
5788
+
5789
+ type TRemarks = {
5790
+ name: string;
5791
+ remark: {
5792
+ isAcknowledged: boolean;
5793
+ status: string;
5794
+ acknowledgementRemarks: string;
5795
+ acknowledgedAt: string;
5796
+ };
5797
+ };
5798
+ type TManpowerRemarks = {
5799
+ _id?: ObjectId;
5800
+ serviceProviderId?: string | ObjectId;
5801
+ siteId: string | ObjectId;
5802
+ siteName: string;
5803
+ remarks: TRemarks[];
5804
+ createdBy?: string | ObjectId;
5805
+ createdByName?: string;
5806
+ createdAt?: Date;
5807
+ createdAtSGT?: string;
5808
+ updatedAt?: string | Date;
5809
+ morningAlertTime?: string;
5810
+ afternoonAlertTime?: string;
5811
+ nightAlertTime?: string;
5812
+ status?: string;
5813
+ };
5814
+ type TManpowerRemarksUpdate = Partial<Pick<TManpowerRemarks, "remarks" | "updatedAt" | "createdBy" | "createdByName">>;
5815
+ type TManpowerRemarksStatusUpdate = Partial<Pick<TManpowerRemarks, "status">>;
5816
+ declare const remarksSchema: Joi.ObjectSchema<any>;
5817
+ declare const manpowerRemarksSchema: Joi.ObjectSchema<any>;
5818
+ declare class MManpowerRemarks implements Partial<TManpowerRemarks> {
5819
+ _id?: ObjectId;
5820
+ serviceProviderId: string | ObjectId;
5821
+ siteId: string | ObjectId;
5822
+ siteName: string;
5823
+ remarks: TRemarks[];
5824
+ createdBy?: string | ObjectId;
5825
+ createdByName?: string;
5826
+ createdAt?: Date;
5827
+ createdAtSGT?: string;
5828
+ updatedAt?: string | Date;
5829
+ morningAlertTime?: string;
5830
+ afternoonAlertTime?: string;
5831
+ nightAlertTime?: string;
5832
+ status?: string;
5833
+ constructor(data: Partial<TManpowerRemarks>);
5834
+ }
5835
+
5836
+ declare function useManpowerRemarksRepo(): {
5837
+ createManpowerRemarks: (value: TManpowerRemarks, session?: ClientSession) => Promise<mongodb.InsertOneResult<bson.Document>>;
5838
+ getManpowerRemarksAllSite: ({ page, limit, serviceProviderId, search, status, date, }: {
5839
+ page?: number | undefined;
5840
+ limit?: number | undefined;
5841
+ serviceProviderId?: string | undefined;
5842
+ search?: string | undefined;
5843
+ status?: string | undefined;
5844
+ date?: string | undefined;
5845
+ }) => Promise<{
5846
+ items: any[];
5847
+ pages: number;
5848
+ pageRange: string;
5849
+ }>;
5850
+ getManpowerRemarksBySiteId: (_id: string | ObjectId, date: string, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
5851
+ updateManpowerRemarks: (_id: string | ObjectId, value: TManpowerRemarksUpdate) => Promise<number>;
5852
+ updateRemarksStatus: (_id: string | ObjectId, value: TManpowerRemarksStatusUpdate) => Promise<number>;
5853
+ };
5854
+
5855
+ declare function useManpowerRemarkCtrl(): {
5856
+ createManpowerRemark: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5857
+ getManpowerRemarksAllSite: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5858
+ getManpowerRemarksBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5859
+ updateManpowerMonitoringSettings: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5860
+ updateRemarksStatus: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
5861
+ };
5862
+
5863
+ export { ANPRMode, AccessTypeProps, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinRecipient, BulletinSort, BulletinStatus, Camera, CameraType, DEVICE_STATUS, DayOfWeek, 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, MManpowerRemarks, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPromoCode, MRobot, MRole, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, Period, PersonType, PersonTypes, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, SubscriptionType, 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, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, 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, addressSchema, 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, manpowerRemarksSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, orgSchema, overnight_parking_requests_namespace_collection, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, 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, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, 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, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, 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, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, 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 };