@7365admin1/core 2.7.0 → 2.9.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.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 90dd6e9: update new core package
8
+
9
+ ## 2.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 0228d6b: update core package to latest changes
14
+
3
15
  ## 2.7.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -549,6 +549,7 @@ type TAddress = {
549
549
  postalCode: string;
550
550
  taxId: string;
551
551
  };
552
+ declare function MAddress(value: any): TAddress;
552
553
 
553
554
  declare function useSubscriptionService(): {
554
555
  createOrgSubscription: (value: {
@@ -2073,8 +2074,12 @@ type TAttendanceSettings = {
2073
2074
  location?: TAttendanceLocation;
2074
2075
  isGeofencingEnabled?: boolean;
2075
2076
  mile?: number;
2077
+ postalCode?: string;
2078
+ country?: string;
2079
+ city?: string;
2080
+ address?: string;
2076
2081
  };
2077
- type TAttendanceSettingsGetBySite = Pick<TAttendanceSettings, "isLocationEnabled" | "location" | "isGeofencingEnabled" | "mile">;
2082
+ type TAttendanceSettingsGetBySite = Pick<TAttendanceSettings, "isLocationEnabled" | "location" | "isGeofencingEnabled" | "mile" | "postalCode" | "country" | "city" | "address">;
2078
2083
  declare const attendanceSettingsSchema: Joi.ObjectSchema<any>;
2079
2084
  declare function MAttendanceSettings(value: TAttendanceSettings): {
2080
2085
  site: string | ObjectId;
@@ -2082,6 +2087,10 @@ declare function MAttendanceSettings(value: TAttendanceSettings): {
2082
2087
  location: TAttendanceLocation | undefined;
2083
2088
  isGeofencingEnabled: boolean | undefined;
2084
2089
  mile: number | undefined;
2090
+ postalCode: string;
2091
+ country: string;
2092
+ city: string;
2093
+ address: string;
2085
2094
  };
2086
2095
 
2087
2096
  declare function useAttendanceSettingsRepository(): {
@@ -3603,86 +3612,181 @@ declare function useSiteUnitBillingController(): {
3603
3612
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3604
3613
  };
3605
3614
 
3606
- type TAccessManagement = {
3607
- _id: ObjectId;
3608
- accessCardType: string;
3615
+ interface AssignCardConfig {
3616
+ units: string[] | ObjectId[];
3617
+ quantity: number;
3609
3618
  type: string;
3610
- cardNumber: string;
3611
- startDate: string | Date;
3612
- endDate: string | Date;
3613
- door: string;
3614
- accessGroup: Array<string>;
3615
- cardType: string;
3616
- pinNo: string;
3617
- useAsLiftCard: boolean;
3619
+ site: string | ObjectId;
3620
+ userType: EAccessCardUserTypes;
3621
+ accessLevel: string;
3618
3622
  liftAccessLevel: string;
3619
- isActivate: boolean;
3623
+ }
3624
+ interface BulkCardUpdate {
3625
+ updateOne: {
3626
+ filter: {
3627
+ _id: ObjectId;
3628
+ };
3629
+ update: {
3630
+ $set: {
3631
+ assignedUnit: ObjectId | ObjectId[];
3632
+ };
3633
+ };
3634
+ };
3635
+ }
3636
+ declare enum EAccessCardTypes {
3637
+ NFC = "NFC",
3638
+ QR = "QRCODE"
3639
+ }
3640
+ declare enum EAccessCardUserTypes {
3641
+ RESIDENT = "Resident/Tenant",
3642
+ CONTRACTOR = "Contractor",
3643
+ VISITOR = "Visitor"
3644
+ }
3645
+ interface TDefaultAccessCard extends Omit<IAccessCard, "_id" | "staffNo" | "fullName" | "dateOrBirth" | "dateOfJoin" | "userId"> {
3646
+ unit?: string[] | [];
3647
+ }
3648
+ interface IAccessCard {
3649
+ _id?: ObjectId;
3650
+ userId?: ObjectId;
3651
+ site: ObjectId;
3652
+ staffNo?: string | null;
3653
+ fullName?: string;
3654
+ type?: EAccessCardTypes;
3655
+ accessLevel?: string;
3656
+ accessGroup?: string[] | [];
3657
+ accessType: AccessTypeProps;
3658
+ cardNo: string;
3659
+ pin: string;
3660
+ qrData?: string;
3661
+ startDate: Date;
3662
+ endDate: Date;
3663
+ isActivated: boolean;
3620
3664
  isAntiPassBack: boolean;
3621
- status: string;
3622
- org?: string | ObjectId;
3623
- site?: string | ObjectId;
3624
- unit?: string;
3625
- assign?: string;
3626
- createdBy: ObjectId;
3627
- updatedBy: ObjectId;
3665
+ isLiftCard: boolean;
3666
+ liftAccessLevel?: string;
3628
3667
  createdAt: Date;
3629
3668
  updatedAt: Date;
3669
+ assignedUnit?: ObjectId | ObjectId[] | null;
3670
+ userType?: EAccessCardUserTypes | string;
3671
+ qrTag?: string;
3672
+ qrTagCardNo?: string;
3673
+ isActivate?: boolean;
3674
+ doorName?: string;
3675
+ liftName?: string;
3676
+ remarks?: string;
3677
+ replacementStatus?: string;
3678
+ replacementCardNo?: string;
3679
+ requestDate?: Date;
3680
+ vmsRemarks?: string;
3681
+ isWinsland?: boolean;
3682
+ }
3683
+ declare enum AccessTypeProps {
3684
+ NORMAL = "Normal",
3685
+ SPECIAL = "Special",
3686
+ MASTER = "Master",
3687
+ MAINTENANCE = "Maintenance"
3688
+ }
3689
+ type TDocs = {
3690
+ id: string;
3691
+ name: string;
3630
3692
  };
3631
- declare const schemaAccessManagement: Joi.ObjectSchema<any>;
3632
- declare const schemaUpdateAccessManagement: Joi.ObjectSchema<any>;
3633
- declare function MAccessManagement(value: TAccessManagement): {
3693
+ interface IAccessCardTransaction {
3694
+ _id?: ObjectId;
3695
+ index: number | string;
3696
+ site?: ObjectId | string;
3697
+ cardNo: string;
3698
+ staffNo: string;
3699
+ staffName: string;
3700
+ accessType: string;
3701
+ accessStatus: string;
3702
+ description: string;
3703
+ accessTime: Date;
3704
+ createdAt?: Date;
3705
+ }
3706
+ declare class MAccessCardTransaction implements Partial<IAccessCardTransaction> {
3707
+ _id?: ObjectId;
3708
+ index: number | string;
3709
+ site?: ObjectId | string;
3710
+ cardNo: string;
3711
+ staffNo: string;
3712
+ staffName: string;
3713
+ accessType: string;
3714
+ accessStatus: string;
3715
+ description: string;
3716
+ accessTime: Date;
3717
+ createdAt?: Date;
3718
+ constructor({ _id, index, site, cardNo, staffNo, staffName, accessType, accessStatus, description, accessTime, createdAt, }?: IAccessCardTransaction);
3719
+ }
3720
+ declare class MAccessCard implements Partial<IAccessCard> {
3634
3721
  _id: ObjectId;
3635
- accessCardType: string;
3636
- type: string;
3637
- cardNumber: string;
3638
- startDate: string | Date;
3639
- endDate: string | Date;
3640
- door: string;
3641
- accessGroup: string[];
3642
- cardType: string;
3643
- pinNo: string;
3644
- useAsLiftCard: boolean;
3645
- liftAccessLevel: string;
3646
- isActivate: boolean;
3647
- isAntiPassBack: boolean;
3648
- status: string;
3649
- org: string | ObjectId | undefined;
3650
- site: string | ObjectId | undefined;
3651
- unit: string | undefined;
3652
- assign: string | undefined;
3653
- createdBy: ObjectId;
3654
- updatedBy: ObjectId;
3655
- createdAt: Date;
3656
- updatedAt: Date;
3657
- };
3722
+ userId?: ObjectId;
3723
+ site: ObjectId;
3724
+ staffNo?: string | null;
3725
+ type?: EAccessCardTypes;
3726
+ accessLevel?: string;
3727
+ accessGroup?: string[] | [];
3728
+ accessType: AccessTypeProps;
3729
+ cardNo: string;
3730
+ pin: string;
3731
+ qrData?: string;
3732
+ startDate: Date;
3733
+ endDate: Date;
3734
+ isActivated?: boolean;
3735
+ isAntiPassBack?: boolean;
3736
+ isLiftCard?: boolean;
3737
+ liftAccessLevel?: string;
3738
+ liftAccessStartDate?: Date;
3739
+ liftAccessEndDate?: Date;
3740
+ createdAt?: Date;
3741
+ updatedAt?: Date;
3742
+ assignedUnit?: ObjectId | ObjectId[] | null;
3743
+ userType?: EAccessCardUserTypes | string;
3744
+ doorName?: string;
3745
+ liftName?: string;
3746
+ replacementStatus?: string;
3747
+ vmsRemarks?: string;
3748
+ constructor({ _id, userId, site, staffNo, type, accessLevel, accessGroup, accessType, cardNo, pin, qrData, startDate, endDate, isActivated, isAntiPassBack, isLiftCard, liftAccessLevel, createdAt, updatedAt, assignedUnit, userType, doorName, liftName, replacementStatus, vmsRemarks, }?: IAccessCard);
3749
+ }
3750
+ interface QrTagProps {
3751
+ _id: string | ObjectId;
3752
+ cardNo: string;
3753
+ qrTag: string;
3754
+ qrTagCardNo?: string;
3755
+ }
3658
3756
 
3659
- declare function useAccessManagementRepo(): {
3660
- createTextIndex: () => Promise<void>;
3661
- add: (value: TAccessManagement, session?: ClientSession) => Promise<ObjectId>;
3662
- getAll: ({ search, page, limit, sort, status, org, site, }: {
3663
- search?: string | undefined;
3664
- page?: number | undefined;
3665
- limit?: number | undefined;
3666
- sort?: Record<string, any> | undefined;
3667
- status: string;
3668
- org?: string | undefined;
3669
- site?: string | undefined;
3757
+ declare function UseAccessManagementRepo(): {
3758
+ createIndexes: () => Promise<string>;
3759
+ addPhysicalCardRepo: ({ payload, }: {
3760
+ payload: TDefaultAccessCard;
3761
+ }) => Promise<ObjectId>;
3762
+ addNonPhysicalCardRepo: (params: {
3763
+ site: string;
3764
+ quantity: number;
3765
+ accessLevel: string;
3766
+ accessGroup: string[];
3767
+ userType: string;
3768
+ doorName?: string;
3769
+ liftName?: string;
3770
+ isLiftCard: boolean;
3771
+ liftAccessLevel: string;
3772
+ unit: string[];
3773
+ startDate: Date | string;
3774
+ endDate: Date | string;
3775
+ createdAt: Date | string;
3776
+ updatedAt: Date | string;
3670
3777
  }) => Promise<{
3671
- items: any[];
3672
- pages: number;
3673
- pageRange: string;
3674
- } | TAccessManagement>;
3675
- getCardById: (_id: string | ObjectId) => Promise<bson.Document>;
3676
- updateCardById: (_id: string | ObjectId, value: TAccessManagement) => Promise<number>;
3677
- deleteCardById: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
3778
+ acknowledged: boolean;
3779
+ insertedCount: number;
3780
+ insertedIds: Record<number, ObjectId>;
3781
+ }>;
3678
3782
  };
3679
3783
 
3680
3784
  declare function useAccessManagementController(): {
3681
- add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3682
- getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3683
- getCardById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3684
- updateCardById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3685
- deleteCardById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
3785
+ addPhysicalCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3786
+ addNonPhysicalCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3787
+ doorAccessLevels: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3788
+ liftAccessLevels: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3789
+ accessGroups: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3686
3790
  };
3687
3791
 
3688
3792
  declare const DEVICE_STATUS: {
@@ -4147,9 +4251,10 @@ type TSiteInfo = {
4147
4251
  type TPlaceOfIncident = {
4148
4252
  block?: number;
4149
4253
  level?: string;
4150
- unit?: ObjectId;
4254
+ unit?: string | ObjectId;
4151
4255
  other?: string | null;
4152
4256
  isOther: boolean;
4257
+ incidentLocation: string;
4153
4258
  };
4154
4259
  type TIncidentTypeAndTime = {
4155
4260
  incidentStart?: string;
@@ -4157,6 +4262,13 @@ type TIncidentTypeAndTime = {
4157
4262
  typeOfIncident: string;
4158
4263
  dateOfIncident?: string | Date;
4159
4264
  };
4265
+ type TAuthoritiesCalled = {
4266
+ type: string;
4267
+ vehicleNumber: string;
4268
+ personInCharge: string;
4269
+ caseReportReference: string;
4270
+ description: string;
4271
+ };
4160
4272
  type TSubmissionForm = {
4161
4273
  dateOfReport: string | Date;
4162
4274
  time?: string;
@@ -4187,17 +4299,31 @@ type TIncidentInformation = {
4187
4299
  recipientOfComplaint?: TRecipientOfComplaint;
4188
4300
  complaintReceivedTo: TComplaintReceivedTo;
4189
4301
  };
4302
+ type TAffectedInjured = {
4303
+ name: string;
4304
+ contact?: string;
4305
+ nric?: string;
4306
+ };
4307
+ type TanyoneDamageToProperty = {
4308
+ description: string;
4309
+ block: number;
4310
+ level: string;
4311
+ unit: string;
4312
+ blkLevelUnit: string;
4313
+ name: string;
4314
+ contact: string;
4315
+ };
4190
4316
  type TAffectedEntities = {
4191
4317
  anyUnitAffectedValue: "yes" | "no";
4192
4318
  affectedUnit?: Record<string, any> | ObjectId;
4193
4319
  anyoneAffectedValue: "yes" | "no";
4194
- affectedInjured: string[];
4320
+ affectedInjured: TAffectedInjured[];
4195
4321
  anyPropertyAffectedValue: "yes" | "no";
4196
- anyoneDamageToProperty: string[];
4322
+ anyoneDamageToProperty: TanyoneDamageToProperty[];
4197
4323
  };
4198
4324
  type TAuthorities = {
4199
4325
  authoritiesValue: "yes" | "no";
4200
- authoritiesCalled: string[];
4326
+ authoritiesCalled: TAuthoritiesCalled[];
4201
4327
  incidentThereAfter?: string;
4202
4328
  managementNotified?: TActionStatus;
4203
4329
  incidentResolved?: string;
@@ -4222,12 +4348,12 @@ type TIncidentReport = {
4222
4348
  affectedEntities: TAffectedEntities;
4223
4349
  authorities: TAuthorities;
4224
4350
  briefSummary?: string;
4225
- organization: ObjectId;
4226
- site: ObjectId;
4351
+ organization: ObjectId | string;
4352
+ site: string | ObjectId;
4227
4353
  photos?: string[];
4228
4354
  approvedBy?: ObjectId | null;
4229
4355
  approvedByName?: string;
4230
- reasonForReject?: string | null;
4356
+ remarks?: string | null;
4231
4357
  status: "pending" | "approved" | "rejected";
4232
4358
  createdAt?: string | Date;
4233
4359
  updatedAt?: string | Date;
@@ -4243,12 +4369,12 @@ declare function MIncidentReport(value: TIncidentReport): {
4243
4369
  affectedEntities: TAffectedEntities;
4244
4370
  authorities: TAuthorities;
4245
4371
  briefSummary: string;
4246
- organization: ObjectId;
4247
- site: ObjectId;
4372
+ organization: string | ObjectId;
4373
+ site: string | ObjectId;
4248
4374
  photos: string[];
4249
4375
  approvedBy: ObjectId | null;
4250
4376
  approvedByName: string;
4251
- reasonForReject: string | null;
4377
+ remarks: string | null;
4252
4378
  status: "pending" | "approved" | "rejected";
4253
4379
  createdAt: string | Date;
4254
4380
  updatedAt: string | Date | undefined;
@@ -4256,8 +4382,10 @@ declare function MIncidentReport(value: TIncidentReport): {
4256
4382
  };
4257
4383
 
4258
4384
  declare function useIncidentReportService(): {
4259
- add: (value: TIncidentReport) => Promise<string>;
4385
+ add: (value: TIncidentReport) => Promise<ObjectId>;
4260
4386
  updateIncidentReportById: (id: string | ObjectId, value: Partial<TIncidentReport>) => Promise<string>;
4387
+ createIncidentSummary: (value: Partial<TIncidentReport>) => Promise<string>;
4388
+ reviewIncidentReport: (id: string | ObjectId, value: Partial<TIncidentReport>) => Promise<string>;
4261
4389
  };
4262
4390
 
4263
4391
  declare function useIncidentReportController(): {
@@ -4266,6 +4394,8 @@ declare function useIncidentReportController(): {
4266
4394
  getIncidentReportById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4267
4395
  updateIncidentReportById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4268
4396
  deleteIncidentReportById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4397
+ createIncidentSummary: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4398
+ reviewIncidentReport: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4269
4399
  };
4270
4400
 
4271
4401
  declare function useIncidentReportRepo(): {
@@ -4288,6 +4418,7 @@ declare function useIncidentReportRepo(): {
4288
4418
  deleteIncidentReportById: (_id: string | ObjectId) => Promise<number>;
4289
4419
  createIndexes: () => Promise<void>;
4290
4420
  createTextIndex: () => Promise<void>;
4421
+ reviewIncidentReport: (_id: ObjectId | string, value: Partial<TIncidentReport>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
4291
4422
  };
4292
4423
 
4293
4424
  type TNfcPatrolSettings = {
@@ -4610,4 +4741,10 @@ declare function useNfcPatrolLogController(): {
4610
4741
  getAllBySite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4611
4742
  };
4612
4743
 
4613
- export { Camera, DEVICE_STATUS, MAccessManagement, 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, PERSON_TYPES, PersonType, SiteType, TAccessManagement, TActionStatus, TAffectedEntities, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TChat, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCustomer, TCustomerSite, TDayNumber, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRobot, TRobotMetadata, TRole, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, allowedCategories, allowedFieldsSite, allowedNatures, allowedTypes, attendanceSchema, attendanceSettingsSchema, chatSchema, customerSchema, feedbackSchema, logCamera, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, orgSchema, promoCodeSchema, robotSchema, schema, schemaAccessManagement, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateAccessManagement, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, siteSchema, tokenSchema, useAccessManagementController, useAccessManagementRepo, 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 };
4744
+ declare function useAddressRepo(): {
4745
+ createIndex: () => Promise<void>;
4746
+ add: (value: TAddress, session?: ClientSession) => Promise<ObjectId>;
4747
+ getByUserId: (user: string | ObjectId) => Promise<TAddress | null>;
4748
+ };
4749
+
4750
+ export { AccessTypeProps, AssignCardConfig, BulkCardUpdate, Camera, DEVICE_STATUS, EAccessCardTypes, EAccessCardUserTypes, 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, PERSON_TYPES, PersonType, QrTagProps, SiteType, 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, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRobot, TRobotMetadata, TRole, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, allowedCategories, allowedFieldsSite, allowedNatures, allowedTypes, attendanceSchema, attendanceSettingsSchema, chatSchema, customerSchema, feedbackSchema, logCamera, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, orgSchema, promoCodeSchema, robotSchema, schema, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, 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, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, siteSchema, tokenSchema, 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 };