@7365admin1/core 2.36.1 → 2.38.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.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a8dabbd: get latest changes
8
+
9
+ ## 2.37.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 933b3da: get latest changes
14
+
3
15
  ## 2.36.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1709,7 +1709,10 @@ type TBuilding = {
1709
1709
  updatedAt?: Date | string;
1710
1710
  deletedAt?: Date | string;
1711
1711
  status?: string;
1712
- buildingFloorPlan?: string[];
1712
+ buildingFiles?: Array<{
1713
+ id: string;
1714
+ name: string;
1715
+ }>;
1713
1716
  };
1714
1717
  declare const schemaBuilding: Joi.ObjectSchema<any>;
1715
1718
  declare const schemaBuildingUpdateOptions: Joi.ObjectSchema<any>;
@@ -1749,7 +1752,10 @@ declare function MBuilding(value: TBuilding): {
1749
1752
  block: number;
1750
1753
  levels: string[];
1751
1754
  status: string;
1752
- buildingFloorPlan: string[];
1755
+ buildingFiles: {
1756
+ id: string;
1757
+ name: string;
1758
+ }[];
1753
1759
  createdAt: string | Date;
1754
1760
  updatedAt: string | Date;
1755
1761
  deletedAt: string | Date;
@@ -1790,14 +1796,14 @@ declare function useBuildingRepo(): {
1790
1796
  status?: BuildingStatus | undefined;
1791
1797
  }) => Promise<Record<string, any>>;
1792
1798
  getById: (_id: string | ObjectId) => Promise<TBuilding | null>;
1793
- updateById: (_id: ObjectId | string, value: Pick<TBuilding, "name" | "block" | "levels" | "buildingFloorPlan">, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
1799
+ updateById: (_id: ObjectId | string, value: Pick<TBuilding, "name" | "block" | "levels" | "buildingFiles">, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
1794
1800
  deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
1795
1801
  getBuildingLevel: (site: string | ObjectId, block: number) => Promise<mongodb.WithId<bson.Document> | TBuilding | null>;
1796
1802
  };
1797
1803
 
1798
1804
  declare function useBuildingService(): {
1799
1805
  add: (value: TBuilding) => Promise<bson.ObjectId>;
1800
- updateById: (id: string, data: Pick<TBuilding, "name" | "block" | "levels" | "buildingFloorPlan">) => Promise<mongodb.UpdateResult<bson.Document>>;
1806
+ updateById: (id: string, data: Pick<TBuilding, "name" | "block" | "levels" | "buildingFiles">) => Promise<mongodb.UpdateResult<bson.Document>>;
1801
1807
  deleteById: (id: string) => Promise<string>;
1802
1808
  };
1803
1809
 
@@ -1970,7 +1976,7 @@ declare function MVehicle(value: TVehicle): {
1970
1976
  block: number;
1971
1977
  level: string;
1972
1978
  unit: string | ObjectId;
1973
- nric: string | undefined;
1979
+ nric: string;
1974
1980
  remarks: string;
1975
1981
  seasonPassType: string;
1976
1982
  start: string | Date;
@@ -2054,6 +2060,19 @@ declare function useVehicleRepo(): {
2054
2060
  pageRange: string;
2055
2061
  }>;
2056
2062
  getAllExpiredVehicles: () => Promise<mongodb.WithId<bson.Document>[]>;
2063
+ bulkUpsertVehicles: (values: TVehicle[], session?: ClientSession) => Promise<{
2064
+ matchedCount: number;
2065
+ modifiedCount: number;
2066
+ upsertedCount: number;
2067
+ upsertedIds?: undefined;
2068
+ } | {
2069
+ matchedCount: number;
2070
+ modifiedCount: number;
2071
+ upsertedCount: number;
2072
+ upsertedIds: {
2073
+ [key: number]: any;
2074
+ };
2075
+ }>;
2057
2076
  };
2058
2077
 
2059
2078
  declare function formatDahuaDate(date: Date): string;
@@ -2073,6 +2092,19 @@ declare function useVehicleService(): {
2073
2092
  processDeletingExpiredVehicles: () => Promise<string>;
2074
2093
  reactivateVehicleById: (id: string, orgId: string, siteId: string) => Promise<string>;
2075
2094
  updateVehicleById: (_id: string, value: TVehicle) => Promise<void>;
2095
+ bulkUpsertVehicles: (values: TVehicle[]) => Promise<{
2096
+ matchedCount: number;
2097
+ modifiedCount: number;
2098
+ upsertedCount: number;
2099
+ upsertedIds?: undefined;
2100
+ } | {
2101
+ matchedCount: number;
2102
+ modifiedCount: number;
2103
+ upsertedCount: number;
2104
+ upsertedIds: {
2105
+ [key: number]: any;
2106
+ };
2107
+ }>;
2076
2108
  };
2077
2109
 
2078
2110
  declare function useVehicleController(): {
@@ -2086,6 +2118,9 @@ declare function useVehicleController(): {
2086
2118
  getVehiclesByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2087
2119
  reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2088
2120
  getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2121
+ bulkUpsertVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2122
+ uploadCsvVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2123
+ uploadExcelVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2089
2124
  };
2090
2125
 
2091
2126
  declare enum CameraType {
@@ -2265,26 +2300,6 @@ interface IBaseModel {
2265
2300
  management?: string;
2266
2301
  date?: string | Date;
2267
2302
  }
2268
- declare enum Status {
2269
- pending = "Pending",
2270
- completed = "Completed",
2271
- approved = "Approved",
2272
- rejected = "Rejected",
2273
- cancelled = "Cancelled",
2274
- recurring = "Recurring",
2275
- nonrecurring = "Non-Recurring",
2276
- active = "Active",
2277
- inactive = "Inactive"
2278
- }
2279
- declare enum PStatus {
2280
- processing = "Processing",
2281
- unpaid = "Unpaid",
2282
- paid = "Paid",
2283
- overdue = "Over Due",
2284
- partial = "Partial Payment",
2285
- await = "Awaiting Payment",
2286
- failed = "Failed"
2287
- }
2288
2303
  declare enum AppServiceType {
2289
2304
  REAL_ESTATE_DEVELOPER = "real_estate_developer",
2290
2305
  PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
@@ -2559,7 +2574,7 @@ type TVisitorTransaction = {
2559
2574
  updatedAt?: string | Date;
2560
2575
  deletedAt?: string | Date;
2561
2576
  purpose?: string;
2562
- invitedId?: string | ObjectId;
2577
+ inviterId?: string | ObjectId;
2563
2578
  };
2564
2579
  declare const schemaVisitorTransaction: Joi.ObjectSchema<any>;
2565
2580
  declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
@@ -2577,7 +2592,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2577
2592
  plateNumber: string | undefined;
2578
2593
  recNo: string | undefined;
2579
2594
  checkIn: string | Date | null;
2580
- expectedCheckIn: string | Date | undefined;
2595
+ expectedCheckIn: Date | undefined;
2581
2596
  checkOut: string | Date | undefined;
2582
2597
  status: VisitorStatus | undefined;
2583
2598
  remarks: string | undefined;
@@ -2602,18 +2617,20 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2602
2617
  numberOfPassengers: number | null;
2603
2618
  email: string | undefined;
2604
2619
  isOvernightParking: boolean;
2605
- invitedId: string | ObjectId;
2620
+ inviterId: string | ObjectId;
2606
2621
  overnightParking: {
2607
2622
  status: string;
2608
2623
  remarks: string;
2609
2624
  updatedBy: string | ObjectId;
2610
2625
  } | null;
2626
+ arrivalTime: string | null | undefined;
2627
+ duration: number | null | undefined;
2611
2628
  };
2612
2629
 
2613
2630
  declare const visitors_namespace_collection = "visitor.transactions";
2614
2631
  declare function useVisitorTransactionRepo(): {
2615
2632
  add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
2616
- getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, }: {
2633
+ getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, tab, }: {
2617
2634
  search?: string | undefined;
2618
2635
  page?: number | undefined;
2619
2636
  limit?: number | undefined;
@@ -2626,6 +2643,7 @@ declare function useVisitorTransactionRepo(): {
2626
2643
  type?: string | undefined;
2627
2644
  checkedOut?: Boolean | undefined;
2628
2645
  plateNumber?: string | undefined;
2646
+ tab?: string | undefined;
2629
2647
  }) => Promise<{
2630
2648
  items: any[];
2631
2649
  pages: number;
@@ -3960,8 +3978,8 @@ declare function useEventManagementController(): {
3960
3978
 
3961
3979
  type TUnitBilling = {
3962
3980
  _id?: ObjectId;
3963
- site: string | ObjectId;
3964
- org: string | ObjectId;
3981
+ site?: string | ObjectId;
3982
+ org?: string | ObjectId;
3965
3983
  billItem?: string | ObjectId;
3966
3984
  billName?: string;
3967
3985
  unitId?: string | ObjectId;
@@ -3980,6 +3998,7 @@ type TUnitBilling = {
3980
3998
  referenceNumber?: string;
3981
3999
  paymentStatus?: string;
3982
4000
  amountPaid?: number;
4001
+ balanceAmount?: number;
3983
4002
  status?: string;
3984
4003
  paidBy?: string | ObjectId;
3985
4004
  datePaid?: string | Date;
@@ -3990,6 +4009,26 @@ type TUnitBilling = {
3990
4009
  updatedAt?: string | Date;
3991
4010
  deletedAt?: string | Date;
3992
4011
  };
4012
+ declare enum Status {
4013
+ PENDING = "pending",
4014
+ COMPLETED = "completed",
4015
+ APPROVED = "approved",
4016
+ REJECTED = "rejected",
4017
+ CANCELLED = "cancelled",
4018
+ RECURRING = "recurring",
4019
+ NONRECURRING = "non-recurring",
4020
+ ACTIVE = "active",
4021
+ INACTIVE = "inactive"
4022
+ }
4023
+ declare enum PStatus {
4024
+ PROCESSING = "processing",
4025
+ UNPAID = "unpaid",
4026
+ PAID = "paid",
4027
+ OVERDUE = "overdue",
4028
+ PARTIAL = "partial-payment",
4029
+ AWAITING_PAYMENT = "awaiting-payment",
4030
+ FAILED = "failed"
4031
+ }
3993
4032
  declare const schemaUnitBilling: Joi.ObjectSchema<any>;
3994
4033
  declare const schemaUpdateSiteUnitBilling: Joi.ObjectSchema<any>;
3995
4034
  declare function MUnitBilling(value: TUnitBilling): {
@@ -4015,6 +4054,7 @@ declare function MUnitBilling(value: TUnitBilling): {
4015
4054
  paymentStatus: string;
4016
4055
  status: string;
4017
4056
  amountPaid: number;
4057
+ balanceAmount: number;
4018
4058
  paidBy: string | ObjectId;
4019
4059
  datePaid: string | Date;
4020
4060
  transaction_id: string;
@@ -6151,18 +6191,10 @@ declare const updateRemarksStatusEod: () => Promise<void>;
6151
6191
  declare function manpowerEvents(io: Server): Promise<void>;
6152
6192
 
6153
6193
  declare function useRedDotPaymentController(): {
6154
- createRedDotAccount: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6155
6194
  redirectPaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6156
6195
  enquirePaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6157
- getMerchantDetailsById: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
6158
6196
  };
6159
6197
 
6160
- type TRedDotAccount = {
6161
- id: string | ObjectId;
6162
- paymentMethod: string;
6163
- merchant_id: string;
6164
- merchant_key: string;
6165
- };
6166
6198
  type TPaymentRequest = {
6167
6199
  cardNumber: string;
6168
6200
  rdpMid: string;
@@ -6197,49 +6229,13 @@ interface IDirectPayment extends IBaseModel {
6197
6229
  }
6198
6230
 
6199
6231
  declare const useRedDotPaymentSvc: () => {
6200
- createRedDotAccount: (_id: string | ObjectId, payload: TRedDotAccount) => Promise<{
6201
- success: boolean;
6202
- message: string;
6203
- }>;
6204
6232
  redirectPaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6205
6233
  enquirePaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6206
6234
  payInvoice: (payload: TPaymentRequest) => Promise<axios.AxiosResponse<any, any, {}>>;
6207
- getMerchantDetailsById: (_id: string | ObjectId) => Promise<any>;
6208
6235
  };
6209
6236
 
6210
- interface IUnitBillRecord extends IBaseModel {
6211
- _id?: ObjectId;
6212
- billId?: string | ObjectId;
6213
- unitId?: string | ObjectId;
6214
- unit?: string;
6215
- unitOwner?: string;
6216
- email?: string;
6217
- contactNumber?: string;
6218
- category?: string;
6219
- billCategory?: string;
6220
- billFrom?: string;
6221
- billTo?: string;
6222
- dueDate?: string | Date;
6223
- preDueDateAlert?: string | Date;
6224
- referenceNumber?: string;
6225
- paymentStatus?: PStatus;
6226
- amountPaid?: string | number;
6227
- balance?: string | number;
6228
- billStatus?: Status;
6229
- paidBy?: string | ObjectId;
6230
- datePaid?: string | Date;
6231
- transaction_id?: string;
6232
- message?: string;
6233
- method?: string;
6234
- }
6235
-
6236
6237
  declare const useRedDotPaymentRepo: () => {
6237
- createRedDotAccount: (_id: string | ObjectId, payload: TRedDotAccount) => Promise<{
6238
- success: boolean;
6239
- message: string;
6240
- }>;
6241
- payUnitBillings: (refId: string, payload: IUnitBillRecord) => Promise<bson.Document | null>;
6242
- getMerchantDetailsById: (_id: string | ObjectId) => Promise<any>;
6238
+ paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
6243
6239
  };
6244
6240
 
6245
6241
  declare enum VerificationType {
@@ -6458,4 +6454,49 @@ declare function useUserControllerV2(): {
6458
6454
  updatePasswordById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6459
6455
  };
6460
6456
 
6461
- export { ANPRMode, AccessTypeProps, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinRecipient, BulletinSort, BulletinStatus, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, EmailSender, 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, MPromoCode, MRobot, MRole, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, Period, PersonStatus, PersonType, PersonTypes, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TApprovedBy, 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, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, TResident, TRobot, TRobotMetadata, TRole, 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, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, 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, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaApprovedBy, 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, 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, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, 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, 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_orders_namespace_collection };
6457
+ type TRoleV2 = {
6458
+ _id?: ObjectId;
6459
+ name?: string;
6460
+ permissions?: Array<string>;
6461
+ site?: string | ObjectId;
6462
+ platform?: string;
6463
+ type?: string;
6464
+ org?: string | ObjectId;
6465
+ status?: string;
6466
+ createdBy?: string | ObjectId;
6467
+ createdAt?: string;
6468
+ updatedAt?: string;
6469
+ deletedAt?: string;
6470
+ };
6471
+ declare class MRoleV2 implements TRoleV2 {
6472
+ _id: ObjectId;
6473
+ name?: string;
6474
+ permissions?: Array<string>;
6475
+ site?: string | ObjectId;
6476
+ platform?: string;
6477
+ type?: string;
6478
+ org?: string | ObjectId;
6479
+ status?: string;
6480
+ createdBy?: string | ObjectId;
6481
+ createdAt?: string;
6482
+ updatedAt?: string;
6483
+ deletedAt?: string;
6484
+ constructor(value: TRoleV2);
6485
+ }
6486
+
6487
+ declare function useRoleRepoV2(): {
6488
+ createIndex: () => Promise<void>;
6489
+ createTextIndex: () => Promise<void>;
6490
+ createUniqueIndex: () => Promise<void>;
6491
+ addRole: (value: TRoleV2, session?: ClientSession) => Promise<bson.ObjectId>;
6492
+ };
6493
+
6494
+ declare function useRoleServiceV2(): {
6495
+ createRole: (value: TRoleV2) => Promise<bson.ObjectId>;
6496
+ };
6497
+
6498
+ declare function useRoleControllerV2(): {
6499
+ createRole: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6500
+ };
6501
+
6502
+ export { ANPRMode, AccessTypeProps, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinRecipient, BulletinSort, BulletinStatus, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, EmailSender, 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, 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, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TApprovedBy, 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, 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, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, 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, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaApprovedBy, 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, 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, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, 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_orders_namespace_collection };