@7365admin1/core 3.32.2-staging.95 → 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();
@@ -42808,6 +42834,13 @@ var HidAmicoClient = class {
42808
42834
  const res = await this.post(this.url("/load_objects.fcgi"), query2);
42809
42835
  return res.data;
42810
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
+ }
42811
42844
  async modifyObjects(payload) {
42812
42845
  if (!this.session) {
42813
42846
  await this.login();
@@ -43052,10 +43085,54 @@ function useHidAmicoService() {
43052
43085
  identityType: resolveProfileIdentityType(member.type || "", user.type || "")
43053
43086
  };
43054
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
+ }
43055
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
+ }
43056
43130
  return repo.add({
43057
43131
  ...value,
43058
43132
  baseUrl: value.baseUrl.replace(/\/+$/, ""),
43133
+ deviceId: discovered.deviceId,
43134
+ portalId: portal.id,
43135
+ portalName: portal.name,
43059
43136
  password: encryptSecret(value.password)
43060
43137
  });
43061
43138
  }
@@ -43138,7 +43215,10 @@ function useHidAmicoService() {
43138
43215
  }
43139
43216
  async function receiveNotification(readerId, type, payload) {
43140
43217
  const reader = await repo.getById(readerId);
43141
- 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 });
43142
43222
  const identity = await repo.findIdentity({
43143
43223
  reader: readerId,
43144
43224
  ...identityKeys
@@ -43231,6 +43311,11 @@ function useHidAmicoService() {
43231
43311
  }
43232
43312
  async function issueVisitorQr(readerId, value) {
43233
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
+ }
43234
43319
  const visitor = await visitorRepo.getVisitorTransactionById(value.visitorId);
43235
43320
  if (!visitor) {
43236
43321
  throw new import_node_server_utils125.BadRequestError("Visitor transaction not found.");
@@ -43316,7 +43401,7 @@ function useHidAmicoService() {
43316
43401
  const authorization = await ensureVisitorAccessAuthorization(
43317
43402
  client,
43318
43403
  readerId,
43319
- reader.location,
43404
+ reader,
43320
43405
  hidUserId
43321
43406
  );
43322
43407
  const existingQrResponse = await client.loadObjects({
@@ -43427,6 +43512,9 @@ function useHidAmicoService() {
43427
43512
  hidUserId,
43428
43513
  qrValue: credential.qrValue,
43429
43514
  qrFormat: VISITOR_QR_FORMAT,
43515
+ portalId: reader.portalId,
43516
+ portalName: reader.portalName,
43517
+ readerName: reader.name,
43430
43518
  issuedAt: issuedAt.toISOString(),
43431
43519
  expiresAt: expiresAt.toISOString()
43432
43520
  };
@@ -43459,6 +43547,7 @@ function useHidAmicoService() {
43459
43547
  }
43460
43548
  async function setProfileFacial(readerId, userId, image, options = {}) {
43461
43549
  const reader = await getActiveReader(readerId);
43550
+ assertReaderPortal(reader, "enrolling facial recognition");
43462
43551
  const context = await getProfileEnrollmentContext(readerId, reader, userId);
43463
43552
  if (!context.profileName) {
43464
43553
  throw new import_node_server_utils125.BadRequestError("A profile name is required for HID facial enrollment.");
@@ -43494,7 +43583,7 @@ function useHidAmicoService() {
43494
43583
  const authorization = await ensureVisitorAccessAuthorization(
43495
43584
  client,
43496
43585
  readerId,
43497
- reader.location,
43586
+ reader,
43498
43587
  context.hidUserId,
43499
43588
  "facial"
43500
43589
  );
@@ -43580,6 +43669,7 @@ function useHidAmicoService() {
43580
43669
  }
43581
43670
  async function setVisitorImage(readerId, visitorId, image, options = {}) {
43582
43671
  const reader = await getActiveReader(readerId);
43672
+ assertReaderPortal(reader, "enrolling visitor facial recognition");
43583
43673
  const { visitorName, hidUserId, registration } = await getVisitorEnrollmentContext(
43584
43674
  readerId,
43585
43675
  reader,
@@ -43621,7 +43711,7 @@ function useHidAmicoService() {
43621
43711
  const authorization = await ensureVisitorAccessAuthorization(
43622
43712
  client,
43623
43713
  readerId,
43624
- reader.location,
43714
+ reader,
43625
43715
  hidUserId
43626
43716
  );
43627
43717
  const result = await client.setUserImage(hidUserId, image, timestamp, match);
@@ -44015,6 +44105,7 @@ function useHidAmicoService() {
44015
44105
  }
44016
44106
  async function setUserImage(readerId, hidUserId, image, options = {}) {
44017
44107
  const reader = await getActiveReader(readerId);
44108
+ assertReaderPortal(reader, "enrolling facial recognition");
44018
44109
  const client = new HidAmicoClient(reader);
44019
44110
  const timestamp = options.timestamp || Math.floor(Date.now() / 1e3);
44020
44111
  const match = options.match ?? true;
@@ -44027,7 +44118,7 @@ function useHidAmicoService() {
44027
44118
  const authorization = await ensureVisitorAccessAuthorization(
44028
44119
  client,
44029
44120
  readerId,
44030
- reader.location,
44121
+ reader,
44031
44122
  numericUserId,
44032
44123
  "facial"
44033
44124
  );
@@ -44305,6 +44396,7 @@ function useHidAmicoService() {
44305
44396
  }
44306
44397
  return {
44307
44398
  listReaders,
44399
+ discoverReader,
44308
44400
  createReader,
44309
44401
  updateReader,
44310
44402
  deleteReader,
@@ -80490,6 +80582,18 @@ function useHidAmicoController() {
80490
80582
  next(error);
80491
80583
  }
80492
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
+ }
80493
80597
  async function getUserPinStatus(req, res, next) {
80494
80598
  const { error, value } = schemaHidAmicoUserPinParams.validate(req.params);
80495
80599
  if (error) {
@@ -80742,6 +80846,7 @@ function useHidAmicoController() {
80742
80846
  }
80743
80847
  return {
80744
80848
  listReaders,
80849
+ discoverReader,
80745
80850
  createReader,
80746
80851
  updateReader,
80747
80852
  deleteReader,
@@ -81488,6 +81593,7 @@ function useNotificationPreferenceController() {
81488
81593
  schemaCreateNfcPatrolLog,
81489
81594
  schemaCreateNotification,
81490
81595
  schemaCustomerSite,
81596
+ schemaDiscoverHidAmicoReader,
81491
81597
  schemaDocumentManagement,
81492
81598
  schemaEntryPassSettings,
81493
81599
  schemaEventManagement,