@7365admin1/core 2.37.0 → 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,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a8dabbd: get latest changes
8
+
3
9
  ## 2.37.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1976,7 +1976,7 @@ declare function MVehicle(value: TVehicle): {
1976
1976
  block: number;
1977
1977
  level: string;
1978
1978
  unit: string | ObjectId;
1979
- nric: string | undefined;
1979
+ nric: string;
1980
1980
  remarks: string;
1981
1981
  seasonPassType: string;
1982
1982
  start: string | Date;
@@ -2060,6 +2060,19 @@ declare function useVehicleRepo(): {
2060
2060
  pageRange: string;
2061
2061
  }>;
2062
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
+ }>;
2063
2076
  };
2064
2077
 
2065
2078
  declare function formatDahuaDate(date: Date): string;
@@ -2079,6 +2092,19 @@ declare function useVehicleService(): {
2079
2092
  processDeletingExpiredVehicles: () => Promise<string>;
2080
2093
  reactivateVehicleById: (id: string, orgId: string, siteId: string) => Promise<string>;
2081
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
+ }>;
2082
2108
  };
2083
2109
 
2084
2110
  declare function useVehicleController(): {
@@ -2092,6 +2118,9 @@ declare function useVehicleController(): {
2092
2118
  getVehiclesByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2093
2119
  reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2094
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>;
2095
2124
  };
2096
2125
 
2097
2126
  declare enum CameraType {
@@ -2271,26 +2300,6 @@ interface IBaseModel {
2271
2300
  management?: string;
2272
2301
  date?: string | Date;
2273
2302
  }
2274
- declare enum Status {
2275
- pending = "Pending",
2276
- completed = "Completed",
2277
- approved = "Approved",
2278
- rejected = "Rejected",
2279
- cancelled = "Cancelled",
2280
- recurring = "Recurring",
2281
- nonrecurring = "Non-Recurring",
2282
- active = "Active",
2283
- inactive = "Inactive"
2284
- }
2285
- declare enum PStatus {
2286
- processing = "Processing",
2287
- unpaid = "Unpaid",
2288
- paid = "Paid",
2289
- overdue = "Over Due",
2290
- partial = "Partial Payment",
2291
- await = "Awaiting Payment",
2292
- failed = "Failed"
2293
- }
2294
2303
  declare enum AppServiceType {
2295
2304
  REAL_ESTATE_DEVELOPER = "real_estate_developer",
2296
2305
  PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
@@ -2565,7 +2574,7 @@ type TVisitorTransaction = {
2565
2574
  updatedAt?: string | Date;
2566
2575
  deletedAt?: string | Date;
2567
2576
  purpose?: string;
2568
- invitedId?: string | ObjectId;
2577
+ inviterId?: string | ObjectId;
2569
2578
  };
2570
2579
  declare const schemaVisitorTransaction: Joi.ObjectSchema<any>;
2571
2580
  declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
@@ -2608,7 +2617,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2608
2617
  numberOfPassengers: number | null;
2609
2618
  email: string | undefined;
2610
2619
  isOvernightParking: boolean;
2611
- invitedId: string | ObjectId;
2620
+ inviterId: string | ObjectId;
2612
2621
  overnightParking: {
2613
2622
  status: string;
2614
2623
  remarks: string;
@@ -2621,7 +2630,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2621
2630
  declare const visitors_namespace_collection = "visitor.transactions";
2622
2631
  declare function useVisitorTransactionRepo(): {
2623
2632
  add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
2624
- 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, }: {
2625
2634
  search?: string | undefined;
2626
2635
  page?: number | undefined;
2627
2636
  limit?: number | undefined;
@@ -2634,6 +2643,7 @@ declare function useVisitorTransactionRepo(): {
2634
2643
  type?: string | undefined;
2635
2644
  checkedOut?: Boolean | undefined;
2636
2645
  plateNumber?: string | undefined;
2646
+ tab?: string | undefined;
2637
2647
  }) => Promise<{
2638
2648
  items: any[];
2639
2649
  pages: number;
@@ -3968,8 +3978,8 @@ declare function useEventManagementController(): {
3968
3978
 
3969
3979
  type TUnitBilling = {
3970
3980
  _id?: ObjectId;
3971
- site: string | ObjectId;
3972
- org: string | ObjectId;
3981
+ site?: string | ObjectId;
3982
+ org?: string | ObjectId;
3973
3983
  billItem?: string | ObjectId;
3974
3984
  billName?: string;
3975
3985
  unitId?: string | ObjectId;
@@ -3988,6 +3998,7 @@ type TUnitBilling = {
3988
3998
  referenceNumber?: string;
3989
3999
  paymentStatus?: string;
3990
4000
  amountPaid?: number;
4001
+ balanceAmount?: number;
3991
4002
  status?: string;
3992
4003
  paidBy?: string | ObjectId;
3993
4004
  datePaid?: string | Date;
@@ -3998,6 +4009,26 @@ type TUnitBilling = {
3998
4009
  updatedAt?: string | Date;
3999
4010
  deletedAt?: string | Date;
4000
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
+ }
4001
4032
  declare const schemaUnitBilling: Joi.ObjectSchema<any>;
4002
4033
  declare const schemaUpdateSiteUnitBilling: Joi.ObjectSchema<any>;
4003
4034
  declare function MUnitBilling(value: TUnitBilling): {
@@ -4023,6 +4054,7 @@ declare function MUnitBilling(value: TUnitBilling): {
4023
4054
  paymentStatus: string;
4024
4055
  status: string;
4025
4056
  amountPaid: number;
4057
+ balanceAmount: number;
4026
4058
  paidBy: string | ObjectId;
4027
4059
  datePaid: string | Date;
4028
4060
  transaction_id: string;
@@ -6159,18 +6191,10 @@ declare const updateRemarksStatusEod: () => Promise<void>;
6159
6191
  declare function manpowerEvents(io: Server): Promise<void>;
6160
6192
 
6161
6193
  declare function useRedDotPaymentController(): {
6162
- createRedDotAccount: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6163
6194
  redirectPaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6164
6195
  enquirePaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6165
- getMerchantDetailsById: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
6166
6196
  };
6167
6197
 
6168
- type TRedDotAccount = {
6169
- id: string | ObjectId;
6170
- paymentMethod: string;
6171
- merchant_id: string;
6172
- merchant_key: string;
6173
- };
6174
6198
  type TPaymentRequest = {
6175
6199
  cardNumber: string;
6176
6200
  rdpMid: string;
@@ -6205,49 +6229,13 @@ interface IDirectPayment extends IBaseModel {
6205
6229
  }
6206
6230
 
6207
6231
  declare const useRedDotPaymentSvc: () => {
6208
- createRedDotAccount: (_id: string | ObjectId, payload: TRedDotAccount) => Promise<{
6209
- success: boolean;
6210
- message: string;
6211
- }>;
6212
6232
  redirectPaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6213
6233
  enquirePaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6214
6234
  payInvoice: (payload: TPaymentRequest) => Promise<axios.AxiosResponse<any, any, {}>>;
6215
- getMerchantDetailsById: (_id: string | ObjectId) => Promise<any>;
6216
6235
  };
6217
6236
 
6218
- interface IUnitBillRecord extends IBaseModel {
6219
- _id?: ObjectId;
6220
- billId?: string | ObjectId;
6221
- unitId?: string | ObjectId;
6222
- unit?: string;
6223
- unitOwner?: string;
6224
- email?: string;
6225
- contactNumber?: string;
6226
- category?: string;
6227
- billCategory?: string;
6228
- billFrom?: string;
6229
- billTo?: string;
6230
- dueDate?: string | Date;
6231
- preDueDateAlert?: string | Date;
6232
- referenceNumber?: string;
6233
- paymentStatus?: PStatus;
6234
- amountPaid?: string | number;
6235
- balance?: string | number;
6236
- billStatus?: Status;
6237
- paidBy?: string | ObjectId;
6238
- datePaid?: string | Date;
6239
- transaction_id?: string;
6240
- message?: string;
6241
- method?: string;
6242
- }
6243
-
6244
6237
  declare const useRedDotPaymentRepo: () => {
6245
- createRedDotAccount: (_id: string | ObjectId, payload: TRedDotAccount) => Promise<{
6246
- success: boolean;
6247
- message: string;
6248
- }>;
6249
- payUnitBillings: (refId: string, payload: IUnitBillRecord) => Promise<bson.Document | null>;
6250
- getMerchantDetailsById: (_id: string | ObjectId) => Promise<any>;
6238
+ paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
6251
6239
  };
6252
6240
 
6253
6241
  declare enum VerificationType {
@@ -6466,4 +6454,49 @@ declare function useUserControllerV2(): {
6466
6454
  updatePasswordById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6467
6455
  };
6468
6456
 
6469
- 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 };