@7365admin1/core 3.99.1-staging.405 → 3.99.1-staging.407

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@7365admin1/core": patch
3
+ ---
4
+
5
+ PadBot: say why a robot will not move before sending (e-stop, battery under 10%, offline, Return while already docked); keep PadBot's reply and the robot's reaction for 30 s after each moving command; show the robot's own "could not reach" on its status line; Diagnose gains "can it move now?".
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@7365admin1/core": patch
3
+ ---
4
+
5
+ PadBot: Start patrol checks the route against the map the robot is on before sending (the default route on another map was accepted by PadBot and the robot stayed idle); routes take their map from their points; routes on the robot's map are listed first; go to point uses the location read's map.
package/dist/index.d.ts CHANGED
@@ -9938,6 +9938,57 @@ declare function padbotMode(states: TStates, now?: number): {
9938
9938
  mode: string;
9939
9939
  statusName: string;
9940
9940
  };
9941
+ /**
9942
+ * Why PadBot's robot will NOT act on a moving command right now, from one
9943
+ * §4.2 answer - or null. Only states PadBot documents as blocking: offline,
9944
+ * e-stop pressed (§4.2 1006; S2 manual "Emergency stop button"), battery under
9945
+ * 10% (S2 manual "The set task is not executed?"), and Return while already
9946
+ * on the charger. PadBot's cloud answers code 0 to all of these and the robot
9947
+ * then does nothing - so we say it BEFORE sending, in words.
9948
+ * ponytail: wheelLockState is NOT a blocker here - v4.0 does not say what
9949
+ * "locked" means for navigation (asked PadBot); Diagnose shows its value.
9950
+ */
9951
+ declare function padbotCommandBlock(states: TStates | null | undefined, kind: string, now?: number): string | null;
9952
+ /** Staff Diagnose: the states that decide whether the robot can move, each in words next to PadBot's raw value. */
9953
+ declare function padbotReadiness(states: TStates | null | undefined, now?: number): {
9954
+ online: boolean;
9955
+ heartbeatAt: any;
9956
+ emergencyStopPressed: boolean;
9957
+ wheelLockState: any;
9958
+ batteryPercent: number | null;
9959
+ chargingState: any;
9960
+ map: {
9961
+ id: any;
9962
+ name: any;
9963
+ floor: any;
9964
+ };
9965
+ navigation: {
9966
+ actionType: any;
9967
+ actionState: any;
9968
+ message: any;
9969
+ updatedAt: any;
9970
+ };
9971
+ work: {
9972
+ workState: any;
9973
+ taskType: any;
9974
+ updatedAt: any;
9975
+ };
9976
+ blocker: string | null;
9977
+ notes: string[];
9978
+ };
9979
+ /** One compact reading of what the robot is doing, for the after-command trace. */
9980
+ declare function padbotReactionPoint(states: TStates | null | undefined): {
9981
+ action: number;
9982
+ state: number;
9983
+ target: any;
9984
+ message: any;
9985
+ work: number;
9986
+ charging: any;
9987
+ estop: any;
9988
+ wheelLock: any;
9989
+ };
9990
+ /** The robot's own "navigation failed" (1003 actionState 6) in words, or null. */
9991
+ declare function padbotFailureText(p: ReturnType<typeof padbotReactionPoint>): string | null;
9941
9992
  /**
9942
9993
  * " · Wi-Fi -61 dBm" / " · Mobile -90 dBm", or "". §4.2 says dBm, but a real
9943
9994
  * S2 reports small positive numbers (e.g. 4) - a signal LEVEL, not dBm (dBm is
@@ -10025,7 +10076,10 @@ declare function createPadbotClient(credentials: {
10025
10076
  fetch?: TFetch;
10026
10077
  now?: () => number;
10027
10078
  }): {
10028
- call: <T = any>(path: string, body?: unknown) => Promise<T>;
10079
+ call: <T = any>(path: string, body?: unknown, meta?: {
10080
+ message?: string;
10081
+ requestId?: string;
10082
+ }) => Promise<T>;
10029
10083
  raw: (path: string, body?: unknown) => Promise<{
10030
10084
  httpStatus: number | null;
10031
10085
  code: number | null;
@@ -10064,6 +10118,9 @@ declare const padbotAccountKey: (c: {
10064
10118
  declare function recordPadbotLive(accountKey: string, robotSn: string, patch: TPadbotLive): void;
10065
10119
  declare function padbotLive(accountKey: string, robotSn: string): TPadbotLive | null;
10066
10120
  /** The last 10 commands per robot on THIS server and PadBot's answer - for staff Diagnose. Never a credential. */
10121
+ type TReaction = ReturnType<typeof padbotReactionPoint> & {
10122
+ afterSeconds: number;
10123
+ };
10067
10124
  type TCommandReply = {
10068
10125
  at: string;
10069
10126
  command: string;
@@ -10072,9 +10129,19 @@ type TCommandReply = {
10072
10129
  ok: boolean;
10073
10130
  vendorCode?: number;
10074
10131
  vendorMessage?: string;
10132
+ requestId?: string;
10075
10133
  error?: string;
10134
+ /** What the robot did in the 30 s after PadBot accepted it (§4.2 read every 2 s, changes only). */
10135
+ reaction?: {
10136
+ watching: boolean;
10137
+ points: TReaction[];
10138
+ failure?: string | null;
10139
+ moved?: boolean;
10140
+ };
10076
10141
  };
10077
10142
  declare const padbotCommandLog: (accountKey: string, robotSn: string) => TCommandReply[];
10143
+ /** A failure is shown for this long after it was seen (then the plain state takes over). */
10144
+ declare const PADBOT_FAILURE_SHOW_MS: number;
10078
10145
  /** One robot's §4.2 states by type (the drive safety check). Null when PadBot does not list it. */
10079
10146
  declare function readPadbotStates(credentials: {
10080
10147
  appid: string;
@@ -10102,7 +10169,14 @@ declare function listPadbotAlarmsSince(credentials: {
10102
10169
  declare function createPadbotAdapter(credentials: {
10103
10170
  appid: string;
10104
10171
  secret: string;
10105
- }, options?: Parameters<typeof createPadbotClient>[1]): TRobotAdapter;
10172
+ }, options?: Parameters<typeof createPadbotClient>[1] & {
10173
+ /** After-command trace: read states every `everyMs` for `forMs` (false = off). */
10174
+ watch?: {
10175
+ everyMs: number;
10176
+ forMs: number;
10177
+ } | false;
10178
+ sleep?: (ms: number) => Promise<void>;
10179
+ }): TRobotAdapter;
10106
10180
  /** The brand as registered - exported so a test can register this exact definition. */
10107
10181
  declare const PADBOT_BRAND_DEFINITION: TRobotBrand;
10108
10182
  declare function registerPadbotBrand(): void;
@@ -20907,4 +20981,4 @@ declare function usePersonalEmergencyChainController(): {
20907
20981
  update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
20908
20982
  };
20909
20983
 
20910
- export { ANPRMode, APP_BASE_URLS, AUDIT_VALUE_MAX_LENGTH, AccessTypeProps, AppKey, AppServiceType, AssignCardConfig, BLOCKLIST_CATEGORIES, BULK_CAMERA_COLUMNS, BidStatus, BidType, BuildingLevelStatus, BuildingStatus, BulkCameraAccepted, BulkCameraOutcome, BulkCameraPlan, BulkCameraResult, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, CAMERA_ANPR_PERMISSIONS, CAMERA_CAPABILITIES, CAMERA_CAPABILITY_REASONS, CAMERA_MANAGE_ANY_PERMISSIONS, CAMERA_NOT_PATROL_OR_CCTV, CAMERA_NO_SUB_STREAM_TTL_SECONDS, CAMERA_PTZ_PERMISSIONS, CAMERA_RECORDINGS_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, CLIENT_ACTIONS, CLOCK_DRIFT_WARN_SECONDS, CONSOLE_AUDIT_LABELS, CONSOLE_PERMISSIONS, CONTRACTOR_TYPE_LABELS, CROSS_CLIENT_GRANT, CURRENT_TIME_ENDPOINT, Camera, CameraAddressInput, CameraCapability, CameraCapabilityContext, CameraCapabilityDescriptor, CameraCapabilityEntry, CameraCapabilityReason, CameraCapabilityState, CameraCapabilityTrace, CameraDevice, CameraFrame, CameraMembership, CameraStream, CameraTestStatus, CameraTransport, CameraType, ConsoleAuditAction, ConsoleAuditTarget, ConsoleGrant, DEFAULT_EMAIL_ALLOWLIST, DEFAULT_RING_SECONDS, DEFAULT_SCALE_M_PER_PX, DEFAULT_SITE_TIMEZONE, DEMO_ADD_MAX, DEMO_BRAND, DEMO_BRAND_DEFINITION, DEMO_CAPABILITIES, DEMO_FAULT_ROBOT, DEMO_ROUTES, DEVICE_STATUS, DISCONNECT, DOBStatus, DOOR_MODE, DRIVE_END_TEXT, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, E164, EAccessCardTypes, EAccessCardUserTypes, EMAIL_CODE_MAX_ATTEMPTS, EMAIL_CODE_RESEND_MS, EMAIL_CODE_TTL_MS, EMAIL_PER_MODULE_PER_HOUR, EMAIL_WINDOW_MS, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FLOOR_PLANS_TOTAL_MAX_BYTES, FLOOR_PLAN_MAX_BYTES, FacilitySort, FacilityStatus, FormEntryStatus, GOVERNED_MODULES, GuestSort, GuestStatus, HID_CARD_VALUE_FACTOR, HID_PERMISSION_CATEGORIES, HID_UINT32_MAX, HID_UINT64_MAX, HidRawUint64, IAccessCard, IAccessCardTransaction, InviteActor, LIFT_DOOR, LIFT_LEASE_MS, LIFT_MODE, LIFT_MOTION, LIFT_QUEUE_TTL_MS, LIFT_REQUEST, LIFT_SESSION_STATUS, LIFT_SIM_BOARD_MS, LIFT_SIM_DOOR_DWELL_MS, LIFT_SIM_MS_PER_FLOOR, LIVE_ROLE, LIVE_VEHICLE_STATUSES, MANAGE_SITE_MODULES, MAX_BULK_CAMERA_ROWS, MAX_CAMERA_CHANNEL, MAX_CAMERA_NAME_LENGTH, MAX_PERSONAL_EMERGENCY_CONTACTS, MAX_RING_SECONDS, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBidPreloved, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChannelPreloved, MChat, MChatPreloved, MConsoleAudit, MCustomer, MCustomerSite, MDocumentManagement, MEMBER_TYPES, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MHidAmicoEvent, MHidAmicoIdentity, MHidAmicoReader, MHidSipAccount, MHidSitePermissions, MIN_RING_SECONDS, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MNotification, MNotificationPreference, MODULE_GATE_MODE_DEFAULT, MODULE_LIST_GATE_DEFAULT, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolEmail, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPersonalEmergencyChain, MPlatformTerms, MPost, MPostFavorite, MPromoCode, MQTT, MQTT_MAX_PACKET, MRobot, MRobotBuildingMap, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, MembershipPreference, NETWORK_STATES_MAX, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NOTIFY_ACCESS_FILTER_DEFAULT, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, OCCUPANCY_ROLES, OFFLINE_FAULT_CODE, OPEN_RMF_BRAND, OPEN_RMF_CAPABILITIES, OPEN_RMF_DISPLAY_NAME, ORG_MARKETPLACE_VENDOR_FIELD, ORG_OWNER_REPAIR_CLAIM_STALE_MS, ORG_OWNER_REPAIR_CLAIM_TAKEN_REASON, ORG_OWNER_REPAIR_DEFAULT, ORG_OWNER_REPAIR_OFF_REASON, OUNITECH_BRAND, OUNITECH_BRAND_DEFINITION, OUNITECH_CAPABILITIES, OUNITECH_PENDING_COMMANDS, OUNITECH_REGION_BASE_URLS, OUNITECH_TIMESTAMP_FORMAT, OUNITECH_TIMESTAMP_ZONE, OccupancyRole, OccupancyRoles, OpenRmfError, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PADBOT_ACTION_TEXT, PADBOT_ALARMS, PADBOT_ALARM_POLL_MS, PADBOT_ALARM_TEXT, PADBOT_BRAND, PADBOT_BRAND_DEFINITION, PADBOT_CAPABILITIES, PADBOT_DISPLAY_NAME, PADBOT_LIVE_POSE_MS, PADBOT_MAKER_APP_ONLY, PADBOT_MODELS, PADBOT_MOTION, PADBOT_MQTT_SYNC_MS, PADBOT_ONLINE_WINDOW_MS, PADBOT_OTHER_MAP_TEXT, PADBOT_PATHS, PATROL_CCTV_CAMERA_FILTER, PATROL_EMAIL_MAX_LOGS, PATROL_EMAIL_MAX_PER_HOUR, PATROL_EMAIL_MAX_RECIPIENTS, PERSON_TYPES, PINGREQ, PLAN_RANGE, PLATFORM_STAFF_MEMBER_TYPE, PLATFORM_STAFF_ROLE_TYPE, PLAYBACK_LINK_SECONDS, PLAYBACK_MAX_WINDOW_SECONDS, PROPERTY_MANAGEMENT_MEMBER_TYPES, PStatus, PTZ_ALLOWED_ACTIONS, PTZ_ALLOWED_CODES, Period, PersonStatus, PersonType, PersonTypes, PlatformTermsStatus, PostOrder, PostSort, PostStatus, QrTagProps, REALTIME_MAX_FANOUT, RECEIVED_INVITE_LABELS, RECEIVED_INVITE_TABS, REGISTERED_VEHICLE_CATEGORIES, RESIDENT_APP_SUBMODULES, ROBOT_APP_SCOPES, ROBOT_AUDIT_ACTIONS, ROBOT_CAPABILITIES, ROBOT_CLOUD_DOC_CONFIRMATIONS, ROBOT_CLOUD_PATHS, ROBOT_CLOUD_TIMEOUT_MS, ROBOT_CLOUD_TIMESTAMP_FORMATS, ROBOT_CREDENTIALS_ENV, ROBOT_MODULE, ROBOT_PERMISSIONS, ROBOT_STATUS_NAMES, ROBOT_TYPES, ReceivedInviteTab, ResidentAppModuleKey, RobotCloudError, RobotCredentialsError, SELF_SERVICE_RESEND_COOLDOWN_MS, SELF_SIGNUP_PLATFORM, SELF_SIGNUP_STATUS, SELF_SIGNUP_TYPES, SERVICE_PROVIDER_INVITE_EXPIRED_MESSAGE, 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, SITE_STATES_MAX, SOFTWARE_VERSION_ENDPOINT, ServiceProviderInviteAction, ServiceProviderInviteDecision, ServiceProviderInviteFacts, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionBillingMode, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAdapterCommand, TAdapterRobot, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAreaColour, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingFloorPlan, TBuildingLevel, TBuildingMapDoor, TBuildingMapLevel, TBuildingMapLift, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCameraHealthClaim, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TCleanLevel, TCleanMode, TCleanOptionValues, TCleanOptions, TCleanSubMode, TCloudArea, TCloudFile, TCloudMap, TCloudPlan, TCloudPlanJob, TCloudRobot, TComplaintInfo, TComplaintReceivedTo, TConsoleAudit, TConsoleAuditQuery, TCounter, TCreateNfcPatrolLog, TCredentialField, TCrossSiteRoleMode, TCustomer, TCustomerSite, TCustomerSitePropertyField, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TDoorDriver, TDoorMode, TDoorRequest, TDoorState, TDriveSignal, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFleetRobot, TFloorPlanLevel, TFloorPlanMap, TFloorSlab, TFolderUpdate, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, THidAmicoEvent, THidAmicoGatewayJob, THidAmicoIdentity, THidAmicoPhysicalCard, THidAmicoReader, THidPermissionAssignment, THidPermissionCategory, THidPermissionUserBinding, THidPhysicalCardInput, THidPhysicalCardType$1 as THidPhysicalCardType, THidSipAccount, THidSitePermissions, TIMESTAMP_OFFSET_CANDIDATES, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TLevelSolids, TLiftDoorState, TLiftDriver, TLiftMode, TLiftMotionState, TLiftPhase, TLiftRequest, TLiftRequestType, TLiftSessionStatus, TLiftState, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMapDoor, TMapFloor, TMapMeasurement, TMapPointM, TMapSegment, TMapVertex, TMapWall, TMember, TMemberModulesDeps, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TModuleAccess, TModuleGateMode, TModuleImpact, TMqttPacket, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationEmail, TNotificationEmailJob, TNotificationEmailSettings, TNotificationPreference, TNotificationPreferenceOff, TNotifyAccessContext, TNotifyAccessMode, TNotifyAccessReport, TOccupancyGrid, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOpenRmfClient, TOpenRmfConfig, TOrg, TOrgModulesDeps, TOrgOwnerRepairClaim, TOrgOwnerRepairDeps, TOrgOwnerRepairInput, TOrgOwnerRepairPayload, TOrgOwnerRepairPlan, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPadbotDriveLimits, TPadbotLiveEvent, TPadbotMapFrame, TPadbotMqttEvent, TPadbotMqttMessage, TPadbotPoint, TPatrolEmail, TPatrolEmailCreatedBy, TPatrolEmailLogRef, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPendingCommand, TPerson, TPersonalEmergencyChain, TPersonalEmergencyContact, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, TPreferenceViewOptions, TPrice, TPriceType, TPromoCode, TPromoCurrencyInput, TPromoTier, TRACKING_BACKOFF_BASE_MS, TRACKING_BACKOFF_CAP_MS, TRACKING_IDLE_TIMEOUT_MS, TRANSPORT_DEVICE_HTTP, TRANSPORT_RELAY_PLAYBACK, TRANSPORT_RELAY_PLAYER, TRANSPORT_RTSP_FRAME, TRecipientOfComplaint, TRegionProbe, TRemarks, TResident, TResidentAppModules, TRmfBuildingMap, TRmfFleetState, TRmfLocation, TRmfRobotState, TRobot, TRobotAction, TRobotAdapter, TRobotAppScope, TRobotBrand, TRobotBuildingMap, TRobotCapabilities, TRobotCapability, TRobotCloudCredentials, TRobotCloudErrorKind, TRobotCloudPath, TRobotCloudReply, TRobotCloudReplyInfo, TRobotCloudTimestampFormat, TRobotCommand, TRobotDiagnosis, TRobotDiagnosisStep, TRobotInfo, TRobotLiftSession, TRobotLiveState, TRobotManifest, TRobotMetadata, TRobotMode, TRobotModelProfile, TRobotPage, TRobotPatrolCheckpoint, TRobotPatrolCheckpointVisit, TRobotPatrolPlan, TRobotPatrolRecord, TRobotPatrolRoute, TRobotPatrolScheduleRow, TRobotPermissionActor, TRobotPose, TRobotTier, TRobotType, TRole, TRolePermissionHistoryEntry, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TSelfServiceEmailOccasion, TSelfServiceEmailRecord, TSelfServiceResendDecision, TSelfServiceResendFacts, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteDayBounds, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteModulesDeps, TSiteUpdateBlock, TSseEvent, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TSubscriptionPlan, TSubscriptionPlanApplication, TTimestampOffsetProbe, TTimestampProbe, TTrackingEvent, TTrackingHandle, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleAnprCamera, TVehicleFieldChange, TVehicleHistoryEntry, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationCode, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationOnboarding, TVerificationV2, TVisitorTransaction, TWallSolid, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UNSTORED_COLUMNS, UseAccessManagementRepo, UserStatus, VEHICLE_HISTORY_LIMIT, VERIFICATION_OPEN_STATUSES, VehicleCategory, VehicleListView, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, WALL_HEIGHT_M, WALL_THICKNESS_M, adapterForRobot, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, allowsRobotAction, allowsRobotListing, applyTrackingFrame, areaColourToHex, asList, attendanceSchema, attendanceSettingsSchema, buildSelfServiceEmailContext, buildingFileImportSchema, buildingFromRmf, buildingInPlanFrame, buildingMapBodySchema, buildingMapCreateSchema, buildingMapFromRobotMaps, buildingMapUpdateSchema, buildingSolids, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, callerAccountApproved, callerId, cameraBaseUrl, cameraCapabilitiesFor, cameraDevices, cameraGrant, cameraHealthClaim, cameraHealthSummary, cameraListClearConfirmation, cameraManagePermissions, cameraProbeCacheKey, cameraTransports, canManageSiteModules, canMonitorRobotType, canRevokeRefreshTokenFamily, canSetUpRobotType, categoriesForPermissions, categorySupportsChannel, chatPrelovedEvents, chatSchema, claimReadsAsStale, clampChassis, clampPtzSpeed, clearPadbotCache, clearRobotBrands, clockDriftSeconds, codeMatches, commandSupported, connackCode, consoleRoleAllows, consoleRoleAllowsAll, consoleSpellings, console_audit_namespace_collection, createDemoAdapter, createDriveWatchdog, createLiftSimulator, createManpowerRemarksDaily, createMessageDeduper, createMqttReader, createOpenRmfAdapter, createOpenRmfClient, createOunitechAdapter, createPadbotAdapter, createPadbotClient, createSseParser, crossSiteRoleGrants, crossSiteRoleMode, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, decodePublish, decodeTrackingFrame, decryptCredential, deliverEmail, demoFault, demoPatrolPoint, deniedModules, deriveBulletinStatus, deriveCameraHost, derivedDemoRobot, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, disconnectedState, documentExpiryFilter, documents_namespace_collection, doorModeOf, effectiveEmailAllowlist, emailOpenToEveryone, emitNotificationCreated, emptyPersonalEmergencyChain, encodeConnect, encodeGreyscalePng, encodeHidPacsCard, encodePuback, encodePublish, encodeSubscribe, encryptCredential, encryptedPairUpdate, endAllPadbotDrives, entitledSiteScope, escapeHtml, events_namespace_collection, expandModules, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, fetchPadbotMqttCredentials, ffmpegFrameArgs, ffmpegPath, filterByAccess, fleetStateItem, floorNoOf, floorPlanBodySchema, flushNotificationEmails, forgetPadbotMaps, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, greyscalePngDataUri, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hasOrgOwnership, hasOrgSiteReach, hashCode, headParams, hexToAreaColour, hidRawUint64, holdsLift, holdsRole, incidentReport, incidentReportLog, incidents_namespace_collection, invitationOffersRole, isAvailableForWork, isCameraEntitled, isCrossSiteRole, isDispatchable, isDoorPassable, isDuplicateMemberError, isDuplicateVersionError, isEmailAllowed, isEncryptedCredential, isLiftAvailable, isLikelySelfServiceEmail, isLiveVehicleStatus, isPatrolCctvCamera, isPlatformOwner, isProductionWebBase, isPromoCodeExpired, isRelayPlayerUrl, isSafeRelativePath, isSafeToCross, isSeasonPassVehicle, isServiceProviderInviteExpired, isSuperAdmin, isTermsCurrent, isTrackingStale, isValidTimezone, jcs, keepStoredPassword, levelPixelToMetres, levelScale, levelSolids, liftQueueKey, liftRequestSchema, listPadbotAlarmsSince, listStaffUserIds, liveStatusFor, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, memberModulesHandlers, metresToPixel, missingForTier, moduleDeniedForCaller, moduleGateEnforceKeys, moduleGateMode, moduleImpact, moduleListGateOn, motionMessage, mqttBackoffMs, mqttRefreshDelayMs, networkText, newCode, newSecret, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalisePatrolPlan, normalizeAcceptedTerms, normalizeEmail, normalizeHidCardValue, notificationAccessReport, notificationCategory, notificationCategoryLabel, notificationEmail, notificationEvents, notificationKind, notificationRoom, notifyAccessMode, notifyRobotFault, occasionForStatus, occurrence_book_namespace_collection, offLink, offPage, offToken, offTokenMatches, onBookTimezonesChanged, onPadbotLive, online_forms_namespace_collection, openLink, openRmfConfig, openRmfDoorDriver, openRmfLiftDriver, orgLevelRoles, orgModulesHandlers, orgOwnerRepairHandlers, orgOwnerRepairOn, orgQualifiesForOwnerRepair, orgRoleSets, orgSchema, overnight_parking_requests_namespace_collection, ownerFlagFor, padbotAccountKey, padbotAlarmFault, padbotAlarmPlace, padbotAlarmPollEnabled, padbotBaseUrl, padbotCanReachMap, padbotChargingPoint, padbotCheckpointVisit, padbotCommandLog, padbotCurrentMap, padbotDriveBlock, padbotDriveLimits, padbotDriveSignal, padbotErrorText, padbotLinkUp, padbotLive, padbotManualDriveEnabled, padbotMode, padbotMqttEnabled, padbotPatrolPlan, padbotPatrolRecord, padbotPlanShare, padbotSignature, padbotSignedRequest, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePadbotAuthorization, parsePadbotMessage, parsePromoExpiry, parseRobotCommand, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, pixelToMetres, planBulkCameraImport, planDayFromJsDay, planDemoRobots, planOrgOwnerRepair, planShareOf, platform_terms_namespace_collection, playbackRelays, playbackWindowRefusal, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, publishToPadbotRobot, queueNotificationEmails, readLiveItems, readPadbotStates, readPadbotStatesMany, readsAsApprovedAccount, receivedInviteTab, recordConsoleAction, recordPadbotLive, refuseServiceProviderInviteAction, registerCameraTransport, registerDemoBrand, registerOpenRmfBrand, registerOunitechBrand, registerPadbotBrand, registerRobotBrand, registeredRobotBrands, relayForRecorder, remarksSchema, renderPagePdf, requireConsolePermission, requirePlatformStaff, resetCameraTransports, residentAppModuleKeys, residentAppModulesSchema, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveHidPhysicalCardValue, resolveInviteActor, resolveSiteTimezone, resolveStaffRole, rmfBuilding_util as rmfBuilding, rmfBuildingSchema, robotActionsFor, robotBrandFor, robotCloudBody, robotCloudCredentials, robotCloudSign, robotCloudSigningString, robotCloudStepName, robotCloudTimestamp, robotCredentialsKey, robotFaultSweepConfig, robotManifest, robotMode, robotModeFromList, robotSchema, robotScopeForApp, robotTier, robotTypesVisibleTo, rtspUrl, safeTopic, scaleFromMeasurement, schema, schemaAppSlugNotification, schemaApprovedBy, schemaApprover, schemaBidPreloved, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaChannelPreloved, schemaChatPreloved, schemaConsoleAudit, schemaCreateHidAmicoIdentity, schemaCreateNfcPatrolLog, schemaCreateNotification, schemaCustomerSite, schemaDiscoverHidAmicoReader, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaHidAmicoAccessLogQuery, schemaHidAmicoAssignUserCard, schemaHidAmicoConfiguration, schemaHidAmicoEnrollUserCard, schemaHidAmicoEvent, schemaHidAmicoExecuteActions, schemaHidAmicoIdentificationMethods, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoMonitor, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoOperatingMode, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoReaderUserQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSiteIdParams, schemaHidAmicoSync, schemaHidAmicoUserCardIdParams, schemaHidAmicoUserCardParams, schemaHidAmicoUserImageParams, schemaHidAmicoUserImageUploadQuery, schemaHidAmicoUserPassword, schemaHidAmicoUserPasswordParams, schemaHidAmicoUserPin, schemaHidAmicoUserPinParams, schemaHidAmicoVisitorImageParams, schemaHidAmicoVisitorImageUploadQuery, schemaHidAmicoVisitorQr, schemaHidPermissionCandidateQuery, schemaHidPermissionScopeQuery, schemaHidSipAccountRequest, schemaIncidentReport, schemaListNotification, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaNotification, schemaNotificationEmailAddress, schemaNotificationEmailCode, schemaNotificationEmailOff, schemaNotificationPreference, schemaNotificationPreferenceOff, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolEmail, schemaPatrolEmailCreatedBy, schemaPatrolEmailLogRef, schemaPatrolEmailQuery, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPersonalEmergencyContact, schemaPlate, schemaPlatformTerms, schemaPost, schemaPostFavorite, schemaResendPatrolEmail, schemaResidentSelfSignUp, schemaSelfServiceVisitor, schemaSendPatrolEmail, 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, schemaUpdatePersonalEmergencyChain, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, selectHealthTargets, selfServiceEmailSubject, sendNotificationEmails, servesFloor, serviceProviderInviteLabel, serviceProviderInviteViewStatus, sessionSchema, setIO, sha256Hex, shiftSchema, signLiveLink, signPlaybackLink, signedPath, simulatedLiftState, siteDayBounds, siteModulesHandlers, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, splitRobotSn, staffMayBypass, startDemoTracking, startPadbotDrive, startPadbotLiveFeed, startRobotTracking, startTodaysBookForSite, statesByType, stringifyHidJson, stripFacialImageMetadata, subackOk, subscriptionPlanSchema, summariseBulkCameraPlan, supports, taskRequestFor, toAdapterRobot, toExpiryDate, trackingBackoffMs, uncontrollableFleetWarning, 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, useConsoleAuditController, useConsoleAuditRepo, 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, useOrgOwnerRepairRepo, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolEmailController, usePatrolEmailRepo, usePatrolEmailService, usePatrolLogController, usePatrolLogRepo, usePatrolLogService, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePersonalEmergencyChainController, usePersonalEmergencyChainRepo, usePersonalEmergencyChainService, usePlatformTermsController, usePlatformTermsRepo, usePlatformTermsService, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotBuildingMapRepo, useRobotCloudService, useRobotController, useRobotFaultRepo, useRobotFaultSweep, useRobotFleetController, useRobotFleetService, useRobotLiftSessionRepo, useRobotMapController, useRobotNetworkController, useRobotRepo, useRobotService, useRobotSiteController, 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, vehicleCategoryFor, vehicleHistoryEntry, vehicleHistoryValue, vehicleListViewQuery, vehicleSchema, vehicleViewOf, vehicles_namespace_collection, verificationEmail, vertexDistancePx, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, wallsFromOccupancyGrid, waypointsFor, webBase, withLiveLink, withNotificationKind, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
20984
+ export { ANPRMode, APP_BASE_URLS, AUDIT_VALUE_MAX_LENGTH, AccessTypeProps, AppKey, AppServiceType, AssignCardConfig, BLOCKLIST_CATEGORIES, BULK_CAMERA_COLUMNS, BidStatus, BidType, BuildingLevelStatus, BuildingStatus, BulkCameraAccepted, BulkCameraOutcome, BulkCameraPlan, BulkCameraResult, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, CAMERA_ANPR_PERMISSIONS, CAMERA_CAPABILITIES, CAMERA_CAPABILITY_REASONS, CAMERA_MANAGE_ANY_PERMISSIONS, CAMERA_NOT_PATROL_OR_CCTV, CAMERA_NO_SUB_STREAM_TTL_SECONDS, CAMERA_PTZ_PERMISSIONS, CAMERA_RECORDINGS_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, CLIENT_ACTIONS, CLOCK_DRIFT_WARN_SECONDS, CONSOLE_AUDIT_LABELS, CONSOLE_PERMISSIONS, CONTRACTOR_TYPE_LABELS, CROSS_CLIENT_GRANT, CURRENT_TIME_ENDPOINT, Camera, CameraAddressInput, CameraCapability, CameraCapabilityContext, CameraCapabilityDescriptor, CameraCapabilityEntry, CameraCapabilityReason, CameraCapabilityState, CameraCapabilityTrace, CameraDevice, CameraFrame, CameraMembership, CameraStream, CameraTestStatus, CameraTransport, CameraType, ConsoleAuditAction, ConsoleAuditTarget, ConsoleGrant, DEFAULT_EMAIL_ALLOWLIST, DEFAULT_RING_SECONDS, DEFAULT_SCALE_M_PER_PX, DEFAULT_SITE_TIMEZONE, DEMO_ADD_MAX, DEMO_BRAND, DEMO_BRAND_DEFINITION, DEMO_CAPABILITIES, DEMO_FAULT_ROBOT, DEMO_ROUTES, DEVICE_STATUS, DISCONNECT, DOBStatus, DOOR_MODE, DRIVE_END_TEXT, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, E164, EAccessCardTypes, EAccessCardUserTypes, EMAIL_CODE_MAX_ATTEMPTS, EMAIL_CODE_RESEND_MS, EMAIL_CODE_TTL_MS, EMAIL_PER_MODULE_PER_HOUR, EMAIL_WINDOW_MS, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FLOOR_PLANS_TOTAL_MAX_BYTES, FLOOR_PLAN_MAX_BYTES, FacilitySort, FacilityStatus, FormEntryStatus, GOVERNED_MODULES, GuestSort, GuestStatus, HID_CARD_VALUE_FACTOR, HID_PERMISSION_CATEGORIES, HID_UINT32_MAX, HID_UINT64_MAX, HidRawUint64, IAccessCard, IAccessCardTransaction, InviteActor, LIFT_DOOR, LIFT_LEASE_MS, LIFT_MODE, LIFT_MOTION, LIFT_QUEUE_TTL_MS, LIFT_REQUEST, LIFT_SESSION_STATUS, LIFT_SIM_BOARD_MS, LIFT_SIM_DOOR_DWELL_MS, LIFT_SIM_MS_PER_FLOOR, LIVE_ROLE, LIVE_VEHICLE_STATUSES, MANAGE_SITE_MODULES, MAX_BULK_CAMERA_ROWS, MAX_CAMERA_CHANNEL, MAX_CAMERA_NAME_LENGTH, MAX_PERSONAL_EMERGENCY_CONTACTS, MAX_RING_SECONDS, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBidPreloved, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChannelPreloved, MChat, MChatPreloved, MConsoleAudit, MCustomer, MCustomerSite, MDocumentManagement, MEMBER_TYPES, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MHidAmicoEvent, MHidAmicoIdentity, MHidAmicoReader, MHidSipAccount, MHidSitePermissions, MIN_RING_SECONDS, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MNotification, MNotificationPreference, MODULE_GATE_MODE_DEFAULT, MODULE_LIST_GATE_DEFAULT, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolEmail, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPersonalEmergencyChain, MPlatformTerms, MPost, MPostFavorite, MPromoCode, MQTT, MQTT_MAX_PACKET, MRobot, MRobotBuildingMap, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, MembershipPreference, NETWORK_STATES_MAX, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NOTIFY_ACCESS_FILTER_DEFAULT, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, OCCUPANCY_ROLES, OFFLINE_FAULT_CODE, OPEN_RMF_BRAND, OPEN_RMF_CAPABILITIES, OPEN_RMF_DISPLAY_NAME, ORG_MARKETPLACE_VENDOR_FIELD, ORG_OWNER_REPAIR_CLAIM_STALE_MS, ORG_OWNER_REPAIR_CLAIM_TAKEN_REASON, ORG_OWNER_REPAIR_DEFAULT, ORG_OWNER_REPAIR_OFF_REASON, OUNITECH_BRAND, OUNITECH_BRAND_DEFINITION, OUNITECH_CAPABILITIES, OUNITECH_PENDING_COMMANDS, OUNITECH_REGION_BASE_URLS, OUNITECH_TIMESTAMP_FORMAT, OUNITECH_TIMESTAMP_ZONE, OccupancyRole, OccupancyRoles, OpenRmfError, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PADBOT_ACTION_TEXT, PADBOT_ALARMS, PADBOT_ALARM_POLL_MS, PADBOT_ALARM_TEXT, PADBOT_BRAND, PADBOT_BRAND_DEFINITION, PADBOT_CAPABILITIES, PADBOT_DISPLAY_NAME, PADBOT_FAILURE_SHOW_MS, PADBOT_LIVE_POSE_MS, PADBOT_MAKER_APP_ONLY, PADBOT_MODELS, PADBOT_MOTION, PADBOT_MQTT_SYNC_MS, PADBOT_ONLINE_WINDOW_MS, PADBOT_OTHER_MAP_TEXT, PADBOT_PATHS, PATROL_CCTV_CAMERA_FILTER, PATROL_EMAIL_MAX_LOGS, PATROL_EMAIL_MAX_PER_HOUR, PATROL_EMAIL_MAX_RECIPIENTS, PERSON_TYPES, PINGREQ, PLAN_RANGE, PLATFORM_STAFF_MEMBER_TYPE, PLATFORM_STAFF_ROLE_TYPE, PLAYBACK_LINK_SECONDS, PLAYBACK_MAX_WINDOW_SECONDS, PROPERTY_MANAGEMENT_MEMBER_TYPES, PStatus, PTZ_ALLOWED_ACTIONS, PTZ_ALLOWED_CODES, Period, PersonStatus, PersonType, PersonTypes, PlatformTermsStatus, PostOrder, PostSort, PostStatus, QrTagProps, REALTIME_MAX_FANOUT, RECEIVED_INVITE_LABELS, RECEIVED_INVITE_TABS, REGISTERED_VEHICLE_CATEGORIES, RESIDENT_APP_SUBMODULES, ROBOT_APP_SCOPES, ROBOT_AUDIT_ACTIONS, ROBOT_CAPABILITIES, ROBOT_CLOUD_DOC_CONFIRMATIONS, ROBOT_CLOUD_PATHS, ROBOT_CLOUD_TIMEOUT_MS, ROBOT_CLOUD_TIMESTAMP_FORMATS, ROBOT_CREDENTIALS_ENV, ROBOT_MODULE, ROBOT_PERMISSIONS, ROBOT_STATUS_NAMES, ROBOT_TYPES, ReceivedInviteTab, ResidentAppModuleKey, RobotCloudError, RobotCredentialsError, SELF_SERVICE_RESEND_COOLDOWN_MS, SELF_SIGNUP_PLATFORM, SELF_SIGNUP_STATUS, SELF_SIGNUP_TYPES, SERVICE_PROVIDER_INVITE_EXPIRED_MESSAGE, 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, SITE_STATES_MAX, SOFTWARE_VERSION_ENDPOINT, ServiceProviderInviteAction, ServiceProviderInviteDecision, ServiceProviderInviteFacts, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionBillingMode, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAdapterCommand, TAdapterRobot, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAreaColour, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingFloorPlan, TBuildingLevel, TBuildingMapDoor, TBuildingMapLevel, TBuildingMapLift, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCameraHealthClaim, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TCleanLevel, TCleanMode, TCleanOptionValues, TCleanOptions, TCleanSubMode, TCloudArea, TCloudFile, TCloudMap, TCloudPlan, TCloudPlanJob, TCloudRobot, TComplaintInfo, TComplaintReceivedTo, TConsoleAudit, TConsoleAuditQuery, TCounter, TCreateNfcPatrolLog, TCredentialField, TCrossSiteRoleMode, TCustomer, TCustomerSite, TCustomerSitePropertyField, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TDoorDriver, TDoorMode, TDoorRequest, TDoorState, TDriveSignal, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFleetRobot, TFloorPlanLevel, TFloorPlanMap, TFloorSlab, TFolderUpdate, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, THidAmicoEvent, THidAmicoGatewayJob, THidAmicoIdentity, THidAmicoPhysicalCard, THidAmicoReader, THidPermissionAssignment, THidPermissionCategory, THidPermissionUserBinding, THidPhysicalCardInput, THidPhysicalCardType$1 as THidPhysicalCardType, THidSipAccount, THidSitePermissions, TIMESTAMP_OFFSET_CANDIDATES, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TLevelSolids, TLiftDoorState, TLiftDriver, TLiftMode, TLiftMotionState, TLiftPhase, TLiftRequest, TLiftRequestType, TLiftSessionStatus, TLiftState, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMapDoor, TMapFloor, TMapMeasurement, TMapPointM, TMapSegment, TMapVertex, TMapWall, TMember, TMemberModulesDeps, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TModuleAccess, TModuleGateMode, TModuleImpact, TMqttPacket, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationEmail, TNotificationEmailJob, TNotificationEmailSettings, TNotificationPreference, TNotificationPreferenceOff, TNotifyAccessContext, TNotifyAccessMode, TNotifyAccessReport, TOccupancyGrid, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOpenRmfClient, TOpenRmfConfig, TOrg, TOrgModulesDeps, TOrgOwnerRepairClaim, TOrgOwnerRepairDeps, TOrgOwnerRepairInput, TOrgOwnerRepairPayload, TOrgOwnerRepairPlan, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPadbotDriveLimits, TPadbotLiveEvent, TPadbotMapFrame, TPadbotMqttEvent, TPadbotMqttMessage, TPadbotPoint, TPatrolEmail, TPatrolEmailCreatedBy, TPatrolEmailLogRef, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPendingCommand, TPerson, TPersonalEmergencyChain, TPersonalEmergencyContact, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, TPreferenceViewOptions, TPrice, TPriceType, TPromoCode, TPromoCurrencyInput, TPromoTier, TRACKING_BACKOFF_BASE_MS, TRACKING_BACKOFF_CAP_MS, TRACKING_IDLE_TIMEOUT_MS, TRANSPORT_DEVICE_HTTP, TRANSPORT_RELAY_PLAYBACK, TRANSPORT_RELAY_PLAYER, TRANSPORT_RTSP_FRAME, TRecipientOfComplaint, TRegionProbe, TRemarks, TResident, TResidentAppModules, TRmfBuildingMap, TRmfFleetState, TRmfLocation, TRmfRobotState, TRobot, TRobotAction, TRobotAdapter, TRobotAppScope, TRobotBrand, TRobotBuildingMap, TRobotCapabilities, TRobotCapability, TRobotCloudCredentials, TRobotCloudErrorKind, TRobotCloudPath, TRobotCloudReply, TRobotCloudReplyInfo, TRobotCloudTimestampFormat, TRobotCommand, TRobotDiagnosis, TRobotDiagnosisStep, TRobotInfo, TRobotLiftSession, TRobotLiveState, TRobotManifest, TRobotMetadata, TRobotMode, TRobotModelProfile, TRobotPage, TRobotPatrolCheckpoint, TRobotPatrolCheckpointVisit, TRobotPatrolPlan, TRobotPatrolRecord, TRobotPatrolRoute, TRobotPatrolScheduleRow, TRobotPermissionActor, TRobotPose, TRobotTier, TRobotType, TRole, TRolePermissionHistoryEntry, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TSelfServiceEmailOccasion, TSelfServiceEmailRecord, TSelfServiceResendDecision, TSelfServiceResendFacts, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteDayBounds, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteModulesDeps, TSiteUpdateBlock, TSseEvent, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TSubscriptionPlan, TSubscriptionPlanApplication, TTimestampOffsetProbe, TTimestampProbe, TTrackingEvent, TTrackingHandle, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleAnprCamera, TVehicleFieldChange, TVehicleHistoryEntry, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationCode, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationOnboarding, TVerificationV2, TVisitorTransaction, TWallSolid, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UNSTORED_COLUMNS, UseAccessManagementRepo, UserStatus, VEHICLE_HISTORY_LIMIT, VERIFICATION_OPEN_STATUSES, VehicleCategory, VehicleListView, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, WALL_HEIGHT_M, WALL_THICKNESS_M, adapterForRobot, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, allowsRobotAction, allowsRobotListing, applyTrackingFrame, areaColourToHex, asList, attendanceSchema, attendanceSettingsSchema, buildSelfServiceEmailContext, buildingFileImportSchema, buildingFromRmf, buildingInPlanFrame, buildingMapBodySchema, buildingMapCreateSchema, buildingMapFromRobotMaps, buildingMapUpdateSchema, buildingSolids, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, callerAccountApproved, callerId, cameraBaseUrl, cameraCapabilitiesFor, cameraDevices, cameraGrant, cameraHealthClaim, cameraHealthSummary, cameraListClearConfirmation, cameraManagePermissions, cameraProbeCacheKey, cameraTransports, canManageSiteModules, canMonitorRobotType, canRevokeRefreshTokenFamily, canSetUpRobotType, categoriesForPermissions, categorySupportsChannel, chatPrelovedEvents, chatSchema, claimReadsAsStale, clampChassis, clampPtzSpeed, clearPadbotCache, clearRobotBrands, clockDriftSeconds, codeMatches, commandSupported, connackCode, consoleRoleAllows, consoleRoleAllowsAll, consoleSpellings, console_audit_namespace_collection, createDemoAdapter, createDriveWatchdog, createLiftSimulator, createManpowerRemarksDaily, createMessageDeduper, createMqttReader, createOpenRmfAdapter, createOpenRmfClient, createOunitechAdapter, createPadbotAdapter, createPadbotClient, createSseParser, crossSiteRoleGrants, crossSiteRoleMode, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, decodePublish, decodeTrackingFrame, decryptCredential, deliverEmail, demoFault, demoPatrolPoint, deniedModules, deriveBulletinStatus, deriveCameraHost, derivedDemoRobot, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, disconnectedState, documentExpiryFilter, documents_namespace_collection, doorModeOf, effectiveEmailAllowlist, emailOpenToEveryone, emitNotificationCreated, emptyPersonalEmergencyChain, encodeConnect, encodeGreyscalePng, encodeHidPacsCard, encodePuback, encodePublish, encodeSubscribe, encryptCredential, encryptedPairUpdate, endAllPadbotDrives, entitledSiteScope, escapeHtml, events_namespace_collection, expandModules, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, fetchPadbotMqttCredentials, ffmpegFrameArgs, ffmpegPath, filterByAccess, fleetStateItem, floorNoOf, floorPlanBodySchema, flushNotificationEmails, forgetPadbotMaps, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, greyscalePngDataUri, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hasOrgOwnership, hasOrgSiteReach, hashCode, headParams, hexToAreaColour, hidRawUint64, holdsLift, holdsRole, incidentReport, incidentReportLog, incidents_namespace_collection, invitationOffersRole, isAvailableForWork, isCameraEntitled, isCrossSiteRole, isDispatchable, isDoorPassable, isDuplicateMemberError, isDuplicateVersionError, isEmailAllowed, isEncryptedCredential, isLiftAvailable, isLikelySelfServiceEmail, isLiveVehicleStatus, isPatrolCctvCamera, isPlatformOwner, isProductionWebBase, isPromoCodeExpired, isRelayPlayerUrl, isSafeRelativePath, isSafeToCross, isSeasonPassVehicle, isServiceProviderInviteExpired, isSuperAdmin, isTermsCurrent, isTrackingStale, isValidTimezone, jcs, keepStoredPassword, levelPixelToMetres, levelScale, levelSolids, liftQueueKey, liftRequestSchema, listPadbotAlarmsSince, listStaffUserIds, liveStatusFor, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, memberModulesHandlers, metresToPixel, missingForTier, moduleDeniedForCaller, moduleGateEnforceKeys, moduleGateMode, moduleImpact, moduleListGateOn, motionMessage, mqttBackoffMs, mqttRefreshDelayMs, networkText, newCode, newSecret, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalisePatrolPlan, normalizeAcceptedTerms, normalizeEmail, normalizeHidCardValue, notificationAccessReport, notificationCategory, notificationCategoryLabel, notificationEmail, notificationEvents, notificationKind, notificationRoom, notifyAccessMode, notifyRobotFault, occasionForStatus, occurrence_book_namespace_collection, offLink, offPage, offToken, offTokenMatches, onBookTimezonesChanged, onPadbotLive, online_forms_namespace_collection, openLink, openRmfConfig, openRmfDoorDriver, openRmfLiftDriver, orgLevelRoles, orgModulesHandlers, orgOwnerRepairHandlers, orgOwnerRepairOn, orgQualifiesForOwnerRepair, orgRoleSets, orgSchema, overnight_parking_requests_namespace_collection, ownerFlagFor, padbotAccountKey, padbotAlarmFault, padbotAlarmPlace, padbotAlarmPollEnabled, padbotBaseUrl, padbotCanReachMap, padbotChargingPoint, padbotCheckpointVisit, padbotCommandBlock, padbotCommandLog, padbotCurrentMap, padbotDriveBlock, padbotDriveLimits, padbotDriveSignal, padbotErrorText, padbotFailureText, padbotLinkUp, padbotLive, padbotManualDriveEnabled, padbotMode, padbotMqttEnabled, padbotPatrolPlan, padbotPatrolRecord, padbotPlanShare, padbotReactionPoint, padbotReadiness, padbotSignature, padbotSignedRequest, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePadbotAuthorization, parsePadbotMessage, parsePromoExpiry, parseRobotCommand, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, pixelToMetres, planBulkCameraImport, planDayFromJsDay, planDemoRobots, planOrgOwnerRepair, planShareOf, platform_terms_namespace_collection, playbackRelays, playbackWindowRefusal, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, publishToPadbotRobot, queueNotificationEmails, readLiveItems, readPadbotStates, readPadbotStatesMany, readsAsApprovedAccount, receivedInviteTab, recordConsoleAction, recordPadbotLive, refuseServiceProviderInviteAction, registerCameraTransport, registerDemoBrand, registerOpenRmfBrand, registerOunitechBrand, registerPadbotBrand, registerRobotBrand, registeredRobotBrands, relayForRecorder, remarksSchema, renderPagePdf, requireConsolePermission, requirePlatformStaff, resetCameraTransports, residentAppModuleKeys, residentAppModulesSchema, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveHidPhysicalCardValue, resolveInviteActor, resolveSiteTimezone, resolveStaffRole, rmfBuilding_util as rmfBuilding, rmfBuildingSchema, robotActionsFor, robotBrandFor, robotCloudBody, robotCloudCredentials, robotCloudSign, robotCloudSigningString, robotCloudStepName, robotCloudTimestamp, robotCredentialsKey, robotFaultSweepConfig, robotManifest, robotMode, robotModeFromList, robotSchema, robotScopeForApp, robotTier, robotTypesVisibleTo, rtspUrl, safeTopic, scaleFromMeasurement, schema, schemaAppSlugNotification, schemaApprovedBy, schemaApprover, schemaBidPreloved, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaChannelPreloved, schemaChatPreloved, schemaConsoleAudit, schemaCreateHidAmicoIdentity, schemaCreateNfcPatrolLog, schemaCreateNotification, schemaCustomerSite, schemaDiscoverHidAmicoReader, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaHidAmicoAccessLogQuery, schemaHidAmicoAssignUserCard, schemaHidAmicoConfiguration, schemaHidAmicoEnrollUserCard, schemaHidAmicoEvent, schemaHidAmicoExecuteActions, schemaHidAmicoIdentificationMethods, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoMonitor, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoOperatingMode, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoReaderUserQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSiteIdParams, schemaHidAmicoSync, schemaHidAmicoUserCardIdParams, schemaHidAmicoUserCardParams, schemaHidAmicoUserImageParams, schemaHidAmicoUserImageUploadQuery, schemaHidAmicoUserPassword, schemaHidAmicoUserPasswordParams, schemaHidAmicoUserPin, schemaHidAmicoUserPinParams, schemaHidAmicoVisitorImageParams, schemaHidAmicoVisitorImageUploadQuery, schemaHidAmicoVisitorQr, schemaHidPermissionCandidateQuery, schemaHidPermissionScopeQuery, schemaHidSipAccountRequest, schemaIncidentReport, schemaListNotification, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaNotification, schemaNotificationEmailAddress, schemaNotificationEmailCode, schemaNotificationEmailOff, schemaNotificationPreference, schemaNotificationPreferenceOff, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolEmail, schemaPatrolEmailCreatedBy, schemaPatrolEmailLogRef, schemaPatrolEmailQuery, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPersonalEmergencyContact, schemaPlate, schemaPlatformTerms, schemaPost, schemaPostFavorite, schemaResendPatrolEmail, schemaResidentSelfSignUp, schemaSelfServiceVisitor, schemaSendPatrolEmail, 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, schemaUpdatePersonalEmergencyChain, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, selectHealthTargets, selfServiceEmailSubject, sendNotificationEmails, servesFloor, serviceProviderInviteLabel, serviceProviderInviteViewStatus, sessionSchema, setIO, sha256Hex, shiftSchema, signLiveLink, signPlaybackLink, signedPath, simulatedLiftState, siteDayBounds, siteModulesHandlers, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, splitRobotSn, staffMayBypass, startDemoTracking, startPadbotDrive, startPadbotLiveFeed, startRobotTracking, startTodaysBookForSite, statesByType, stringifyHidJson, stripFacialImageMetadata, subackOk, subscriptionPlanSchema, summariseBulkCameraPlan, supports, taskRequestFor, toAdapterRobot, toExpiryDate, trackingBackoffMs, uncontrollableFleetWarning, 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, useConsoleAuditController, useConsoleAuditRepo, 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, useOrgOwnerRepairRepo, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolEmailController, usePatrolEmailRepo, usePatrolEmailService, usePatrolLogController, usePatrolLogRepo, usePatrolLogService, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePersonalEmergencyChainController, usePersonalEmergencyChainRepo, usePersonalEmergencyChainService, usePlatformTermsController, usePlatformTermsRepo, usePlatformTermsService, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotBuildingMapRepo, useRobotCloudService, useRobotController, useRobotFaultRepo, useRobotFaultSweep, useRobotFleetController, useRobotFleetService, useRobotLiftSessionRepo, useRobotMapController, useRobotNetworkController, useRobotRepo, useRobotService, useRobotSiteController, 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, vehicleCategoryFor, vehicleHistoryEntry, vehicleHistoryValue, vehicleListViewQuery, vehicleSchema, vehicleViewOf, vehicles_namespace_collection, verificationEmail, vertexDistancePx, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, wallsFromOccupancyGrid, waypointsFor, webBase, withLiveLink, withNotificationKind, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
package/dist/index.js CHANGED
@@ -268,6 +268,7 @@ __export(src_exports, {
268
268
  PADBOT_BRAND_DEFINITION: () => PADBOT_BRAND_DEFINITION,
269
269
  PADBOT_CAPABILITIES: () => PADBOT_CAPABILITIES,
270
270
  PADBOT_DISPLAY_NAME: () => PADBOT_DISPLAY_NAME,
271
+ PADBOT_FAILURE_SHOW_MS: () => PADBOT_FAILURE_SHOW_MS,
271
272
  PADBOT_LIVE_POSE_MS: () => PADBOT_LIVE_POSE_MS,
272
273
  PADBOT_MAKER_APP_ONLY: () => PADBOT_MAKER_APP_ONLY,
273
274
  PADBOT_MODELS: () => PADBOT_MODELS,
@@ -618,12 +619,14 @@ __export(src_exports, {
618
619
  padbotCanReachMap: () => padbotCanReachMap,
619
620
  padbotChargingPoint: () => padbotChargingPoint,
620
621
  padbotCheckpointVisit: () => padbotCheckpointVisit,
622
+ padbotCommandBlock: () => padbotCommandBlock,
621
623
  padbotCommandLog: () => padbotCommandLog,
622
624
  padbotCurrentMap: () => padbotCurrentMap,
623
625
  padbotDriveBlock: () => padbotDriveBlock,
624
626
  padbotDriveLimits: () => padbotDriveLimits,
625
627
  padbotDriveSignal: () => padbotDriveSignal,
626
628
  padbotErrorText: () => padbotErrorText,
629
+ padbotFailureText: () => padbotFailureText,
627
630
  padbotLinkUp: () => padbotLinkUp,
628
631
  padbotLive: () => padbotLive,
629
632
  padbotManualDriveEnabled: () => padbotManualDriveEnabled,
@@ -632,6 +635,8 @@ __export(src_exports, {
632
635
  padbotPatrolPlan: () => padbotPatrolPlan,
633
636
  padbotPatrolRecord: () => padbotPatrolRecord,
634
637
  padbotPlanShare: () => padbotPlanShare,
638
+ padbotReactionPoint: () => padbotReactionPoint,
639
+ padbotReadiness: () => padbotReadiness,
635
640
  padbotSignature: () => padbotSignature,
636
641
  padbotSignedRequest: () => padbotSignedRequest,
637
642
  parseCameraChannel: () => parseCameraChannel,
@@ -66975,6 +66980,64 @@ function padbotMode(states, now = Date.now()) {
66975
66980
  const base = phase || (charging ? "Charging" : patrolling ? "Patrolling" : work.workState === 1 ? "Working on a task" : "Standing by");
66976
66981
  return { online: true, mode, statusName: `${base}${networkText(states["1107"])}` };
66977
66982
  }
66983
+ var MOVING_COMMANDS = /* @__PURE__ */ new Set(["full", "area", "patrol-resume", "return", "navigate", "go-to-point"]);
66984
+ function padbotCommandBlock(states, kind, now = Date.now()) {
66985
+ if (!MOVING_COMMANDS.has(kind))
66986
+ return null;
66987
+ if (!states || !padbotMode(states, now).online)
66988
+ return "The robot is not reporting to PadBot, so it cannot take a command. Check it is switched on and connected.";
66989
+ if (states["1006"]?.emergencyStopState === 1)
66990
+ return "The robot's emergency stop button is pressed. Release the red button on the robot, then try again.";
66991
+ const battery = num(states["1001"]?.batteryPercent);
66992
+ if (kind !== "return" && battery !== null && battery < 10)
66993
+ return `The battery is at ${battery}%. PadBot robots do not start jobs under 10%; send it to charge first.`;
66994
+ if (kind === "return" && [1, 2].includes(states["1002"]?.chargingState))
66995
+ return "The robot is already on its charger.";
66996
+ return null;
66997
+ }
66998
+ function padbotReadiness(states, now = Date.now()) {
66999
+ const st = states ?? {};
67000
+ const nav = st["1003"] ?? {};
67001
+ const es = st["1006"] ?? {};
67002
+ const charging = st["1002"]?.chargingState;
67003
+ const notes = [];
67004
+ if (es.wheelLockState === 1)
67005
+ notes.push("PadBot reports the wheel motor lock ON (1006 wheelLockState 1). PadBot's v4.0 document does not say whether this stops navigation - asked PadBot.");
67006
+ if (charging === 2)
67007
+ notes.push("Charging state 2 is not in PadBot's v4.0 document (only 0 and 1) - asked PadBot what it means.");
67008
+ return {
67009
+ online: padbotMode(st, now).online,
67010
+ heartbeatAt: st["1000"]?.updatedAt ?? null,
67011
+ emergencyStopPressed: es.emergencyStopState === 1,
67012
+ wheelLockState: es.wheelLockState ?? null,
67013
+ batteryPercent: num(st["1001"]?.batteryPercent),
67014
+ chargingState: charging ?? null,
67015
+ map: { id: st["1007"]?.mapId ?? null, name: st["1007"]?.mapDisplayName ?? null, floor: st["1007"]?.floor ?? null },
67016
+ navigation: { actionType: nav.actionType ?? null, actionState: nav.actionState ?? null, message: nav.message ?? null, updatedAt: nav.updatedAt ?? null },
67017
+ work: { workState: st["1010"]?.workState ?? null, taskType: st["1010"]?.taskType ?? null, updatedAt: st["1010"]?.updatedAt ?? null },
67018
+ blocker: padbotCommandBlock(st, "go-to-point", now),
67019
+ notes
67020
+ };
67021
+ }
67022
+ function padbotReactionPoint(states) {
67023
+ const st = states ?? {};
67024
+ const nav = st["1003"] ?? {};
67025
+ return {
67026
+ action: Number(nav.actionType) || 0,
67027
+ state: Number(nav.actionState) || 0,
67028
+ target: nav.finalTargetPointName ?? nav.nextTargetPointName ?? null,
67029
+ message: nav.message ?? null,
67030
+ work: Number(st["1010"]?.workState) || 0,
67031
+ charging: st["1002"]?.chargingState ?? null,
67032
+ estop: st["1006"]?.emergencyStopState ?? null,
67033
+ wheelLock: st["1006"]?.wheelLockState ?? null
67034
+ };
67035
+ }
67036
+ function padbotFailureText(p) {
67037
+ if (p.state !== 6)
67038
+ return null;
67039
+ return `Could not reach ${p.target || "its destination"}${p.message ? ` (${p.message})` : ""}`;
67040
+ }
66978
67041
  function networkText(net) {
66979
67042
  const say = (label2, v) => v < 0 ? ` \xB7 ${label2} ${v} dBm` : ` \xB7 ${label2} signal ${v}`;
66980
67043
  const wifi = num(net?.wifi?.signalStrength);
@@ -67064,6 +67127,9 @@ function padbotPatrolPlan(paths, maps, states = {}) {
67064
67127
  const routeMapId = (p) => {
67065
67128
  if (typeof p?.mapId === "string" && p.mapId)
67066
67129
  return p.mapId;
67130
+ const pointMaps = new Set((Array.isArray(p?.points) ? p.points : []).map((pt) => pt?.mapId).filter((id) => typeof id === "string" && id));
67131
+ if (pointMaps.size === 1)
67132
+ return [...pointMaps][0];
67067
67133
  const names = Array.isArray(p?.points) && p.points.length ? p.points.map((pt) => pt?.targetPointName) : Array.isArray(p?.pointNames) ? p.pointNames : [];
67068
67134
  if (!names.length)
67069
67135
  return p?.mapId;
@@ -67098,7 +67164,10 @@ function padbotPatrolPlan(paths, maps, states = {}) {
67098
67164
  const r = candidates[0];
67099
67165
  r.currentCheckpoint = r.checkpoints.findIndex((c) => c.name === next);
67100
67166
  }
67101
- routes.sort((a, b) => Number(b.currentCheckpoint !== null) - Number(a.currentCheckpoint !== null) || Number(b._default) - Number(a._default));
67167
+ const here = (r) => Number(!!currentMap && r.mapId === currentMap);
67168
+ routes.sort(
67169
+ (a, b) => Number(b.currentCheckpoint !== null) - Number(a.currentCheckpoint !== null) || here(b) - here(a) || Number(b._default) - Number(a._default)
67170
+ );
67102
67171
  for (const r of routes)
67103
67172
  delete r._default;
67104
67173
  return { routes, schedule: [], scheduleShared: false };
@@ -67136,7 +67205,7 @@ function createPadbotClient(credentials, options = {}) {
67136
67205
  const baseUrl = (options.baseUrl ?? padbotBaseUrl()).replace(/\/+$/, "");
67137
67206
  const doFetch = options.fetch ?? ((url2, init) => fetch(url2, init));
67138
67207
  const timeoutMs = options.timeoutMs ?? 8e3;
67139
- async function call(path5, body = {}) {
67208
+ async function call(path5, body = {}, meta) {
67140
67209
  const req = padbotSignedRequest({ path: path5, body, accessKeyId: credentials.appid, accessKeySecret: credentials.secret, now: options.now });
67141
67210
  let res;
67142
67211
  try {
@@ -67156,6 +67225,10 @@ function createPadbotClient(credentials, options = {}) {
67156
67225
  } catch {
67157
67226
  throw new import_node_server_utils162.AppError("PadBot's cloud sent an answer that is not JSON.", 502);
67158
67227
  }
67228
+ if (meta) {
67229
+ meta.message = typeof json?.message === "string" ? json.message.slice(0, 200) : "";
67230
+ meta.requestId = typeof json?.requestId === "string" ? json.requestId.slice(0, 64) : "";
67231
+ }
67159
67232
  if (json?.code !== 0) {
67160
67233
  const e = new import_node_server_utils162.BadRequestError(padbotErrorText(Number(json?.code)));
67161
67234
  e.vendorCode = Number(json?.code);
@@ -67232,6 +67305,7 @@ function clearPadbotCache() {
67232
67305
  cache2.clear();
67233
67306
  live.clear();
67234
67307
  commandLog.clear();
67308
+ lastFailure.clear();
67235
67309
  }
67236
67310
  function forgetPadbotMaps(appid, robotSn) {
67237
67311
  for (const key of cache2.keys())
@@ -67258,6 +67332,8 @@ function logCommand(accountKey, robotSn, entry) {
67258
67332
  commandLog.set(k, [entry, ...commandLog.get(k) ?? []].slice(0, 10));
67259
67333
  }
67260
67334
  var padbotCommandLog = (accountKey, robotSn) => commandLog.get(`${accountKey}:${robotSn}`) ?? [];
67335
+ var lastFailure = /* @__PURE__ */ new Map();
67336
+ var PADBOT_FAILURE_SHOW_MS = 3 * 6e4;
67261
67337
  async function readPadbotStates(credentials, robotSn, stateTypes) {
67262
67338
  const list = await createPadbotClient(credentials).call(PADBOT_PATHS.states, { serialNumbers: [robotSn], stateTypes });
67263
67339
  const entry = (list ?? []).find((e) => e?.serialNumber === robotSn);
@@ -67283,6 +67359,11 @@ async function listPadbotAlarmsSince(credentials, serials, startTime) {
67283
67359
  }
67284
67360
  function createPadbotAdapter(credentials, options = {}) {
67285
67361
  const { call, raw } = createPadbotClient(credentials, options);
67362
+ const watch = options.watch === void 0 ? { everyMs: 2e3, forMs: 3e4 } : options.watch;
67363
+ const sleep3 = options.sleep ?? ((ms2) => new Promise((resolve) => {
67364
+ const t = setTimeout(resolve, ms2);
67365
+ t?.unref?.();
67366
+ }));
67286
67367
  const now = options.now ?? Date.now;
67287
67368
  const ns = `${credentials.appid}@${options.baseUrl ?? padbotBaseUrl()}`;
67288
67369
  const account = padbotAccountKey(credentials);
@@ -67304,13 +67385,15 @@ function createPadbotAdapter(credentials, options = {}) {
67304
67385
  const heard = padbotLive(account, robotSn);
67305
67386
  const restBatteryAt = ms(st["1001"]?.updatedAt);
67306
67387
  const battery = heard?.batteryPercent !== void 0 && (!Number.isFinite(restBatteryAt) || (heard.batteryAt ?? 0) > restBatteryAt) ? heard.batteryPercent : num(st["1001"]?.batteryPercent);
67388
+ const failed = lastFailure.get(`${account}:${robotSn}`);
67389
+ const showFailure = online && failed && now() - failed.at < PADBOT_FAILURE_SHOW_MS && /^(Standing by|Charging)/.test(statusName);
67307
67390
  const robot = {
67308
67391
  robotSn,
67309
67392
  name: info?.robotName,
67310
67393
  model: info?.robotModel ? `PadBot ${info.robotModel}` : void 0,
67311
67394
  online,
67312
67395
  mode,
67313
- statusName,
67396
+ statusName: showFailure ? `${failed.text} \xB7 ${statusName}` : statusName,
67314
67397
  batteryPercent: battery,
67315
67398
  floorNo: Number.isInteger(floor) ? floor : null,
67316
67399
  floorKnown: Number.isInteger(floor),
@@ -67366,13 +67449,89 @@ function createPadbotAdapter(credentials, options = {}) {
67366
67449
  const n = command?.options?.cleanTimes;
67367
67450
  return Number.isInteger(n) && n >= 1 ? Math.min(n, 99) : 1;
67368
67451
  };
67452
+ async function whereIs(robotSn) {
67453
+ const [st, all, loc] = await Promise.all([
67454
+ states(robotSn),
67455
+ maps(robotSn).catch(() => []),
67456
+ call(PADBOT_PATHS.location, { serialNumber: robotSn }).catch(() => null)
67457
+ ]);
67458
+ const ids2 = [loc?.mapId, st?.["1007"]?.mapId];
67459
+ const map = padbotCurrentMap(all, ids2, st?.["1007"]?.floor);
67460
+ const mapId = map?.mapId ?? ids2.find((id) => typeof id === "string" && id) ?? null;
67461
+ return { st: st ?? {}, all: all ?? [], mapId };
67462
+ }
67463
+ const mapName = (all, id) => {
67464
+ const m = all.find((x) => x?.mapId === id);
67465
+ return String(m?.mapDisplayName || m?.mapName || "another");
67466
+ };
67467
+ async function checkedRoute(robotSn, routeId) {
67468
+ const [paths, where] = await Promise.all([call(PADBOT_PATHS.patrolRoutes, { serialNumber: robotSn }).then(asList), whereIs(robotSn)]);
67469
+ const rawRoute = routeId ? paths.find((p) => p?.pathId === routeId) : paths.find((p) => p?.isDefault);
67470
+ if (!rawRoute) {
67471
+ if (routeId)
67472
+ throw new import_node_server_utils162.BadRequestError(padbotErrorText(2002));
67473
+ return null;
67474
+ }
67475
+ const plan = padbotPatrolPlan(paths, where.all, { ...where.st, "1007": { ...where.st["1007"] ?? {}, mapId: where.mapId } });
67476
+ const route = plan.routes.find((r) => r.id === String(rawRoute.pathId));
67477
+ const routeMap = route?.mapId;
67478
+ if (routeMap && where.mapId && !padbotCanReachMap(where.all, where.mapId, routeMap)) {
67479
+ throw new import_node_server_utils162.BadRequestError(
67480
+ `"${rawRoute.pathName || "That route"}" is on the ${mapName(where.all, routeMap)} map, but the robot is on ${mapName(where.all, where.mapId)}. Pick a route on the robot's map.`
67481
+ );
67482
+ }
67483
+ return String(rawRoute.pathId);
67484
+ }
67485
+ async function watchReaction(robotSn, entry, sentAt) {
67486
+ if (!watch)
67487
+ return;
67488
+ const r = entry.reaction = { watching: true, points: [], failure: null, moved: false };
67489
+ let last = "";
67490
+ try {
67491
+ for (let waited = 0; waited < watch.forMs; ) {
67492
+ await sleep3(watch.everyMs);
67493
+ waited += watch.everyMs;
67494
+ const st = await states(robotSn).catch(() => null);
67495
+ if (!st)
67496
+ continue;
67497
+ const p = padbotReactionPoint(st);
67498
+ const key = JSON.stringify(p);
67499
+ if (key !== last && r.points.length < 20)
67500
+ r.points.push({ ...p, afterSeconds: Math.round((now() - sentAt) / 1e3) });
67501
+ last = key;
67502
+ if (p.state >= 1 && p.state <= 4)
67503
+ r.moved = true;
67504
+ const failure = padbotFailureText(p);
67505
+ if (failure) {
67506
+ r.failure = failure;
67507
+ lastFailure.set(`${account}:${robotSn}`, { at: now(), text: failure });
67508
+ break;
67509
+ }
67510
+ if (p.state === 5)
67511
+ break;
67512
+ }
67513
+ } finally {
67514
+ r.watching = false;
67515
+ }
67516
+ }
67369
67517
  async function sendCommand2(robotSn, command) {
67370
67518
  const sn = { serialNumber: robotSn };
67519
+ if (MOVING_COMMANDS.has(command.kind)) {
67520
+ const block = padbotCommandBlock(await states(robotSn), command.kind, now());
67521
+ if (block)
67522
+ throw new import_node_server_utils162.BadRequestError(block);
67523
+ lastFailure.delete(`${account}:${robotSn}`);
67524
+ }
67371
67525
  const call2 = async (path5, body) => {
67372
67526
  const at2 = new Date(now()).toISOString();
67527
+ const meta = {};
67373
67528
  try {
67374
- await callRaw(path5, body);
67375
- logCommand(account, robotSn, { at: at2, command: command.kind, path: path5, body, ok: true });
67529
+ await callRaw(path5, body, meta);
67530
+ const entry = { at: at2, command: command.kind, path: path5, body, ok: true, vendorCode: 0, vendorMessage: meta.message, requestId: meta.requestId };
67531
+ logCommand(account, robotSn, entry);
67532
+ if (MOVING_COMMANDS.has(command.kind))
67533
+ void watchReaction(robotSn, entry, now()).catch(() => {
67534
+ });
67376
67535
  } catch (e) {
67377
67536
  logCommand(account, robotSn, {
67378
67537
  at: at2,
@@ -67387,14 +67546,18 @@ function createPadbotAdapter(credentials, options = {}) {
67387
67546
  }
67388
67547
  };
67389
67548
  switch (command.kind) {
67390
- case "full":
67391
- await call2(PADBOT_PATHS.patrolStart, { ...sn, patrolCount: rounds(command) });
67549
+ case "full": {
67550
+ const pathId = await checkedRoute(robotSn, null);
67551
+ await call2(PADBOT_PATHS.patrolStart, { ...sn, ...pathId ? { pathId } : {}, patrolCount: rounds(command) });
67392
67552
  return;
67393
- case "area":
67553
+ }
67554
+ case "area": {
67394
67555
  if (command.areas.length !== 1)
67395
67556
  throw new import_node_server_utils162.BadRequestError("Choose one patrol route to start.");
67396
- await call2(PADBOT_PATHS.patrolStart, { ...sn, pathId: command.areas[0], patrolCount: rounds(command) });
67557
+ const pathId = await checkedRoute(robotSn, command.areas[0]);
67558
+ await call2(PADBOT_PATHS.patrolStart, { ...sn, pathId, patrolCount: rounds(command) });
67397
67559
  return;
67560
+ }
67398
67561
  case "patrol-resume":
67399
67562
  await call2(PADBOT_PATHS.patrolResume, sn);
67400
67563
  return;
@@ -67413,8 +67576,8 @@ function createPadbotAdapter(credentials, options = {}) {
67413
67576
  await call2(PADBOT_PATHS.relocate, { ...sn, worldX: command.x, worldY: command.y });
67414
67577
  return;
67415
67578
  case "go-to-point": {
67416
- const [st, all] = await Promise.all([states(robotSn), maps(robotSn).catch(() => [])]);
67417
- if (!padbotCanReachMap(all, st?.["1007"]?.mapId, command.mapId))
67579
+ const where = await whereIs(robotSn);
67580
+ if (!padbotCanReachMap(where.all, where.mapId, command.mapId))
67418
67581
  throw new import_node_server_utils162.BadRequestError(PADBOT_OTHER_MAP_TEXT);
67419
67582
  await call2(PADBOT_PATHS.navigateTarget, { ...sn, mapId: command.mapId, targetPointId: command.targetPointId });
67420
67583
  return;
@@ -67465,6 +67628,8 @@ function createPadbotAdapter(credentials, options = {}) {
67465
67628
  steps.push({ step, path: path5, body, httpStatus: r.httpStatus, code: r.code, message: r.message, ms: r.ms, data: r.code === 0 ? shape(r.data) : r.data });
67466
67629
  };
67467
67630
  await run("states (4.2)", PADBOT_PATHS.states, { serialNumbers: [robotSn] });
67631
+ const stEntry = (Array.isArray(steps[0]?.data) ? steps[0].data : []).find((e) => e?.serialNumber === robotSn);
67632
+ const ready = padbotReadiness(stEntry ? statesByType(stEntry) : null, now());
67468
67633
  await run("location (4.3)", PADBOT_PATHS.location, sn);
67469
67634
  await run("maps (5.1)", PADBOT_PATHS.maps, sn, (d) => Array.isArray(d) ? d.slice(0, 100).map(mapSummary) : d);
67470
67635
  await run("patrol routes (6.1)", PADBOT_PATHS.patrolRoutes, sn, (d) => Array.isArray(d) ? d.slice(0, 50) : d);
@@ -67472,6 +67637,7 @@ function createPadbotAdapter(credentials, options = {}) {
67472
67637
  await run("patrol records (6.7)", PADBOT_PATHS.records, { serialNumbers: [robotSn], pageNumber: 1, pageSize: 3 });
67473
67638
  const replies = padbotCommandLog(account, robotSn);
67474
67639
  steps.push({ step: "recent commands (this server)", path: "", body: null, httpStatus: 200, code: 0, message: replies.length ? `${replies.length} kept` : "none since this server started", ms: 0, data: replies });
67640
+ steps.push({ step: "can it move now? (from 4.2)", path: "", body: null, httpStatus: 200, code: 0, message: ready.blocker ?? (ready.notes.length ? "No documented blocker; see notes" : "No blocker"), ms: 0, data: ready });
67475
67641
  return steps;
67476
67642
  },
67477
67643
  async getPatrolRoutes(robotSn) {
@@ -107033,6 +107199,7 @@ function usePersonalEmergencyChainController() {
107033
107199
  PADBOT_BRAND_DEFINITION,
107034
107200
  PADBOT_CAPABILITIES,
107035
107201
  PADBOT_DISPLAY_NAME,
107202
+ PADBOT_FAILURE_SHOW_MS,
107036
107203
  PADBOT_LIVE_POSE_MS,
107037
107204
  PADBOT_MAKER_APP_ONLY,
107038
107205
  PADBOT_MODELS,
@@ -107383,12 +107550,14 @@ function usePersonalEmergencyChainController() {
107383
107550
  padbotCanReachMap,
107384
107551
  padbotChargingPoint,
107385
107552
  padbotCheckpointVisit,
107553
+ padbotCommandBlock,
107386
107554
  padbotCommandLog,
107387
107555
  padbotCurrentMap,
107388
107556
  padbotDriveBlock,
107389
107557
  padbotDriveLimits,
107390
107558
  padbotDriveSignal,
107391
107559
  padbotErrorText,
107560
+ padbotFailureText,
107392
107561
  padbotLinkUp,
107393
107562
  padbotLive,
107394
107563
  padbotManualDriveEnabled,
@@ -107397,6 +107566,8 @@ function usePersonalEmergencyChainController() {
107397
107566
  padbotPatrolPlan,
107398
107567
  padbotPatrolRecord,
107399
107568
  padbotPlanShare,
107569
+ padbotReactionPoint,
107570
+ padbotReadiness,
107400
107571
  padbotSignature,
107401
107572
  padbotSignedRequest,
107402
107573
  parseCameraChannel,