@7365admin1/core 3.32.2-staging.94 → 3.32.2-staging.96

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/dist/index.d.ts CHANGED
@@ -9234,6 +9234,8 @@ type THidAmicoReader = {
9234
9234
  password: string;
9235
9235
  location?: string;
9236
9236
  deviceId?: string;
9237
+ portalId?: number;
9238
+ portalName?: string;
9237
9239
  monitorPath?: string;
9238
9240
  enabled?: boolean;
9239
9241
  status?: "active" | "inactive" | "deleted" | "offline";
@@ -9339,6 +9341,7 @@ declare const schemaHidAmicoLogQuery: Joi.ObjectSchema<any>;
9339
9341
  declare const schemaHidAmicoIdentityQuery: Joi.ObjectSchema<any>;
9340
9342
  declare const schemaHidAmicoSync: Joi.ObjectSchema<any>;
9341
9343
  declare const schemaHidAmicoVisitorQr: Joi.ObjectSchema<any>;
9344
+ declare const schemaDiscoverHidAmicoReader: Joi.ObjectSchema<any>;
9342
9345
  declare const schemaHidAmicoVisitorImageParams: Joi.ObjectSchema<any>;
9343
9346
  declare const schemaHidAmicoUserPinParams: Joi.ObjectSchema<any>;
9344
9347
  declare const schemaHidAmicoUserPin: Joi.ObjectSchema<any>;
@@ -9361,6 +9364,8 @@ declare function MHidAmicoReader(value: THidAmicoReader): {
9361
9364
  password: string;
9362
9365
  location: string;
9363
9366
  deviceId: string;
9367
+ portalId: number | undefined;
9368
+ portalName: string;
9364
9369
  monitorPath: string;
9365
9370
  enabled: boolean;
9366
9371
  status: "deleted" | "active" | "inactive" | "offline";
@@ -9605,6 +9610,18 @@ declare function useHidAmicoService(): {
9605
9610
  pages: number;
9606
9611
  pageRange: string;
9607
9612
  }>;
9613
+ discoverReader: (value: Pick<THidAmicoReader, "baseUrl" | "username" | "password">) => Promise<{
9614
+ deviceId: string;
9615
+ serial: string;
9616
+ version: string;
9617
+ online: boolean;
9618
+ portals: {
9619
+ id: number;
9620
+ name: string;
9621
+ areaFromId: number;
9622
+ areaToId: number;
9623
+ }[];
9624
+ }>;
9608
9625
  createReader: (value: THidAmicoReader) => Promise<any>;
9609
9626
  updateReader: (id: string, value: Partial<THidAmicoReader>) => Promise<any>;
9610
9627
  deleteReader: (id: string) => Promise<any>;
@@ -9683,6 +9700,9 @@ declare function useHidAmicoService(): {
9683
9700
  hidUserId: number;
9684
9701
  qrValue: string;
9685
9702
  qrFormat: "0";
9703
+ portalId: number;
9704
+ portalName: string;
9705
+ readerName: string;
9686
9706
  issuedAt: string;
9687
9707
  expiresAt: string;
9688
9708
  }>;
@@ -9854,6 +9874,7 @@ declare function useHidAmicoService(): {
9854
9874
 
9855
9875
  declare function useHidAmicoController(): {
9856
9876
  listReaders: (req: Request, res: Response, next: NextFunction) => Promise<void>;
9877
+ discoverReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
9857
9878
  createReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
9858
9879
  updateReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
9859
9880
  deleteReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
@@ -10434,4 +10455,4 @@ declare function useNotificationPreferenceController(): {
10434
10455
  update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
10435
10456
  };
10436
10457
 
10437
- export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BidStatus, BidType, BuildingLevelStatus, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, CAMERA_ANPR_PERMISSIONS, CAMERA_CAPABILITIES, CAMERA_CAPABILITY_REASONS, CAMERA_NOT_PATROL_OR_CCTV, CAMERA_PTZ_PERMISSIONS, CAMERA_REQUEST_TIMEOUT_MS, CAMERA_RTSP_TIMEOUT_MS, CAMERA_SETUP_PERMISSIONS, CAMERA_SNAPSHOT_CACHE_SECONDS, CAMERA_SNAPSHOT_MAX_BYTES, CAMERA_TEST_MIN_INTERVAL_SECONDS, CAMERA_TEST_ROUND_LIMIT, CAMERA_TEST_ROUND_SECONDS, CAMERA_TYPE_ANPR, CAMERA_TYPE_IP, CAMERA_VIEW_PERMISSIONS, CLOCK_DRIFT_WARN_SECONDS, CURRENT_TIME_ENDPOINT, Camera, CameraAddressInput, CameraCapability, CameraCapabilityContext, CameraCapabilityDescriptor, CameraCapabilityEntry, CameraCapabilityReason, CameraCapabilityState, CameraCapabilityTrace, CameraDevice, CameraMembership, CameraTestStatus, CameraTransport, CameraType, DEVICE_STATUS, DOBStatus, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, HID_PERMISSION_CATEGORIES, IAccessCard, IAccessCardTransaction, InviteActor, MAX_CAMERA_CHANNEL, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBidPreloved, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChannelPreloved, MChat, MChatPreloved, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MHidAmicoEvent, MHidAmicoIdentity, MHidAmicoReader, MHidSipAccount, MHidSitePermissions, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MNotification, MNotificationPreference, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPlatformTerms, MPost, MPostFavorite, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PATROL_CCTV_CAMERA_FILTER, PERSON_TYPES, PROPERTY_MANAGEMENT_MEMBER_TYPES, PStatus, PTZ_ALLOWED_ACTIONS, PTZ_ALLOWED_CODES, Period, PersonStatus, PersonType, PersonTypes, PlatformTermsStatus, PostOrder, PostSort, PostStatus, QrTagProps, REALTIME_MAX_FANOUT, ResidentAppModuleKey, SERVICE_PROVIDER_INVITE_LABELS, SERVICE_PROVIDER_INVITE_TRANSITIONS, SERVICE_PROVIDER_SIGN_IN_SUBJECT, SERVICE_PROVIDER_SIGN_IN_TYPE, SERVICE_PROVIDER_SIGN_UP_SUBJECT, SERVICE_PROVIDER_SIGN_UP_TYPE, SOFTWARE_VERSION_ENDPOINT, ServiceProviderInviteAction, ServiceProviderInviteDecision, ServiceProviderInviteFacts, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCreateNfcPatrolLog, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFolderUpdate, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, THidAmicoEvent, THidAmicoGatewayJob, THidAmicoIdentity, THidAmicoReader, THidPermissionAssignment, THidPermissionCategory, THidSipAccount, THidSitePermissions, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationPreference, TNotificationPreferenceOff, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, TPrice, TPriceType, TPromoCode, TPromoTier, TRANSPORT_DEVICE_HTTP, TRANSPORT_RELAY_PLAYER, TRANSPORT_RTSP_FRAME, TRecipientOfComplaint, TRemarks, TResident, TResidentAppModules, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TSubscriptionPlan, TSubscriptionPlanApplication, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, UserStatus, VERIFICATION_OPEN_STATUSES, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, attendanceSchema, attendanceSettingsSchema, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, cameraBaseUrl, cameraCapabilitiesFor, cameraDevices, cameraGrant, cameraHealthSummary, cameraManagePermissions, cameraTransports, categoriesForPermissions, categorySupportsChannel, chatPrelovedEvents, chatSchema, clampPtzSpeed, clockDriftSeconds, createManpowerRemarksDaily, customerSchema, decideServiceProviderInvite, deriveCameraHost, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, emitNotificationCreated, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, formatCapabilityTrace, formatDahuaDate, getIO, guests_namespace_collection, hasAnyCapability, hasAnyPermission, incidentReport, incidentReportLog, incidents_namespace_collection, isCameraEntitled, isDuplicateVersionError, isPatrolCctvCamera, isRelayPlayerUrl, isSuperAdmin, isTermsCurrent, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalizeAcceptedTerms, notificationCategory, notificationCategoryLabel, notificationEvents, notificationRoom, occurrence_book_namespace_collection, online_forms_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseSoftwareVersion, platform_terms_namespace_collection, promoCodeSchema, ptzEndpoint, publicCameraFields, refuseServiceProviderInviteAction, registerCameraTransport, relayForRecorder, remarksSchema, resetCameraTransports, residentAppModuleKeys, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveInviteActor, robotSchema, rtspUrl, schema, schemaAppSlugNotification, schemaApprovedBy, schemaApprover, schemaBidPreloved, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaChannelPreloved, schemaChatPreloved, schemaCreateHidAmicoIdentity, schemaCreateNfcPatrolLog, schemaCreateNotification, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaHidAmicoConfiguration, schemaHidAmicoEvent, schemaHidAmicoExecuteActions, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSiteIdParams, schemaHidAmicoSync, schemaHidAmicoUserImageParams, schemaHidAmicoUserImageUploadQuery, schemaHidAmicoUserPin, schemaHidAmicoUserPinParams, schemaHidAmicoVisitorImageParams, schemaHidAmicoVisitorImageUploadQuery, schemaHidAmicoVisitorQr, schemaHidPermissionCandidateQuery, schemaHidPermissionScopeQuery, schemaHidSipAccountRequest, schemaIncidentReport, schemaListNotification, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaNotification, schemaNotificationPreference, schemaNotificationPreferenceOff, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPlatformTerms, schemaPost, schemaPostFavorite, schemaServiceProvider, schemaServiceProviderBilling, schemaSignNfcPatrolLog, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaSubcategoryPreloved, schemaUnitBilling, schemaUpdateBidPreloved, schemaUpdateBuildingLevel, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateCategoryPreloved, schemaUpdateChatPreloved, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateFolderManagement, schemaUpdateFormEntry, schemaUpdateGuestManagement, schemaUpdateHidAmicoIdentity, schemaUpdateHidAmicoReader, schemaUpdateHidSitePermissions, schemaUpdateIncidentReport, schemaUpdateNotification, schemaUpdateNotificationPreference, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, serviceProviderInviteLabel, sessionSchema, setIO, shiftSchema, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, subscriptionPlanSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBidPrelovedController, useBidPrelovedRepo, useBidPrelovedService, useBuildingController, useBuildingLevelController, useBuildingLevelRepo, useBuildingLevelService, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useCameraViewController, useCameraViewService, useCategoryPrelovedController, useCategoryPrelovedRepo, useChannelPrelovedController, useChannelPrelovedRepo, useChatController, useChatPrelovedController, useChatPrelovedRepo, useChatPrelovedService, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useFormEntryController, useFormEntryRepo, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHidAmicoController, useHidAmicoRepo, useHidAmicoService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, useMemberService, useNewDashboardController, useNewDashboardRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useNotificationController, useNotificationPreferenceController, useNotificationPreferenceRepo, useNotificationPreferenceService, useNotificationRepo, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgControllerV2, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePlatformTermsController, usePlatformTermsRepo, usePlatformTermsService, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderInviteController, useServiceProviderInviteService, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionPlanController, useSubscriptionPlanRepo, 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, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
10458
+ export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BidStatus, BidType, BuildingLevelStatus, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, CAMERA_ANPR_PERMISSIONS, CAMERA_CAPABILITIES, CAMERA_CAPABILITY_REASONS, CAMERA_NOT_PATROL_OR_CCTV, CAMERA_PTZ_PERMISSIONS, CAMERA_REQUEST_TIMEOUT_MS, CAMERA_RTSP_TIMEOUT_MS, CAMERA_SETUP_PERMISSIONS, CAMERA_SNAPSHOT_CACHE_SECONDS, CAMERA_SNAPSHOT_MAX_BYTES, CAMERA_TEST_MIN_INTERVAL_SECONDS, CAMERA_TEST_ROUND_LIMIT, CAMERA_TEST_ROUND_SECONDS, CAMERA_TYPE_ANPR, CAMERA_TYPE_IP, CAMERA_VIEW_PERMISSIONS, CLOCK_DRIFT_WARN_SECONDS, CURRENT_TIME_ENDPOINT, Camera, CameraAddressInput, CameraCapability, CameraCapabilityContext, CameraCapabilityDescriptor, CameraCapabilityEntry, CameraCapabilityReason, CameraCapabilityState, CameraCapabilityTrace, CameraDevice, CameraMembership, CameraTestStatus, CameraTransport, CameraType, DEVICE_STATUS, DOBStatus, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, HID_PERMISSION_CATEGORIES, IAccessCard, IAccessCardTransaction, InviteActor, MAX_CAMERA_CHANNEL, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBidPreloved, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChannelPreloved, MChat, MChatPreloved, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MHidAmicoEvent, MHidAmicoIdentity, MHidAmicoReader, MHidSipAccount, MHidSitePermissions, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MNotification, MNotificationPreference, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPlatformTerms, MPost, MPostFavorite, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PATROL_CCTV_CAMERA_FILTER, PERSON_TYPES, PROPERTY_MANAGEMENT_MEMBER_TYPES, PStatus, PTZ_ALLOWED_ACTIONS, PTZ_ALLOWED_CODES, Period, PersonStatus, PersonType, PersonTypes, PlatformTermsStatus, PostOrder, PostSort, PostStatus, QrTagProps, REALTIME_MAX_FANOUT, ResidentAppModuleKey, SERVICE_PROVIDER_INVITE_LABELS, SERVICE_PROVIDER_INVITE_TRANSITIONS, SERVICE_PROVIDER_SIGN_IN_SUBJECT, SERVICE_PROVIDER_SIGN_IN_TYPE, SERVICE_PROVIDER_SIGN_UP_SUBJECT, SERVICE_PROVIDER_SIGN_UP_TYPE, SOFTWARE_VERSION_ENDPOINT, ServiceProviderInviteAction, ServiceProviderInviteDecision, ServiceProviderInviteFacts, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCreateNfcPatrolLog, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFolderUpdate, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, THidAmicoEvent, THidAmicoGatewayJob, THidAmicoIdentity, THidAmicoReader, THidPermissionAssignment, THidPermissionCategory, THidSipAccount, THidSitePermissions, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationPreference, TNotificationPreferenceOff, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, TPrice, TPriceType, TPromoCode, TPromoTier, TRANSPORT_DEVICE_HTTP, TRANSPORT_RELAY_PLAYER, TRANSPORT_RTSP_FRAME, TRecipientOfComplaint, TRemarks, TResident, TResidentAppModules, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TSubscriptionPlan, TSubscriptionPlanApplication, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, UserStatus, VERIFICATION_OPEN_STATUSES, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, attendanceSchema, attendanceSettingsSchema, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, cameraBaseUrl, cameraCapabilitiesFor, cameraDevices, cameraGrant, cameraHealthSummary, cameraManagePermissions, cameraTransports, categoriesForPermissions, categorySupportsChannel, chatPrelovedEvents, chatSchema, clampPtzSpeed, clockDriftSeconds, createManpowerRemarksDaily, customerSchema, decideServiceProviderInvite, deriveCameraHost, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, emitNotificationCreated, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, formatCapabilityTrace, formatDahuaDate, getIO, guests_namespace_collection, hasAnyCapability, hasAnyPermission, incidentReport, incidentReportLog, incidents_namespace_collection, isCameraEntitled, isDuplicateVersionError, isPatrolCctvCamera, isRelayPlayerUrl, isSuperAdmin, isTermsCurrent, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalizeAcceptedTerms, notificationCategory, notificationCategoryLabel, notificationEvents, notificationRoom, occurrence_book_namespace_collection, online_forms_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseSoftwareVersion, platform_terms_namespace_collection, promoCodeSchema, ptzEndpoint, publicCameraFields, refuseServiceProviderInviteAction, registerCameraTransport, relayForRecorder, remarksSchema, resetCameraTransports, residentAppModuleKeys, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveInviteActor, robotSchema, rtspUrl, schema, schemaAppSlugNotification, schemaApprovedBy, schemaApprover, schemaBidPreloved, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaChannelPreloved, schemaChatPreloved, schemaCreateHidAmicoIdentity, schemaCreateNfcPatrolLog, schemaCreateNotification, schemaCustomerSite, schemaDiscoverHidAmicoReader, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaHidAmicoConfiguration, schemaHidAmicoEvent, schemaHidAmicoExecuteActions, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSiteIdParams, schemaHidAmicoSync, schemaHidAmicoUserImageParams, schemaHidAmicoUserImageUploadQuery, schemaHidAmicoUserPin, schemaHidAmicoUserPinParams, schemaHidAmicoVisitorImageParams, schemaHidAmicoVisitorImageUploadQuery, schemaHidAmicoVisitorQr, schemaHidPermissionCandidateQuery, schemaHidPermissionScopeQuery, schemaHidSipAccountRequest, schemaIncidentReport, schemaListNotification, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaNotification, schemaNotificationPreference, schemaNotificationPreferenceOff, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPlatformTerms, schemaPost, schemaPostFavorite, schemaServiceProvider, schemaServiceProviderBilling, schemaSignNfcPatrolLog, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaSubcategoryPreloved, schemaUnitBilling, schemaUpdateBidPreloved, schemaUpdateBuildingLevel, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateCategoryPreloved, schemaUpdateChatPreloved, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateFolderManagement, schemaUpdateFormEntry, schemaUpdateGuestManagement, schemaUpdateHidAmicoIdentity, schemaUpdateHidAmicoReader, schemaUpdateHidSitePermissions, schemaUpdateIncidentReport, schemaUpdateNotification, schemaUpdateNotificationPreference, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, serviceProviderInviteLabel, sessionSchema, setIO, shiftSchema, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, subscriptionPlanSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBidPrelovedController, useBidPrelovedRepo, useBidPrelovedService, useBuildingController, useBuildingLevelController, useBuildingLevelRepo, useBuildingLevelService, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useCameraViewController, useCameraViewService, useCategoryPrelovedController, useCategoryPrelovedRepo, useChannelPrelovedController, useChannelPrelovedRepo, useChatController, useChatPrelovedController, useChatPrelovedRepo, useChatPrelovedService, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useFormEntryController, useFormEntryRepo, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHidAmicoController, useHidAmicoRepo, useHidAmicoService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, useMemberService, useNewDashboardController, useNewDashboardRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useNotificationController, useNotificationPreferenceController, useNotificationPreferenceRepo, useNotificationPreferenceService, useNotificationRepo, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgControllerV2, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePlatformTermsController, usePlatformTermsRepo, usePlatformTermsService, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderInviteController, useServiceProviderInviteService, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionPlanController, useSubscriptionPlanRepo, 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, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
package/dist/index.js CHANGED
@@ -6194,6 +6194,7 @@ __export(src_exports, {
6194
6194
  schemaCreateNfcPatrolLog: () => schemaCreateNfcPatrolLog,
6195
6195
  schemaCreateNotification: () => schemaCreateNotification,
6196
6196
  schemaCustomerSite: () => schemaCustomerSite,
6197
+ schemaDiscoverHidAmicoReader: () => schemaDiscoverHidAmicoReader,
6197
6198
  schemaDocumentManagement: () => schemaDocumentManagement,
6198
6199
  schemaEntryPassSettings: () => schemaEntryPassSettings,
6199
6200
  schemaEventManagement: () => schemaEventManagement,
@@ -41053,6 +41054,8 @@ var schemaHidAmicoReader = import_joi63.default.object({
41053
41054
  password: import_joi63.default.string().required(),
41054
41055
  location: import_joi63.default.string().allow(null, "").optional(),
41055
41056
  deviceId: import_joi63.default.string().allow(null, "").optional(),
41057
+ portalId: import_joi63.default.number().integer().positive().required(),
41058
+ portalName: import_joi63.default.string().trim().allow("").optional(),
41056
41059
  monitorPath: import_joi63.default.string().allow(null, "").optional(),
41057
41060
  enabled: import_joi63.default.boolean().optional(),
41058
41061
  status: import_joi63.default.string().valid("active", "inactive", "deleted", "offline").optional(),
@@ -41072,6 +41075,8 @@ var schemaUpdateHidAmicoReader = import_joi63.default.object({
41072
41075
  password: import_joi63.default.string().allow(null, "").optional(),
41073
41076
  location: import_joi63.default.string().allow(null, "").optional(),
41074
41077
  deviceId: import_joi63.default.string().allow(null, "").optional(),
41078
+ portalId: import_joi63.default.number().integer().positive().optional(),
41079
+ portalName: import_joi63.default.string().trim().optional(),
41075
41080
  monitorPath: import_joi63.default.string().allow(null, "").optional(),
41076
41081
  enabled: import_joi63.default.boolean().optional(),
41077
41082
  status: import_joi63.default.string().valid("active", "inactive", "deleted", "offline").optional(),
@@ -41192,6 +41197,11 @@ var schemaHidAmicoVisitorQr = import_joi63.default.object({
41192
41197
  // validation. The service always issues alphanumeric qrcodes.
41193
41198
  qrFormat: import_joi63.default.string().valid("0", "1", "2").optional()
41194
41199
  });
41200
+ var schemaDiscoverHidAmicoReader = import_joi63.default.object({
41201
+ baseUrl: import_joi63.default.string().uri({ scheme: ["http", "https"] }).required(),
41202
+ username: import_joi63.default.string().trim().required(),
41203
+ password: import_joi63.default.string().required()
41204
+ });
41195
41205
  var schemaHidAmicoVisitorImageParams = import_joi63.default.object({
41196
41206
  readerId: import_joi63.default.string().hex().length(24).required(),
41197
41207
  visitorId: import_joi63.default.string().hex().length(24).required()
@@ -41288,6 +41298,8 @@ function MHidAmicoReader(value) {
41288
41298
  password: value.password,
41289
41299
  location: value.location ?? "",
41290
41300
  deviceId: value.deviceId ?? "",
41301
+ portalId: value.portalId,
41302
+ portalName: value.portalName ?? "",
41291
41303
  monitorPath: value.monitorPath ?? "api/notifications",
41292
41304
  enabled: value.enabled ?? true,
41293
41305
  status: value.status ?? "active",
@@ -42225,7 +42237,7 @@ async function configureVisitorQrReader(client) {
42225
42237
  }
42226
42238
  return changed;
42227
42239
  }
42228
- async function ensureVisitorAccessAuthorization(client, readerId, readerLocation, hidUserId, scope = "visitor") {
42240
+ async function ensureVisitorAccessAuthorization(client, readerId, reader, hidUserId, scope = "visitor") {
42229
42241
  const accessLabel = scope === "visitor" ? "Visitor" : "Facial";
42230
42242
  const accessRuleId = createStableHidId(`${scope}-access-rule:${readerId}`);
42231
42243
  const timeZoneId = createStableHidId(`${scope}-time-zone:${readerId}`);
@@ -42397,12 +42409,19 @@ async function ensureVisitorAccessAuthorization(client, readerId, readerLocation
42397
42409
  "The HID reader has no portal configured for visitor access."
42398
42410
  );
42399
42411
  }
42400
- const normalizedLocation = String(readerLocation || "").trim().toLowerCase();
42412
+ const configuredPortalId = Number(reader.portalId);
42413
+ const configuredPortal = Number.isSafeInteger(configuredPortalId) && configuredPortalId > 0 ? portals.find((portal) => portal.id === configuredPortalId) : void 0;
42414
+ if (configuredPortalId && !configuredPortal) {
42415
+ throw new import_node_server_utils125.BadRequestError(
42416
+ "The configured HID portal no longer exists on this reader. Reconnect the reader and select a portal again."
42417
+ );
42418
+ }
42419
+ const normalizedLocation = String(reader.portalName || reader.location || "").trim().toLowerCase();
42401
42420
  const locationMatches = normalizedLocation ? portals.filter((portal) => {
42402
42421
  const portalName = portal.name.toLowerCase();
42403
42422
  return portalName === normalizedLocation || portalName.includes(normalizedLocation) || normalizedLocation.includes(portalName);
42404
42423
  }) : [];
42405
- const selectedPortals = locationMatches.length === 1 ? locationMatches : portals.length === 1 ? portals : [];
42424
+ const selectedPortals = configuredPortal ? [configuredPortal] : locationMatches.length === 1 ? locationMatches : portals.length === 1 ? portals : [];
42406
42425
  if (!selectedPortals.length) {
42407
42426
  throw new import_node_server_utils125.BadRequestError(
42408
42427
  "The HID reader has multiple portals. Match the reader location to one portal before issuing visitor access."
@@ -42482,6 +42501,13 @@ function getRelayAuth() {
42482
42501
  }
42483
42502
  return { username, password };
42484
42503
  }
42504
+ function assertReaderPortal(reader, operation) {
42505
+ if (!reader.portalId || !reader.portalName) {
42506
+ throw new import_node_server_utils125.BadRequestError(
42507
+ `The HID reader has no selected portal. Reconnect the reader and select a portal before ${operation}.`
42508
+ );
42509
+ }
42510
+ }
42485
42511
  function getSipProvisioningConfig() {
42486
42512
  const provisionerUrl = normalizeBaseUrl(process.env.HID_SIP_PROVISIONER_URL);
42487
42513
  const provisionerToken = String(process.env.HID_SIP_PROVISIONER_TOKEN || "").trim();
@@ -42753,13 +42779,6 @@ var HidAmicoClient = class {
42753
42779
  verified: true
42754
42780
  };
42755
42781
  }
42756
- async systemInformation() {
42757
- if (!this.session) {
42758
- await this.login();
42759
- }
42760
- const res = await this.post(this.url("/system_information.fcgi"), {});
42761
- return res.data;
42762
- }
42763
42782
  async deleteUserImage(hidUserId) {
42764
42783
  if (!this.session) {
42765
42784
  await this.login();
@@ -42815,6 +42834,13 @@ var HidAmicoClient = class {
42815
42834
  const res = await this.post(this.url("/load_objects.fcgi"), query2);
42816
42835
  return res.data;
42817
42836
  }
42837
+ async getSystemInformation() {
42838
+ if (!this.session) {
42839
+ await this.login();
42840
+ }
42841
+ const res = await this.post(this.url("/system_information.fcgi"), {});
42842
+ return res.data;
42843
+ }
42818
42844
  async modifyObjects(payload) {
42819
42845
  if (!this.session) {
42820
42846
  await this.login();
@@ -43059,10 +43085,54 @@ function useHidAmicoService() {
43059
43085
  identityType: resolveProfileIdentityType(member.type || "", user.type || "")
43060
43086
  };
43061
43087
  }
43088
+ async function discoverReader(value) {
43089
+ const client = new HidAmicoClient({
43090
+ ...value,
43091
+ baseUrl: value.baseUrl.replace(/\/+$/, "")
43092
+ });
43093
+ try {
43094
+ await client.login();
43095
+ const [systemResponse, portalsResponse] = await Promise.all([
43096
+ client.getSystemInformation(),
43097
+ client.loadObjects({ object: "portals", limit: 100, offset: 0 })
43098
+ ]);
43099
+ const system = isUnknownRecord(systemResponse) && isUnknownRecord(systemResponse.data) ? systemResponse.data : systemResponse;
43100
+ const deviceId = isUnknownRecord(system) ? String(system.device_id || "").trim() : "";
43101
+ if (!deviceId) {
43102
+ throw new import_node_server_utils125.BadRequestError("The HID reader system information did not return a device ID.");
43103
+ }
43104
+ const portals = getHidObjectRows(portalsResponse, "portals").map((portal) => ({
43105
+ id: Number(portal.id),
43106
+ name: String(portal.name || "").trim(),
43107
+ areaFromId: Number(portal.area_from_id),
43108
+ areaToId: Number(portal.area_to_id)
43109
+ })).filter((portal) => Number.isSafeInteger(portal.id) && portal.id > 0 && portal.name);
43110
+ if (!portals.length) {
43111
+ throw new import_node_server_utils125.BadRequestError("The HID reader has no portal configured.");
43112
+ }
43113
+ return {
43114
+ deviceId,
43115
+ serial: isUnknownRecord(system) ? String(system.serial || "") : "",
43116
+ version: isUnknownRecord(system) ? String(system.version || "") : "",
43117
+ online: isUnknownRecord(system) ? Boolean(system.online) : false,
43118
+ portals
43119
+ };
43120
+ } finally {
43121
+ await client.logout();
43122
+ }
43123
+ }
43062
43124
  async function createReader(value) {
43125
+ const discovered = await discoverReader(value);
43126
+ const portal = discovered.portals.find((candidate) => candidate.id === Number(value.portalId));
43127
+ if (!portal) {
43128
+ throw new import_node_server_utils125.BadRequestError("Select a portal returned by the connected HID reader.");
43129
+ }
43063
43130
  return repo.add({
43064
43131
  ...value,
43065
43132
  baseUrl: value.baseUrl.replace(/\/+$/, ""),
43133
+ deviceId: discovered.deviceId,
43134
+ portalId: portal.id,
43135
+ portalName: portal.name,
43066
43136
  password: encryptSecret(value.password)
43067
43137
  });
43068
43138
  }
@@ -43145,7 +43215,10 @@ function useHidAmicoService() {
43145
43215
  }
43146
43216
  async function receiveNotification(readerId, type, payload) {
43147
43217
  const reader = await repo.getById(readerId);
43148
- const identityKeys = extractIdentityKeys(payload);
43218
+ const objectChanges = Array.isArray(payload.object_changes) ? payload.object_changes : [];
43219
+ const accessLogChange = objectChanges.find((change) => isUnknownRecord(change) && change.object === "access_logs" && change.type !== "deleted" && isUnknownRecord(change.values));
43220
+ const accessLogValues = isUnknownRecord(accessLogChange) && isUnknownRecord(accessLogChange.values) ? accessLogChange.values : {};
43221
+ const identityKeys = extractIdentityKeys({ ...payload, ...accessLogValues });
43149
43222
  const identity = await repo.findIdentity({
43150
43223
  reader: readerId,
43151
43224
  ...identityKeys
@@ -43238,6 +43311,11 @@ function useHidAmicoService() {
43238
43311
  }
43239
43312
  async function issueVisitorQr(readerId, value) {
43240
43313
  const reader = await getActiveReader(readerId);
43314
+ if (!reader.portalId || !reader.portalName) {
43315
+ throw new import_node_server_utils125.BadRequestError(
43316
+ "The HID reader has no selected portal. Reconnect the reader and select a portal before issuing a visitor QR code."
43317
+ );
43318
+ }
43241
43319
  const visitor = await visitorRepo.getVisitorTransactionById(value.visitorId);
43242
43320
  if (!visitor) {
43243
43321
  throw new import_node_server_utils125.BadRequestError("Visitor transaction not found.");
@@ -43251,29 +43329,15 @@ function useHidAmicoService() {
43251
43329
  if (!visitorName) {
43252
43330
  throw new import_node_server_utils125.BadRequestError("Visitor name is required to issue a HID QR code.");
43253
43331
  }
43254
- const hasExpectedCheckIn = Boolean(visitor.expectedCheckIn);
43255
- const issuedAt = new Date(visitor.expectedCheckIn || visitor.checkIn || Date.now());
43256
- if (Number.isNaN(issuedAt.getTime())) {
43257
- throw new import_node_server_utils125.BadRequestError("Visitor check-in time is invalid.");
43258
- }
43332
+ const issuedAt = /* @__PURE__ */ new Date();
43259
43333
  const validityMinutes = Math.max(1, Number(value.validityMinutes) || 60);
43260
- const expiresAt = new Date(
43261
- issuedAt.getTime() + (hasExpectedCheckIn ? 24 * 60 : validityMinutes) * 60 * 1e3
43262
- );
43334
+ const expiresAt = new Date(issuedAt.getTime() + validityMinutes * 60 * 1e3);
43263
43335
  const hidUserId = createStableHidId(`visitor:${readerId}:${value.visitorId}`);
43264
43336
  const registration = `VIS-${value.visitorId.slice(-12).toUpperCase()}`;
43265
43337
  const credential = createVisitorQrCredential(value.visitorId, readerId);
43266
43338
  const client = new HidAmicoClient(reader);
43267
43339
  try {
43268
43340
  await client.login();
43269
- const systemInformation = await client.systemInformation();
43270
- const readerNowSeconds = Number(
43271
- isUnknownRecord(systemInformation) ? systemInformation.time : NaN
43272
- );
43273
- const serverNowSeconds = Math.floor(Date.now() / 1e3);
43274
- const readerClockOffsetSeconds = Number.isFinite(readerNowSeconds) ? Math.trunc(readerNowSeconds) - serverNowSeconds : 0;
43275
- const readerBeginTime = Math.floor(issuedAt.getTime() / 1e3) + readerClockOffsetSeconds;
43276
- const readerEndTime = Math.floor(expiresAt.getTime() / 1e3) + readerClockOffsetSeconds;
43277
43341
  const readerConfigurationChanged = await configureVisitorQrReader(client);
43278
43342
  if (readerConfigurationChanged) {
43279
43343
  await repo.addEvent({
@@ -43298,8 +43362,8 @@ function useHidAmicoService() {
43298
43362
  name: visitorName,
43299
43363
  registration,
43300
43364
  user_type_id: 1,
43301
- begin_time: readerBeginTime,
43302
- end_time: readerEndTime
43365
+ begin_time: Math.floor(issuedAt.getTime() / 1e3),
43366
+ end_time: Math.floor(expiresAt.getTime() / 1e3)
43303
43367
  };
43304
43368
  const existingUsers = getHidObjectRows(existingUserResponse, "users");
43305
43369
  const existingIdentity = await repo.findExistingIdentity({ reader: readerId, hidUserId });
@@ -43337,7 +43401,7 @@ function useHidAmicoService() {
43337
43401
  const authorization = await ensureVisitorAccessAuthorization(
43338
43402
  client,
43339
43403
  readerId,
43340
- reader.location,
43404
+ reader,
43341
43405
  hidUserId
43342
43406
  );
43343
43407
  const existingQrResponse = await client.loadObjects({
@@ -43413,7 +43477,6 @@ function useHidAmicoService() {
43413
43477
  accessRuleId: authorization.accessRuleId,
43414
43478
  portalIds: authorization.portalIds,
43415
43479
  timeZoneId: authorization.timeZoneId,
43416
- readerClockOffsetSeconds,
43417
43480
  issuedAt: issuedAt.toISOString(),
43418
43481
  expiresAt: expiresAt.toISOString()
43419
43482
  }
@@ -43439,7 +43502,6 @@ function useHidAmicoService() {
43439
43502
  accessRuleId: authorization.accessRuleId,
43440
43503
  portalIds: authorization.portalIds,
43441
43504
  timeZoneId: authorization.timeZoneId,
43442
- readerClockOffsetSeconds,
43443
43505
  issuedAt: issuedAt.toISOString(),
43444
43506
  expiresAt: expiresAt.toISOString()
43445
43507
  }
@@ -43450,6 +43512,9 @@ function useHidAmicoService() {
43450
43512
  hidUserId,
43451
43513
  qrValue: credential.qrValue,
43452
43514
  qrFormat: VISITOR_QR_FORMAT,
43515
+ portalId: reader.portalId,
43516
+ portalName: reader.portalName,
43517
+ readerName: reader.name,
43453
43518
  issuedAt: issuedAt.toISOString(),
43454
43519
  expiresAt: expiresAt.toISOString()
43455
43520
  };
@@ -43482,6 +43547,7 @@ function useHidAmicoService() {
43482
43547
  }
43483
43548
  async function setProfileFacial(readerId, userId, image, options = {}) {
43484
43549
  const reader = await getActiveReader(readerId);
43550
+ assertReaderPortal(reader, "enrolling facial recognition");
43485
43551
  const context = await getProfileEnrollmentContext(readerId, reader, userId);
43486
43552
  if (!context.profileName) {
43487
43553
  throw new import_node_server_utils125.BadRequestError("A profile name is required for HID facial enrollment.");
@@ -43517,7 +43583,7 @@ function useHidAmicoService() {
43517
43583
  const authorization = await ensureVisitorAccessAuthorization(
43518
43584
  client,
43519
43585
  readerId,
43520
- reader.location,
43586
+ reader,
43521
43587
  context.hidUserId,
43522
43588
  "facial"
43523
43589
  );
@@ -43603,6 +43669,7 @@ function useHidAmicoService() {
43603
43669
  }
43604
43670
  async function setVisitorImage(readerId, visitorId, image, options = {}) {
43605
43671
  const reader = await getActiveReader(readerId);
43672
+ assertReaderPortal(reader, "enrolling visitor facial recognition");
43606
43673
  const { visitorName, hidUserId, registration } = await getVisitorEnrollmentContext(
43607
43674
  readerId,
43608
43675
  reader,
@@ -43644,7 +43711,7 @@ function useHidAmicoService() {
43644
43711
  const authorization = await ensureVisitorAccessAuthorization(
43645
43712
  client,
43646
43713
  readerId,
43647
- reader.location,
43714
+ reader,
43648
43715
  hidUserId
43649
43716
  );
43650
43717
  const result = await client.setUserImage(hidUserId, image, timestamp, match);
@@ -44038,6 +44105,7 @@ function useHidAmicoService() {
44038
44105
  }
44039
44106
  async function setUserImage(readerId, hidUserId, image, options = {}) {
44040
44107
  const reader = await getActiveReader(readerId);
44108
+ assertReaderPortal(reader, "enrolling facial recognition");
44041
44109
  const client = new HidAmicoClient(reader);
44042
44110
  const timestamp = options.timestamp || Math.floor(Date.now() / 1e3);
44043
44111
  const match = options.match ?? true;
@@ -44050,7 +44118,7 @@ function useHidAmicoService() {
44050
44118
  const authorization = await ensureVisitorAccessAuthorization(
44051
44119
  client,
44052
44120
  readerId,
44053
- reader.location,
44121
+ reader,
44054
44122
  numericUserId,
44055
44123
  "facial"
44056
44124
  );
@@ -44328,6 +44396,7 @@ function useHidAmicoService() {
44328
44396
  }
44329
44397
  return {
44330
44398
  listReaders,
44399
+ discoverReader,
44331
44400
  createReader,
44332
44401
  updateReader,
44333
44402
  deleteReader,
@@ -80513,6 +80582,18 @@ function useHidAmicoController() {
80513
80582
  next(error);
80514
80583
  }
80515
80584
  }
80585
+ async function discoverReader(req, res, next) {
80586
+ const { error, value } = schemaDiscoverHidAmicoReader.validate(req.body);
80587
+ if (error) {
80588
+ next(new import_node_server_utils279.BadRequestError(error.message));
80589
+ return;
80590
+ }
80591
+ try {
80592
+ res.json({ data: await service.discoverReader(value) });
80593
+ } catch (error2) {
80594
+ next(error2);
80595
+ }
80596
+ }
80516
80597
  async function getUserPinStatus(req, res, next) {
80517
80598
  const { error, value } = schemaHidAmicoUserPinParams.validate(req.params);
80518
80599
  if (error) {
@@ -80765,6 +80846,7 @@ function useHidAmicoController() {
80765
80846
  }
80766
80847
  return {
80767
80848
  listReaders,
80849
+ discoverReader,
80768
80850
  createReader,
80769
80851
  updateReader,
80770
80852
  deleteReader,
@@ -81511,6 +81593,7 @@ function useNotificationPreferenceController() {
81511
81593
  schemaCreateNfcPatrolLog,
81512
81594
  schemaCreateNotification,
81513
81595
  schemaCustomerSite,
81596
+ schemaDiscoverHidAmicoReader,
81514
81597
  schemaDocumentManagement,
81515
81598
  schemaEntryPassSettings,
81516
81599
  schemaEventManagement,