@7365admin1/core 3.116.0 → 3.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +42 -4
- package/dist/index.js +153 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test/padbot-real-data.test.mjs +165 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 3.117.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5f09631: PadBot S2 real-data fixes. Patrol routes whose stops cannot be placed on the robot's plan are now listed (new `stops` names on each route) instead of dropped - a real S2 showed `routes: []` although routes are set up. Stops come from `points` or `pointNames`, looked up on the stop's own map and then any of the robot's maps. The patrol plan says `scheduleShared: false` for PadBot (the Open API has no schedule call; timed cruise tasks stay in PadBot's app). List answers are read as a bare array or an `{items}`/`{list}`/`{records}` page. A positive Wi-Fi/mobile number reads as a signal level ("Wi-Fi signal 4"), not dBm. An online robot with no position says "Position not reported" and is never placed at a guessed spot; `x`/`y` are accepted in place of `worldX`/`worldY`. Staff Diagnose (`GET /robots/:id/diagnose`) now includes PadBot's raw answers (code, message, data) for states, location, maps (summarised), patrol routes, newest alarm and patrol record - never a credential. Live video takes `{ quality: "hd" | "smooth" }` (§6.5 main / sub stream).
|
|
8
|
+
|
|
3
9
|
## 3.116.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -7670,6 +7670,11 @@ type TRobotPatrolRoute = {
|
|
|
7670
7670
|
checkpoints: TRobotPatrolCheckpoint[];
|
|
7671
7671
|
/** Index of the checkpoint the robot is heading for now; null when it is not walking this route. */
|
|
7672
7672
|
currentCheckpoint: number | null;
|
|
7673
|
+
/**
|
|
7674
|
+
* Every stop's name in walking order, including stops whose position on the
|
|
7675
|
+
* plan is not known (those are missing from `checkpoints`, which is drawn).
|
|
7676
|
+
*/
|
|
7677
|
+
stops?: string[];
|
|
7673
7678
|
};
|
|
7674
7679
|
type TRobotPatrolScheduleRow = {
|
|
7675
7680
|
routeId: string;
|
|
@@ -7683,6 +7688,8 @@ type TRobotPatrolScheduleRow = {
|
|
|
7683
7688
|
type TRobotPatrolPlan = {
|
|
7684
7689
|
routes: TRobotPatrolRoute[];
|
|
7685
7690
|
schedule: TRobotPatrolScheduleRow[];
|
|
7691
|
+
/** False when the brand keeps its schedules to itself (its own app): the screen says so instead of "No schedule yet". */
|
|
7692
|
+
scheduleShared?: boolean;
|
|
7686
7693
|
};
|
|
7687
7694
|
/**
|
|
7688
7695
|
* A brand's patrol answer, cleaned before it reaches a screen: a checkpoint
|
|
@@ -7789,10 +7796,12 @@ type TRobotAdapter = {
|
|
|
7789
7796
|
*/
|
|
7790
7797
|
getPatrolRoutes?(robotSn: string): Promise<TRobotPatrolPlan>;
|
|
7791
7798
|
/** `liveVideo`: a camera URL valid until `expiresAt`. Fetched per view, never stored. */
|
|
7792
|
-
getLiveVideo?(robotSn: string): Promise<{
|
|
7799
|
+
getLiveVideo?(robotSn: string, quality?: "hd" | "smooth"): Promise<{
|
|
7793
7800
|
url: string;
|
|
7794
7801
|
expiresAt: string | null;
|
|
7795
7802
|
}>;
|
|
7803
|
+
/** Staff Diagnose: the vendor's raw answers for the robot screen's reads (never credentials). */
|
|
7804
|
+
diagnose?(robotSn: string): Promise<Array<Record<string, any>>>;
|
|
7796
7805
|
/** `resolveAlerts`: mark the robot's open alerts (of one code, or all) resolved; returns how many. */
|
|
7797
7806
|
resolveAlerts?(robotSn: string, code?: string): Promise<number>;
|
|
7798
7807
|
/** `patrolHistory`: past patrols, newest first. */
|
|
@@ -9727,6 +9736,12 @@ declare function padbotMode(states: TStates, now?: number): {
|
|
|
9727
9736
|
mode: string;
|
|
9728
9737
|
statusName: string;
|
|
9729
9738
|
};
|
|
9739
|
+
/**
|
|
9740
|
+
* " · Wi-Fi -61 dBm" / " · Mobile -90 dBm", or "". §4.2 says dBm, but a real
|
|
9741
|
+
* S2 reports small positive numbers (e.g. 4) - a signal LEVEL, not dBm (dBm is
|
|
9742
|
+
* always negative) - so a non-negative value reads "Wi-Fi signal 4".
|
|
9743
|
+
*/
|
|
9744
|
+
declare function networkText(net: any): string;
|
|
9730
9745
|
/** A §5.1 map's metres -> share-of-image transform (ROS convention: origin = bottom-left pixel). */
|
|
9731
9746
|
type TPadbotMapFrame = {
|
|
9732
9747
|
mapId: string;
|
|
@@ -9750,10 +9765,20 @@ declare function padbotPlanShare(frame: Partial<TPadbotMapFrame> | null | undefi
|
|
|
9750
9765
|
} | null;
|
|
9751
9766
|
/** The newest open alarm as our fault (one per occurrence: code by type, `since` = when it happened). */
|
|
9752
9767
|
declare function padbotAlarmFault(alarm: any): TAdapterRobot["fault"];
|
|
9753
|
-
/**
|
|
9768
|
+
/**
|
|
9769
|
+
* §6.1 routes + §5.1 maps (+ §4.2 state) -> our patrol contract.
|
|
9770
|
+
*
|
|
9771
|
+
* Tolerant of real answers: a route's stops come from `points` (sorted by
|
|
9772
|
+
* `pointIndex`) or, failing that, `pointNames`; each stop is looked up on ITS
|
|
9773
|
+
* OWN map (`point.mapId`, else the route's), then on any of the robot's maps,
|
|
9774
|
+
* by id then by name. Every stop's name is kept in `stops`; a stop whose plan
|
|
9775
|
+
* position is unknown is simply not drawn (`normalisePatrolPlan`).
|
|
9776
|
+
*/
|
|
9754
9777
|
declare function padbotPatrolPlan(paths: any[], maps: any[], states?: TStates): TRobotPatrolPlan;
|
|
9755
9778
|
declare function padbotPatrolRecord(r: any): TRobotPatrolRecord;
|
|
9756
9779
|
declare function padbotCheckpointVisit(d: any): TRobotPatrolCheckpointVisit;
|
|
9780
|
+
/** A list answer: the documented bare array, or an `{items}` / `{list}` / `{records}` page. */
|
|
9781
|
+
declare const asList: (d: any) => any[];
|
|
9757
9782
|
type TFetch = (url: string, init: {
|
|
9758
9783
|
method: string;
|
|
9759
9784
|
headers: Record<string, string>;
|
|
@@ -9773,6 +9798,13 @@ declare function createPadbotClient(credentials: {
|
|
|
9773
9798
|
now?: () => number;
|
|
9774
9799
|
}): {
|
|
9775
9800
|
call: <T = any>(path: string, body?: unknown) => Promise<T>;
|
|
9801
|
+
raw: (path: string, body?: unknown) => Promise<{
|
|
9802
|
+
httpStatus: number | null;
|
|
9803
|
+
code: number | null;
|
|
9804
|
+
message: string;
|
|
9805
|
+
data: unknown;
|
|
9806
|
+
ms: number;
|
|
9807
|
+
}>;
|
|
9776
9808
|
baseUrl: string;
|
|
9777
9809
|
};
|
|
9778
9810
|
/** Test seam. */
|
|
@@ -9851,6 +9883,12 @@ type TRobotDiagnosisStep = {
|
|
|
9851
9883
|
step: string;
|
|
9852
9884
|
ok: boolean;
|
|
9853
9885
|
detail: string;
|
|
9886
|
+
/** The vendor's raw answer for this read (brands that offer it; never credentials). */
|
|
9887
|
+
raw?: {
|
|
9888
|
+
path: string;
|
|
9889
|
+
body: unknown;
|
|
9890
|
+
data: unknown;
|
|
9891
|
+
};
|
|
9854
9892
|
ms?: number;
|
|
9855
9893
|
kind?: string;
|
|
9856
9894
|
httpStatus?: number;
|
|
@@ -9906,7 +9944,7 @@ declare function useRobotFleetService(deps?: {
|
|
|
9906
9944
|
}) => unknown;
|
|
9907
9945
|
}): {
|
|
9908
9946
|
diagnose: (robot: TStoredRobot) => Promise<TRobotDiagnosis>;
|
|
9909
|
-
getLiveVideo: (robot: TStoredRobot) => Promise<{
|
|
9947
|
+
getLiveVideo: (robot: TStoredRobot, quality?: "hd" | "smooth") => Promise<{
|
|
9910
9948
|
url: string;
|
|
9911
9949
|
expiresAt: string | null;
|
|
9912
9950
|
}>;
|
|
@@ -19712,4 +19750,4 @@ declare function usePersonalEmergencyChainController(): {
|
|
|
19712
19750
|
update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
19713
19751
|
};
|
|
19714
19752
|
|
|
19715
|
-
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_CAPABILITIES, DEMO_FAULT_ROBOT, DEMO_ROUTES, DEVICE_STATUS, DOBStatus, DOOR_MODE, 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, 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, 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_CAPABILITIES, OUNITECH_PENDING_COMMANDS, OpenRmfError, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PADBOT_ACTION_TEXT, PADBOT_ALARM_TEXT, PADBOT_BRAND, PADBOT_CAPABILITIES, PADBOT_DISPLAY_NAME, PADBOT_ONLINE_WINDOW_MS, PADBOT_PATHS, PATROL_CCTV_CAMERA_FILTER, PATROL_EMAIL_MAX_LOGS, PATROL_EMAIL_MAX_PER_HOUR, PATROL_EMAIL_MAX_RECIPIENTS, PERSON_TYPES, 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, ROBOT_APP_SCOPES, ROBOT_AUDIT_ACTIONS, ROBOT_CAPABILITIES, ROBOT_CLOUD_DOC_CONFIRMATIONS, ROBOT_CLOUD_PATHS, ROBOT_CLOUD_TIMEOUT_MS, 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, 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, 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, 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, TPadbotMapFrame, 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, TRemarks, TResident, TResidentAppModules, TRmfBuildingMap, TRmfFleetState, TRmfLocation, TRmfRobotState, TRobot, TRobotAction, TRobotAdapter, TRobotAppScope, TRobotBrand, TRobotBuildingMap, TRobotCapabilities, TRobotCapability, TRobotCloudCredentials, TRobotCloudErrorKind, TRobotCloudPath, TRobotCloudReply, TRobotCloudReplyInfo, TRobotCommand, TRobotDiagnosis, TRobotDiagnosisStep, TRobotLiftSession, TRobotLiveState, TRobotMetadata, TRobotMode, 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, 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, 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, clampPtzSpeed, clearPadbotCache, clearRobotBrands, clockDriftSeconds, codeMatches, commandSupported, consoleRoleAllows, consoleRoleAllowsAll, consoleSpellings, console_audit_namespace_collection, createDemoAdapter, createLiftSimulator, createManpowerRemarksDaily, createOpenRmfAdapter, createOpenRmfClient, createOunitechAdapter, createPadbotAdapter, createPadbotClient, createSseParser, crossSiteRoleGrants, crossSiteRoleMode, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, decodeTrackingFrame, decryptCredential, deliverEmail, demoFault, demoPatrolPoint, deniedModules, deriveBulletinStatus, deriveCameraHost, derivedDemoRobot, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, disconnectedState, doorModeOf, effectiveEmailAllowlist, emailOpenToEveryone, emitNotificationCreated, emptyPersonalEmergencyChain, encodeGreyscalePng, encodeHidPacsCard, encryptCredential, encryptedPairUpdate, entitledSiteScope, escapeHtml, events_namespace_collection, expandModules, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, filterByAccess, floorNoOf, floorPlanBodySchema, flushNotificationEmails, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, greyscalePngDataUri, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hasOrgOwnership, hasOrgSiteReach, hashCode, 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, listStaffUserIds, liveStatusFor, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, memberModulesHandlers, metresToPixel, missingForTier, moduleDeniedForCaller, moduleGateEnforceKeys, moduleGateMode, moduleImpact, moduleListGateOn, 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, online_forms_namespace_collection, openLink, openRmfConfig, openRmfDoorDriver, openRmfLiftDriver, orgLevelRoles, orgModulesHandlers, orgOwnerRepairHandlers, orgOwnerRepairOn, orgQualifiesForOwnerRepair, orgRoleSets, orgSchema, overnight_parking_requests_namespace_collection, padbotAlarmFault, padbotBaseUrl, padbotCheckpointVisit, padbotErrorText, padbotMode, padbotPatrolPlan, padbotPatrolRecord, padbotPlanShare, padbotSignature, padbotSignedRequest, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePadbotAuthorization, parsePromoExpiry, parseRobotCommand, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, pixelToMetres, planBulkCameraImport, planDayFromJsDay, planDemoRobots, planOrgOwnerRepair, planShareOf, platform_terms_namespace_collection, playbackRelays, playbackWindowRefusal, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, queueNotificationEmails, readLiveItems, readsAsApprovedAccount, receivedInviteTab, recordConsoleAction, 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, robotMode, robotModeFromList, robotSchema, robotScopeForApp, robotTier, robotTypesVisibleTo, rtspUrl, 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, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoMonitor, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoOperatingMode, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoReaderUserQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSiteIdParams, schemaHidAmicoSync, schemaHidAmicoUserCardIdParams, schemaHidAmicoUserCardParams, schemaHidAmicoUserImageParams, schemaHidAmicoUserImageUploadQuery, 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, startRobotTracking, startTodaysBookForSite, statesByType, stringifyHidJson, stripFacialImageMetadata, subscriptionPlanSchema, summariseBulkCameraPlan, supports, taskRequestFor, toAdapterRobot, 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 };
|
|
19753
|
+
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_CAPABILITIES, DEMO_FAULT_ROBOT, DEMO_ROUTES, DEVICE_STATUS, DOBStatus, DOOR_MODE, 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, 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, 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_CAPABILITIES, OUNITECH_PENDING_COMMANDS, OpenRmfError, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PADBOT_ACTION_TEXT, PADBOT_ALARM_TEXT, PADBOT_BRAND, PADBOT_CAPABILITIES, PADBOT_DISPLAY_NAME, PADBOT_ONLINE_WINDOW_MS, PADBOT_PATHS, PATROL_CCTV_CAMERA_FILTER, PATROL_EMAIL_MAX_LOGS, PATROL_EMAIL_MAX_PER_HOUR, PATROL_EMAIL_MAX_RECIPIENTS, PERSON_TYPES, 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, ROBOT_APP_SCOPES, ROBOT_AUDIT_ACTIONS, ROBOT_CAPABILITIES, ROBOT_CLOUD_DOC_CONFIRMATIONS, ROBOT_CLOUD_PATHS, ROBOT_CLOUD_TIMEOUT_MS, 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, 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, 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, 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, TPadbotMapFrame, 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, TRemarks, TResident, TResidentAppModules, TRmfBuildingMap, TRmfFleetState, TRmfLocation, TRmfRobotState, TRobot, TRobotAction, TRobotAdapter, TRobotAppScope, TRobotBrand, TRobotBuildingMap, TRobotCapabilities, TRobotCapability, TRobotCloudCredentials, TRobotCloudErrorKind, TRobotCloudPath, TRobotCloudReply, TRobotCloudReplyInfo, TRobotCommand, TRobotDiagnosis, TRobotDiagnosisStep, TRobotLiftSession, TRobotLiveState, TRobotMetadata, TRobotMode, 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, 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, clampPtzSpeed, clearPadbotCache, clearRobotBrands, clockDriftSeconds, codeMatches, commandSupported, consoleRoleAllows, consoleRoleAllowsAll, consoleSpellings, console_audit_namespace_collection, createDemoAdapter, createLiftSimulator, createManpowerRemarksDaily, createOpenRmfAdapter, createOpenRmfClient, createOunitechAdapter, createPadbotAdapter, createPadbotClient, createSseParser, crossSiteRoleGrants, crossSiteRoleMode, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, decodeTrackingFrame, decryptCredential, deliverEmail, demoFault, demoPatrolPoint, deniedModules, deriveBulletinStatus, deriveCameraHost, derivedDemoRobot, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, disconnectedState, doorModeOf, effectiveEmailAllowlist, emailOpenToEveryone, emitNotificationCreated, emptyPersonalEmergencyChain, encodeGreyscalePng, encodeHidPacsCard, encryptCredential, encryptedPairUpdate, entitledSiteScope, escapeHtml, events_namespace_collection, expandModules, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, filterByAccess, floorNoOf, floorPlanBodySchema, flushNotificationEmails, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, greyscalePngDataUri, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hasOrgOwnership, hasOrgSiteReach, hashCode, 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, listStaffUserIds, liveStatusFor, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, memberModulesHandlers, metresToPixel, missingForTier, moduleDeniedForCaller, moduleGateEnforceKeys, moduleGateMode, moduleImpact, moduleListGateOn, 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, online_forms_namespace_collection, openLink, openRmfConfig, openRmfDoorDriver, openRmfLiftDriver, orgLevelRoles, orgModulesHandlers, orgOwnerRepairHandlers, orgOwnerRepairOn, orgQualifiesForOwnerRepair, orgRoleSets, orgSchema, overnight_parking_requests_namespace_collection, padbotAlarmFault, padbotBaseUrl, padbotCheckpointVisit, padbotErrorText, padbotMode, padbotPatrolPlan, padbotPatrolRecord, padbotPlanShare, padbotSignature, padbotSignedRequest, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePadbotAuthorization, parsePromoExpiry, parseRobotCommand, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, pixelToMetres, planBulkCameraImport, planDayFromJsDay, planDemoRobots, planOrgOwnerRepair, planShareOf, platform_terms_namespace_collection, playbackRelays, playbackWindowRefusal, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, queueNotificationEmails, readLiveItems, readsAsApprovedAccount, receivedInviteTab, recordConsoleAction, 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, robotMode, robotModeFromList, robotSchema, robotScopeForApp, robotTier, robotTypesVisibleTo, rtspUrl, 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, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoMonitor, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoOperatingMode, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoReaderUserQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSiteIdParams, schemaHidAmicoSync, schemaHidAmicoUserCardIdParams, schemaHidAmicoUserCardParams, schemaHidAmicoUserImageParams, schemaHidAmicoUserImageUploadQuery, 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, startRobotTracking, startTodaysBookForSite, statesByType, stringifyHidJson, stripFacialImageMetadata, subscriptionPlanSchema, summariseBulkCameraPlan, supports, taskRequestFor, toAdapterRobot, 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
|
@@ -351,6 +351,7 @@ __export(src_exports, {
|
|
|
351
351
|
allowsRobotListing: () => allowsRobotListing,
|
|
352
352
|
applyTrackingFrame: () => applyTrackingFrame,
|
|
353
353
|
areaColourToHex: () => areaColourToHex,
|
|
354
|
+
asList: () => asList,
|
|
354
355
|
attendanceSchema: () => attendanceSchema,
|
|
355
356
|
attendanceSettingsSchema: () => attendanceSettingsSchema,
|
|
356
357
|
buildSelfServiceEmailContext: () => buildSelfServiceEmailContext,
|
|
@@ -524,6 +525,7 @@ __export(src_exports, {
|
|
|
524
525
|
moduleGateMode: () => moduleGateMode,
|
|
525
526
|
moduleImpact: () => moduleImpact,
|
|
526
527
|
moduleListGateOn: () => moduleListGateOn,
|
|
528
|
+
networkText: () => networkText,
|
|
527
529
|
newCode: () => newCode,
|
|
528
530
|
newSecret: () => newSecret,
|
|
529
531
|
nfcPatrolSettingsSchema: () => nfcPatrolSettingsSchema,
|
|
@@ -62422,15 +62424,18 @@ function normalisePatrolPlan(raw) {
|
|
|
62422
62424
|
if (!id || !name || routes.some((x) => x.id === id))
|
|
62423
62425
|
continue;
|
|
62424
62426
|
const checkpoints = (Array.isArray(route.checkpoints) ? route.checkpoints.slice(0, 100) : []).map((c) => ({ name: plainText(c?.name), x: planPct(c?.x), y: planPct(c?.y) })).filter((c) => c.name && c.x !== null && c.y !== null);
|
|
62425
|
-
|
|
62427
|
+
const stops = (Array.isArray(route.stops) ? route.stops.slice(0, 100) : []).map((s) => plainText(s)).filter(Boolean);
|
|
62428
|
+
if (checkpoints.length < 2 && !stops.length)
|
|
62426
62429
|
continue;
|
|
62430
|
+
const drawn = checkpoints.length >= 2 ? checkpoints : [];
|
|
62427
62431
|
const cur = route.currentCheckpoint;
|
|
62428
62432
|
routes.push({
|
|
62429
62433
|
id,
|
|
62430
62434
|
name,
|
|
62431
62435
|
floorNo: Number.isInteger(route.floorNo) ? route.floorNo : null,
|
|
62432
|
-
checkpoints,
|
|
62433
|
-
currentCheckpoint: Number.isInteger(cur) && cur >= 0 && cur <
|
|
62436
|
+
checkpoints: drawn,
|
|
62437
|
+
currentCheckpoint: Number.isInteger(cur) && cur >= 0 && cur < drawn.length ? cur : null,
|
|
62438
|
+
...stops.length ? { stops } : {}
|
|
62434
62439
|
});
|
|
62435
62440
|
}
|
|
62436
62441
|
const schedule = [];
|
|
@@ -62453,7 +62458,7 @@ function normalisePatrolPlan(raw) {
|
|
|
62453
62458
|
continue;
|
|
62454
62459
|
schedule.push({ routeId, days, startTime, endTime, rounds: Math.min(row.rounds, 99) });
|
|
62455
62460
|
}
|
|
62456
|
-
return { routes, schedule };
|
|
62461
|
+
return { routes, schedule, ...r.scheduleShared === false ? { scheduleShared: false } : {} };
|
|
62457
62462
|
}
|
|
62458
62463
|
var COMMAND_NEEDS = {
|
|
62459
62464
|
full: "startProcess",
|
|
@@ -64666,11 +64671,12 @@ function padbotMode(states, now = Date.now()) {
|
|
|
64666
64671
|
return { online: true, mode, statusName: `${base}${networkText(states["1107"])}` };
|
|
64667
64672
|
}
|
|
64668
64673
|
function networkText(net) {
|
|
64674
|
+
const say = (label2, v) => v < 0 ? ` \xB7 ${label2} ${v} dBm` : ` \xB7 ${label2} signal ${v}`;
|
|
64669
64675
|
const wifi = num(net?.wifi?.signalStrength);
|
|
64670
64676
|
if (wifi !== null)
|
|
64671
|
-
return
|
|
64677
|
+
return say("Wi-Fi", wifi);
|
|
64672
64678
|
const cell = num(net?.cellular?.signalStrength);
|
|
64673
|
-
return cell !== null ?
|
|
64679
|
+
return cell !== null ? say("Mobile", cell) : "";
|
|
64674
64680
|
}
|
|
64675
64681
|
function padbotPlanShare(frame2, x, y) {
|
|
64676
64682
|
const w = num(frame2?.width), h = num(frame2?.height), r = num(frame2?.resolution);
|
|
@@ -64698,26 +64704,41 @@ function padbotAlarmFault(alarm) {
|
|
|
64698
64704
|
};
|
|
64699
64705
|
}
|
|
64700
64706
|
function padbotPatrolPlan(paths, maps, states = {}) {
|
|
64701
|
-
const
|
|
64707
|
+
const allMaps = Array.isArray(maps) ? maps : [];
|
|
64708
|
+
const mapById = new Map(allMaps.map((m) => [m?.mapId, m]));
|
|
64702
64709
|
const nav = states["1003"] ?? {};
|
|
64703
64710
|
const walking = states["1010"]?.workState === 1 && states["1010"]?.taskType === 2;
|
|
64704
64711
|
const currentMap = states["1007"]?.mapId;
|
|
64705
|
-
const
|
|
64706
|
-
const
|
|
64707
|
-
const
|
|
64708
|
-
|
|
64709
|
-
|
|
64710
|
-
|
|
64711
|
-
|
|
64712
|
+
const findPoint = (mapId, id, name) => {
|
|
64713
|
+
const order = [mapById.get(mapId), ...allMaps.filter((m) => m?.mapId !== mapId)].filter(Boolean);
|
|
64714
|
+
for (const by of ["id", "name"]) {
|
|
64715
|
+
for (const map of order) {
|
|
64716
|
+
const tp = (map.targetPoints ?? []).find(
|
|
64717
|
+
(t) => by === "id" ? id && t?.targetPointId === id : name && t?.name === name
|
|
64718
|
+
);
|
|
64719
|
+
if (tp)
|
|
64720
|
+
return { map, tp };
|
|
64721
|
+
}
|
|
64722
|
+
}
|
|
64723
|
+
return null;
|
|
64724
|
+
};
|
|
64725
|
+
const routes = (Array.isArray(paths) ? paths : []).map((p) => {
|
|
64726
|
+
const map = mapById.get(p?.mapId);
|
|
64727
|
+
const raw = Array.isArray(p?.points) && p.points.length ? [...p.points].sort((a, b) => (a?.pointIndex ?? 0) - (b?.pointIndex ?? 0)).map((pt) => ({ id: pt?.targetPointId, name: pt?.targetPointName, mapId: pt?.mapId ?? p?.mapId })) : (Array.isArray(p?.pointNames) ? p.pointNames : []).map((n) => ({ name: n, mapId: p?.mapId }));
|
|
64728
|
+
const placed = raw.map((pt) => {
|
|
64729
|
+
const hit = findPoint(pt.mapId, pt.id, pt.name);
|
|
64730
|
+
const share = hit ? padbotPlanShare(hit.map, hit.tp?.worldX, hit.tp?.worldY) : null;
|
|
64731
|
+
return { name: String(pt.name ?? hit?.tp?.name ?? ""), x: share?.x, y: share?.y };
|
|
64712
64732
|
});
|
|
64713
64733
|
return {
|
|
64714
|
-
id: String(p
|
|
64715
|
-
name: `${p
|
|
64734
|
+
id: String(p?.pathId ?? ""),
|
|
64735
|
+
name: `${p?.pathName || "Route"}${p?.isDefault ? " (default)" : ""}`,
|
|
64716
64736
|
floorNo: Number.isInteger(map?.floor) ? map.floor : null,
|
|
64717
|
-
checkpoints,
|
|
64737
|
+
checkpoints: placed,
|
|
64718
64738
|
currentCheckpoint: null,
|
|
64719
|
-
|
|
64720
|
-
|
|
64739
|
+
stops: placed.map((c) => c.name).filter(Boolean),
|
|
64740
|
+
_mapId: p?.mapId,
|
|
64741
|
+
_default: !!p?.isDefault
|
|
64721
64742
|
};
|
|
64722
64743
|
});
|
|
64723
64744
|
const next = walking ? nav.nextTargetPointName : null;
|
|
@@ -64731,7 +64752,7 @@ function padbotPatrolPlan(paths, maps, states = {}) {
|
|
|
64731
64752
|
delete r._mapId;
|
|
64732
64753
|
delete r._default;
|
|
64733
64754
|
}
|
|
64734
|
-
return { routes, schedule: [] };
|
|
64755
|
+
return { routes, schedule: [], scheduleShared: false };
|
|
64735
64756
|
}
|
|
64736
64757
|
function padbotPatrolRecord(r) {
|
|
64737
64758
|
return {
|
|
@@ -64756,6 +64777,7 @@ function padbotCheckpointVisit(d) {
|
|
|
64756
64777
|
maxTempC: num(d?.maxTemperature)
|
|
64757
64778
|
};
|
|
64758
64779
|
}
|
|
64780
|
+
var asList = (d) => Array.isArray(d) ? d : Array.isArray(d?.items) ? d.items : Array.isArray(d?.list) ? d.list : Array.isArray(d?.records) ? d.records : [];
|
|
64759
64781
|
var page = (data, map) => ({
|
|
64760
64782
|
items: (Array.isArray(data?.items) ? data.items : []).map(map),
|
|
64761
64783
|
total: num(data?.totalItems) ?? 0,
|
|
@@ -64789,7 +64811,56 @@ function createPadbotClient(credentials, options = {}) {
|
|
|
64789
64811
|
throw new import_node_server_utils162.BadRequestError(padbotErrorText(Number(json?.code)));
|
|
64790
64812
|
return json.data;
|
|
64791
64813
|
}
|
|
64792
|
-
|
|
64814
|
+
async function raw(path5, body = {}) {
|
|
64815
|
+
const t0 = Date.now();
|
|
64816
|
+
const req = padbotSignedRequest({ path: path5, body, accessKeyId: credentials.appid, accessKeySecret: credentials.secret, now: options.now });
|
|
64817
|
+
try {
|
|
64818
|
+
const res = await doFetch(`${baseUrl}${path5}`, { method: "POST", headers: req.headers, body: req.body, signal: AbortSignal.timeout(timeoutMs) });
|
|
64819
|
+
const text2 = await res.text();
|
|
64820
|
+
let json = null;
|
|
64821
|
+
try {
|
|
64822
|
+
json = JSON.parse(text2);
|
|
64823
|
+
} catch {
|
|
64824
|
+
}
|
|
64825
|
+
return {
|
|
64826
|
+
httpStatus: res.status,
|
|
64827
|
+
code: typeof json?.code === "number" ? json.code : null,
|
|
64828
|
+
message: typeof json?.message === "string" ? json.message.slice(0, 300) : json ? "" : `not JSON (${text2.length} bytes)`,
|
|
64829
|
+
data: json?.data ?? null,
|
|
64830
|
+
ms: Date.now() - t0
|
|
64831
|
+
};
|
|
64832
|
+
} catch (error) {
|
|
64833
|
+
return { httpStatus: null, code: null, message: error?.name === "TimeoutError" ? "timed out" : "unreachable", data: null, ms: Date.now() - t0 };
|
|
64834
|
+
}
|
|
64835
|
+
}
|
|
64836
|
+
return { call, raw, baseUrl };
|
|
64837
|
+
}
|
|
64838
|
+
function mapSummary(m) {
|
|
64839
|
+
const count = (v) => Array.isArray(v) ? v.length : 0;
|
|
64840
|
+
return {
|
|
64841
|
+
mapId: m?.mapId,
|
|
64842
|
+
mapName: m?.mapName,
|
|
64843
|
+
mapDisplayName: m?.mapDisplayName,
|
|
64844
|
+
building: m?.building,
|
|
64845
|
+
floor: m?.floor,
|
|
64846
|
+
isDefault: m?.isDefault,
|
|
64847
|
+
width: m?.width,
|
|
64848
|
+
height: m?.height,
|
|
64849
|
+
resolution: m?.resolution,
|
|
64850
|
+
originX: m?.originX,
|
|
64851
|
+
originY: m?.originY,
|
|
64852
|
+
targetPoints: (Array.isArray(m?.targetPoints) ? m.targetPoints : []).slice(0, 200).map((t) => ({
|
|
64853
|
+
targetPointId: t?.targetPointId,
|
|
64854
|
+
mapId: t?.mapId,
|
|
64855
|
+
name: t?.name,
|
|
64856
|
+
worldX: t?.worldX,
|
|
64857
|
+
worldY: t?.worldY,
|
|
64858
|
+
yaw: t?.yaw,
|
|
64859
|
+
targetPointType: t?.targetPointType
|
|
64860
|
+
})),
|
|
64861
|
+
counts: { targetPoints: count(m?.targetPoints), restrictedAreas: count(m?.restrictedAreas), speedLimitAreas: count(m?.speedLimitAreas), passableAreas: count(m?.passableAreas), virtualTracks: count(m?.virtualTracks) },
|
|
64862
|
+
otherKeys: Object.keys(m ?? {}).filter((k) => !["targetPoints", "restrictedAreas", "speedLimitAreas", "passableAreas", "virtualTracks", "imageUrl", "mapFileUrl"].includes(k))
|
|
64863
|
+
};
|
|
64793
64864
|
}
|
|
64794
64865
|
var CACHE_TTL_MS = 5 * 6e4;
|
|
64795
64866
|
var cache2 = /* @__PURE__ */ new Map();
|
|
@@ -64808,11 +64879,11 @@ function clearPadbotCache() {
|
|
|
64808
64879
|
cache2.clear();
|
|
64809
64880
|
}
|
|
64810
64881
|
function createPadbotAdapter(credentials, options = {}) {
|
|
64811
|
-
const { call } = createPadbotClient(credentials, options);
|
|
64882
|
+
const { call, raw } = createPadbotClient(credentials, options);
|
|
64812
64883
|
const now = options.now ?? Date.now;
|
|
64813
64884
|
const ns = `${credentials.appid}@${options.baseUrl ?? padbotBaseUrl()}`;
|
|
64814
64885
|
const roster = () => cached2(`${ns}:robots`, () => call(PADBOT_PATHS.robots, { robotTypes: ["PATROL"] }));
|
|
64815
|
-
const maps = (sn) => cached2(`${ns}:maps:${sn}`, () => call(PADBOT_PATHS.maps, { serialNumber: sn }));
|
|
64886
|
+
const maps = (sn) => cached2(`${ns}:maps:${sn}`, () => call(PADBOT_PATHS.maps, { serialNumber: sn }).then(asList));
|
|
64816
64887
|
const states = async (sn) => {
|
|
64817
64888
|
const list = await call(PADBOT_PATHS.states, { serialNumbers: [sn] });
|
|
64818
64889
|
const entry = (list ?? []).find((e) => e?.serialNumber === sn);
|
|
@@ -64850,11 +64921,15 @@ function createPadbotAdapter(credentials, options = {}) {
|
|
|
64850
64921
|
call(PADBOT_PATHS.location, { serialNumber: robotSn }).catch(() => null),
|
|
64851
64922
|
robot.fault ? Promise.resolve(null) : call(PADBOT_PATHS.alarms, { serialNumbers: [robotSn], resolved: false, pageNumber: 1, pageSize: 1 }).then((d) => d?.items?.[0] ?? null).catch(() => null)
|
|
64852
64923
|
]);
|
|
64853
|
-
|
|
64854
|
-
|
|
64855
|
-
|
|
64856
|
-
robot.
|
|
64857
|
-
|
|
64924
|
+
const lx = num(loc?.worldX ?? loc?.x);
|
|
64925
|
+
const ly = num(loc?.worldY ?? loc?.y);
|
|
64926
|
+
if (lx !== null && ly !== null) {
|
|
64927
|
+
robot.position = { x: lx, y: ly, theta: (num(loc.yaw ?? loc.r) ?? 0) * Math.PI / 180 };
|
|
64928
|
+
const map = await maps(robotSn).then((all) => (all ?? []).find((m) => m.mapId === (loc.mapId ?? st["1007"]?.mapId))).catch(() => null);
|
|
64929
|
+
robot.planPosition = padbotPlanShare(map, lx, ly);
|
|
64930
|
+
}
|
|
64931
|
+
if (!robot.position)
|
|
64932
|
+
robot.statusName = `${robot.statusName} \xB7 Position not reported`;
|
|
64858
64933
|
if (alarm)
|
|
64859
64934
|
robot.fault = padbotAlarmFault(alarm);
|
|
64860
64935
|
return robot;
|
|
@@ -64923,16 +64998,38 @@ function createPadbotAdapter(credentials, options = {}) {
|
|
|
64923
64998
|
async getMaps(robotSn) {
|
|
64924
64999
|
return await maps(robotSn) ?? [];
|
|
64925
65000
|
},
|
|
65001
|
+
/**
|
|
65002
|
+
* Staff Diagnose: PadBot's raw answers (code, message, data) for the reads
|
|
65003
|
+
* behind the robot screen - states, location, maps (summarised), patrol
|
|
65004
|
+
* routes, newest alarm, newest patrol record. Read-only; no credential,
|
|
65005
|
+
* no MQTT credential, ever.
|
|
65006
|
+
*/
|
|
65007
|
+
async diagnose(robotSn) {
|
|
65008
|
+
const sn = { serialNumber: robotSn };
|
|
65009
|
+
const steps = [];
|
|
65010
|
+
const run = async (step, path5, body, shape = (d) => d) => {
|
|
65011
|
+
const r = await raw(path5, body);
|
|
65012
|
+
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 });
|
|
65013
|
+
};
|
|
65014
|
+
await run("states (4.2)", PADBOT_PATHS.states, { serialNumbers: [robotSn] });
|
|
65015
|
+
await run("location (4.3)", PADBOT_PATHS.location, sn);
|
|
65016
|
+
await run("maps (5.1)", PADBOT_PATHS.maps, sn, (d) => Array.isArray(d) ? d.slice(0, 100).map(mapSummary) : d);
|
|
65017
|
+
await run("patrol routes (6.1)", PADBOT_PATHS.patrolRoutes, sn, (d) => Array.isArray(d) ? d.slice(0, 50) : d);
|
|
65018
|
+
await run("alarms (6.4)", PADBOT_PATHS.alarms, { serialNumbers: [robotSn], pageNumber: 1, pageSize: 3 });
|
|
65019
|
+
await run("patrol records (6.7)", PADBOT_PATHS.records, { serialNumbers: [robotSn], pageNumber: 1, pageSize: 3 });
|
|
65020
|
+
return steps;
|
|
65021
|
+
},
|
|
64926
65022
|
async getPatrolRoutes(robotSn) {
|
|
64927
65023
|
const [paths, allMaps, st] = await Promise.all([
|
|
64928
|
-
call(PADBOT_PATHS.patrolRoutes, { serialNumber: robotSn }),
|
|
65024
|
+
call(PADBOT_PATHS.patrolRoutes, { serialNumber: robotSn }).then(asList),
|
|
64929
65025
|
maps(robotSn).catch(() => []),
|
|
64930
65026
|
states(robotSn).catch(() => null)
|
|
64931
65027
|
]);
|
|
64932
65028
|
return padbotPatrolPlan(paths ?? [], allMaps ?? [], st ?? {});
|
|
64933
65029
|
},
|
|
64934
|
-
|
|
64935
|
-
|
|
65030
|
+
// §6.5: the robot's current surveillance stream; 1 = HD main stream, 2 = smooth sub stream (default here).
|
|
65031
|
+
async getLiveVideo(robotSn, quality) {
|
|
65032
|
+
const d = await call(PADBOT_PATHS.video, { serialNumber: robotSn, quality: quality === "hd" ? 1 : 2 });
|
|
64936
65033
|
if (!d?.playbackUrl)
|
|
64937
65034
|
throw new import_node_server_utils162.BadRequestError("PadBot has no video for this robot right now.");
|
|
64938
65035
|
return { url: String(d.playbackUrl), expiresAt: d.expiresAt ?? null };
|
|
@@ -65163,9 +65260,9 @@ function useRobotFleetService(deps) {
|
|
|
65163
65260
|
}
|
|
65164
65261
|
return { adapter, fn: fn.bind(adapter) };
|
|
65165
65262
|
}
|
|
65166
|
-
async function getLiveVideo(robot) {
|
|
65263
|
+
async function getLiveVideo(robot, quality) {
|
|
65167
65264
|
const { fn } = extra(robot, "getLiveVideo", "liveVideo", "live video");
|
|
65168
|
-
return fn(await resolveRobotSn(robot));
|
|
65265
|
+
return fn(await resolveRobotSn(robot), quality);
|
|
65169
65266
|
}
|
|
65170
65267
|
async function resolveAlerts(robot, code) {
|
|
65171
65268
|
const { fn } = extra(robot, "resolveAlerts", "resolveAlerts", "resolving alerts");
|
|
@@ -65305,6 +65402,25 @@ function useRobotFleetService(deps) {
|
|
|
65305
65402
|
return out("maps", describeFailure(e).detail);
|
|
65306
65403
|
}
|
|
65307
65404
|
}
|
|
65405
|
+
if (adapter.diagnose) {
|
|
65406
|
+
try {
|
|
65407
|
+
for (const r of await adapter.diagnose(serial)) {
|
|
65408
|
+
const ok = r.code === 0;
|
|
65409
|
+
steps.push({
|
|
65410
|
+
step: String(r.step),
|
|
65411
|
+
ok,
|
|
65412
|
+
ms: r.ms,
|
|
65413
|
+
detail: ok ? "Answered." : `Vendor answered ${r.httpStatus ?? "nothing"}${r.code !== null && r.code !== void 0 ? `, code ${r.code}` : ""}${r.message ? `: ${r.message}` : ""}.`,
|
|
65414
|
+
...r.httpStatus ? { httpStatus: r.httpStatus } : {},
|
|
65415
|
+
...r.code !== null && r.code !== void 0 ? { vendorCode: String(r.code) } : {},
|
|
65416
|
+
...r.message ? { vendorMessage: r.message } : {},
|
|
65417
|
+
raw: { path: r.path, body: r.body, data: r.data }
|
|
65418
|
+
});
|
|
65419
|
+
}
|
|
65420
|
+
} catch (e) {
|
|
65421
|
+
steps.push({ step: "vendor reads", ok: false, ...describeFailure(e) });
|
|
65422
|
+
}
|
|
65423
|
+
}
|
|
65308
65424
|
return out(null, "Every step worked.");
|
|
65309
65425
|
}
|
|
65310
65426
|
return {
|
|
@@ -67626,8 +67742,9 @@ function useRobotFleetController(deps) {
|
|
|
67626
67742
|
async function getLiveVideo(req, res, next) {
|
|
67627
67743
|
try {
|
|
67628
67744
|
const robot = await entitleRobot(req, req.params.id);
|
|
67745
|
+
const quality = req.body?.quality === "hd" ? "hd" : "smooth";
|
|
67629
67746
|
res.set("Cache-Control", "no-store");
|
|
67630
|
-
res.json(await getFleet2().getLiveVideo(robot));
|
|
67747
|
+
res.json(await getFleet2().getLiveVideo(robot, quality));
|
|
67631
67748
|
} catch (error) {
|
|
67632
67749
|
fail(next, error);
|
|
67633
67750
|
}
|
|
@@ -103202,6 +103319,7 @@ function usePersonalEmergencyChainController() {
|
|
|
103202
103319
|
allowsRobotListing,
|
|
103203
103320
|
applyTrackingFrame,
|
|
103204
103321
|
areaColourToHex,
|
|
103322
|
+
asList,
|
|
103205
103323
|
attendanceSchema,
|
|
103206
103324
|
attendanceSettingsSchema,
|
|
103207
103325
|
buildSelfServiceEmailContext,
|
|
@@ -103375,6 +103493,7 @@ function usePersonalEmergencyChainController() {
|
|
|
103375
103493
|
moduleGateMode,
|
|
103376
103494
|
moduleImpact,
|
|
103377
103495
|
moduleListGateOn,
|
|
103496
|
+
networkText,
|
|
103378
103497
|
newCode,
|
|
103379
103498
|
newSecret,
|
|
103380
103499
|
nfcPatrolSettingsSchema,
|