@7365admin1/core 2.65.0 → 2.67.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,17 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.67.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fb5988e: update core package with latest changes 22-05-2026 1633H
8
+
9
+ ## 2.66.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 955137e: update latest changes for preloved api, people api, and user changes
14
+
3
15
  ## 2.65.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -91,6 +91,13 @@ type TUser = {
91
91
  defaultOrg?: string | ObjectId;
92
92
  status?: string;
93
93
  sid?: string;
94
+ block?: number | null;
95
+ level?: string;
96
+ type?: string;
97
+ unitName?: string;
98
+ contact?: string;
99
+ site?: string | ObjectId;
100
+ unitId?: string | ObjectId;
94
101
  createdAt?: string;
95
102
  updatedAt?: string;
96
103
  deletedAt?: string;
@@ -102,7 +109,14 @@ declare function MUser(value: TUser): {
102
109
  password: string;
103
110
  name: string;
104
111
  defaultOrg: string | ObjectId;
105
- status: UserStatus;
112
+ status: string;
113
+ block: number | null;
114
+ level: string;
115
+ type: string;
116
+ unitName: string;
117
+ contact: string;
118
+ site: string | ObjectId;
119
+ unitId: string | ObjectId;
106
120
  createdAt: string;
107
121
  updatedAt: string;
108
122
  deletedAt: string;
@@ -541,6 +555,7 @@ declare function useOrgRepo(): {
541
555
  }, session?: ClientSession) => Promise<string>;
542
556
  updateStatusById: (_id: string | ObjectId, status: string) => Promise<string>;
543
557
  deleteById: (_id: string | ObjectId) => Promise<string>;
558
+ getOrgsByEmail: (email: string) => Promise<TOrg[]>;
544
559
  };
545
560
 
546
561
  declare function useOrgController(): {
@@ -552,6 +567,7 @@ declare function useOrgController(): {
552
567
  getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
553
568
  getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
554
569
  update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
570
+ getOrgsByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
555
571
  };
556
572
 
557
573
  /**
@@ -704,8 +720,8 @@ declare const TPrice: z.ZodObject<{
704
720
  deletedAt: z.ZodOptional<z.ZodDate>;
705
721
  }, "strip", z.ZodTypeAny, {
706
722
  name: string;
707
- value: number;
708
723
  type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
724
+ value: number;
709
725
  createdAt?: Date | undefined;
710
726
  _id?: ObjectId | undefined;
711
727
  updatedAt?: Date | undefined;
@@ -716,10 +732,10 @@ declare const TPrice: z.ZodObject<{
716
732
  name: string;
717
733
  createdAt?: Date | undefined;
718
734
  _id?: string | ObjectId | undefined;
735
+ type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
719
736
  updatedAt?: Date | undefined;
720
737
  deletedAt?: Date | undefined;
721
738
  value?: number | undefined;
722
- type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
723
739
  saleValue?: number | undefined;
724
740
  saleExpiry?: Date | undefined;
725
741
  }>;
@@ -727,8 +743,8 @@ type TPrice = z.infer<typeof TPrice>;
727
743
  declare function usePriceModel(db: Db): {
728
744
  createPrice: (value: Pick<TPrice, "type" | "name" | "value">) => {
729
745
  name: string;
730
- value: number;
731
746
  type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
747
+ value: number;
732
748
  createdAt?: Date | undefined;
733
749
  _id?: ObjectId | undefined;
734
750
  updatedAt?: Date | undefined;
@@ -740,16 +756,16 @@ declare function usePriceModel(db: Db): {
740
756
  name: string;
741
757
  createdAt?: Date | undefined;
742
758
  _id?: string | ObjectId | undefined;
759
+ type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
743
760
  updatedAt?: Date | undefined;
744
761
  deletedAt?: Date | undefined;
745
762
  value?: number | undefined;
746
- type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
747
763
  saleValue?: number | undefined;
748
764
  saleExpiry?: Date | undefined;
749
765
  }, {
750
766
  name: string;
751
- value: number;
752
767
  type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
768
+ value: number;
753
769
  createdAt?: Date | undefined;
754
770
  _id?: ObjectId | undefined;
755
771
  updatedAt?: Date | undefined;
@@ -759,8 +775,8 @@ declare function usePriceModel(db: Db): {
759
775
  }>;
760
776
  collection: Collection<{
761
777
  name: string;
762
- value: number;
763
778
  type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
779
+ value: number;
764
780
  createdAt?: Date | undefined;
765
781
  _id?: ObjectId | undefined;
766
782
  updatedAt?: Date | undefined;
@@ -974,6 +990,7 @@ declare const TInvoice: z.ZodObject<{
974
990
  createdAt?: Date | undefined;
975
991
  _id?: string | ObjectId | undefined;
976
992
  status?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
993
+ type?: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other" | undefined;
977
994
  updatedAt?: Date | undefined;
978
995
  metadata?: {
979
996
  description?: string | undefined;
@@ -983,7 +1000,6 @@ declare const TInvoice: z.ZodObject<{
983
1000
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
984
1001
  subscriptionId?: string | ObjectId | undefined;
985
1002
  } | undefined;
986
- type?: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other" | undefined;
987
1003
  descriptions?: string | undefined;
988
1004
  }>;
989
1005
  type TInvoice = z.infer<typeof TInvoice>;
@@ -3721,42 +3737,50 @@ type TDocumentManagement = {
3721
3737
  _id?: ObjectId;
3722
3738
  name: string;
3723
3739
  type?: string;
3724
- attachment: string;
3725
- status: string;
3740
+ attachment?: string;
3741
+ remarks?: string;
3742
+ isFolder?: boolean;
3726
3743
  org?: string | ObjectId;
3727
3744
  site?: string | ObjectId;
3745
+ parentId?: string | ObjectId;
3728
3746
  createdBy: string | ObjectId;
3729
3747
  updatedBy?: string | ObjectId;
3730
3748
  createdAt?: string | Date;
3731
3749
  updatedAt?: string | Date;
3750
+ status: string;
3732
3751
  };
3733
3752
  declare const schemaDocumentManagement: Joi.ObjectSchema<any>;
3734
3753
  declare const schemaUpdateDocumentManagement: Joi.ObjectSchema<any>;
3735
3754
  declare function MDocumentManagement(value: TDocumentManagement): {
3755
+ createdBy: string | ObjectId;
3756
+ updatedBy: string | ObjectId | undefined;
3757
+ createdAt: string | Date;
3758
+ updatedAt: string | Date;
3759
+ status: string;
3760
+ parentId?: string | ObjectId | undefined;
3736
3761
  _id: ObjectId | undefined;
3737
3762
  name: string;
3738
3763
  type: string | undefined;
3739
- attachment: string;
3740
- status: string;
3764
+ attachment: string | undefined;
3765
+ remarks: string;
3766
+ isFolder: boolean;
3741
3767
  org: string | ObjectId | undefined;
3742
3768
  site: string | ObjectId | undefined;
3743
- createdBy: string | ObjectId;
3744
- updatedBy: string | ObjectId | undefined;
3745
- createdAt: string | Date;
3746
- updatedAt: string | Date;
3747
3769
  };
3748
3770
 
3749
3771
  declare function useDocumentManagementRepo(): {
3772
+ createIndex: () => Promise<void>;
3750
3773
  createTextIndex: () => Promise<void>;
3751
3774
  add: (value: TDocumentManagement, session?: ClientSession) => Promise<ObjectId>;
3752
- getAll: ({ search, page, limit, sort, status, org, site, }: {
3775
+ getAll: ({ search, page, limit, sort, status, org, site, parentId, }: {
3753
3776
  search?: string | undefined;
3754
3777
  page?: number | undefined;
3755
3778
  limit?: number | undefined;
3756
3779
  sort?: Record<string, any> | undefined;
3757
3780
  status: string;
3758
- org?: string | undefined;
3759
- site?: string | ObjectId | undefined;
3781
+ org?: string | ObjectId | undefined;
3782
+ site: string | ObjectId;
3783
+ parentId?: string | ObjectId | null | undefined;
3760
3784
  }) => Promise<{
3761
3785
  items: any[];
3762
3786
  pages: number;
@@ -3770,19 +3794,6 @@ declare function useDocumentManagementRepo(): {
3770
3794
 
3771
3795
  declare function useDocumentManagementService(): {
3772
3796
  createDocument: (value: TDocumentManagement) => Promise<string>;
3773
- getDocuments: ({ search, page, limit, sort, status, org, site, }: {
3774
- search?: string | undefined;
3775
- page?: number | undefined;
3776
- limit?: number | undefined;
3777
- sort?: Record<string, any> | undefined;
3778
- site?: string | undefined;
3779
- status: string;
3780
- org?: string | undefined;
3781
- }) => Promise<{
3782
- items: any[];
3783
- pages: number;
3784
- pageRange: string;
3785
- } | TDocumentManagement>;
3786
3797
  };
3787
3798
 
3788
3799
  declare function useDocumentManagementController(): {
@@ -4722,7 +4733,7 @@ declare function UseAccessManagementRepo(): {
4722
4733
  site: string;
4723
4734
  }) => Promise<bson.Document[]>;
4724
4735
  indexCombination: () => Promise<string>;
4725
- getTransactionsRepo: ({ page, limit, site, cardNo, url }: {
4736
+ getTransactionsRepo: ({ page, limit, site, cardNo, url, }: {
4726
4737
  page: number;
4727
4738
  limit: number;
4728
4739
  site: string | ObjectId;
@@ -4733,7 +4744,7 @@ declare function UseAccessManagementRepo(): {
4733
4744
  pages: number;
4734
4745
  pageRange: string;
4735
4746
  }>;
4736
- assignMultipleCardsRepo: ({ assignees, unit, type, acm_url }: {
4747
+ assignMultipleCardsRepo: ({ assignees, unit, type, acm_url, }: {
4737
4748
  assignees: string[] | ObjectId[];
4738
4749
  unit: string | ObjectId;
4739
4750
  type: string;
@@ -4742,11 +4753,16 @@ declare function UseAccessManagementRepo(): {
4742
4753
  visitorCheckoutRepo: ({ userId }: {
4743
4754
  userId: string;
4744
4755
  }) => Promise<string>;
4745
- uploadTemplateRepo: ({ site, id, name }: {
4756
+ uploadTemplateRepo: ({ site, id, name, }: {
4746
4757
  site: string | ObjectId;
4747
4758
  id: string | ObjectId;
4748
4759
  name: string;
4749
4760
  }) => Promise<mongodb.UpdateResult<bson.Document>>;
4761
+ getResidentsRepo: ({ orgId, siteId, unitId, }: {
4762
+ orgId: string | ObjectId;
4763
+ siteId: string | ObjectId;
4764
+ unitId: string | ObjectId;
4765
+ }) => Promise<bson.Document[]>;
4750
4766
  };
4751
4767
 
4752
4768
  declare function useAccessManagementController(): {
@@ -4780,7 +4796,7 @@ declare function useAccessManagementController(): {
4780
4796
  addVisitorAccessCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4781
4797
  signQrCode: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4782
4798
  checkoutVisitor: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4783
- removeAccessCard: ({ cardNo, staffNo, url }: {
4799
+ removeAccessCard: ({ cardNo, staffNo, url, }: {
4784
4800
  cardNo: string;
4785
4801
  staffNo: string;
4786
4802
  url: string;
@@ -4790,6 +4806,7 @@ declare function useAccessManagementController(): {
4790
4806
  assignMultipleCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4791
4807
  visitorCheckout: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4792
4808
  uploadTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4809
+ getResidents: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4793
4810
  };
4794
4811
 
4795
4812
  declare const DEVICE_STATUS: {
@@ -6893,4 +6910,154 @@ declare function usePostPrelovedController(): {
6893
6910
  updateStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6894
6911
  };
6895
6912
 
6896
- export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, 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, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPost, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, PStatus, Period, PersonStatus, PersonType, PersonTypes, PostOrder, PostSort, PostStatus, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, 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, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, 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, TPost, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, TResident, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, UserStatus, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, formatDahuaDate, getPeriodRangeWithPrevious, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, landscapeDashboardCollection, logCamera, mAndEDashboardCollection, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaApprovedBy, schemaApprover, 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, schemaPost, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, securityDashboardCollection, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, 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, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, 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, useOrgControllerV2, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, 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, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitors_namespace_collection, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
6913
+ type TCategoryPreloved = {
6914
+ _id?: string | ObjectId;
6915
+ name?: string;
6916
+ createdBy?: string | ObjectId;
6917
+ site?: string | ObjectId | null;
6918
+ createdAt?: string | null;
6919
+ updatedAt?: string | null;
6920
+ };
6921
+ declare const schemaCategoryPreloved: Joi.ObjectSchema<any>;
6922
+ declare const schemaUpdateCategoryPreloved: Joi.ObjectSchema<any>;
6923
+ declare function MCategoryPreloved(value: TCategoryPreloved): {
6924
+ name: string;
6925
+ createdBy: string | ObjectId;
6926
+ site: string | ObjectId | null;
6927
+ createdAt: string;
6928
+ updatedAt: string | null;
6929
+ };
6930
+
6931
+ declare function useCategoryPrelovedRepo(): {
6932
+ getAll: ({ search, site, }?: {
6933
+ search?: string | undefined;
6934
+ site?: string | ObjectId | undefined;
6935
+ }) => Promise<mongodb.WithId<bson.Document>[]>;
6936
+ };
6937
+
6938
+ declare function useCategoryPrelovedController(): {
6939
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6940
+ };
6941
+
6942
+ type TSubcategoryPreloved = {
6943
+ _id?: string | ObjectId;
6944
+ name?: string;
6945
+ createdBy?: string | ObjectId;
6946
+ site?: string | ObjectId | null;
6947
+ category_id?: string | ObjectId;
6948
+ createdAt?: string | null;
6949
+ updatedAt?: string | null;
6950
+ };
6951
+ declare const schemaSubcategoryPreloved: Joi.ObjectSchema<any>;
6952
+ declare const schemaUpdateSubcategoryPreloved: Joi.ObjectSchema<any>;
6953
+ declare function MSubcategoryPreloved(value: TSubcategoryPreloved): {
6954
+ name: string;
6955
+ createdBy: string | ObjectId;
6956
+ site: string | ObjectId | null;
6957
+ category_id: string | ObjectId;
6958
+ createdAt: string;
6959
+ updatedAt: string | null;
6960
+ };
6961
+
6962
+ declare function useSubcategoryPrelovedRepo(): {
6963
+ getAll: ({ search, site, category_id, }?: {
6964
+ search?: string | undefined;
6965
+ site?: string | ObjectId | undefined;
6966
+ category_id?: string | ObjectId | undefined;
6967
+ }) => Promise<mongodb.WithId<bson.Document>[]>;
6968
+ };
6969
+
6970
+ declare function useSubcategoryPrelovedController(): {
6971
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6972
+ };
6973
+
6974
+ declare enum FormEntryStatus {
6975
+ ACTIVE = "active",
6976
+ INACTIVE = "inactive",
6977
+ DELETED = "deleted"
6978
+ }
6979
+ type TFormEntry = {
6980
+ _id?: ObjectId;
6981
+ formType: string;
6982
+ fields: Record<string, string | number | boolean | null>;
6983
+ status?: string;
6984
+ org?: string | ObjectId;
6985
+ site?: string | ObjectId;
6986
+ createdAt?: Date;
6987
+ updatedAt?: Date | null;
6988
+ deletedAt?: Date | null;
6989
+ };
6990
+ declare const schemaFormEntry: Joi.ObjectSchema<any>;
6991
+ declare const schemaUpdateFormEntry: Joi.ObjectSchema<any>;
6992
+ declare function MFormEntry(value: TFormEntry): {
6993
+ _id: ObjectId | undefined;
6994
+ formType: string;
6995
+ fields: Record<string, string | number | boolean | null>;
6996
+ status: string | undefined;
6997
+ org: string | ObjectId | undefined;
6998
+ site: string | ObjectId | undefined;
6999
+ createdAt: Date;
7000
+ updatedAt: Date | null;
7001
+ deletedAt: Date | null;
7002
+ };
7003
+
7004
+ declare const online_forms_namespace_collection = "online-forms";
7005
+ declare function useFormEntryRepo(): {
7006
+ add: (value: TFormEntry, session?: ClientSession) => Promise<ObjectId>;
7007
+ createTextIndex: () => Promise<void>;
7008
+ };
7009
+
7010
+ declare function useFormEntryController(): {
7011
+ uploadFormEntrys: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7012
+ };
7013
+
7014
+ declare enum BuildingLevelStatus {
7015
+ ACTIVE = "active",
7016
+ DELETED = "deleted"
7017
+ }
7018
+ type TBuildingLevel = {
7019
+ org?: ObjectId | string;
7020
+ site?: ObjectId | string;
7021
+ blockId?: ObjectId | string;
7022
+ name?: string;
7023
+ status?: BuildingLevelStatus;
7024
+ createdAt?: Date;
7025
+ updatedAt?: Date | null;
7026
+ deletedAt?: Date | null;
7027
+ };
7028
+ declare const schemaBuildingLevel: Joi.ObjectSchema<any>;
7029
+ declare function MBuildingLevel(value: TBuildingLevel): {
7030
+ _id: ObjectId;
7031
+ org: string | ObjectId | undefined;
7032
+ site: string | ObjectId | undefined;
7033
+ blockId: string | ObjectId | undefined;
7034
+ name: string;
7035
+ status: BuildingLevelStatus;
7036
+ createdAt: Date;
7037
+ updatedAt: Date | null;
7038
+ deletedAt: Date | null;
7039
+ };
7040
+
7041
+ declare const building_level_namespace_collection = "building-levels";
7042
+ declare function useBuildingLevelRepo(): {
7043
+ add: (value: TBuildingLevel, session?: ClientSession) => Promise<ObjectId>;
7044
+ getAll: ({ search, page, limit, sort, site, status, }?: {
7045
+ search?: string | undefined;
7046
+ page?: number | undefined;
7047
+ limit?: number | undefined;
7048
+ sort?: {} | undefined;
7049
+ site?: string | undefined;
7050
+ status?: string | undefined;
7051
+ }) => Promise<Record<string, any>>;
7052
+ };
7053
+
7054
+ declare function useBuildingLevelService(): {
7055
+ add: (value: TBuildingLevel) => Promise<string>;
7056
+ };
7057
+
7058
+ declare function useBuildingLevelController(): {
7059
+ add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7060
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7061
+ };
7062
+
7063
+ export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BuildingLevelStatus, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChat, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPost, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, PStatus, Period, PersonStatus, PersonType, PersonTypes, PostOrder, PostSort, PostStatus, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCategoryPreloved, 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, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, 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, TPost, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, TResident, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, UserStatus, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, formatDahuaDate, getPeriodRangeWithPrevious, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, landscapeDashboardCollection, logCamera, mAndEDashboardCollection, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, online_forms_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaApprovedBy, schemaApprover, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPost, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaSubcategoryPreloved, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateCategoryPreloved, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateFormEntry, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, securityDashboardCollection, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBuildingController, useBuildingLevelController, useBuildingLevelRepo, useBuildingLevelService, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useCategoryPrelovedController, useCategoryPrelovedRepo, 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, useFormEntryController, useFormEntryRepo, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, 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, useOrgControllerV2, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, 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, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitors_namespace_collection, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };