@7365admin1/core 3.79.1-staging.339 → 3.79.1-staging.341
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/.changeset/hid-sip-account-list.md +17 -0
- package/dist/index.d.ts +58 -2
- package/dist/index.js +151 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +148 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/test/unit-owner.test.mjs +139 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
"@7365admin1/core": minor
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
List a site's HID SIP accounts for the intercom contact picker.
|
|
6
|
+
|
|
7
|
+
`hid-sip-accounts` could only be reached through `ensureSipAccount`, which
|
|
8
|
+
creates and returns the CALLER's own extension together with its password.
|
|
9
|
+
The intercom contact dialog needs the opposite view: every person on the site
|
|
10
|
+
who holds an extension, so a contact names someone the reader can actually
|
|
11
|
+
ring instead of a free-typed label.
|
|
12
|
+
|
|
13
|
+
`listSipAccounts(orgId, siteId)` reads the site's non-disabled accounts, joins
|
|
14
|
+
each to its `users` row for the display name and email, and returns name,
|
|
15
|
+
extension, username and status per account. The SIP password is never in the
|
|
16
|
+
response. The controller guards it with `authorizeSite` in the handler body,
|
|
17
|
+
the same way `listEnrollmentReaders` does, so a router edit cannot expose it.
|
package/dist/index.d.ts
CHANGED
|
@@ -6019,6 +6019,38 @@ declare enum PersonStatus {
|
|
|
6019
6019
|
ACTIVE = "active",
|
|
6020
6020
|
DELETED = "deleted"
|
|
6021
6021
|
}
|
|
6022
|
+
/**
|
|
6023
|
+
* WHAT this person is to the unit they are attached to.
|
|
6024
|
+
*
|
|
6025
|
+
* `isOwner` answered only "owner or not", which is all a residential estate
|
|
6026
|
+
* ever needed. A COMMERCIAL site distinguishes a third standing: the person
|
|
6027
|
+
* the managing agent deals with for a unit who neither owns nor occupies it
|
|
6028
|
+
* (see the commercial Add Tenant form in web-app-property-management).
|
|
6029
|
+
*
|
|
6030
|
+
* `isOwner` STAYS, and stays authoritative for unit ownership - every
|
|
6031
|
+
* ownership sync in `person.service.ts` still reads it and nothing here
|
|
6032
|
+
* changes that. This field only records WHICH of the three was chosen, and
|
|
6033
|
+
* `ownerFlagFor` below is the one place that derives the flag from it, so the
|
|
6034
|
+
* two can never be written out of step.
|
|
6035
|
+
*
|
|
6036
|
+
* ABSENT on every person written before this existed, and on every person
|
|
6037
|
+
* written by a caller that does not send it (the resident app's sign-up
|
|
6038
|
+
* wizard, the other applications' forms). Absence means "never asked" - read
|
|
6039
|
+
* `isOwner` for those, exactly as before.
|
|
6040
|
+
*/
|
|
6041
|
+
declare enum OccupancyRoles {
|
|
6042
|
+
OWNER = "owner",
|
|
6043
|
+
OCCUPANT = "occupant",
|
|
6044
|
+
PERSON_IN_CHARGE = "person-in-charge"
|
|
6045
|
+
}
|
|
6046
|
+
declare const OCCUPANCY_ROLES: readonly ["owner", "occupant", "person-in-charge"];
|
|
6047
|
+
type OccupancyRole = (typeof OCCUPANCY_ROLES)[number];
|
|
6048
|
+
/**
|
|
6049
|
+
* The single rule tying the new field to the old flag: a role that was chosen
|
|
6050
|
+
* decides ownership, and a payload that carries no role leaves the flag
|
|
6051
|
+
* exactly as the caller sent it.
|
|
6052
|
+
*/
|
|
6053
|
+
declare function ownerFlagFor(role?: OccupancyRole | null, sentFlag?: boolean): boolean;
|
|
6022
6054
|
type TFiles = {
|
|
6023
6055
|
id: string | ObjectId;
|
|
6024
6056
|
name: string;
|
|
@@ -6051,6 +6083,8 @@ type TPerson = {
|
|
|
6051
6083
|
companyName?: Array<string>;
|
|
6052
6084
|
plates?: TPlates[];
|
|
6053
6085
|
isOwner?: boolean;
|
|
6086
|
+
/** Owner / occupant / person-in-charge. See `OccupancyRoles`. */
|
|
6087
|
+
occupancyRole?: OccupancyRole;
|
|
6054
6088
|
files?: TFiles[];
|
|
6055
6089
|
/**
|
|
6056
6090
|
* Attachments the resident-app wizard listed but never actually uploaded, so
|
|
@@ -6124,6 +6158,8 @@ declare function MPerson(value: TPerson): {
|
|
|
6124
6158
|
countryCode: string;
|
|
6125
6159
|
callingCode: string;
|
|
6126
6160
|
filesNotUploaded?: string[] | undefined;
|
|
6161
|
+
files: TFiles[];
|
|
6162
|
+
occupancyRole?: "owner" | "occupant" | "person-in-charge" | undefined;
|
|
6127
6163
|
_id: ObjectId | undefined;
|
|
6128
6164
|
user: string | ObjectId;
|
|
6129
6165
|
name: string;
|
|
@@ -6144,7 +6180,6 @@ declare function MPerson(value: TPerson): {
|
|
|
6144
6180
|
unitName: string | undefined;
|
|
6145
6181
|
plates: TPlates[];
|
|
6146
6182
|
isOwner: boolean;
|
|
6147
|
-
files: TFiles[];
|
|
6148
6183
|
};
|
|
6149
6184
|
type visitorType = "guest" | "walk-in" | "contractor" | "delivery";
|
|
6150
6185
|
type visitorPersonService = {
|
|
@@ -14239,6 +14274,16 @@ declare function useHidAmicoRepo(): {
|
|
|
14239
14274
|
pageRange: string;
|
|
14240
14275
|
}>;
|
|
14241
14276
|
getSipAccount: (orgIdValue: string | ObjectId, siteValue: string | ObjectId, userValue: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
14277
|
+
listSipAccounts: (orgIdValue: string | ObjectId, siteValue: string | ObjectId) => Promise<{
|
|
14278
|
+
_id: string;
|
|
14279
|
+
userId: string;
|
|
14280
|
+
name: string;
|
|
14281
|
+
email: string;
|
|
14282
|
+
extension: string;
|
|
14283
|
+
username: string;
|
|
14284
|
+
status: string;
|
|
14285
|
+
provisionedAt: any;
|
|
14286
|
+
}[]>;
|
|
14242
14287
|
nextSipExtension: () => Promise<string>;
|
|
14243
14288
|
reserveSipAccount: (value: THidSipAccount) => Promise<mongodb.WithId<bson.Document>>;
|
|
14244
14289
|
updateSipAccount: (id: string | ObjectId, value: Pick<THidSipAccount, "status" | "provisionedAt" | "lastProvisionError">) => Promise<mongodb.WithId<bson.Document>>;
|
|
@@ -14859,6 +14904,16 @@ declare function useHidAmicoService(): {
|
|
|
14859
14904
|
status: "active" | "failed" | "disabled" | "provisioning" | undefined;
|
|
14860
14905
|
provisionedAt: string | Date;
|
|
14861
14906
|
}>;
|
|
14907
|
+
listSipAccounts: (orgId: string, siteId: string) => Promise<{
|
|
14908
|
+
_id: string;
|
|
14909
|
+
userId: string;
|
|
14910
|
+
name: string;
|
|
14911
|
+
email: string;
|
|
14912
|
+
extension: string;
|
|
14913
|
+
username: string;
|
|
14914
|
+
status: string;
|
|
14915
|
+
provisionedAt: any;
|
|
14916
|
+
}[]>;
|
|
14862
14917
|
};
|
|
14863
14918
|
|
|
14864
14919
|
declare function useHidAmicoController(): {
|
|
@@ -14920,6 +14975,7 @@ declare function useHidAmicoController(): {
|
|
|
14920
14975
|
makeIntercomCall: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
14921
14976
|
finalizeIntercomCall: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
14922
14977
|
ensureSipAccount: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
14978
|
+
listSipAccounts: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
14923
14979
|
getSitePermissions: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
14924
14980
|
listPermissionCandidates: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
14925
14981
|
updateSitePermissions: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
@@ -16377,4 +16433,4 @@ declare function usePersonalEmergencyChainController(): {
|
|
|
16377
16433
|
update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
16378
16434
|
};
|
|
16379
16435
|
|
|
16380
|
-
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_RING_SECONDS, DEFAULT_SITE_TIMEZONE, DEVICE_STATUS, DOBStatus, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, E164, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GOVERNED_MODULES, GuestSort, GuestStatus, HID_CARD_VALUE_FACTOR, HID_PERMISSION_CATEGORIES, HID_UINT32_MAX, HID_UINT64_MAX, HidRawUint64, IAccessCard, IAccessCardTransaction, InviteActor, 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, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NOTIFY_ACCESS_FILTER_DEFAULT, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, 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, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, 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, REGISTERED_VEHICLE_CATEGORIES, ROBOT_APP_SCOPES, ROBOT_CLOUD_DOC_CONFIRMATIONS, ROBOT_CLOUD_PATHS, ROBOT_MODULE, ROBOT_PERMISSIONS, ROBOT_STATUS_NAMES, ROBOT_TYPES, ResidentAppModuleKey, RobotCloudError, SELF_SERVICE_RESEND_COOLDOWN_MS, SELF_SIGNUP_PLATFORM, SELF_SIGNUP_STATUS, SELF_SIGNUP_TYPES, SERVICE_PROVIDER_INVITE_LABELS, SERVICE_PROVIDER_INVITE_TRANSITIONS, SERVICE_PROVIDER_SIGN_IN_SUBJECT, SERVICE_PROVIDER_SIGN_IN_TYPE, SERVICE_PROVIDER_SIGN_UP_SUBJECT, SERVICE_PROVIDER_SIGN_UP_TYPE, SOFTWARE_VERSION_ENDPOINT, ServiceProviderInviteAction, ServiceProviderInviteDecision, ServiceProviderInviteFacts, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionBillingMode, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAreaColour, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCameraHealthClaim, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TCleanLevel, TCleanMode, TCleanOptions, TCleanSubMode, TCloudArea, TCloudFile, TCloudMap, TCloudPlan, TCloudPlanJob, TCloudRobot, TComplaintInfo, TComplaintReceivedTo, TConsoleAudit, TConsoleAuditQuery, TCounter, TCreateNfcPatrolLog, TCustomer, TCustomerSite, TCustomerSitePropertyField, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFleetRobot, 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, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberModulesDeps, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TModuleAccess, TModuleGateMode, TModuleImpact, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationPreference, TNotificationPreferenceOff, TNotifyAccessContext, TNotifyAccessMode, TNotifyAccessReport, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOrgModulesDeps, TOrgOwnerRepairClaim, TOrgOwnerRepairDeps, TOrgOwnerRepairInput, TOrgOwnerRepairPayload, TOrgOwnerRepairPlan, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolEmail, TPatrolEmailCreatedBy, TPatrolEmailLogRef, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPersonalEmergencyChain, TPersonalEmergencyContact, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, 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, TRobot, TRobotAction, TRobotAppScope, TRobotCloudCredentials, TRobotCloudPath, TRobotCloudReply, TRobotLiveState, TRobotMetadata, TRobotMode, TRobotPermissionActor, TRobotPose, 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, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleAnprCamera, TVehicleHistoryEntry, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationCode, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationOnboarding, TVerificationV2, TVisitorTransaction, 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, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, allowsRobotAction, allowsRobotListing, applyTrackingFrame, areaColourToHex, attendanceSchema, attendanceSettingsSchema, buildSelfServiceEmailContext, 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, clockDriftSeconds, consoleRoleAllows, consoleRoleAllowsAll, consoleSpellings, console_audit_namespace_collection, createManpowerRemarksDaily, createSseParser, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, decodeTrackingFrame, deniedModules, deriveBulletinStatus, deriveCameraHost, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, disconnectedState, documentExpiryFilter, documents_namespace_collection, emitNotificationCreated, emptyPersonalEmergencyChain, encodeHidPacsCard, entitledSiteScope, events_namespace_collection, expandModules, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, filterByAccess, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hasOrgOwnership, hasOrgSiteReach, hexToAreaColour, hidRawUint64, holdsRole, incidentReport, incidentReportLog, incidents_namespace_collection, invitationOffersRole, isAvailableForWork, isCameraEntitled, isDispatchable, isDuplicateMemberError, isDuplicateVersionError, isLikelySelfServiceEmail, isLiveVehicleStatus, isPatrolCctvCamera, isPlatformOwner, isPromoCodeExpired, isRelayPlayerUrl, isSafeRelativePath, isSeasonPassVehicle, isSuperAdmin, isTermsCurrent, isTrackingStale, isValidTimezone, listStaffUserIds, liveStatusFor, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, memberModulesHandlers, metresToPixel, moduleDeniedForCaller, moduleGateEnforceKeys, moduleGateMode, moduleImpact, moduleListGateOn, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalizeAcceptedTerms, normalizeHidCardValue, notificationAccessReport, notificationCategory, notificationCategoryLabel, notificationEvents, notificationRoom, notifyAccessMode, occasionForStatus, occurrence_book_namespace_collection, onBookTimezonesChanged, online_forms_namespace_collection, orgLevelRoles, orgModulesHandlers, orgOwnerRepairHandlers, orgOwnerRepairOn, orgQualifiesForOwnerRepair, orgSchema, overnight_parking_requests_namespace_collection, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePromoExpiry, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, pixelToMetres, planBulkCameraImport, planDayFromJsDay, planOrgOwnerRepair, platform_terms_namespace_collection, playbackRelays, playbackWindowRefusal, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, readsAsApprovedAccount, recordConsoleAction, refuseServiceProviderInviteAction, registerCameraTransport, relayForRecorder, remarksSchema, renderPagePdf, requireConsolePermission, requirePlatformStaff, resetCameraTransports, residentAppModuleKeys, residentAppModulesSchema, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveHidPhysicalCardValue, resolveInviteActor, resolveSiteTimezone, resolveStaffRole, robotActionsFor, robotCloudBody, robotCloudSign, robotCloudSigningString, robotCloudTimestamp, robotMode, robotModeFromList, robotSchema, robotScopeForApp, robotTypesVisibleTo, rtspUrl, 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, schemaHidAmicoUserPassword, schemaHidAmicoUserPasswordParams, schemaHidAmicoUserPin, schemaHidAmicoUserPinParams, schemaHidAmicoVisitorImageParams, schemaHidAmicoVisitorImageUploadQuery, schemaHidAmicoVisitorQr, schemaHidPermissionCandidateQuery, schemaHidPermissionScopeQuery, schemaHidSipAccountRequest, schemaIncidentReport, schemaListNotification, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaNotification, 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, serviceProviderInviteLabel, sessionSchema, setIO, shiftSchema, signLiveLink, signPlaybackLink, siteDayBounds, siteModulesHandlers, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, staffMayBypass, startTodaysBookForSite, stringifyHidJson, stripFacialImageMetadata, subscriptionPlanSchema, summariseBulkCameraPlan, toExpiryDate, trackingBackoffMs, 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, useRobotCloudService, useRobotController, useRobotFleetService, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderInviteController, useServiceProviderInviteService, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionPlanController, useSubscriptionPlanRepo, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleCategoryFor, vehicleHistoryEntry, vehicleListViewQuery, vehicleSchema, vehicleViewOf, vehicles_namespace_collection, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, withLiveLink, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
|
|
16436
|
+
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_RING_SECONDS, DEFAULT_SITE_TIMEZONE, DEVICE_STATUS, DOBStatus, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, E164, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GOVERNED_MODULES, GuestSort, GuestStatus, HID_CARD_VALUE_FACTOR, HID_PERMISSION_CATEGORIES, HID_UINT32_MAX, HID_UINT64_MAX, HidRawUint64, IAccessCard, IAccessCardTransaction, InviteActor, 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, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NOTIFY_ACCESS_FILTER_DEFAULT, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, OCCUPANCY_ROLES, 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, OccupancyRole, OccupancyRoles, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, 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, REGISTERED_VEHICLE_CATEGORIES, ROBOT_APP_SCOPES, ROBOT_CLOUD_DOC_CONFIRMATIONS, ROBOT_CLOUD_PATHS, ROBOT_MODULE, ROBOT_PERMISSIONS, ROBOT_STATUS_NAMES, ROBOT_TYPES, ResidentAppModuleKey, RobotCloudError, SELF_SERVICE_RESEND_COOLDOWN_MS, SELF_SIGNUP_PLATFORM, SELF_SIGNUP_STATUS, SELF_SIGNUP_TYPES, SERVICE_PROVIDER_INVITE_LABELS, SERVICE_PROVIDER_INVITE_TRANSITIONS, SERVICE_PROVIDER_SIGN_IN_SUBJECT, SERVICE_PROVIDER_SIGN_IN_TYPE, SERVICE_PROVIDER_SIGN_UP_SUBJECT, SERVICE_PROVIDER_SIGN_UP_TYPE, SOFTWARE_VERSION_ENDPOINT, ServiceProviderInviteAction, ServiceProviderInviteDecision, ServiceProviderInviteFacts, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionBillingMode, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAreaColour, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCameraHealthClaim, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TCleanLevel, TCleanMode, TCleanOptions, TCleanSubMode, TCloudArea, TCloudFile, TCloudMap, TCloudPlan, TCloudPlanJob, TCloudRobot, TComplaintInfo, TComplaintReceivedTo, TConsoleAudit, TConsoleAuditQuery, TCounter, TCreateNfcPatrolLog, TCustomer, TCustomerSite, TCustomerSitePropertyField, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFleetRobot, 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, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberModulesDeps, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TModuleAccess, TModuleGateMode, TModuleImpact, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationPreference, TNotificationPreferenceOff, TNotifyAccessContext, TNotifyAccessMode, TNotifyAccessReport, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOrgModulesDeps, TOrgOwnerRepairClaim, TOrgOwnerRepairDeps, TOrgOwnerRepairInput, TOrgOwnerRepairPayload, TOrgOwnerRepairPlan, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolEmail, TPatrolEmailCreatedBy, TPatrolEmailLogRef, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPersonalEmergencyChain, TPersonalEmergencyContact, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, 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, TRobot, TRobotAction, TRobotAppScope, TRobotCloudCredentials, TRobotCloudPath, TRobotCloudReply, TRobotLiveState, TRobotMetadata, TRobotMode, TRobotPermissionActor, TRobotPose, 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, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleAnprCamera, TVehicleHistoryEntry, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationCode, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationOnboarding, TVerificationV2, TVisitorTransaction, 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, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, allowsRobotAction, allowsRobotListing, applyTrackingFrame, areaColourToHex, attendanceSchema, attendanceSettingsSchema, buildSelfServiceEmailContext, 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, clockDriftSeconds, consoleRoleAllows, consoleRoleAllowsAll, consoleSpellings, console_audit_namespace_collection, createManpowerRemarksDaily, createSseParser, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, decodeTrackingFrame, deniedModules, deriveBulletinStatus, deriveCameraHost, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, disconnectedState, documentExpiryFilter, documents_namespace_collection, emitNotificationCreated, emptyPersonalEmergencyChain, encodeHidPacsCard, entitledSiteScope, events_namespace_collection, expandModules, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, filterByAccess, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hasOrgOwnership, hasOrgSiteReach, hexToAreaColour, hidRawUint64, holdsRole, incidentReport, incidentReportLog, incidents_namespace_collection, invitationOffersRole, isAvailableForWork, isCameraEntitled, isDispatchable, isDuplicateMemberError, isDuplicateVersionError, isLikelySelfServiceEmail, isLiveVehicleStatus, isPatrolCctvCamera, isPlatformOwner, isPromoCodeExpired, isRelayPlayerUrl, isSafeRelativePath, isSeasonPassVehicle, isSuperAdmin, isTermsCurrent, isTrackingStale, isValidTimezone, listStaffUserIds, liveStatusFor, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, memberModulesHandlers, metresToPixel, moduleDeniedForCaller, moduleGateEnforceKeys, moduleGateMode, moduleImpact, moduleListGateOn, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalizeAcceptedTerms, normalizeHidCardValue, notificationAccessReport, notificationCategory, notificationCategoryLabel, notificationEvents, notificationRoom, notifyAccessMode, occasionForStatus, occurrence_book_namespace_collection, onBookTimezonesChanged, online_forms_namespace_collection, orgLevelRoles, orgModulesHandlers, orgOwnerRepairHandlers, orgOwnerRepairOn, orgQualifiesForOwnerRepair, orgSchema, overnight_parking_requests_namespace_collection, ownerFlagFor, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePromoExpiry, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, pixelToMetres, planBulkCameraImport, planDayFromJsDay, planOrgOwnerRepair, platform_terms_namespace_collection, playbackRelays, playbackWindowRefusal, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, readsAsApprovedAccount, recordConsoleAction, refuseServiceProviderInviteAction, registerCameraTransport, relayForRecorder, remarksSchema, renderPagePdf, requireConsolePermission, requirePlatformStaff, resetCameraTransports, residentAppModuleKeys, residentAppModulesSchema, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveHidPhysicalCardValue, resolveInviteActor, resolveSiteTimezone, resolveStaffRole, robotActionsFor, robotCloudBody, robotCloudSign, robotCloudSigningString, robotCloudTimestamp, robotMode, robotModeFromList, robotSchema, robotScopeForApp, robotTypesVisibleTo, rtspUrl, 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, schemaHidAmicoUserPassword, schemaHidAmicoUserPasswordParams, schemaHidAmicoUserPin, schemaHidAmicoUserPinParams, schemaHidAmicoVisitorImageParams, schemaHidAmicoVisitorImageUploadQuery, schemaHidAmicoVisitorQr, schemaHidPermissionCandidateQuery, schemaHidPermissionScopeQuery, schemaHidSipAccountRequest, schemaIncidentReport, schemaListNotification, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaNotification, 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, serviceProviderInviteLabel, sessionSchema, setIO, shiftSchema, signLiveLink, signPlaybackLink, siteDayBounds, siteModulesHandlers, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, staffMayBypass, startTodaysBookForSite, stringifyHidJson, stripFacialImageMetadata, subscriptionPlanSchema, summariseBulkCameraPlan, toExpiryDate, trackingBackoffMs, 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, useRobotCloudService, useRobotController, useRobotFleetService, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderInviteController, useServiceProviderInviteService, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionPlanController, useSubscriptionPlanRepo, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleCategoryFor, vehicleHistoryEntry, vehicleListViewQuery, vehicleSchema, vehicleViewOf, vehicles_namespace_collection, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, withLiveLink, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
|
package/dist/index.js
CHANGED
|
@@ -206,11 +206,13 @@ __export(src_exports, {
|
|
|
206
206
|
NotificationAppSlug: () => NotificationAppSlug,
|
|
207
207
|
NotificationModule: () => NotificationModule,
|
|
208
208
|
NotificationService: () => NotificationService,
|
|
209
|
+
OCCUPANCY_ROLES: () => OCCUPANCY_ROLES,
|
|
209
210
|
ORG_MARKETPLACE_VENDOR_FIELD: () => ORG_MARKETPLACE_VENDOR_FIELD,
|
|
210
211
|
ORG_OWNER_REPAIR_CLAIM_STALE_MS: () => ORG_OWNER_REPAIR_CLAIM_STALE_MS,
|
|
211
212
|
ORG_OWNER_REPAIR_CLAIM_TAKEN_REASON: () => ORG_OWNER_REPAIR_CLAIM_TAKEN_REASON,
|
|
212
213
|
ORG_OWNER_REPAIR_DEFAULT: () => ORG_OWNER_REPAIR_DEFAULT,
|
|
213
214
|
ORG_OWNER_REPAIR_OFF_REASON: () => ORG_OWNER_REPAIR_OFF_REASON,
|
|
215
|
+
OccupancyRoles: () => OccupancyRoles,
|
|
214
216
|
OrgNature: () => OrgNature,
|
|
215
217
|
OvernightParkingRequestSort: () => OvernightParkingRequestSort,
|
|
216
218
|
OvernightParkingRequestStatus: () => OvernightParkingRequestStatus,
|
|
@@ -438,6 +440,7 @@ __export(src_exports, {
|
|
|
438
440
|
orgQualifiesForOwnerRepair: () => orgQualifiesForOwnerRepair,
|
|
439
441
|
orgSchema: () => orgSchema,
|
|
440
442
|
overnight_parking_requests_namespace_collection: () => overnight_parking_requests_namespace_collection,
|
|
443
|
+
ownerFlagFor: () => ownerFlagFor,
|
|
441
444
|
parseCameraChannel: () => parseCameraChannel,
|
|
442
445
|
parseCameraHost: () => parseCameraHost,
|
|
443
446
|
parseDahuaFind: () => parseDahuaFind,
|
|
@@ -13730,6 +13733,22 @@ var PersonStatus = /* @__PURE__ */ ((PersonStatus2) => {
|
|
|
13730
13733
|
PersonStatus2["DELETED"] = "deleted";
|
|
13731
13734
|
return PersonStatus2;
|
|
13732
13735
|
})(PersonStatus || {});
|
|
13736
|
+
var OccupancyRoles = /* @__PURE__ */ ((OccupancyRoles2) => {
|
|
13737
|
+
OccupancyRoles2["OWNER"] = "owner";
|
|
13738
|
+
OccupancyRoles2["OCCUPANT"] = "occupant";
|
|
13739
|
+
OccupancyRoles2["PERSON_IN_CHARGE"] = "person-in-charge";
|
|
13740
|
+
return OccupancyRoles2;
|
|
13741
|
+
})(OccupancyRoles || {});
|
|
13742
|
+
var OCCUPANCY_ROLES = [
|
|
13743
|
+
"owner",
|
|
13744
|
+
"occupant",
|
|
13745
|
+
"person-in-charge"
|
|
13746
|
+
];
|
|
13747
|
+
function ownerFlagFor(role, sentFlag) {
|
|
13748
|
+
if (!role)
|
|
13749
|
+
return sentFlag ?? false;
|
|
13750
|
+
return role === "owner" /* OWNER */;
|
|
13751
|
+
}
|
|
13733
13752
|
var PERSON_TYPES = [
|
|
13734
13753
|
"walk-in",
|
|
13735
13754
|
"drop-off",
|
|
@@ -13774,6 +13793,7 @@ var schemaPerson = import_joi19.default.object({
|
|
|
13774
13793
|
companyName: import_joi19.default.array().items(import_joi19.default.string()).optional(),
|
|
13775
13794
|
plates: import_joi19.default.array().items(schemaPlate).optional().allow(null),
|
|
13776
13795
|
isOwner: import_joi19.default.boolean().required(),
|
|
13796
|
+
occupancyRole: import_joi19.default.string().valid(...OCCUPANCY_ROLES).optional().allow(null, ""),
|
|
13777
13797
|
files: import_joi19.default.array().items(schemaFiles).optional().allow(null),
|
|
13778
13798
|
// Set by `addResidentSelfSignUp`, not by any caller: it is absent from the
|
|
13779
13799
|
// self-signup allow-list, which validates with `stripUnknown`. It is named
|
|
@@ -13832,6 +13852,7 @@ var schemaUpdatePerson = import_joi19.default.object({
|
|
|
13832
13852
|
companyName: import_joi19.default.array().items(import_joi19.default.string()).optional().allow(null, ""),
|
|
13833
13853
|
plates: import_joi19.default.array().items(schemaFiles).optional().allow(null, ""),
|
|
13834
13854
|
isOwner: import_joi19.default.boolean().optional().allow(null, ""),
|
|
13855
|
+
occupancyRole: import_joi19.default.string().valid(...OCCUPANCY_ROLES).optional().allow(null, ""),
|
|
13835
13856
|
files: import_joi19.default.array().items(schemaFiles).optional().allow(null),
|
|
13836
13857
|
password: import_joi19.default.string().optional().allow(null, ""),
|
|
13837
13858
|
plateNumber: import_joi19.default.string().optional().allow(null, ""),
|
|
@@ -13939,7 +13960,12 @@ function MPerson(value) {
|
|
|
13939
13960
|
companyName: value.companyName,
|
|
13940
13961
|
unitName: value.unitName,
|
|
13941
13962
|
plates: value.plates ?? [],
|
|
13942
|
-
isOwner: value.isOwner
|
|
13963
|
+
isOwner: ownerFlagFor(value.occupancyRole, value.isOwner),
|
|
13964
|
+
// Conditional for the same reason `filesNotUploaded` is: this return is
|
|
13965
|
+
// the whitelist that decides what reaches the collection, and a bare
|
|
13966
|
+
// assignment would add an `undefined` key to every person ever written.
|
|
13967
|
+
// Absent means the caller was never asked which role this is.
|
|
13968
|
+
...value.occupancyRole ? { occupancyRole: value.occupancyRole } : {},
|
|
13943
13969
|
files: value.files ?? [],
|
|
13944
13970
|
// Conditional, because this return is a WHITELIST: everything not named
|
|
13945
13971
|
// here is dropped on the way to the database, and a bare
|
|
@@ -14204,7 +14230,22 @@ function usePersonRepo() {
|
|
|
14204
14230
|
]);
|
|
14205
14231
|
}
|
|
14206
14232
|
const query2 = {
|
|
14207
|
-
|
|
14233
|
+
/**
|
|
14234
|
+
* THREE ANSWERS, NOT TWO.
|
|
14235
|
+
*
|
|
14236
|
+
* - a named status ("active", "pending", "deleted", ...) is matched
|
|
14237
|
+
* exactly, as it always has been;
|
|
14238
|
+
* - "all", or nothing at all, is everything EXCEPT deleted and
|
|
14239
|
+
* rejected - the long-standing default, and still the default;
|
|
14240
|
+
* - "any" applies no status filter whatsoever, which is the only way to
|
|
14241
|
+
* list live and deactivated people TOGETHER. The People Mgmt tenant
|
|
14242
|
+
* list asks for this so that deactivating someone leaves them in
|
|
14243
|
+
* place with their state shown, rather than vanishing the row.
|
|
14244
|
+
*
|
|
14245
|
+
* Additive: "any" is a value nothing sent before, so every existing
|
|
14246
|
+
* caller lands on exactly the branch it landed on yesterday.
|
|
14247
|
+
*/
|
|
14248
|
+
...status === "any" ? {} : status && status !== "all" ? { status } : { status: { $nin: ["deleted", "rejected"] } },
|
|
14208
14249
|
...start && { start },
|
|
14209
14250
|
...anyOf.length > 0 && { $and: anyOf.map(($or) => ({ $or })) },
|
|
14210
14251
|
...import_mongodb41.ObjectId.isValid(org) && { org: new import_mongodb41.ObjectId(org) },
|
|
@@ -43918,6 +43959,28 @@ var import_mongodb95 = require("mongodb");
|
|
|
43918
43959
|
|
|
43919
43960
|
// src/services/person.service.ts
|
|
43920
43961
|
var import_node_server_utils140 = require("@7365admin1/node-server-utils");
|
|
43962
|
+
|
|
43963
|
+
// src/utils/unit-owner.util.ts
|
|
43964
|
+
function holdsUnitOwner(person) {
|
|
43965
|
+
if (!person)
|
|
43966
|
+
return false;
|
|
43967
|
+
if (person.occupancyRole) {
|
|
43968
|
+
return person.occupancyRole === "owner" /* OWNER */;
|
|
43969
|
+
}
|
|
43970
|
+
return person.isOwner === true;
|
|
43971
|
+
}
|
|
43972
|
+
function conflictingUnitOwner(peopleAtUnit, selfId) {
|
|
43973
|
+
const self = selfId ? String(selfId) : "";
|
|
43974
|
+
return (peopleAtUnit ?? []).find(
|
|
43975
|
+
(person) => holdsUnitOwner(person) && person?.status !== "deleted" /* DELETED */ && String(person?._id ?? "") !== self
|
|
43976
|
+
);
|
|
43977
|
+
}
|
|
43978
|
+
function unitOwnerTakenMessage(name) {
|
|
43979
|
+
const who = name?.trim() ? `"${name.trim()}"` : "Someone";
|
|
43980
|
+
return `${who} is already the owner of this unit. A unit can have only one owner - assign them another role first.`;
|
|
43981
|
+
}
|
|
43982
|
+
|
|
43983
|
+
// src/services/person.service.ts
|
|
43921
43984
|
var import_mongodb90 = require("mongodb");
|
|
43922
43985
|
|
|
43923
43986
|
// src/utils/resident-account.util.ts
|
|
@@ -44263,7 +44326,8 @@ function usePersonService() {
|
|
|
44263
44326
|
reviewResidentPerson: _reviewResidentPerson,
|
|
44264
44327
|
getApprovedPersonByPlateNumber,
|
|
44265
44328
|
addFromVisitor: _addFromVisitor,
|
|
44266
|
-
findFirstTen
|
|
44329
|
+
findFirstTen,
|
|
44330
|
+
getPeopleByUnit: _getPeopleByUnit
|
|
44267
44331
|
} = usePersonRepo();
|
|
44268
44332
|
const { addPlateNumber: _addPlateNumber } = useDahuaService();
|
|
44269
44333
|
const {
|
|
@@ -44348,6 +44412,18 @@ function usePersonService() {
|
|
|
44348
44412
|
}
|
|
44349
44413
|
return userId.toString();
|
|
44350
44414
|
}
|
|
44415
|
+
async function assertUnitOwnerFree(role, unit, session, selfId) {
|
|
44416
|
+
if (role !== "owner" /* OWNER */ || !unit)
|
|
44417
|
+
return;
|
|
44418
|
+
const peopleAtUnit = await _getPeopleByUnit(
|
|
44419
|
+
{ status: "active", unit: unit.toString() },
|
|
44420
|
+
session
|
|
44421
|
+
);
|
|
44422
|
+
const taken = conflictingUnitOwner(peopleAtUnit, selfId);
|
|
44423
|
+
if (taken) {
|
|
44424
|
+
throw new import_node_server_utils140.BadRequestError(unitOwnerTakenMessage(taken.name));
|
|
44425
|
+
}
|
|
44426
|
+
}
|
|
44351
44427
|
async function add(value) {
|
|
44352
44428
|
const session = import_node_server_utils140.useAtlas.getClient()?.startSession();
|
|
44353
44429
|
if (!session) {
|
|
@@ -44355,6 +44431,11 @@ function usePersonService() {
|
|
|
44355
44431
|
}
|
|
44356
44432
|
try {
|
|
44357
44433
|
session.startTransaction();
|
|
44434
|
+
await assertUnitOwnerFree(
|
|
44435
|
+
value.occupancyRole,
|
|
44436
|
+
value.unit,
|
|
44437
|
+
session
|
|
44438
|
+
);
|
|
44358
44439
|
const personFiles = value?.files ?? [];
|
|
44359
44440
|
if (personFiles.length > 0) {
|
|
44360
44441
|
for (const personFile of personFiles) {
|
|
@@ -44422,6 +44503,18 @@ function usePersonService() {
|
|
|
44422
44503
|
throw new import_node_server_utils140.BadRequestError("Person not found.");
|
|
44423
44504
|
}
|
|
44424
44505
|
const isNameUpdated = typeof value.name === "string" && value.name.trim() !== person.name;
|
|
44506
|
+
if (value.occupancyRole) {
|
|
44507
|
+
value.isOwner = ownerFlagFor(value.occupancyRole, value.isOwner);
|
|
44508
|
+
}
|
|
44509
|
+
if (value.status === "active" /* ACTIVE */) {
|
|
44510
|
+
value.deletedAt = "";
|
|
44511
|
+
}
|
|
44512
|
+
await assertUnitOwnerFree(
|
|
44513
|
+
value.occupancyRole,
|
|
44514
|
+
value.unit ?? person.unit,
|
|
44515
|
+
session,
|
|
44516
|
+
_id
|
|
44517
|
+
);
|
|
44425
44518
|
const isOwnerChanged = value.isOwner !== person.isOwner;
|
|
44426
44519
|
if (value.org && typeof value.org === "string") {
|
|
44427
44520
|
value.org = new import_mongodb90.ObjectId(value.org);
|
|
@@ -47078,6 +47171,34 @@ function useHidAmicoRepo() {
|
|
|
47078
47171
|
status: { $ne: "disabled" }
|
|
47079
47172
|
});
|
|
47080
47173
|
}
|
|
47174
|
+
async function listSipAccounts(orgIdValue, siteValue) {
|
|
47175
|
+
const accounts = await sipAccounts().find({
|
|
47176
|
+
orgId: toId3(orgIdValue, "organization ID"),
|
|
47177
|
+
site: toId3(siteValue, "site ID"),
|
|
47178
|
+
status: { $ne: "disabled" }
|
|
47179
|
+
}, {
|
|
47180
|
+
projection: { user: 1, extension: 1, username: 1, status: 1, provisionedAt: 1 }
|
|
47181
|
+
}).sort({ extension: 1 }).toArray();
|
|
47182
|
+
const userIds = accounts.map((account) => optionalObjectId2(account.user)).filter((value) => Boolean(value));
|
|
47183
|
+
const users = userIds.length ? await db2().collection("users").find(
|
|
47184
|
+
{ _id: { $in: userIds } },
|
|
47185
|
+
{ projection: { name: 1, email: 1 } }
|
|
47186
|
+
).toArray() : [];
|
|
47187
|
+
const userMap = new Map(users.map((user) => [String(user._id), user]));
|
|
47188
|
+
return accounts.map((account) => {
|
|
47189
|
+
const user = userMap.get(String(account.user));
|
|
47190
|
+
return {
|
|
47191
|
+
_id: String(account._id),
|
|
47192
|
+
userId: String(account.user),
|
|
47193
|
+
name: String(user?.name || user?.email || ""),
|
|
47194
|
+
email: String(user?.email || ""),
|
|
47195
|
+
extension: String(account.extension || ""),
|
|
47196
|
+
username: String(account.username || ""),
|
|
47197
|
+
status: String(account.status || ""),
|
|
47198
|
+
provisionedAt: account.provisionedAt || ""
|
|
47199
|
+
};
|
|
47200
|
+
});
|
|
47201
|
+
}
|
|
47081
47202
|
async function nextSipExtension() {
|
|
47082
47203
|
const configuredStart = Number.parseInt(process.env.HID_SIP_EXTENSION_START || "7100", 10);
|
|
47083
47204
|
const start = Number.isInteger(configuredStart) && configuredStart > 0 ? configuredStart : 7100;
|
|
@@ -47596,6 +47717,7 @@ function useHidAmicoRepo() {
|
|
|
47596
47717
|
assertPermissionSubject,
|
|
47597
47718
|
listPermissionCandidates,
|
|
47598
47719
|
getSipAccount,
|
|
47720
|
+
listSipAccounts,
|
|
47599
47721
|
nextSipExtension,
|
|
47600
47722
|
reserveSipAccount,
|
|
47601
47723
|
updateSipAccount,
|
|
@@ -52839,6 +52961,10 @@ function useHidAmicoService() {
|
|
|
52839
52961
|
}
|
|
52840
52962
|
return sipAccountResponse(account);
|
|
52841
52963
|
}
|
|
52964
|
+
async function listSipAccounts(orgId, siteId) {
|
|
52965
|
+
await repo.assertOrganizationSiteAccess(siteId, orgId);
|
|
52966
|
+
return repo.listSipAccounts(orgId, siteId);
|
|
52967
|
+
}
|
|
52842
52968
|
return {
|
|
52843
52969
|
authorizeReader,
|
|
52844
52970
|
authorizeReaderUser,
|
|
@@ -52903,7 +53029,8 @@ function useHidAmicoService() {
|
|
|
52903
53029
|
getSitePermissions,
|
|
52904
53030
|
listPermissionCandidates,
|
|
52905
53031
|
updateSitePermissions,
|
|
52906
|
-
ensureSipAccount
|
|
53032
|
+
ensureSipAccount,
|
|
53033
|
+
listSipAccounts
|
|
52907
53034
|
};
|
|
52908
53035
|
}
|
|
52909
53036
|
|
|
@@ -93819,6 +93946,22 @@ function useHidAmicoController() {
|
|
|
93819
93946
|
next(error);
|
|
93820
93947
|
}
|
|
93821
93948
|
}
|
|
93949
|
+
async function listSipAccounts(req, res, next) {
|
|
93950
|
+
const params = schemaHidAmicoSiteIdParams.validate(req.params);
|
|
93951
|
+
const query2 = schemaHidSipAccountRequest.validate(req.query);
|
|
93952
|
+
if (params.error || query2.error) {
|
|
93953
|
+
next(new import_node_server_utils306.BadRequestError(params.error?.message || query2.error?.message));
|
|
93954
|
+
return;
|
|
93955
|
+
}
|
|
93956
|
+
try {
|
|
93957
|
+
await authorizeSite(req, params.value.siteId);
|
|
93958
|
+
res.json({
|
|
93959
|
+
data: await service.listSipAccounts(query2.value.orgId, params.value.siteId)
|
|
93960
|
+
});
|
|
93961
|
+
} catch (error) {
|
|
93962
|
+
next(error);
|
|
93963
|
+
}
|
|
93964
|
+
}
|
|
93822
93965
|
async function getSitePermissions(req, res, next) {
|
|
93823
93966
|
const params = schemaHidAmicoSiteIdParams.validate(req.params);
|
|
93824
93967
|
const query2 = schemaHidPermissionScopeQuery.validate(req.query);
|
|
@@ -93934,6 +94077,7 @@ function useHidAmicoController() {
|
|
|
93934
94077
|
makeIntercomCall,
|
|
93935
94078
|
finalizeIntercomCall,
|
|
93936
94079
|
ensureSipAccount,
|
|
94080
|
+
listSipAccounts,
|
|
93937
94081
|
getSitePermissions,
|
|
93938
94082
|
listPermissionCandidates,
|
|
93939
94083
|
updateSitePermissions
|
|
@@ -94908,11 +95052,13 @@ function usePersonalEmergencyChainController() {
|
|
|
94908
95052
|
NotificationAppSlug,
|
|
94909
95053
|
NotificationModule,
|
|
94910
95054
|
NotificationService,
|
|
95055
|
+
OCCUPANCY_ROLES,
|
|
94911
95056
|
ORG_MARKETPLACE_VENDOR_FIELD,
|
|
94912
95057
|
ORG_OWNER_REPAIR_CLAIM_STALE_MS,
|
|
94913
95058
|
ORG_OWNER_REPAIR_CLAIM_TAKEN_REASON,
|
|
94914
95059
|
ORG_OWNER_REPAIR_DEFAULT,
|
|
94915
95060
|
ORG_OWNER_REPAIR_OFF_REASON,
|
|
95061
|
+
OccupancyRoles,
|
|
94916
95062
|
OrgNature,
|
|
94917
95063
|
OvernightParkingRequestSort,
|
|
94918
95064
|
OvernightParkingRequestStatus,
|
|
@@ -95140,6 +95286,7 @@ function usePersonalEmergencyChainController() {
|
|
|
95140
95286
|
orgQualifiesForOwnerRepair,
|
|
95141
95287
|
orgSchema,
|
|
95142
95288
|
overnight_parking_requests_namespace_collection,
|
|
95289
|
+
ownerFlagFor,
|
|
95143
95290
|
parseCameraChannel,
|
|
95144
95291
|
parseCameraHost,
|
|
95145
95292
|
parseDahuaFind,
|