@7365admin1/core 3.52.12 → 3.52.13-staging.261
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/camera-grant-org-level-role.md +5 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +58 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/test/chat-controller-caller-id.test.mjs +36 -0
package/dist/index.d.ts
CHANGED
|
@@ -2271,6 +2271,14 @@ declare function useChatRepo(): {
|
|
|
2271
2271
|
createChat: (value: TChat, session?: ClientSession) => Promise<bson.ObjectId>;
|
|
2272
2272
|
};
|
|
2273
2273
|
|
|
2274
|
+
/**
|
|
2275
|
+
* `requireAuth` (node-server-utils) sets `req.user.user` to the caller's id,
|
|
2276
|
+
* falling back to `_id` for callers that pass the raw session doc. Never read
|
|
2277
|
+
* `createdBy` off the request body — a caller could attribute a chat message
|
|
2278
|
+
* to any other user. This is enforced here, not just at the route mount, so
|
|
2279
|
+
* a second mount of this controller can't reintroduce the hole.
|
|
2280
|
+
*/
|
|
2281
|
+
declare function callerId(user: any): string;
|
|
2274
2282
|
declare function useChatController(): {
|
|
2275
2283
|
createChat: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2276
2284
|
};
|
|
@@ -13444,4 +13452,4 @@ declare function useNotificationPreferenceController(): {
|
|
|
13444
13452
|
update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
13445
13453
|
};
|
|
13446
13454
|
|
|
13447
|
-
export { ANPRMode, APP_BASE_URLS, AUDIT_VALUE_MAX_LENGTH, AccessTypeProps, AppKey, AppServiceType, AssignCardConfig, 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_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, CONTRACTOR_TYPE_LABELS, CURRENT_TIME_ENDPOINT, Camera, CameraAddressInput, CameraCapability, CameraCapabilityContext, CameraCapabilityDescriptor, CameraCapabilityEntry, CameraCapabilityReason, CameraCapabilityState, CameraCapabilityTrace, CameraDevice, CameraFrame, CameraMembership, CameraStream, CameraTestStatus, CameraTransport, CameraType, ConsoleAuditAction, ConsoleAuditTarget, DEFAULT_SITE_TIMEZONE, DEVICE_STATUS, DOBStatus, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, HID_CARD_VALUE_FACTOR, HID_PERMISSION_CATEGORIES, HID_UINT32_MAX, HID_UINT64_MAX, HidRawUint64, IAccessCard, IAccessCardTransaction, InviteActor, LIVE_ROLE, MAX_BULK_CAMERA_ROWS, MAX_CAMERA_CHANNEL, MAX_CAMERA_NAME_LENGTH, 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, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MNotification, MNotificationPreference, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolEmail, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPlatformTerms, MPost, MPostFavorite, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, ORG_MARKETPLACE_VENDOR_FIELD, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PATROL_CCTV_CAMERA_FILTER, PATROL_EMAIL_MAX_LOGS, PATROL_EMAIL_MAX_PER_HOUR, PATROL_EMAIL_MAX_RECIPIENTS, PERSON_TYPES, PLATFORM_STAFF_MEMBER_TYPE, PLATFORM_STAFF_ROLE_TYPE, PROPERTY_MANAGEMENT_MEMBER_TYPES, PStatus, PTZ_ALLOWED_ACTIONS, PTZ_ALLOWED_CODES, Period, PersonStatus, PersonType, PersonTypes, PlatformTermsStatus, PostOrder, PostSort, PostStatus, QrTagProps, REALTIME_MAX_FANOUT, ResidentAppModuleKey, 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, 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, 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, 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, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationPreference, TNotificationPreferenceOff, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolEmail, TPatrolEmailCreatedBy, TPatrolEmailLogRef, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, TPrice, TPriceType, TPromoCode, TPromoCurrencyInput, TPromoTier, TRANSPORT_DEVICE_HTTP, TRANSPORT_RELAY_PLAYER, TRANSPORT_RTSP_FRAME, TRecipientOfComplaint, TRemarks, TResident, TResidentAppModules, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TSelfServiceEmailOccasion, TSelfServiceEmailRecord, TSelfServiceResendDecision, TSelfServiceResendFacts, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteDayBounds, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TSubscriptionPlan, TSubscriptionPlanApplication, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UNSTORED_COLUMNS, UseAccessManagementRepo, UserStatus, VERIFICATION_OPEN_STATUSES, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, attendanceSchema, attendanceSettingsSchema, buildSelfServiceEmailContext, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, cameraBaseUrl, cameraCapabilitiesFor, cameraDevices, cameraGrant, cameraHealthClaim, cameraHealthSummary, cameraManagePermissions, cameraProbeCacheKey, cameraTransports, canRevokeRefreshTokenFamily, categoriesForPermissions, categorySupportsChannel, chatPrelovedEvents, chatSchema, clampPtzSpeed, clockDriftSeconds, console_audit_namespace_collection, createManpowerRemarksDaily, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, deriveBulletinStatus, deriveCameraHost, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, emitNotificationCreated, encodeHidPacsCard, entitledSiteScope, events_namespace_collection, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hidRawUint64, incidentReport, incidentReportLog, incidents_namespace_collection, isCameraEntitled, isDuplicateVersionError, isLikelySelfServiceEmail, isPatrolCctvCamera, isPlatformOwner, isPromoCodeExpired, isRelayPlayerUrl, isSafeRelativePath, isSuperAdmin, isTermsCurrent, isValidTimezone, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalizeAcceptedTerms, normalizeHidCardValue, notificationCategory, notificationCategoryLabel, notificationEvents, notificationRoom, occasionForStatus, occurrence_book_namespace_collection, online_forms_namespace_collection, orgLevelRoles, orgSchema, orgSiteScope, overnight_parking_requests_namespace_collection, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePromoExpiry, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, planBulkCameraImport, platform_terms_namespace_collection, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, recordConsoleAction, refuseServiceProviderInviteAction, registerCameraTransport, relayForRecorder, remarksSchema, renderPagePdf, resetCameraTransports, residentAppModuleKeys, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveHidPhysicalCardValue, resolveInviteActor, resolveSiteTimezone, robotSchema, 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, 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, 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, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, selectHealthTargets, selfServiceEmailSubject, serviceProviderInviteLabel, sessionSchema, setIO, shiftSchema, siteDayBounds, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, stringifyHidJson, stripFacialImageMetadata, subscriptionPlanSchema, summariseBulkCameraPlan, 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, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolEmailController, usePatrolEmailRepo, usePatrolEmailService, usePatrolLogController, usePatrolLogRepo, usePatrolLogService, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePlatformTermsController, usePlatformTermsRepo, usePlatformTermsService, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderInviteController, useServiceProviderInviteService, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionPlanController, useSubscriptionPlanRepo, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
|
|
13455
|
+
export { ANPRMode, APP_BASE_URLS, AUDIT_VALUE_MAX_LENGTH, AccessTypeProps, AppKey, AppServiceType, AssignCardConfig, 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_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, CONTRACTOR_TYPE_LABELS, CURRENT_TIME_ENDPOINT, Camera, CameraAddressInput, CameraCapability, CameraCapabilityContext, CameraCapabilityDescriptor, CameraCapabilityEntry, CameraCapabilityReason, CameraCapabilityState, CameraCapabilityTrace, CameraDevice, CameraFrame, CameraMembership, CameraStream, CameraTestStatus, CameraTransport, CameraType, ConsoleAuditAction, ConsoleAuditTarget, DEFAULT_SITE_TIMEZONE, DEVICE_STATUS, DOBStatus, DUPLICATE_TERMS_VERSION_MESSAGE, DayOfWeek, DeviceHttpTarget, DeviceProbeResult, DynamicFormFields, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, HID_CARD_VALUE_FACTOR, HID_PERMISSION_CATEGORIES, HID_UINT32_MAX, HID_UINT64_MAX, HidRawUint64, IAccessCard, IAccessCardTransaction, InviteActor, LIVE_ROLE, MAX_BULK_CAMERA_ROWS, MAX_CAMERA_CHANNEL, MAX_CAMERA_NAME_LENGTH, 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, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MNotification, MNotificationPreference, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolEmail, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPlatformTerms, MPost, MPostFavorite, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MSubscriptionPlan, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, NOTIFICATION_CATEGORIES, NOTIFICATION_CHANNELS, NOTIFICATION_CHANNEL_LABELS, NOTIFICATION_NAMESPACE, NotificationAppSlug, NotificationCategory, NotificationChannel, NotificationModule, NotificationPreferenceView, NotificationService, ORG_MARKETPLACE_VENDOR_FIELD, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PATROL_CCTV_CAMERA_FILTER, PATROL_EMAIL_MAX_LOGS, PATROL_EMAIL_MAX_PER_HOUR, PATROL_EMAIL_MAX_RECIPIENTS, PERSON_TYPES, PLATFORM_STAFF_MEMBER_TYPE, PLATFORM_STAFF_ROLE_TYPE, PROPERTY_MANAGEMENT_MEMBER_TYPES, PStatus, PTZ_ALLOWED_ACTIONS, PTZ_ALLOWED_CODES, Period, PersonStatus, PersonType, PersonTypes, PlatformTermsStatus, PostOrder, PostSort, PostStatus, QrTagProps, REALTIME_MAX_FANOUT, ResidentAppModuleKey, 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, 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, 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, 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, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TNotification, TNotificationPreference, TNotificationPreferenceOff, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolEmail, TPatrolEmailCreatedBy, TPatrolEmailLogRef, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPlatformTerms, TPost, TPostFavorite, TPrice, TPriceType, TPromoCode, TPromoCurrencyInput, TPromoTier, TRANSPORT_DEVICE_HTTP, TRANSPORT_RELAY_PLAYER, TRANSPORT_RTSP_FRAME, TRecipientOfComplaint, TRemarks, TResident, TResidentAppModules, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TSelfServiceEmailOccasion, TSelfServiceEmailRecord, TSelfServiceResendDecision, TSelfServiceResendFacts, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteDayBounds, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TSubscriptionPlan, TSubscriptionPlanApplication, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationEvent, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UNSTORED_COLUMNS, UseAccessManagementRepo, UserStatus, VERIFICATION_OPEN_STATUSES, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, allowedPlanApplications, attendanceSchema, attendanceSettingsSchema, buildSelfServiceEmailContext, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, callerId, cameraBaseUrl, cameraCapabilitiesFor, cameraDevices, cameraGrant, cameraHealthClaim, cameraHealthSummary, cameraManagePermissions, cameraProbeCacheKey, cameraTransports, canRevokeRefreshTokenFamily, categoriesForPermissions, categorySupportsChannel, chatPrelovedEvents, chatSchema, clampPtzSpeed, clockDriftSeconds, console_audit_namespace_collection, createManpowerRemarksDaily, customerSchema, customerSitePropertyFields, decideSelfServiceResend, decideServiceProviderInvite, decodeHidPacsCard, deriveBulletinStatus, deriveCameraHost, describeCameraCapabilities, designationsSchema, deviceControlEnabled, deviceHttpEnabled, deviceHttpTargets, deviceHttpTimeoutMs, deviceProbeTtlSeconds, emitNotificationCreated, encodeHidPacsCard, entitledSiteScope, events_namespace_collection, expiredBulletinSweepFilter, expiredVehicleSweepFilter, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, ffmpegFrameArgs, ffmpegPath, formatCapabilityTrace, formatDahuaDate, getIO, getSessionIdFromRequest, grabWithSubStreamFallback, guests_namespace_collection, hasAnyCapability, hasAnyPermission, hasOrgInvitation, hidRawUint64, incidentReport, incidentReportLog, incidents_namespace_collection, isCameraEntitled, isDuplicateVersionError, isLikelySelfServiceEmail, isPatrolCctvCamera, isPlatformOwner, isPromoCodeExpired, isRelayPlayerUrl, isSafeRelativePath, isSuperAdmin, isTermsCurrent, isValidTimezone, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, mapWithLimit, maskNric, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, normalizeAcceptedTerms, normalizeHidCardValue, notificationCategory, notificationCategoryLabel, notificationEvents, notificationRoom, occasionForStatus, occurrence_book_namespace_collection, online_forms_namespace_collection, orgLevelRoles, orgSchema, orgSiteScope, overnight_parking_requests_namespace_collection, parseCameraChannel, parseCameraHost, parseDahuaFind, parseDeviceTime, parseHidJsonLossless, parsePromoExpiry, parseSoftwareVersion, pickAuditFields, pickCustomerSiteProperties, planBulkCameraImport, platform_terms_namespace_collection, promoCodeRefusal, promoCodeSchema, promoCodeStatusSchema, promoCodeUpdate, promoCodeUpdateSchema, ptzEndpoint, publicCameraFields, recordConsoleAction, refuseServiceProviderInviteAction, registerCameraTransport, relayForRecorder, remarksSchema, renderPagePdf, resetCameraTransports, residentAppModuleKeys, residentFormEntry, resolutionRefusalReason, resolveCamera, resolveDeviceHttp, resolveHidPhysicalCardValue, resolveInviteActor, resolveSiteTimezone, robotSchema, 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, 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, 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, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, selectHealthTargets, selfServiceEmailSubject, serviceProviderInviteLabel, sessionSchema, setIO, shiftSchema, siteDayBounds, siteSchema, site_people_namespace_collection, snapshotEndpoint, snapshotRefusalReason, stringifyHidJson, stripFacialImageMetadata, subscriptionPlanSchema, summariseBulkCameraPlan, 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, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolEmailController, usePatrolEmailRepo, usePatrolEmailService, usePatrolLogController, usePatrolLogRepo, usePatrolLogService, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePlatformTermsController, usePlatformTermsRepo, usePlatformTermsService, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderInviteController, useServiceProviderInviteService, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionPlanController, useSubscriptionPlanRepo, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitorPersonRepo, visitorPersonService, visitorType, visitors_namespace_collection, wallConfig, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
|
package/dist/index.js
CHANGED
|
@@ -6121,6 +6121,7 @@ __export(src_exports, {
|
|
|
6121
6121
|
building_units_namespace_collection: () => building_units_namespace_collection,
|
|
6122
6122
|
buildings_namespace_collection: () => buildings_namespace_collection,
|
|
6123
6123
|
bulletin_boards_namespace_collection: () => bulletin_boards_namespace_collection,
|
|
6124
|
+
callerId: () => callerId3,
|
|
6124
6125
|
cameraBaseUrl: () => cameraBaseUrl,
|
|
6125
6126
|
cameraCapabilitiesFor: () => cameraCapabilitiesFor,
|
|
6126
6127
|
cameraDevices: () => cameraDevices,
|
|
@@ -19317,8 +19318,8 @@ var import_node_server_utils57 = require("@7365admin1/node-server-utils");
|
|
|
19317
19318
|
|
|
19318
19319
|
// src/services/member.service.ts
|
|
19319
19320
|
var import_node_server_utils46 = require("@7365admin1/node-server-utils");
|
|
19320
|
-
async function requireStaffCaller(
|
|
19321
|
-
if (!await isSuperAdmin(
|
|
19321
|
+
async function requireStaffCaller(callerId5, what) {
|
|
19322
|
+
if (!await isSuperAdmin(callerId5)) {
|
|
19322
19323
|
throw new import_node_server_utils46.UnauthorizedError(
|
|
19323
19324
|
`Only Seven365 staff can ${what}.`
|
|
19324
19325
|
);
|
|
@@ -19406,14 +19407,14 @@ function useMemberService() {
|
|
|
19406
19407
|
siteId,
|
|
19407
19408
|
siteName,
|
|
19408
19409
|
onboardingRequired,
|
|
19409
|
-
callerId:
|
|
19410
|
+
callerId: callerId5
|
|
19410
19411
|
}) {
|
|
19411
19412
|
if (app === PLATFORM_STAFF_MEMBER_TYPE) {
|
|
19412
|
-
await requireStaffCaller(
|
|
19413
|
+
await requireStaffCaller(callerId5, "create a Seven365 staff membership");
|
|
19413
19414
|
}
|
|
19414
19415
|
const targetRole = roleId ? await getRoleById(roleId) : null;
|
|
19415
19416
|
if (targetRole?.type === PLATFORM_STAFF_MEMBER_TYPE) {
|
|
19416
|
-
await requireStaffCaller(
|
|
19417
|
+
await requireStaffCaller(callerId5, "assign a Seven365 staff role");
|
|
19417
19418
|
}
|
|
19418
19419
|
const session = import_node_server_utils46.useAtlas.getClient()?.startSession();
|
|
19419
19420
|
session?.startTransaction();
|
|
@@ -19465,10 +19466,10 @@ function useMemberService() {
|
|
|
19465
19466
|
session?.endSession();
|
|
19466
19467
|
}
|
|
19467
19468
|
}
|
|
19468
|
-
async function updateRoleById(id, role, type, org,
|
|
19469
|
+
async function updateRoleById(id, role, type, org, callerId5) {
|
|
19469
19470
|
const newRole = await getRoleById(role);
|
|
19470
19471
|
if (newRole?.type === PLATFORM_STAFF_MEMBER_TYPE) {
|
|
19471
|
-
await requireStaffCaller(
|
|
19472
|
+
await requireStaffCaller(callerId5, "assign a Seven365 staff role");
|
|
19472
19473
|
}
|
|
19473
19474
|
const owner = await getOwnerRolesByTypeOrg(type, org);
|
|
19474
19475
|
if (!owner.length) {
|
|
@@ -37486,10 +37487,18 @@ function useChatRepo() {
|
|
|
37486
37487
|
|
|
37487
37488
|
// src/controllers/chat.controller.ts
|
|
37488
37489
|
var import_node_server_utils104 = require("@7365admin1/node-server-utils");
|
|
37490
|
+
function callerId3(user) {
|
|
37491
|
+
const id = (user?.user ?? user?._id)?.toString?.();
|
|
37492
|
+
return id ?? "";
|
|
37493
|
+
}
|
|
37489
37494
|
function useChatController() {
|
|
37490
37495
|
const { createChat: _createChat } = useChatRepo();
|
|
37491
37496
|
async function createChat(req, res, next) {
|
|
37492
|
-
const
|
|
37497
|
+
const { createdBy: _ignoredBody, ...rest } = req.body ?? {};
|
|
37498
|
+
const payload = {
|
|
37499
|
+
...rest,
|
|
37500
|
+
createdBy: callerId3(req.user)
|
|
37501
|
+
};
|
|
37493
37502
|
const { error } = chatSchema.validate(payload);
|
|
37494
37503
|
if (error) {
|
|
37495
37504
|
import_node_server_utils104.logger.log({ level: "error", message: error.message });
|
|
@@ -41200,7 +41209,7 @@ function useSiteCameraController() {
|
|
|
41200
41209
|
findOne: _findOne
|
|
41201
41210
|
} = useSiteCameraRepo();
|
|
41202
41211
|
const { authorizeSite, entitleSite } = useCameraViewService();
|
|
41203
|
-
function
|
|
41212
|
+
function callerId5(req) {
|
|
41204
41213
|
const user = req.user;
|
|
41205
41214
|
return user?.user?.toString?.() || user?._id?.toString?.();
|
|
41206
41215
|
}
|
|
@@ -41209,7 +41218,7 @@ function useSiteCameraController() {
|
|
|
41209
41218
|
try {
|
|
41210
41219
|
await authorizeSite({
|
|
41211
41220
|
siteId,
|
|
41212
|
-
userId:
|
|
41221
|
+
userId: callerId5(params.req),
|
|
41213
41222
|
permissions: cameraManagePermissions(params.type)
|
|
41214
41223
|
});
|
|
41215
41224
|
} catch (error) {
|
|
@@ -41223,7 +41232,7 @@ function useSiteCameraController() {
|
|
|
41223
41232
|
const status = params.value?.status;
|
|
41224
41233
|
if (typeof status !== "string" || !status.trim())
|
|
41225
41234
|
return null;
|
|
41226
|
-
const id =
|
|
41235
|
+
const id = callerId5(params.req);
|
|
41227
41236
|
if (!id || !await isSuperAdmin(id))
|
|
41228
41237
|
return null;
|
|
41229
41238
|
return id;
|
|
@@ -41296,7 +41305,7 @@ function useSiteCameraController() {
|
|
|
41296
41305
|
const vehicle = await _add(value);
|
|
41297
41306
|
await recordConsoleAction({
|
|
41298
41307
|
action: "camera.added" /* CAMERA_ADDED */,
|
|
41299
|
-
actor:
|
|
41308
|
+
actor: callerId5(req) ?? "",
|
|
41300
41309
|
target: String(vehicle?._id ?? ""),
|
|
41301
41310
|
targetType: "camera" /* CAMERA */,
|
|
41302
41311
|
after: pickAuditFields("camera.added" /* CAMERA_ADDED */, value)
|
|
@@ -41397,7 +41406,7 @@ function useSiteCameraController() {
|
|
|
41397
41406
|
const limit = value.limit ? parseInt(value.limit) : 10;
|
|
41398
41407
|
try {
|
|
41399
41408
|
try {
|
|
41400
|
-
await entitleSite({ siteId: site, userId:
|
|
41409
|
+
await entitleSite({ siteId: site, userId: callerId5(req) });
|
|
41401
41410
|
} catch (error2) {
|
|
41402
41411
|
if (error2 instanceof import_node_server_utils115.NotFoundError) {
|
|
41403
41412
|
throw new import_node_server_utils115.NotFoundError("Site not found.");
|
|
@@ -41460,7 +41469,7 @@ function useSiteCameraController() {
|
|
|
41460
41469
|
} else {
|
|
41461
41470
|
await recordConsoleAction({
|
|
41462
41471
|
action: "camera.updated" /* CAMERA_UPDATED */,
|
|
41463
|
-
actor:
|
|
41472
|
+
actor: callerId5(req) ?? "",
|
|
41464
41473
|
target: id,
|
|
41465
41474
|
targetType: "camera" /* CAMERA */,
|
|
41466
41475
|
before: pickAuditFields("camera.updated" /* CAMERA_UPDATED */, camera),
|
|
@@ -41497,7 +41506,7 @@ function useSiteCameraController() {
|
|
|
41497
41506
|
const message = await _deleteById(id);
|
|
41498
41507
|
await recordConsoleAction({
|
|
41499
41508
|
action: "camera.removed" /* CAMERA_REMOVED */,
|
|
41500
|
-
actor:
|
|
41509
|
+
actor: callerId5(req) ?? "",
|
|
41501
41510
|
target: id,
|
|
41502
41511
|
targetType: "camera" /* CAMERA */,
|
|
41503
41512
|
before: pickAuditFields("camera.removed" /* CAMERA_REMOVED */, camera)
|
|
@@ -41531,7 +41540,7 @@ function useCameraViewController() {
|
|
|
41531
41540
|
movePtz,
|
|
41532
41541
|
testCameraAddress
|
|
41533
41542
|
} = useCameraViewService();
|
|
41534
|
-
function
|
|
41543
|
+
function callerId5(req) {
|
|
41535
41544
|
const user = req.user;
|
|
41536
41545
|
return user?.user?.toString?.() || user?._id?.toString?.();
|
|
41537
41546
|
}
|
|
@@ -41539,7 +41548,7 @@ function useCameraViewController() {
|
|
|
41539
41548
|
try {
|
|
41540
41549
|
const { buffer, cached, stream, fellBackToMain } = await getSnapshot({
|
|
41541
41550
|
cameraId: String(req.params.id ?? ""),
|
|
41542
|
-
userId:
|
|
41551
|
+
userId: callerId5(req)
|
|
41543
41552
|
});
|
|
41544
41553
|
res.setHeader("Content-Type", "image/jpeg");
|
|
41545
41554
|
res.setHeader(
|
|
@@ -41558,7 +41567,7 @@ function useCameraViewController() {
|
|
|
41558
41567
|
try {
|
|
41559
41568
|
const result = await captureSnapshot({
|
|
41560
41569
|
cameraId: String(req.params.id ?? ""),
|
|
41561
|
-
userId:
|
|
41570
|
+
userId: callerId5(req)
|
|
41562
41571
|
});
|
|
41563
41572
|
res.status(201).json(result);
|
|
41564
41573
|
} catch (error) {
|
|
@@ -41569,7 +41578,7 @@ function useCameraViewController() {
|
|
|
41569
41578
|
try {
|
|
41570
41579
|
const result = await getStatus({
|
|
41571
41580
|
cameraId: String(req.params.id ?? ""),
|
|
41572
|
-
userId:
|
|
41581
|
+
userId: callerId5(req)
|
|
41573
41582
|
});
|
|
41574
41583
|
res.json(result);
|
|
41575
41584
|
} catch (error) {
|
|
@@ -41590,7 +41599,7 @@ function useCameraViewController() {
|
|
|
41590
41599
|
try {
|
|
41591
41600
|
const result = await movePtz({
|
|
41592
41601
|
cameraId: String(req.params.id ?? ""),
|
|
41593
|
-
userId:
|
|
41602
|
+
userId: callerId5(req),
|
|
41594
41603
|
action: value.action,
|
|
41595
41604
|
code: value.code,
|
|
41596
41605
|
speed: value.speed
|
|
@@ -41604,7 +41613,7 @@ function useCameraViewController() {
|
|
|
41604
41613
|
try {
|
|
41605
41614
|
const result = await getSiteWall({
|
|
41606
41615
|
siteId: String(req.params.siteId ?? ""),
|
|
41607
|
-
userId:
|
|
41616
|
+
userId: callerId5(req)
|
|
41608
41617
|
});
|
|
41609
41618
|
res.json(result);
|
|
41610
41619
|
} catch (error) {
|
|
@@ -41617,7 +41626,7 @@ function useCameraViewController() {
|
|
|
41617
41626
|
try {
|
|
41618
41627
|
const result = await getSiteHealth({
|
|
41619
41628
|
siteId: String(req.params.siteId ?? ""),
|
|
41620
|
-
userId:
|
|
41629
|
+
userId: callerId5(req),
|
|
41621
41630
|
cameraIds: ids2
|
|
41622
41631
|
});
|
|
41623
41632
|
res.json(result);
|
|
@@ -41641,7 +41650,7 @@ function useCameraViewController() {
|
|
|
41641
41650
|
try {
|
|
41642
41651
|
const result = await testCameraAddress({
|
|
41643
41652
|
siteId: String(req.params.siteId ?? ""),
|
|
41644
|
-
userId:
|
|
41653
|
+
userId: callerId5(req),
|
|
41645
41654
|
...value
|
|
41646
41655
|
});
|
|
41647
41656
|
res.json(result);
|
|
@@ -50049,10 +50058,10 @@ function useHidAmicoService() {
|
|
|
50049
50058
|
await client.logout();
|
|
50050
50059
|
}
|
|
50051
50060
|
}
|
|
50052
|
-
async function resolveVisitorQrGateReaders(siteId,
|
|
50061
|
+
async function resolveVisitorQrGateReaders(siteId, callerId5, fallbackReaderId, issuer) {
|
|
50053
50062
|
const [site, memberships] = await Promise.all([
|
|
50054
50063
|
siteRepo.getSiteById(siteId),
|
|
50055
|
-
memberRepo.getAllByUserId(
|
|
50064
|
+
memberRepo.getAllByUserId(callerId5)
|
|
50056
50065
|
]);
|
|
50057
50066
|
const hasResidentMembership = memberships.some((membership) => String(membership.siteId || "") === siteId && membership.status !== "deleted" && membership.status !== "inactive" && membership.type === "resident");
|
|
50058
50067
|
const hasActiveMembership = memberships.some((membership) => membership.status !== "deleted" && membership.status !== "inactive");
|
|
@@ -50067,8 +50076,8 @@ function useHidAmicoService() {
|
|
|
50067
50076
|
const gateReaderIds = configuredGateIds.filter((readerId) => typeof readerId === "string" && /^[a-f0-9]{24}$/i.test(readerId)).map(String);
|
|
50068
50077
|
return [...new Set(gateReaderIds.length ? gateReaderIds : [fallbackReaderId])];
|
|
50069
50078
|
}
|
|
50070
|
-
async function issueVisitorQr(readerId, value,
|
|
50071
|
-
if (!
|
|
50079
|
+
async function issueVisitorQr(readerId, value, callerId5) {
|
|
50080
|
+
if (!callerId5) {
|
|
50072
50081
|
return issueVisitorQrAtReader(readerId, value);
|
|
50073
50082
|
}
|
|
50074
50083
|
const visitor = await visitorRepo.getVisitorTransactionById(value.visitorId);
|
|
@@ -50078,7 +50087,7 @@ function useHidAmicoService() {
|
|
|
50078
50087
|
}
|
|
50079
50088
|
const gateReaderIds = await resolveVisitorQrGateReaders(
|
|
50080
50089
|
visitorSiteId,
|
|
50081
|
-
|
|
50090
|
+
callerId5,
|
|
50082
50091
|
readerId,
|
|
50083
50092
|
value.issuer
|
|
50084
50093
|
);
|
|
@@ -52460,7 +52469,7 @@ function useVisitorTransactionService() {
|
|
|
52460
52469
|
unitName: unit?.name,
|
|
52461
52470
|
org: inviter?.org?.toString(),
|
|
52462
52471
|
site: inviter?.site.toString(),
|
|
52463
|
-
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "
|
|
52472
|
+
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "approved" /* APPROVED */,
|
|
52464
52473
|
inviterId: userId
|
|
52465
52474
|
};
|
|
52466
52475
|
const leadId = new import_mongodb86.ObjectId();
|
|
@@ -84530,7 +84539,7 @@ function useVerificationServiceV2() {
|
|
|
84530
84539
|
// src/controllers/verification-v2.controller.ts
|
|
84531
84540
|
var import_node_server_utils263 = require("@7365admin1/node-server-utils");
|
|
84532
84541
|
var import_joi141 = __toESM(require("joi"));
|
|
84533
|
-
function
|
|
84542
|
+
function callerId4(req) {
|
|
84534
84543
|
const user = req.user;
|
|
84535
84544
|
return user?.user?.toString?.() || user?._id?.toString?.();
|
|
84536
84545
|
}
|
|
@@ -84626,7 +84635,7 @@ function useVerificationControllerV2() {
|
|
|
84626
84635
|
await _createServiceProviderInvite({
|
|
84627
84636
|
...value,
|
|
84628
84637
|
// From the session, never the body — see the v1 controller.
|
|
84629
|
-
invitedBy:
|
|
84638
|
+
invitedBy: callerId4(req)
|
|
84630
84639
|
});
|
|
84631
84640
|
const cookieOptions = {
|
|
84632
84641
|
domain: DOMAIN,
|
|
@@ -84811,7 +84820,7 @@ function useServiceProviderInviteController() {
|
|
|
84811
84820
|
decline: _decline,
|
|
84812
84821
|
getForProvider: _getForProvider
|
|
84813
84822
|
} = useServiceProviderInviteService();
|
|
84814
|
-
function
|
|
84823
|
+
function callerId5(req) {
|
|
84815
84824
|
const user = req.user;
|
|
84816
84825
|
return user?.user?.toString?.() || user?._id?.toString?.();
|
|
84817
84826
|
}
|
|
@@ -84836,7 +84845,7 @@ function useServiceProviderInviteController() {
|
|
|
84836
84845
|
const statuses = String(value.status ?? "").split(",").map((s) => s.trim()).filter(Boolean);
|
|
84837
84846
|
res.json(
|
|
84838
84847
|
await listForCaller({
|
|
84839
|
-
userId:
|
|
84848
|
+
userId: callerId5(req),
|
|
84840
84849
|
orgId: value.org || void 0,
|
|
84841
84850
|
statuses,
|
|
84842
84851
|
search: value.search || "",
|
|
@@ -84869,7 +84878,7 @@ function useServiceProviderInviteController() {
|
|
|
84869
84878
|
const { error, value } = schema2.validate(req.query);
|
|
84870
84879
|
if (error)
|
|
84871
84880
|
throw new import_node_server_utils264.BadRequestError(`Invalid input: ${error.message}`);
|
|
84872
|
-
res.json(await listApprovals({ ...value, userId:
|
|
84881
|
+
res.json(await listApprovals({ ...value, userId: callerId5(req) }));
|
|
84873
84882
|
} catch (error) {
|
|
84874
84883
|
import_node_server_utils264.logger.log({ level: "error", message: `${error.message}` });
|
|
84875
84884
|
next(error);
|
|
@@ -84877,14 +84886,14 @@ function useServiceProviderInviteController() {
|
|
|
84877
84886
|
}
|
|
84878
84887
|
async function pendingApprovalCount(req, res, next) {
|
|
84879
84888
|
try {
|
|
84880
|
-
res.json(await approvalCount({ userId:
|
|
84889
|
+
res.json(await approvalCount({ userId: callerId5(req) }));
|
|
84881
84890
|
} catch (error) {
|
|
84882
84891
|
next(error);
|
|
84883
84892
|
}
|
|
84884
84893
|
}
|
|
84885
84894
|
async function approve(req, res, next) {
|
|
84886
84895
|
try {
|
|
84887
|
-
res.json(await _approve({ id: inviteId(req), userId:
|
|
84896
|
+
res.json(await _approve({ id: inviteId(req), userId: callerId5(req) }));
|
|
84888
84897
|
} catch (error) {
|
|
84889
84898
|
import_node_server_utils264.logger.log({ level: "error", message: `${error.message}` });
|
|
84890
84899
|
next(error);
|
|
@@ -84903,7 +84912,7 @@ function useServiceProviderInviteController() {
|
|
|
84903
84912
|
res.json(
|
|
84904
84913
|
await _reject({
|
|
84905
84914
|
id: inviteId(req),
|
|
84906
|
-
userId:
|
|
84915
|
+
userId: callerId5(req),
|
|
84907
84916
|
reason: value.reason
|
|
84908
84917
|
})
|
|
84909
84918
|
);
|
|
@@ -84914,28 +84923,28 @@ function useServiceProviderInviteController() {
|
|
|
84914
84923
|
}
|
|
84915
84924
|
async function cancel(req, res, next) {
|
|
84916
84925
|
try {
|
|
84917
|
-
res.json(await _cancel({ id: inviteId(req), userId:
|
|
84926
|
+
res.json(await _cancel({ id: inviteId(req), userId: callerId5(req) }));
|
|
84918
84927
|
} catch (error) {
|
|
84919
84928
|
next(error);
|
|
84920
84929
|
}
|
|
84921
84930
|
}
|
|
84922
84931
|
async function resend(req, res, next) {
|
|
84923
84932
|
try {
|
|
84924
|
-
res.json(await _resend({ id: inviteId(req), userId:
|
|
84933
|
+
res.json(await _resend({ id: inviteId(req), userId: callerId5(req) }));
|
|
84925
84934
|
} catch (error) {
|
|
84926
84935
|
next(error);
|
|
84927
84936
|
}
|
|
84928
84937
|
}
|
|
84929
84938
|
async function remove(req, res, next) {
|
|
84930
84939
|
try {
|
|
84931
|
-
res.json(await _softDelete({ id: inviteId(req), userId:
|
|
84940
|
+
res.json(await _softDelete({ id: inviteId(req), userId: callerId5(req) }));
|
|
84932
84941
|
} catch (error) {
|
|
84933
84942
|
next(error);
|
|
84934
84943
|
}
|
|
84935
84944
|
}
|
|
84936
84945
|
async function decline(req, res, next) {
|
|
84937
84946
|
try {
|
|
84938
|
-
res.json(await _decline({ id: inviteId(req), userId:
|
|
84947
|
+
res.json(await _decline({ id: inviteId(req), userId: callerId5(req) }));
|
|
84939
84948
|
} catch (error) {
|
|
84940
84949
|
next(error);
|
|
84941
84950
|
}
|
|
@@ -84943,7 +84952,7 @@ function useServiceProviderInviteController() {
|
|
|
84943
84952
|
async function getOne(req, res, next) {
|
|
84944
84953
|
try {
|
|
84945
84954
|
res.json(
|
|
84946
|
-
await _getForProvider({ id: inviteId(req), userId:
|
|
84955
|
+
await _getForProvider({ id: inviteId(req), userId: callerId5(req) })
|
|
84947
84956
|
);
|
|
84948
84957
|
} catch (error) {
|
|
84949
84958
|
next(error);
|
|
@@ -91272,12 +91281,12 @@ function useNotificationController() {
|
|
|
91272
91281
|
markAllAsRead: _markAllAsRead,
|
|
91273
91282
|
getUnreadCount: _getUnreadCount
|
|
91274
91283
|
} = useNotificationRepo();
|
|
91275
|
-
function
|
|
91284
|
+
function callerId5(req) {
|
|
91276
91285
|
const user = req.user;
|
|
91277
91286
|
return user?.user?.toString?.() || user?._id?.toString?.() || "";
|
|
91278
91287
|
}
|
|
91279
91288
|
function inboxOwner(req, claimed) {
|
|
91280
|
-
const caller =
|
|
91289
|
+
const caller = callerId5(req);
|
|
91281
91290
|
if (!caller) {
|
|
91282
91291
|
throw new import_node_server_utils300.UnauthorizedError("Not authorized.");
|
|
91283
91292
|
}
|
|
@@ -91293,7 +91302,7 @@ function useNotificationController() {
|
|
|
91293
91302
|
return;
|
|
91294
91303
|
}
|
|
91295
91304
|
try {
|
|
91296
|
-
if (!await isSuperAdmin(
|
|
91305
|
+
if (!await isSuperAdmin(callerId5(req))) {
|
|
91297
91306
|
throw new import_node_server_utils300.UnauthorizedError("Not authorized.");
|
|
91298
91307
|
}
|
|
91299
91308
|
const inserted = await _addMany(value.to, {
|
|
@@ -91511,13 +91520,13 @@ function useNotificationPreferenceService() {
|
|
|
91511
91520
|
var import_node_server_utils302 = require("@7365admin1/node-server-utils");
|
|
91512
91521
|
function useNotificationPreferenceController() {
|
|
91513
91522
|
const { getForUser, updateForUser } = useNotificationPreferenceService();
|
|
91514
|
-
function
|
|
91523
|
+
function callerId5(req) {
|
|
91515
91524
|
const user = req.user;
|
|
91516
91525
|
return user?.user?.toString?.() || user?._id?.toString?.();
|
|
91517
91526
|
}
|
|
91518
91527
|
async function get(req, res, next) {
|
|
91519
91528
|
try {
|
|
91520
|
-
res.status(200).json({ data: await getForUser(
|
|
91529
|
+
res.status(200).json({ data: await getForUser(callerId5(req)) });
|
|
91521
91530
|
} catch (error) {
|
|
91522
91531
|
import_node_server_utils302.logger.log({ level: "error", message: error.message });
|
|
91523
91532
|
next(error);
|
|
@@ -91534,7 +91543,7 @@ function useNotificationPreferenceController() {
|
|
|
91534
91543
|
try {
|
|
91535
91544
|
res.status(200).json({
|
|
91536
91545
|
message: "success",
|
|
91537
|
-
data: await updateForUser(
|
|
91546
|
+
data: await updateForUser(callerId5(req), value.off)
|
|
91538
91547
|
});
|
|
91539
91548
|
} catch (err) {
|
|
91540
91549
|
import_node_server_utils302.logger.log({ level: "error", message: err.message });
|
|
@@ -91777,6 +91786,7 @@ function useNotificationPreferenceController() {
|
|
|
91777
91786
|
building_units_namespace_collection,
|
|
91778
91787
|
buildings_namespace_collection,
|
|
91779
91788
|
bulletin_boards_namespace_collection,
|
|
91789
|
+
callerId,
|
|
91780
91790
|
cameraBaseUrl,
|
|
91781
91791
|
cameraCapabilitiesFor,
|
|
91782
91792
|
cameraDevices,
|