@7365admin1/core 2.37.0 → 2.39.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.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1cdaa91: get latest changes
8
+
9
+ ## 2.38.0
10
+
11
+ ### Minor Changes
12
+
13
+ - a8dabbd: get latest changes
14
+
3
15
  ## 2.37.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import Joi from 'joi';
2
1
  import * as mongodb from 'mongodb';
3
2
  import { ObjectId, ClientSession, Db, Collection } from 'mongodb';
3
+ import Joi from 'joi';
4
4
  import { Request, Response, NextFunction } from 'express';
5
5
  import * as bson from 'bson';
6
6
  import { z } from 'zod';
@@ -8,6 +8,35 @@ import * as urllib from 'urllib';
8
8
  import { Server } from 'socket.io';
9
9
  import * as axios from 'axios';
10
10
 
11
+ interface IBaseModel {
12
+ unitNumber?: string;
13
+ createdBy?: string | ObjectId;
14
+ createdByName?: string;
15
+ approvedBy?: string | ObjectId;
16
+ approvedByName?: string;
17
+ site?: string | ObjectId;
18
+ siteName?: string;
19
+ organization?: string | ObjectId;
20
+ createdAt?: string | Date;
21
+ updatedAt?: string | Date;
22
+ reason?: string;
23
+ isAgree?: boolean;
24
+ attachments?: string[];
25
+ management?: string;
26
+ date?: string | Date;
27
+ }
28
+ declare enum AppServiceType {
29
+ REAL_ESTATE_DEVELOPER = "real_estate_developer",
30
+ PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
31
+ SECURITY_AGENCY = "security_agency",
32
+ CLEANING_SERVICES = "cleaning_services",
33
+ MECHANICAL_ELECTRICAL_SERVICES = "mechanical_electrical_services",
34
+ LANDSCAPING_SERVICES = "landscaping_services",
35
+ PEST_CONTROL_SERVICES = "pest_control_services",
36
+ POOL_MAINTENANCE_SERVICES = "pool_maintenance_services"
37
+ }
38
+ type TAppServiceType = AppServiceType;
39
+
11
40
  type TSession = {
12
41
  token: string;
13
42
  user: string | ObjectId;
@@ -1898,6 +1927,19 @@ declare function useDahuaService(): {
1898
1927
  mode: string;
1899
1928
  plateNumber: string;
1900
1929
  }) => Promise<any>;
1930
+ bulkInsertPlateNumber: (value: {
1931
+ host: string;
1932
+ username: string;
1933
+ password: string;
1934
+ plateNumber: string;
1935
+ mode: string;
1936
+ start?: string;
1937
+ end?: string;
1938
+ owner?: string;
1939
+ isOpenGate?: boolean;
1940
+ vehicleType?: string;
1941
+ vehicleColor?: string;
1942
+ }) => Promise<urllib.HttpClientResponse<any>>;
1901
1943
  };
1902
1944
 
1903
1945
  type TVehicleUpdate = Partial<Pick<TVehicle, "name" | "phoneNumber" | "block" | "level" | "unit" | "plateNumber" | "recNo">>;
@@ -1976,7 +2018,7 @@ declare function MVehicle(value: TVehicle): {
1976
2018
  block: number;
1977
2019
  level: string;
1978
2020
  unit: string | ObjectId;
1979
- nric: string | undefined;
2021
+ nric: string;
1980
2022
  remarks: string;
1981
2023
  seasonPassType: string;
1982
2024
  start: string | Date;
@@ -2060,6 +2102,19 @@ declare function useVehicleRepo(): {
2060
2102
  pageRange: string;
2061
2103
  }>;
2062
2104
  getAllExpiredVehicles: () => Promise<mongodb.WithId<bson.Document>[]>;
2105
+ bulkUpsertVehicles: (values: TVehicle[], session?: ClientSession) => Promise<{
2106
+ matchedCount: number;
2107
+ modifiedCount: number;
2108
+ upsertedCount: number;
2109
+ upsertedIds?: undefined;
2110
+ } | {
2111
+ matchedCount: number;
2112
+ modifiedCount: number;
2113
+ upsertedCount: number;
2114
+ upsertedIds: {
2115
+ [key: number]: any;
2116
+ };
2117
+ }>;
2063
2118
  };
2064
2119
 
2065
2120
  declare function formatDahuaDate(date: Date): string;
@@ -2079,6 +2134,19 @@ declare function useVehicleService(): {
2079
2134
  processDeletingExpiredVehicles: () => Promise<string>;
2080
2135
  reactivateVehicleById: (id: string, orgId: string, siteId: string) => Promise<string>;
2081
2136
  updateVehicleById: (_id: string, value: TVehicle) => Promise<void>;
2137
+ bulkUpsertVehicles: (values: TVehicle[]) => Promise<{
2138
+ matchedCount: number;
2139
+ modifiedCount: number;
2140
+ upsertedCount: number;
2141
+ upsertedIds?: undefined;
2142
+ } | {
2143
+ matchedCount: number;
2144
+ modifiedCount: number;
2145
+ upsertedCount: number;
2146
+ upsertedIds: {
2147
+ [key: number]: any;
2148
+ };
2149
+ }>;
2082
2150
  };
2083
2151
 
2084
2152
  declare function useVehicleController(): {
@@ -2092,6 +2160,8 @@ declare function useVehicleController(): {
2092
2160
  getVehiclesByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2093
2161
  reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2094
2162
  getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2163
+ uploadCsvVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2164
+ uploadExcelVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2095
2165
  };
2096
2166
 
2097
2167
  declare enum CameraType {
@@ -2254,55 +2324,6 @@ declare function useCustomerSiteController(): {
2254
2324
  getBySiteAsServiceProvider: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2255
2325
  };
2256
2326
 
2257
- interface IBaseModel {
2258
- unitNumber?: string;
2259
- createdBy?: string | ObjectId;
2260
- createdByName?: string;
2261
- approvedBy?: string | ObjectId;
2262
- approvedByName?: string;
2263
- site?: string | ObjectId;
2264
- siteName?: string;
2265
- organization?: string | ObjectId;
2266
- createdAt?: string | Date;
2267
- updatedAt?: string | Date;
2268
- reason?: string;
2269
- isAgree?: boolean;
2270
- attachments?: string[];
2271
- management?: string;
2272
- date?: string | Date;
2273
- }
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
- declare enum AppServiceType {
2295
- REAL_ESTATE_DEVELOPER = "real_estate_developer",
2296
- PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
2297
- SECURITY_AGENCY = "security_agency",
2298
- CLEANING_SERVICES = "cleaning_services",
2299
- MECHANICAL_ELECTRICAL_SERVICES = "mechanical_electrical_services",
2300
- LANDSCAPING_SERVICES = "landscaping_services",
2301
- PEST_CONTROL_SERVICES = "pest_control_services",
2302
- POOL_MAINTENANCE_SERVICES = "pool_maintenance_services"
2303
- }
2304
- type TAppServiceType = AppServiceType;
2305
-
2306
2327
  type TAttendance = {
2307
2328
  _id?: ObjectId;
2308
2329
  site: string | ObjectId;
@@ -2565,7 +2586,7 @@ type TVisitorTransaction = {
2565
2586
  updatedAt?: string | Date;
2566
2587
  deletedAt?: string | Date;
2567
2588
  purpose?: string;
2568
- invitedId?: string | ObjectId;
2589
+ inviterId?: string | ObjectId;
2569
2590
  };
2570
2591
  declare const schemaVisitorTransaction: Joi.ObjectSchema<any>;
2571
2592
  declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
@@ -2608,7 +2629,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2608
2629
  numberOfPassengers: number | null;
2609
2630
  email: string | undefined;
2610
2631
  isOvernightParking: boolean;
2611
- invitedId: string | ObjectId;
2632
+ inviterId: string | ObjectId;
2612
2633
  overnightParking: {
2613
2634
  status: string;
2614
2635
  remarks: string;
@@ -2621,7 +2642,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2621
2642
  declare const visitors_namespace_collection = "visitor.transactions";
2622
2643
  declare function useVisitorTransactionRepo(): {
2623
2644
  add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
2624
- getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, }: {
2645
+ getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, tab, }: {
2625
2646
  search?: string | undefined;
2626
2647
  page?: number | undefined;
2627
2648
  limit?: number | undefined;
@@ -2634,6 +2655,7 @@ declare function useVisitorTransactionRepo(): {
2634
2655
  type?: string | undefined;
2635
2656
  checkedOut?: Boolean | undefined;
2636
2657
  plateNumber?: string | undefined;
2658
+ tab?: string | undefined;
2637
2659
  }) => Promise<{
2638
2660
  items: any[];
2639
2661
  pages: number;
@@ -3968,8 +3990,8 @@ declare function useEventManagementController(): {
3968
3990
 
3969
3991
  type TUnitBilling = {
3970
3992
  _id?: ObjectId;
3971
- site: string | ObjectId;
3972
- org: string | ObjectId;
3993
+ site?: string | ObjectId;
3994
+ org?: string | ObjectId;
3973
3995
  billItem?: string | ObjectId;
3974
3996
  billName?: string;
3975
3997
  unitId?: string | ObjectId;
@@ -3988,6 +4010,7 @@ type TUnitBilling = {
3988
4010
  referenceNumber?: string;
3989
4011
  paymentStatus?: string;
3990
4012
  amountPaid?: number;
4013
+ balanceAmount?: number;
3991
4014
  status?: string;
3992
4015
  paidBy?: string | ObjectId;
3993
4016
  datePaid?: string | Date;
@@ -3998,6 +4021,26 @@ type TUnitBilling = {
3998
4021
  updatedAt?: string | Date;
3999
4022
  deletedAt?: string | Date;
4000
4023
  };
4024
+ declare enum Status {
4025
+ PENDING = "pending",
4026
+ COMPLETED = "completed",
4027
+ APPROVED = "approved",
4028
+ REJECTED = "rejected",
4029
+ CANCELLED = "cancelled",
4030
+ RECURRING = "recurring",
4031
+ NONRECURRING = "non-recurring",
4032
+ ACTIVE = "active",
4033
+ INACTIVE = "inactive"
4034
+ }
4035
+ declare enum PStatus {
4036
+ PROCESSING = "processing",
4037
+ UNPAID = "unpaid",
4038
+ PAID = "paid",
4039
+ OVERDUE = "overdue",
4040
+ PARTIAL = "partial-payment",
4041
+ AWAITING_PAYMENT = "awaiting-payment",
4042
+ FAILED = "failed"
4043
+ }
4001
4044
  declare const schemaUnitBilling: Joi.ObjectSchema<any>;
4002
4045
  declare const schemaUpdateSiteUnitBilling: Joi.ObjectSchema<any>;
4003
4046
  declare function MUnitBilling(value: TUnitBilling): {
@@ -4023,6 +4066,7 @@ declare function MUnitBilling(value: TUnitBilling): {
4023
4066
  paymentStatus: string;
4024
4067
  status: string;
4025
4068
  amountPaid: number;
4069
+ balanceAmount: number;
4026
4070
  paidBy: string | ObjectId;
4027
4071
  datePaid: string | Date;
4028
4072
  transaction_id: string;
@@ -4073,6 +4117,22 @@ declare function useSiteUnitBillingRepo(): {
4073
4117
  pages: number;
4074
4118
  pageRange: string;
4075
4119
  }>;
4120
+ getResidentUserUnsettledBilling: ({ search, page, limit, sort, status, site, paymentStatus, month, year, unitId, }: {
4121
+ search?: string | undefined;
4122
+ page?: number | undefined;
4123
+ limit?: number | undefined;
4124
+ sort?: Record<string, any> | undefined;
4125
+ status: string;
4126
+ site?: string | undefined;
4127
+ paymentStatus?: string | undefined;
4128
+ month?: string | undefined;
4129
+ year?: string | undefined;
4130
+ unitId: string;
4131
+ }, session?: ClientSession) => Promise<{
4132
+ items: any[];
4133
+ pages: number;
4134
+ pageRange: string;
4135
+ }>;
4076
4136
  };
4077
4137
 
4078
4138
  declare function useSiteUnitBillingService(): {
@@ -4087,6 +4147,7 @@ declare function useSiteUnitBillingController(): {
4087
4147
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4088
4148
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4089
4149
  getResidentUserBilling: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4150
+ getResidentUserUnsettledBilling: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4090
4151
  };
4091
4152
 
4092
4153
  interface AssignCardConfig {
@@ -4493,6 +4554,9 @@ declare function UseAccessManagementRepo(): {
4493
4554
  checkoutVisitorRepo: (params: {
4494
4555
  userId: string;
4495
4556
  }) => Promise<mongodb.UpdateResult<bson.Document>>;
4557
+ getBlockLevelAndUnitListRepo: (params: {
4558
+ site: string;
4559
+ }) => Promise<bson.Document[]>;
4496
4560
  };
4497
4561
 
4498
4562
  declare function useAccessManagementController(): {
@@ -4531,6 +4595,7 @@ declare function useAccessManagementController(): {
4531
4595
  staffNo: string;
4532
4596
  url: string;
4533
4597
  }) => Promise<void>;
4598
+ getBlockLevelAndUnitList: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4534
4599
  };
4535
4600
 
4536
4601
  declare const DEVICE_STATUS: {
@@ -6159,18 +6224,10 @@ declare const updateRemarksStatusEod: () => Promise<void>;
6159
6224
  declare function manpowerEvents(io: Server): Promise<void>;
6160
6225
 
6161
6226
  declare function useRedDotPaymentController(): {
6162
- createRedDotAccount: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6163
6227
  redirectPaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
6164
6228
  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
6229
  };
6167
6230
 
6168
- type TRedDotAccount = {
6169
- id: string | ObjectId;
6170
- paymentMethod: string;
6171
- merchant_id: string;
6172
- merchant_key: string;
6173
- };
6174
6231
  type TPaymentRequest = {
6175
6232
  cardNumber: string;
6176
6233
  rdpMid: string;
@@ -6205,49 +6262,13 @@ interface IDirectPayment extends IBaseModel {
6205
6262
  }
6206
6263
 
6207
6264
  declare const useRedDotPaymentSvc: () => {
6208
- createRedDotAccount: (_id: string | ObjectId, payload: TRedDotAccount) => Promise<{
6209
- success: boolean;
6210
- message: string;
6211
- }>;
6212
6265
  redirectPaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6213
6266
  enquirePaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6214
6267
  payInvoice: (payload: TPaymentRequest) => Promise<axios.AxiosResponse<any, any, {}>>;
6215
- getMerchantDetailsById: (_id: string | ObjectId) => Promise<any>;
6216
6268
  };
6217
6269
 
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
6270
  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>;
6271
+ paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
6251
6272
  };
6252
6273
 
6253
6274
  declare enum VerificationType {
@@ -6466,4 +6487,49 @@ declare function useUserControllerV2(): {
6466
6487
  updatePasswordById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6467
6488
  };
6468
6489
 
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 };
6490
+ type TRoleV2 = {
6491
+ _id?: ObjectId;
6492
+ name?: string;
6493
+ permissions?: Array<string>;
6494
+ site?: string | ObjectId;
6495
+ platform?: string;
6496
+ type?: string;
6497
+ org?: string | ObjectId;
6498
+ status?: string;
6499
+ createdBy?: string | ObjectId;
6500
+ createdAt?: string;
6501
+ updatedAt?: string;
6502
+ deletedAt?: string;
6503
+ };
6504
+ declare class MRoleV2 implements TRoleV2 {
6505
+ _id: ObjectId;
6506
+ name?: string;
6507
+ permissions?: Array<string>;
6508
+ site?: string | ObjectId;
6509
+ platform?: string;
6510
+ type?: string;
6511
+ org?: string | ObjectId;
6512
+ status?: string;
6513
+ createdBy?: string | ObjectId;
6514
+ createdAt?: string;
6515
+ updatedAt?: string;
6516
+ deletedAt?: string;
6517
+ constructor(value: TRoleV2);
6518
+ }
6519
+
6520
+ declare function useRoleRepoV2(): {
6521
+ createIndex: () => Promise<void>;
6522
+ createTextIndex: () => Promise<void>;
6523
+ createUniqueIndex: () => Promise<void>;
6524
+ addRole: (value: TRoleV2, session?: ClientSession) => Promise<bson.ObjectId>;
6525
+ };
6526
+
6527
+ declare function useRoleServiceV2(): {
6528
+ createRole: (value: TRoleV2) => Promise<bson.ObjectId>;
6529
+ };
6530
+
6531
+ declare function useRoleControllerV2(): {
6532
+ createRole: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6533
+ };
6534
+
6535
+ export { ANPRMode, AccessTypeProps, AppServiceType, 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, TAppServiceType, 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 };