@burdenoff/microfe-eventfullymanaged 2026.1123.5 → 2026.1124.1

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.
Files changed (90) hide show
  1. package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
  2. package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
  3. package/dist/eventfullymanaged/api/eventApi.js +1 -0
  4. package/dist/eventfullymanaged/api/eventApi.js.map +1 -1
  5. package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
  6. package/dist/eventfullymanaged/components/CampaignAudiencePicker.js +1 -1
  7. package/dist/eventfullymanaged/components/CampaignAudiencePicker.js.map +1 -1
  8. package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
  9. package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
  10. package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
  11. package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
  12. package/dist/eventfullymanaged/components/Pagination.js +7 -7
  13. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
  14. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
  15. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +253 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +260 -0
  23. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  24. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  25. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  26. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  27. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  28. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  29. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  30. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  31. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  33. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  35. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  36. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  37. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  38. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  39. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  40. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  41. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +155 -111
  42. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  44. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  46. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  48. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  50. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  52. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  54. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  56. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  58. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  59. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  60. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  62. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  63. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  64. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  65. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  66. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  67. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  68. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  69. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  70. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  71. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  72. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  73. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  74. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  75. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  76. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  77. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  78. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  79. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  80. package/dist/generated/wspace-operations.d.ts +383 -0
  81. package/dist/generated/wspace-operations.js +177 -11
  82. package/dist/generated/wspace-operations.js.map +1 -1
  83. package/dist/generated/wspace-types.d.ts +29809 -1503
  84. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  85. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  86. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  87. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  88. package/dist/utils/pageContext.js +5 -0
  89. package/dist/utils/pageContext.js.map +1 -1
  90. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"eventApi.js","names":["onMutationError","error","DASHBOARD_SUMMARY_QUERY","FINANCE_SUMMARY_QUERY","SPONSOR_ROI_REPORT_QUERY","EVENTS_QUERY","EVENT_PORTFOLIO_QUERY","VENUES_QUERY","VENUE_QUERY","SPONSORS_QUERY","SPONSORS_PORTFOLIO_TOTALS_QUERY","REGISTRATIONS_QUERY","ATTENDEES_QUERY","EVENT_SESSIONS_QUERY","SPEAKERS_QUERY","SPEAKER_QUERY","TICKET_TYPES_QUERY","PROMO_CODES_QUERY","EXHIBITORS_QUERY","EXHIBITOR_SUMMARY_QUERY","LEADS_QUERY","CHECKIN_RECORDS_QUERY","CHECK_IN_THROUGHPUT_QUERY","SESSION_CONFLICTS_QUERY","NETWORKING_PROFILES_QUERY","CHECKIN_STATIONS_QUERY","NETWORKING_MATCHES_QUERY","GENERATE_NETWORKING_MATCHES_MUTATION","SUGGESTED_CONNECTIONS_QUERY","RECOMMENDED_SESSIONS_QUERY","MEETINGS_QUERY","MEETING_QUERY","ANNOUNCEMENTS_QUERY","WORKFLOW_TEMPLATES_QUERY","AUTOMATION_RULES_QUERY","AUTOMATION_RULE_RUNS_QUERY","EVENT_TEMPLATES_QUERY","SAVE_EVENT_TEMPLATE_MUTATION","DELETE_EVENT_TEMPLATE_MUTATION","CREATE_EVENT_FROM_TEMPLATE_MUTATION","ATTENDEE_HISTORY_QUERY","COMMUNICATION_CAMPAIGNS_QUERY","ANALYTICS_SNAPSHOTS_QUERY","CREATE_VENUE_MUTATION","UPDATE_VENUE_MUTATION","CREATE_SPONSOR_MUTATION","UPDATE_SPONSOR_MUTATION","CREATE_FLOOR_PLAN_MUTATION","UPDATE_FLOOR_PLAN_MUTATION","DELETE_FLOOR_PLAN_MUTATION","CREATE_EVENT_MUTATION","UPDATE_EVENT_MUTATION","UPSERT_ANNOUNCEMENT_MUTATION","UPSERT_WORKFLOW_TEMPLATE_MUTATION","UPSERT_AUTOMATION_RULE_MUTATION","DELETE_WORKFLOW_TEMPLATE_MUTATION","DELETE_AUTOMATION_RULE_MUTATION","UPSERT_COMMUNICATION_CAMPAIGN_MUTATION","UPSERT_ANALYTICS_SNAPSHOT_MUTATION","useDashboardSummaryQuery","useQuery","useFinanceSummaryQuery","options","useSponsorRoiReportQuery","useEventsQuery","useEventPortfolioQuery","useVenuesQuery","vars","variables","useVenueQuery","id","useSponsorsQuery","useSponsorsPortfolioTotalsQuery","useRegistrationsQuery","useAttendeesQuery","useEventSessionsQuery","useSpeakersQuery","useSpeakerQuery","useTicketTypesQuery","usePromoCodesQuery","useExhibitorsQuery","useLeadsQuery","useCheckInStationsQuery","useCheckInRecordsQuery","useCheckInThroughputQuery","useSessionConflictsQuery","useNetworkingProfilesQuery","useNetworkingMatchesQuery","useSuggestedConnectionsQuery","useRecommendedSessionsQuery","useMeetingsQuery","useMeetingQuery","useAnnouncementsQuery","useWorkflowTemplatesQuery","useAutomationRulesQuery","useCommunicationCampaignsQuery","useAnalyticsSnapshotsQuery","useCreateVenueMutation","useMutation","useUpdateVenueMutation","useCreateSponsorMutation","useUpdateSponsorMutation","useCreateFloorPlanMutation","useUpdateFloorPlanMutation","useDeleteFloorPlanMutation","useCreateEventMutation","useUpdateEventMutation","useUpsertAnnouncementMutation","useUpsertWorkflowTemplateMutation","useUpsertAutomationRuleMutation","useDeleteWorkflowTemplateMutation","useDeleteAutomationRuleMutation","useAutomationRuleRunsQuery","useEventTemplatesQuery","useSaveEventTemplateMutation","useDeleteEventTemplateMutation","useCreateEventFromTemplateMutation","useAttendeeHistoryQuery","skip","useUpsertCommunicationCampaignMutation","useUpsertAnalyticsSnapshotMutation","EVENT_QUERY","SPONSOR_QUERY","ENTITY_TAGS_QUERY","AVAILABLE_TAGS_QUERY","TAG_ENTITY_MUTATION","UNTAG_ENTITY_MUTATION","CREATE_ENTITY_TAG_MUTATION","EVENT_SESSION_FIELDS","CREATE_EVENT_SESSION_MUTATION","UPDATE_EVENT_SESSION_MUTATION","DELETE_EVENT_SESSION_MUTATION","SPEAKER_FIELDS","CREATE_SPEAKER_MUTATION","UPDATE_SPEAKER_MUTATION","DELETE_SPEAKER_MUTATION","TICKET_TYPE_FIELDS","CREATE_TICKET_TYPE_MUTATION","UPDATE_TICKET_TYPE_MUTATION","DELETE_TICKET_TYPE_MUTATION","PROMO_CODE_FIELDS","CREATE_PROMO_CODE_MUTATION","UPDATE_PROMO_CODE_MUTATION","DELETE_PROMO_CODE_MUTATION","REGISTRATION_FIELDS","CREATE_REGISTRATION_MUTATION","UPDATE_REGISTRATION_MUTATION","DELETE_REGISTRATION_MUTATION","ATTENDEE_FIELDS","CREATE_ATTENDEE_MUTATION","UPDATE_ATTENDEE_MUTATION","DELETE_ATTENDEE_MUTATION","EXHIBITOR_FIELDS","EXHIBITOR_QUERY","CREATE_EXHIBITOR_MUTATION","UPDATE_EXHIBITOR_MUTATION","DELETE_EXHIBITOR_MUTATION","LEAD_FIELDS","CREATE_LEAD_MUTATION","CHECKIN_STATION_FIELDS","CREATE_CHECKIN_STATION_MUTATION","UPDATE_CHECKIN_STATION_MUTATION","DELETE_CHECKIN_STATION_MUTATION","CHECKIN_RECORD_FIELDS","UPDATE_CHECKIN_RECORD_MUTATION","DELETE_CHECKIN_RECORD_MUTATION","SCAN_CHECK_IN_MUTATION","CREATE_MANUAL_CHECKIN_MUTATION","KIOSK_SEARCH_ATTENDEES_QUERY","CHECK_IN_TOKEN_QUERY","BADGE_PDF_QUERY","BADGE_HTML_QUERY","ENQUEUE_BADGE_PRINT_MUTATION","downloadBase64Pdf","bytes","base64","buffer","i","blob","url","link","filename","VIRTUAL_PARTICIPANT_FIELDS","VIRTUAL_SESSION_FIELDS","VIRTUAL_SESSION_QUERY","HOST_VIRTUAL_SESSION_MUTATION","JOIN_VIRTUAL_SESSION_MUTATION","LEAVE_VIRTUAL_SESSION_MUTATION","END_VIRTUAL_SESSION_MUTATION","SET_VIRTUAL_MUTE_MUTATION","SET_VIRTUAL_VIDEO_MUTATION","PROMOTE_VIRTUAL_PRESENTER_MUTATION","SEND_VIRTUAL_SIGNAL_MUTATION","VIRTUAL_SIGNAL_SUBSCRIPTION_SDL","VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL","INTEGRATION_CONNECTOR_FIELDS","INTEGRATION_SYNC_RUN_FIELDS","INTEGRATION_CONNECTORS_QUERY","INTEGRATION_SYNC_RUNS_QUERY","CREATE_INTEGRATION_CONNECTOR_MUTATION","DELETE_INTEGRATION_CONNECTOR_MUTATION","SYNC_ATTENDEES_TO_CONNECTOR_MUTATION","NETWORKING_PROFILE_FIELDS","CREATE_NETWORKING_PROFILE_MUTATION","UPDATE_NETWORKING_PROFILE_MUTATION","NETWORKING_MATCH_FIELDS","MEETING_FIELDS","CREATE_MEETING_MUTATION","UPDATE_MEETING_MUTATION","DELETE_MEETING_MUTATION","DELETE_EVENT_MUTATION","DELETE_VENUE_MUTATION","DELETE_SPONSOR_MUTATION","PUBLISH_ANNOUNCEMENT_MUTATION","SEND_COMMUNICATION_CAMPAIGN_MUTATION","useEventQuery","useSponsorQuery","useExhibitorQuery","useExhibitorSummaryQuery","useCheckInTokenQuery","registrationId","useEntityTagsQuery","useAvailableTagsQuery","CAMPAIGN_AUDIENCE_TAGS_QUERY","useCampaignAudienceTagsQuery","useTagEntityMutation","useUntagEntityMutation","useCreateEntityTagMutation","useCreateEventSessionMutation","useUpdateEventSessionMutation","useDeleteEventSessionMutation","useCreateSpeakerMutation","useUpdateSpeakerMutation","useDeleteSpeakerMutation","useCreateTicketTypeMutation","useUpdateTicketTypeMutation","useDeleteTicketTypeMutation","useCreatePromoCodeMutation","useUpdatePromoCodeMutation","useDeletePromoCodeMutation","useCreateRegistrationMutation","useUpdateRegistrationMutation","useDeleteRegistrationMutation","useCreateAttendeeMutation","useUpdateAttendeeMutation","useDeleteAttendeeMutation","useCreateExhibitorMutation","useUpdateExhibitorMutation","useDeleteExhibitorMutation","useCreateLeadMutation","useCreateCheckInStationMutation","useUpdateCheckInStationMutation","useDeleteCheckInStationMutation","useUpdateCheckInRecordMutation","useDeleteCheckInRecordMutation","useScanCheckInMutation","useCreateManualCheckInMutation","useKioskSearchAttendeesQuery","useEnqueueBadgePrintMutation","useCreateNetworkingProfileMutation","useUpdateNetworkingProfileMutation","useGenerateNetworkingMatchesMutation","useCreateMeetingMutation","useUpdateMeetingMutation","useDeleteMeetingMutation","useDeleteEventMutation","useDeleteVenueMutation","useDeleteSponsorMutation","usePublishAnnouncementMutation","useSendCommunicationCampaignMutation","useVirtualSessionQuery","useHostVirtualSessionMutation","useJoinVirtualSessionMutation","useLeaveVirtualSessionMutation","useEndVirtualSessionMutation","useSetVirtualMuteMutation","useSetVirtualVideoMutation","usePromoteVirtualPresenterMutation","useSendVirtualSignalMutation","useIntegrationConnectorsQuery","useIntegrationSyncRunsQuery","useCreateIntegrationConnectorMutation","useDeleteIntegrationConnectorMutation","useSyncAttendeesToConnectorMutation"],"sources":["../../../src/eventfullymanaged/api/eventApi.ts"],"sourcesContent":["import { gql, type ErrorLike } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\n\nimport { notify } from '../lib/toast';\n\n/**\n * Shared mutation error sink. The gateway client runs with `errorPolicy: 'all'`,\n * so in-band GraphQL errors also invoke `onError`; wiring this on every write\n * mutation guarantees a failure is always surfaced to the user even if a caller\n * forgets to inspect the resolved result.\n */\nconst onMutationError = (error: ErrorLike): void => {\n notify.error('Something went wrong', error.message || 'Please try again.');\n};\n\nexport type RegistrationStatusCountGql = { status: string; count: number };\n\ntype DashboardSummaryResponse = {\n dashboardSummary: {\n totalEvents: number;\n activeEvents: number;\n totalRegistrations: number;\n totalAttendees: number;\n totalVenues: number;\n totalSponsors: number;\n upcomingSessions: number;\n checkedInRegistrations: number;\n registrationsByStatus: RegistrationStatusCountGql[];\n };\n};\n\nexport type CurrencyAmountGql = { currency: string; amount: string };\n\nexport type EventFinanceBreakdownGql = {\n event: EventGql;\n revenueByCurrency: CurrencyAmountGql[];\n refundsByCurrency: CurrencyAmountGql[];\n netRevenueByCurrency: CurrencyAmountGql[];\n paidRegistrations: number;\n refundedRegistrations: number;\n};\n\ntype FinanceSummaryResponse = {\n financeSummary: {\n revenueByCurrency: CurrencyAmountGql[];\n refundsByCurrency: CurrencyAmountGql[];\n netRevenueByCurrency: CurrencyAmountGql[];\n byEvent: EventFinanceBreakdownGql[];\n registrationsTotal: number;\n ticketTypesTotal: number;\n promoCodesTotal: number;\n };\n};\n\nexport type SponsorRoiGql = {\n sponsorId: string;\n name: string;\n level: string;\n contractValue: number;\n currency?: string | null;\n leadsCaptured: number;\n leadsTarget: number;\n costPerLead: number | null;\n};\n\ntype SponsorRoiReportResponse = {\n sponsorRoiReport: {\n items: SponsorRoiGql[];\n totalSponsors: number;\n totalLeadsCaptured: number;\n };\n};\n\nexport type EventGql = {\n id: string;\n name: string;\n};\n\nexport type VenueGql = {\n id: string;\n workspaceId: string;\n name: string;\n description?: string | null;\n addressLine1?: string | null;\n city?: string | null;\n state?: string | null;\n country?: string | null;\n postalCode?: string | null;\n capacity?: number | null;\n amenities: string[];\n pricing?: Record<string, unknown> | null;\n openingHours?: Record<string, unknown> | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type FloorPlanGql = {\n id: string;\n venueId: string;\n name: string;\n imageUrl?: string | null;\n dimensions?: Record<string, unknown> | null;\n interactiveAreas?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type TicketTypeGql = {\n id: string;\n eventId: string;\n name: string;\n description?: string | null;\n price: string;\n currency: string;\n capacity?: number | null;\n soldCount: number;\n salesStartAt?: string | null;\n salesEndAt?: string | null;\n isActive: boolean;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type PromoCodeGql = {\n id: string;\n eventId: string;\n code: string;\n description?: string | null;\n discountType: string;\n discountValue: string;\n maxUses?: number | null;\n usedCount: number;\n startsAt?: string | null;\n endsAt?: string | null;\n isActive: boolean;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type ExhibitorGql = {\n id: string;\n eventId: string;\n name: string;\n boothCode?: string | null;\n category?: string | null;\n contactName?: string | null;\n contactEmail?: string | null;\n website?: string | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n // BOFF-11370 — server-computed, not capped by any client-side lead fetch.\n leadCount?: number;\n};\n\nexport type LeadGql = {\n id: string;\n eventId: string;\n sponsorId?: string | null;\n exhibitorId?: string | null;\n attendeeName: string;\n attendeeEmail: string;\n score?: number | null;\n status: string;\n notes?: string | null;\n capturedAt: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type CheckInRecordGql = {\n id: string;\n eventId: string;\n stationId?: string | null;\n attendeeId?: string | null;\n registrationId?: string | null;\n method: string;\n status: string;\n direction: string;\n recordedAt: string;\n // BOFF-4330 — the offline-queue idempotency key this scan was recorded\n // (or synced) with, if any.\n clientScanId?: string | null;\n metadata?: Record<string, unknown> | null;\n // BOFF-11379 — true when this response was an idempotent replay of an\n // existing record rather than a brand-new check-in.\n alreadyCheckedIn?: boolean | null;\n};\n\nexport type NetworkingProfileGql = {\n id: string;\n eventId: string;\n attendeeId: string;\n interests: string[];\n lookingFor: string[];\n industry?: string | null;\n role?: string | null;\n visibility: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type SponsorGql = {\n id: string;\n eventId: string;\n name: string;\n level: string;\n logoUrl?: string | null;\n website?: string | null;\n contactName?: string | null;\n contactEmail?: string | null;\n contactPhone?: string | null;\n currency?: string | null;\n // BOFF-11360: `leadsTarget` is the manual goal; `leads` is retained only\n // to read pre-existing rows saved before the split — never written by\n // the form anymore.\n metrics?: { value?: number; leads?: number; leadsTarget?: number } | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type EventDetailGql = {\n id: string;\n workspaceId: string;\n name: string;\n description?: string | null;\n type: string;\n status: string;\n timezone: string;\n startAt: string;\n endAt: string;\n visibility: string;\n capacity?: number | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type EventSessionGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n venueId?: string | null;\n title: string;\n description?: string | null;\n sessionType: string;\n track?: string | null;\n startsAt: string;\n endsAt: string;\n capacity?: number | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type SpeakerGql = {\n id: string;\n workspaceId: string;\n fullName: string;\n title?: string | null;\n organization?: string | null;\n email?: string | null;\n phone?: string | null;\n bio?: string | null;\n avatarUrl?: string | null;\n socialLinks?: Record<string, unknown> | null;\n};\n\nexport type RegistrationGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n attendeeId?: string | null;\n ticketTypeId?: string | null;\n status: string;\n quantity: number;\n totalAmount?: string | null;\n promoCodeId?: string | null;\n currency: string;\n registeredAt: string;\n checkedInAt?: string | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type AttendeeGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n fullName: string;\n email: string;\n phone?: string | null;\n company?: string | null;\n role?: string | null;\n profile?: Record<string, unknown> | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type CheckInStationGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n name: string;\n code: string;\n location?: string | null;\n isActive: boolean;\n kioskConfig?: Record<string, unknown> | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type MeetingGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n title: string;\n startsAt: string;\n endsAt: string;\n location?: string | null;\n notes?: string | null;\n sourceProfileId?: string | null;\n targetProfileId?: string | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type NetworkingMatchGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n sourceProfileId: string;\n targetProfileId: string;\n score: number;\n reason?: string | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type SessionRecommendationEmptyReason = 'NO_PROFILE' | 'NO_INTERESTS' | 'NO_UPCOMING_SESSIONS' | 'NO_SIGNAL';\n\nexport type SessionRecommendationGql = {\n score: number;\n reason: string;\n matchedTopics: string[];\n seatsRemaining?: number | null;\n session: {\n id: string;\n eventId: string;\n title: string;\n sessionType: string;\n track?: string | null;\n startsAt: string;\n endsAt: string;\n capacity?: number | null;\n status: string;\n };\n};\n\nexport type SimpleEntityGql = {\n id: string;\n workspaceId: string;\n eventId?: string | null;\n name?: string | null;\n title?: string | null;\n status?: string | null;\n metadata?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type EntityTagInfoGql = {\n id: string;\n key?: string | null;\n label?: string | null;\n color?: string | null;\n};\n\nexport type EntityTagAssignmentGql = {\n id: string;\n tagId: string;\n entityId: string;\n entityType: string;\n source: string;\n tagInfo?: EntityTagInfoGql | null;\n};\n\nexport type AvailableTagGql = {\n id: string;\n key: string;\n label: string;\n color?: string | null;\n};\n\ntype EventsResponse = { events: { total: number; items: EventGql[] } };\nexport type EventLifecycle = 'UPCOMING' | 'LIVE' | 'PAST';\nexport type PortfolioEventGql = {\n id: string;\n workspaceId: string;\n name: string;\n type?: string | null;\n status?: string | null;\n timezone?: string | null;\n startAt?: string | null;\n endAt?: string | null;\n visibility?: string | null;\n capacity?: number | null;\n metadata?: Record<string, unknown> | null;\n};\nexport type EventPortfolioItem = {\n lifecycle: EventLifecycle;\n registrations: number;\n checkedIn: number;\n checkInRate: number | null;\n venueId: string | null;\n venueName: string | null;\n event: PortfolioEventGql;\n};\nexport type EventPortfolioResponse = {\n portfolio: {\n total: number;\n counts: { all: number; upcoming: number; live: number; past: number };\n totalRegistrations: number;\n totalCheckedIn: number;\n totalVenues: number;\n totalSponsors: number;\n items: EventPortfolioItem[];\n };\n};\nexport type EventPortfolioVariables = {\n workspaceId?: string;\n lifecycle?: EventLifecycle;\n search?: string;\n limit?: number;\n offset?: number;\n};\ntype VenuesResponse = { venues: { total: number; items: VenueGql[] } };\ntype VenueResponse = { venue: VenueGql | null; floorPlans: { total: number; items: FloorPlanGql[] } };\ntype SponsorsResponse = { sponsors: { total: number; items: SponsorGql[] } };\ntype CreateVenueResponse = { createVenue: VenueGql };\ntype UpdateVenueResponse = { updateVenue: VenueGql };\ntype CreateSponsorResponse = { createSponsor: SponsorGql };\ntype UpdateSponsorResponse = { updateSponsor: SponsorGql };\ntype CreateFloorPlanResponse = { createFloorPlan: FloorPlanGql };\ntype UpdateFloorPlanResponse = { updateFloorPlan: FloorPlanGql };\ntype DeleteFloorPlanResponse = { deleteFloorPlan: boolean };\ntype TicketTypesResponse = { ticketTypes: { total: number; items: TicketTypeGql[] } };\ntype PromoCodesResponse = { promoCodes: { total: number; items: PromoCodeGql[] } };\ntype ExhibitorsResponse = { exhibitors: { total: number; items: ExhibitorGql[] } };\ntype LeadsResponse = { leads: { total: number; items: LeadGql[] } };\ntype CheckInRecordsResponse = { checkInRecords: { total: number; items: CheckInRecordGql[] } };\ntype NetworkingProfilesResponse = { networkingProfiles: { total: number; items: NetworkingProfileGql[] } };\ntype RegistrationsResponse = { registrations: { total: number; items: RegistrationGql[] } };\ntype AttendeesResponse = { attendees: { total: number; items: AttendeeGql[] } };\ntype EventSessionsResponse = { eventSessions: { total: number; items: EventSessionGql[] } };\ntype SpeakersResponse = { speakers: { total: number; items: SpeakerGql[] } };\ntype SpeakerResponse = { speaker: SpeakerGql | null };\ntype SimpleEntity = {\n id: string;\n workspaceId: string;\n eventId?: string | null;\n name?: string | null;\n title?: string | null;\n status?: string | null;\n metadata?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\n// BOFF-5893 — automation execution observability.\ntype AutomationRuleRunGql = {\n id: string;\n ruleId: string;\n eventId?: string | null;\n trigger: string;\n actionType: string;\n status: string;\n workflowRunId?: string | null;\n createdAt: string;\n};\n\n// BOFF-5893 — reusable event template row.\nexport type EventTemplateGql = {\n id: string;\n workspaceId: string;\n name: string;\n description?: string | null;\n sourceEventId?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype EventFromTemplateGql = {\n id: string;\n name: string;\n status: string;\n timezone: string;\n startAt: string;\n endAt: string;\n capacity?: number | null;\n};\n\n// BOFF-5893 — one event a person attended/registered for in this workspace.\nexport type AttendeeHistoryEntryGql = {\n attendeeId: string;\n fullName: string;\n email: string;\n eventId: string;\n eventName: string;\n eventStatus: string;\n eventStartAt: string;\n eventEndAt: string;\n registrationStatus?: string | null;\n registeredAt?: string | null;\n checkedIn: boolean;\n};\ntype SimpleEntityResponse = { total: number; items: SimpleEntity[] };\ntype CheckInStationsResponse = { checkInStations: SimpleEntityResponse };\ntype NetworkingMatchesResponse = { networkingMatches: { total: number; items: NetworkingMatchGql[] } };\ntype GenerateNetworkingMatchesResponse = {\n generateNetworkingMatches: { total: number; items: NetworkingMatchGql[] };\n};\ntype SuggestedConnectionsResponse = { suggestedConnections: { total: number; items: NetworkingMatchGql[] } };\ntype RecommendedSessionsResponse = {\n recommendedSessions: {\n total: number;\n emptyReason?: SessionRecommendationEmptyReason | null;\n items: SessionRecommendationGql[];\n };\n};\ntype MeetingsResponse = { meetings: SimpleEntityResponse };\ntype AnnouncementsResponse = { announcements: SimpleEntityResponse };\ntype WorkflowTemplatesResponse = { workflowTemplates: SimpleEntityResponse };\ntype AutomationRulesResponse = { automationRules: SimpleEntityResponse };\ntype AutomationRuleRunsResponse = { automationRuleRuns: { total: number; items: AutomationRuleRunGql[] } };\ntype EventTemplatesResponse = { eventTemplates: { total: number; items: EventTemplateGql[] } };\ntype SaveEventTemplateResponse = { saveEventTemplate: EventTemplateGql };\ntype DeleteEventTemplateResponse = { deleteEventTemplate: boolean };\ntype CreateEventFromTemplateResponse = { createEventFromTemplate: EventFromTemplateGql };\ntype AttendeeHistoryResponse = { attendeeHistory: AttendeeHistoryEntryGql[] };\ntype CommunicationCampaignsResponse = { communicationCampaigns: SimpleEntityResponse };\ntype AnalyticsSnapshotsResponse = { analyticsSnapshots: SimpleEntityResponse };\ntype UpsertSimpleEntityResponse = { [key: string]: SimpleEntity };\n\nexport const DASHBOARD_SUMMARY_QUERY = gql`\n query EventfullymanagedDashboardSummary {\n dashboardSummary: eventfullyManagedDashboardSummary {\n totalEvents\n activeEvents\n totalRegistrations\n totalAttendees\n totalVenues\n totalSponsors\n upcomingSessions\n checkedInRegistrations\n registrationsByStatus {\n status\n count\n }\n }\n }\n`;\n\n// BOFF-11390 / BOFF-11391 — server-computed Finance revenue, grouped by currency.\n// BOFF-5891 — refunds, net revenue and the per-event rollup join the summary.\nexport const FINANCE_SUMMARY_QUERY = gql`\n query EventfullymanagedFinanceSummary {\n financeSummary: eventfullyManagedFinanceSummary {\n revenueByCurrency {\n currency\n amount\n }\n refundsByCurrency {\n currency\n amount\n }\n netRevenueByCurrency {\n currency\n amount\n }\n byEvent {\n event {\n id\n name\n }\n revenueByCurrency {\n currency\n amount\n }\n refundsByCurrency {\n currency\n amount\n }\n netRevenueByCurrency {\n currency\n amount\n }\n paidRegistrations\n refundedRegistrations\n }\n registrationsTotal\n ticketTypesTotal\n promoCodesTotal\n }\n }\n`;\n\n// BOFF-5891 — sponsor contract value vs leads captured (ROI per sponsor).\nexport const SPONSOR_ROI_REPORT_QUERY = gql`\n query EventfullymanagedSponsorRoiReport {\n sponsorRoiReport: eventfullyManagedSponsorRoiReport {\n items {\n sponsorId\n name\n level\n contractValue\n currency\n leadsCaptured\n leadsTarget\n costPerLead\n }\n totalSponsors\n totalLeadsCaptured\n }\n }\n`;\n\nexport const EVENTS_QUERY = gql`\n query EventfullymanagedEvents($search: String, $limit: Int, $offset: Int) {\n events: eventfullyManagedEvents(search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n name\n description\n type\n status\n timezone\n startAt\n endAt\n visibility\n capacity\n metadata\n }\n }\n }\n`;\n\n/**\n * BOFF-4005 — multi-event portfolio (mock efm-23). Lifecycle filtering,\n * per-event registration/check-in counts and pagination all happen in the\n * service, scoped to the active workspace. `workspaceId` is sent so Apollo\n * keys the cached result per workspace: switching organization or workspace\n * in the shell context switcher therefore always refetches.\n */\nexport const EVENT_PORTFOLIO_QUERY = gql`\n query EventfullymanagedEventPortfolio(\n $workspaceId: ID\n $lifecycle: EventfullyManagedEventLifecycle\n $search: String\n $limit: Int\n $offset: Int\n ) {\n portfolio: eventfullyManagedEventPortfolio(\n workspaceId: $workspaceId\n lifecycle: $lifecycle\n search: $search\n limit: $limit\n offset: $offset\n ) {\n total\n counts {\n all\n upcoming\n live\n past\n }\n totalRegistrations\n totalCheckedIn\n totalVenues\n totalSponsors\n items {\n lifecycle\n registrations\n checkedIn\n checkInRate\n venueId\n venueName\n event {\n id\n workspaceId\n name\n type\n status\n timezone\n startAt\n endAt\n visibility\n capacity\n metadata\n }\n }\n }\n }\n`;\n\nexport const VENUES_QUERY = gql`\n query EventfullymanagedVenues($search: String, $limit: Int, $offset: Int) {\n venues: eventfullyManagedVenues(search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n name\n description\n addressLine1\n city\n state\n country\n postalCode\n capacity\n amenities\n pricing\n openingHours\n status\n metadata\n }\n }\n }\n`;\n\nexport const VENUE_QUERY = gql`\n query EventfullymanagedVenue($id: ID!) {\n venue: eventfullyManagedVenue(id: $id) {\n id\n workspaceId\n name\n description\n addressLine1\n city\n state\n country\n postalCode\n capacity\n amenities\n pricing\n openingHours\n status\n metadata\n createdAt\n updatedAt\n }\n floorPlans: eventfullyManagedFloorPlans(venueId: $id, limit: 100, offset: 0) {\n total\n items {\n id\n venueId\n name\n imageUrl\n dimensions\n interactiveAreas\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const SPONSORS_QUERY = gql`\n query EventfullymanagedSponsors($search: String, $limit: Int, $offset: Int) {\n sponsors: eventfullyManagedSponsors(search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n currency\n metrics\n metadata\n createdAt\n }\n }\n }\n`;\n\n// BOFF-11362: real totals over every matching sponsor, not just the loaded page.\nexport const SPONSORS_PORTFOLIO_TOTALS_QUERY = gql`\n query EventfullymanagedSponsorsPortfolioTotals($eventId: ID) {\n sponsorsPortfolioTotals: eventfullyManagedSponsorsPortfolioTotals(eventId: $eventId) {\n totalSponsors\n byCurrency {\n currency\n count\n contractValue\n leadsTarget\n }\n }\n }\n`;\n\nexport const REGISTRATIONS_QUERY = gql`\n query EventfullymanagedRegistrations($eventId: ID, $limit: Int, $offset: Int) {\n registrations: eventfullyManagedRegistrations(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n attendeeId\n attendeeName\n ticketTypeId\n status\n quantity\n totalAmount\n currency\n registeredAt\n checkedInAt\n }\n }\n }\n`;\n\nexport const ATTENDEES_QUERY = gql`\n query EventfullymanagedAttendees($eventId: ID, $limit: Int, $offset: Int) {\n attendees: eventfullyManagedAttendees(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n fullName\n email\n phone\n company\n role\n metadata\n }\n }\n }\n`;\n\nexport const EVENT_SESSIONS_QUERY = gql`\n query EventfullymanagedEventSessions($eventId: ID, $limit: Int, $offset: Int) {\n eventSessions: eventfullyManagedEventSessions(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n venueId\n title\n sessionType\n track\n startsAt\n endsAt\n status\n }\n }\n }\n`;\n\nexport const SPEAKERS_QUERY = gql`\n query EventfullymanagedSpeakers($limit: Int, $offset: Int) {\n speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {\n total\n items {\n id\n fullName\n title\n organization\n email\n }\n }\n }\n`;\n\n// BOFF-11230: by-id lookup so the Edit Speaker form doesn't depend on the\n// speaker being inside the first 100 rows of SPEAKERS_QUERY.\nexport const SPEAKER_QUERY = gql`\n query EventfullymanagedSpeaker($id: ID!) {\n speaker: eventfullyManagedSpeaker(id: $id) {\n id\n fullName\n title\n organization\n bio\n avatarUrl\n email\n phone\n socialLinks\n }\n }\n`;\n\nexport const TICKET_TYPES_QUERY = gql`\n query EventfullymanagedTicketTypes($eventId: ID, $search: String, $limit: Int, $offset: Int) {\n ticketTypes: eventfullyManagedTicketTypes(eventId: $eventId, search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n name\n description\n price\n currency\n capacity\n soldCount\n salesStartAt\n salesEndAt\n isActive\n metadata\n }\n }\n }\n`;\n\nexport const PROMO_CODES_QUERY = gql`\n query EventfullymanagedPromoCodes($eventId: ID, $search: String, $limit: Int, $offset: Int) {\n promoCodes: eventfullyManagedPromoCodes(eventId: $eventId, search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n code\n description\n discountType\n discountValue\n maxUses\n usedCount\n startsAt\n endsAt\n isActive\n metadata\n }\n }\n }\n`;\n\nexport const EXHIBITORS_QUERY = gql`\n query EventfullymanagedExhibitors($eventId: ID, $search: String, $limit: Int, $offset: Int) {\n exhibitors: eventfullyManagedExhibitors(eventId: $eventId, search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n name\n boothCode\n category\n contactName\n contactEmail\n website\n status\n metadata\n leadCount\n }\n }\n }\n`;\n\n// BOFF-11370 — real distinct-boothCode count across the full matching set,\n// not a count over a capped client-side exhibitor fetch.\nexport const EXHIBITOR_SUMMARY_QUERY = gql`\n query EventfullymanagedExhibitorSummary($workspaceId: ID, $eventId: ID) {\n exhibitorSummary: eventfullyManagedExhibitorSummary(workspaceId: $workspaceId, eventId: $eventId) {\n boothCount\n }\n }\n`;\n\nexport const LEADS_QUERY = gql`\n query EventfullymanagedLeads(\n $eventId: ID\n $sponsorId: ID\n $exhibitorId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n leads: eventfullyManagedLeads(\n eventId: $eventId\n sponsorId: $sponsorId\n exhibitorId: $exhibitorId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n total\n items {\n id\n eventId\n sponsorId\n exhibitorId\n attendeeName\n attendeeEmail\n score\n status\n notes\n capturedAt\n metadata\n }\n }\n }\n`;\n\nexport const CHECKIN_RECORDS_QUERY = gql`\n query EventfullymanagedCheckInRecords($eventId: ID, $limit: Int, $offset: Int) {\n checkInRecords: eventfullyManagedCheckInRecords(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n stationId\n attendeeId\n registrationId\n sessionId\n method\n status\n direction\n recordedAt\n metadata\n }\n }\n }\n`;\n\n// BOFF-3999 — hourly check-in throughput for one event.\nexport const CHECK_IN_THROUGHPUT_QUERY = gql`\n query EventfullymanagedCheckInThroughput($eventId: ID!, $date: DateTime) {\n checkInThroughput: eventfullyManagedCheckInThroughput(eventId: $eventId, date: $date) {\n hour\n count\n timezone\n }\n }\n`;\n\n// BOFF-4331 — agenda-conflict detection for one event.\nexport const SESSION_CONFLICTS_QUERY = gql`\n query EventfullymanagedSessionConflicts($eventId: ID!) {\n sessionConflicts: eventfullyManagedSessionConflicts(eventId: $eventId) {\n type\n sessionAId\n sessionATitle\n sessionBId\n sessionBTitle\n venueId\n speakerId\n message\n }\n }\n`;\n\nexport const NETWORKING_PROFILES_QUERY = gql`\n query EventfullymanagedNetworkingProfiles($eventId: ID, $limit: Int, $offset: Int) {\n networkingProfiles: eventfullyManagedNetworkingProfiles(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n attendeeId\n interests\n lookingFor\n industry\n role\n visibility\n metadata\n }\n }\n }\n`;\n\nexport const CHECKIN_STATIONS_QUERY = gql`\n query EventfullymanagedCheckInStations($eventId: ID, $limit: Int, $offset: Int) {\n checkInStations: eventfullyManagedCheckInStations(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\n// BOFF-4321 — typed fields (score/reason are real columns; the list resolver\n// no longer routes through the generic simple-entity projection that dropped\n// them).\nexport const NETWORKING_MATCHES_QUERY = gql`\n query EventfullymanagedNetworkingMatches($eventId: ID, $limit: Int, $offset: Int) {\n networkingMatches: eventfullyManagedNetworkingMatches(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\n// BOFF-4321 — deterministic matchmaking engine: bulk (organizer) generation\n// and attendee-facing top-N suggestions.\nexport const GENERATE_NETWORKING_MATCHES_MUTATION = gql`\n mutation EventfullymanagedGenerateNetworkingMatches($eventId: ID!) {\n generateNetworkingMatches: eventfullyManagedGenerateNetworkingMatches(eventId: $eventId) {\n total\n items {\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const SUGGESTED_CONNECTIONS_QUERY = gql`\n query EventfullymanagedSuggestedConnections($eventId: ID!, $attendeeId: ID!, $limit: Int) {\n suggestedConnections: eventfullyManagedSuggestedConnections(\n eventId: $eventId\n attendeeId: $attendeeId\n limit: $limit\n ) {\n total\n items {\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const RECOMMENDED_SESSIONS_QUERY = gql`\n query EventfullymanagedRecommendedSessions($eventId: ID!, $attendeeId: ID!, $limit: Int) {\n recommendedSessions: eventfullyManagedRecommendSessions(eventId: $eventId, attendeeId: $attendeeId, limit: $limit) {\n total\n emptyReason\n items {\n score\n reason\n matchedTopics\n seatsRemaining\n session {\n id\n eventId\n title\n sessionType\n track\n startsAt\n endsAt\n capacity\n status\n }\n }\n }\n }\n`;\n\nexport const MEETINGS_QUERY = gql`\n query EventfullymanagedMeetings($eventId: ID, $limit: Int, $offset: Int) {\n meetings: eventfullyManagedMeetings(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\n// BOFF-11357: real by-ID lookup — eventfullyManagedMeetings only returns a\n// capped, generic projection (see the comment on MEETINGS_QUERY above), so\n// the Edit Meeting form could not load a meeting past the first page.\nexport const MEETING_QUERY = gql`\n query EventfullymanagedMeeting($id: ID!) {\n meeting: eventfullyManagedMeeting(id: $id) {\n id\n eventId\n title\n sourceProfileId\n targetProfileId\n startsAt\n endsAt\n location\n notes\n status\n metadata\n }\n }\n`;\n\nexport const ANNOUNCEMENTS_QUERY = gql`\n query EventfullymanagedAnnouncements($eventId: ID, $limit: Int, $offset: Int) {\n announcements: eventfullyManagedAnnouncements(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const WORKFLOW_TEMPLATES_QUERY = gql`\n query EventfullymanagedWorkflowTemplates($eventId: ID, $limit: Int, $offset: Int) {\n workflowTemplates: eventfullyManagedWorkflowTemplates(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const AUTOMATION_RULES_QUERY = gql`\n query EventfullymanagedAutomationRules($eventId: ID, $limit: Int, $offset: Int) {\n automationRules: eventfullyManagedAutomationRules(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const AUTOMATION_RULE_RUNS_QUERY = gql`\n query EventfullymanagedAutomationRuleRuns($ruleId: ID, $eventId: ID, $limit: Int, $offset: Int) {\n automationRuleRuns: eventfullyManagedAutomationRuleRuns(\n ruleId: $ruleId\n eventId: $eventId\n limit: $limit\n offset: $offset\n ) {\n total\n items {\n id\n ruleId\n eventId\n trigger\n actionType\n status\n workflowRunId\n createdAt\n }\n }\n }\n`;\n\n// BOFF-5893 — reusable event templates.\nexport const EVENT_TEMPLATES_QUERY = gql`\n query EventfullymanagedEventTemplates($limit: Int, $offset: Int) {\n eventTemplates: eventfullyManagedEventTemplates(limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n name\n description\n sourceEventId\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const SAVE_EVENT_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedSaveEventTemplate($input: EventfullyManagedSaveEventTemplateInput!) {\n saveEventTemplate: eventfullyManagedSaveEventTemplate(input: $input) {\n id\n workspaceId\n name\n description\n sourceEventId\n }\n }\n`;\n\nexport const DELETE_EVENT_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedDeleteEventTemplate($id: ID!) {\n deleteEventTemplate: eventfullyManagedDeleteEventTemplate(id: $id)\n }\n`;\n\nexport const CREATE_EVENT_FROM_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedCreateEventFromTemplate($input: EventfullyManagedCreateEventFromTemplateInput!) {\n createEventFromTemplate: eventfullyManagedCreateEventFromTemplate(input: $input) {\n id\n name\n status\n timezone\n startAt\n endAt\n capacity\n }\n }\n`;\n\n// BOFF-5893 — cross-event attendee history.\nexport const ATTENDEE_HISTORY_QUERY = gql`\n query EventfullymanagedAttendeeHistory($email: String!) {\n attendeeHistory: eventfullyManagedAttendeeHistory(email: $email) {\n attendeeId\n fullName\n email\n eventId\n eventName\n eventStatus\n eventStartAt\n eventEndAt\n registrationStatus\n registeredAt\n checkedIn\n }\n }\n`;\n\nexport const COMMUNICATION_CAMPAIGNS_QUERY = gql`\n query EventfullymanagedCommunicationCampaigns($eventId: ID, $limit: Int, $offset: Int) {\n communicationCampaigns: eventfullyManagedCommunicationCampaigns(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const ANALYTICS_SNAPSHOTS_QUERY = gql`\n query EventfullymanagedAnalyticsSnapshots($eventId: ID, $limit: Int, $offset: Int) {\n analyticsSnapshots: eventfullyManagedAnalyticsSnapshots(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const CREATE_VENUE_MUTATION = gql`\n mutation EventfullymanagedCreateVenue($input: EventfullyManagedVenueInput!) {\n createVenue: eventfullyManagedCreateVenue(input: $input) {\n id\n name\n description\n city\n state\n country\n capacity\n amenities\n status\n pricing\n openingHours\n metadata\n }\n }\n`;\n\nexport const UPDATE_VENUE_MUTATION = gql`\n mutation EventfullymanagedUpdateVenue($id: ID!, $input: EventfullyManagedVenueInput!) {\n updateVenue: eventfullyManagedUpdateVenue(id: $id, input: $input) {\n id\n name\n description\n city\n state\n country\n capacity\n amenities\n status\n pricing\n openingHours\n metadata\n }\n }\n`;\n\nexport const CREATE_SPONSOR_MUTATION = gql`\n mutation EventfullymanagedCreateSponsor($input: EventfullyManagedSponsorInput!) {\n createSponsor: eventfullyManagedCreateSponsor(input: $input) {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n metrics\n metadata\n }\n }\n`;\n\nexport const UPDATE_SPONSOR_MUTATION = gql`\n mutation EventfullymanagedUpdateSponsor($id: ID!, $input: EventfullyManagedSponsorInput!) {\n updateSponsor: eventfullyManagedUpdateSponsor(id: $id, input: $input) {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n metrics\n metadata\n }\n }\n`;\n\nexport const CREATE_FLOOR_PLAN_MUTATION = gql`\n mutation EventfullymanagedCreateFloorPlan($input: EventfullyManagedFloorPlanInput!) {\n createFloorPlan: eventfullyManagedCreateFloorPlan(input: $input) {\n id\n venueId\n name\n imageUrl\n dimensions\n interactiveAreas\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPDATE_FLOOR_PLAN_MUTATION = gql`\n mutation EventfullymanagedUpdateFloorPlan($id: ID!, $input: EventfullyManagedFloorPlanInput!) {\n updateFloorPlan: eventfullyManagedUpdateFloorPlan(id: $id, input: $input) {\n id\n venueId\n name\n imageUrl\n dimensions\n interactiveAreas\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const DELETE_FLOOR_PLAN_MUTATION = gql`\n mutation EventfullymanagedDeleteFloorPlan($id: ID!) {\n deleteFloorPlan: eventfullyManagedDeleteFloorPlan(id: $id)\n }\n`;\n\nexport const CREATE_EVENT_MUTATION = gql`\n mutation EventfullymanagedCreateEvent($input: EventfullyManagedEventInput!) {\n createEvent: eventfullyManagedCreateEvent(input: $input) {\n id\n name\n type\n status\n startAt\n endAt\n timezone\n visibility\n capacity\n metadata\n }\n }\n`;\n\nexport const UPDATE_EVENT_MUTATION = gql`\n mutation EventfullymanagedUpdateEvent($id: ID!, $input: EventfullyManagedEventInput!) {\n updateEvent: eventfullyManagedUpdateEvent(id: $id, input: $input) {\n id\n name\n type\n status\n startAt\n endAt\n timezone\n visibility\n capacity\n metadata\n }\n }\n`;\n\nexport const UPSERT_ANNOUNCEMENT_MUTATION = gql`\n mutation EventfullymanagedUpsertAnnouncement($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertAnnouncement: eventfullyManagedUpsertAnnouncement(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPSERT_WORKFLOW_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedUpsertWorkflowTemplate($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertWorkflowTemplate: eventfullyManagedUpsertWorkflowTemplate(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPSERT_AUTOMATION_RULE_MUTATION = gql`\n mutation EventfullymanagedUpsertAutomationRule($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertAutomationRule: eventfullyManagedUpsertAutomationRule(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\n// BOFF-11393\nexport const DELETE_WORKFLOW_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedDeleteWorkflowTemplate($id: ID!) {\n deleteWorkflowTemplate: eventfullyManagedDeleteWorkflowTemplate(id: $id)\n }\n`;\n\nexport const DELETE_AUTOMATION_RULE_MUTATION = gql`\n mutation EventfullymanagedDeleteAutomationRule($id: ID!) {\n deleteAutomationRule: eventfullyManagedDeleteAutomationRule(id: $id)\n }\n`;\n\nexport const UPSERT_COMMUNICATION_CAMPAIGN_MUTATION = gql`\n mutation EventfullymanagedUpsertCommunicationCampaign($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertCommunicationCampaign: eventfullyManagedUpsertCommunicationCampaign(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPSERT_ANALYTICS_SNAPSHOT_MUTATION = gql`\n mutation EventfullymanagedUpsertAnalyticsSnapshot($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertAnalyticsSnapshot: eventfullyManagedUpsertAnalyticsSnapshot(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const useDashboardSummaryQuery = () => useQuery<DashboardSummaryResponse>(DASHBOARD_SUMMARY_QUERY);\nexport const useFinanceSummaryQuery = (options: { skip?: boolean } = {}) =>\n useQuery<FinanceSummaryResponse>(FINANCE_SUMMARY_QUERY, { skip: options.skip });\nexport const useSponsorRoiReportQuery = (options: { skip?: boolean } = {}) =>\n useQuery<SponsorRoiReportResponse>(SPONSOR_ROI_REPORT_QUERY, { skip: options.skip });\nexport const useEventsQuery = (variables: { search?: string; limit?: number; offset?: number }) =>\n useQuery<EventsResponse, { search?: string; limit?: number; offset?: number }>(EVENTS_QUERY, { variables });\nexport const useEventPortfolioQuery = (variables: EventPortfolioVariables) =>\n useQuery<EventPortfolioResponse, EventPortfolioVariables>(EVENT_PORTFOLIO_QUERY, {\n variables,\n fetchPolicy: 'cache-and-network',\n });\nexport const useVenuesQuery = (variables: { search?: string; limit?: number; offset?: number; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<VenuesResponse, { search?: string; limit?: number; offset?: number }>(VENUES_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useVenueQuery = (id: string) =>\n useQuery<VenueResponse, { id: string }>(VENUE_QUERY, { variables: { id }, skip: !id });\nexport const useSponsorsQuery = (variables: { search?: string; limit?: number; offset?: number; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<SponsorsResponse, { search?: string; limit?: number; offset?: number }>(SPONSORS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport type SponsorsPortfolioTotalsGql = {\n totalSponsors: number;\n byCurrency: Array<{ currency: string | null; count: number; contractValue: number; leadsTarget: number }>;\n};\ntype SponsorsPortfolioTotalsResponse = { sponsorsPortfolioTotals: SponsorsPortfolioTotalsGql };\nexport const useSponsorsPortfolioTotalsQuery = (variables: { eventId?: string } = {}) =>\n useQuery<SponsorsPortfolioTotalsResponse, { eventId?: string }>(SPONSORS_PORTFOLIO_TOTALS_QUERY, { variables });\nexport const useRegistrationsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<RegistrationsResponse, { eventId?: string; limit?: number; offset?: number }>(REGISTRATIONS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useAttendeesQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<AttendeesResponse, { eventId?: string; limit?: number; offset?: number }>(ATTENDEES_QUERY, { variables });\nexport const useEventSessionsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<EventSessionsResponse, { eventId?: string; limit?: number; offset?: number }>(EVENT_SESSIONS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useSpeakersQuery = (variables: { limit?: number; offset?: number }) =>\n useQuery<SpeakersResponse, { limit?: number; offset?: number }>(SPEAKERS_QUERY, { variables });\nexport const useSpeakerQuery = (id: string) =>\n useQuery<SpeakerResponse, { id: string }>(SPEAKER_QUERY, { variables: { id }, skip: !id });\nexport const useTicketTypesQuery = (variables: {\n eventId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<TicketTypesResponse, { eventId?: string; search?: string; limit?: number; offset?: number }>(\n TICKET_TYPES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const usePromoCodesQuery = (variables: {\n eventId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<PromoCodesResponse, { eventId?: string; search?: string; limit?: number; offset?: number }>(\n PROMO_CODES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useExhibitorsQuery = (variables: {\n eventId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<ExhibitorsResponse, { eventId?: string; search?: string; limit?: number; offset?: number }>(\n EXHIBITORS_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useLeadsQuery = (variables: {\n eventId?: string;\n sponsorId?: string;\n exhibitorId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<\n LeadsResponse,\n { eventId?: string; sponsorId?: string; exhibitorId?: string; search?: string; limit?: number; offset?: number }\n >(LEADS_QUERY, { variables: vars, skip });\n};\nexport const useCheckInStationsQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<CheckInStationsResponse, { eventId?: string; limit?: number; offset?: number }>(CHECKIN_STATIONS_QUERY, {\n variables,\n });\nexport const useCheckInRecordsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<CheckInRecordsResponse, { eventId?: string; limit?: number; offset?: number }>(\n CHECKIN_RECORDS_QUERY,\n { variables: vars, skip }\n );\n};\n\nexport type CheckInThroughputPointGql = { hour: string; count: number; timezone: string };\ntype CheckInThroughputResponse = { checkInThroughput: CheckInThroughputPointGql[] };\nexport const useCheckInThroughputQuery = (variables: { eventId?: string; date?: string }) =>\n useQuery<CheckInThroughputResponse, { eventId: string; date?: string }>(CHECK_IN_THROUGHPUT_QUERY, {\n variables: { eventId: variables.eventId ?? '', date: variables.date },\n skip: !variables.eventId,\n });\n\nexport type SessionConflictGql = {\n type: string;\n sessionAId: string;\n sessionATitle: string;\n sessionBId: string;\n sessionBTitle: string;\n venueId?: string | null;\n speakerId?: string | null;\n message: string;\n};\ntype SessionConflictsResponse = { sessionConflicts: SessionConflictGql[] };\nexport const useSessionConflictsQuery = (variables: { eventId?: string }) =>\n useQuery<SessionConflictsResponse, { eventId: string }>(SESSION_CONFLICTS_QUERY, {\n variables: { eventId: variables.eventId ?? '' },\n skip: !variables.eventId,\n });\nexport const useNetworkingProfilesQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<NetworkingProfilesResponse, { eventId?: string; limit?: number; offset?: number }>(\n NETWORKING_PROFILES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useNetworkingMatchesQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<NetworkingMatchesResponse, { eventId?: string; limit?: number; offset?: number }>(NETWORKING_MATCHES_QUERY, {\n variables,\n });\nexport const useSuggestedConnectionsQuery = (variables: { eventId?: string; attendeeId?: string; limit?: number }) =>\n useQuery<SuggestedConnectionsResponse, { eventId?: string; attendeeId?: string; limit?: number }>(\n SUGGESTED_CONNECTIONS_QUERY,\n { variables, skip: !variables.eventId || !variables.attendeeId }\n );\nexport const useRecommendedSessionsQuery = (variables: { eventId?: string; attendeeId?: string; limit?: number }) =>\n useQuery<RecommendedSessionsResponse, { eventId?: string; attendeeId?: string; limit?: number }>(\n RECOMMENDED_SESSIONS_QUERY,\n { variables, skip: !variables.eventId || !variables.attendeeId }\n );\nexport const useMeetingsQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<MeetingsResponse, { eventId?: string; limit?: number; offset?: number }>(MEETINGS_QUERY, { variables });\ntype MeetingDetailResponse = { meeting: MeetingGql | null };\nexport const useMeetingQuery = (id: string) =>\n useQuery<MeetingDetailResponse, IdVar>(MEETING_QUERY, { variables: { id }, skip: !id });\nexport const useAnnouncementsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AnnouncementsResponse, { eventId?: string; limit?: number; offset?: number }>(ANNOUNCEMENTS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useWorkflowTemplatesQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<WorkflowTemplatesResponse, { eventId?: string; limit?: number; offset?: number }>(\n WORKFLOW_TEMPLATES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useAutomationRulesQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AutomationRulesResponse, { eventId?: string; limit?: number; offset?: number }>(\n AUTOMATION_RULES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useCommunicationCampaignsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<CommunicationCampaignsResponse, { eventId?: string; limit?: number; offset?: number }>(\n COMMUNICATION_CAMPAIGNS_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useAnalyticsSnapshotsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AnalyticsSnapshotsResponse, { eventId?: string; limit?: number; offset?: number }>(\n ANALYTICS_SNAPSHOTS_QUERY,\n { variables: vars, skip }\n );\n};\n\nexport const useCreateVenueMutation = () =>\n useMutation<CreateVenueResponse, { input: Record<string, unknown> }>(CREATE_VENUE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: VENUES_QUERY }],\n });\nexport const useUpdateVenueMutation = () =>\n useMutation<UpdateVenueResponse, { id: string; input: Record<string, unknown> }>(UPDATE_VENUE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: VENUES_QUERY }],\n });\nexport const useCreateSponsorMutation = () =>\n useMutation<CreateSponsorResponse, { input: Record<string, unknown> }>(CREATE_SPONSOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPONSORS_QUERY }],\n });\nexport const useUpdateSponsorMutation = () =>\n useMutation<UpdateSponsorResponse, { id: string; input: Record<string, unknown> }>(UPDATE_SPONSOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPONSORS_QUERY }],\n });\nexport const useCreateFloorPlanMutation = () =>\n useMutation<CreateFloorPlanResponse, { input: Record<string, unknown> }>(CREATE_FLOOR_PLAN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useUpdateFloorPlanMutation = () =>\n useMutation<UpdateFloorPlanResponse, { id: string; input: Record<string, unknown> }>(UPDATE_FLOOR_PLAN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useDeleteFloorPlanMutation = () =>\n useMutation<DeleteFloorPlanResponse, IdVar>(DELETE_FLOOR_PLAN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useCreateEventMutation = () =>\n useMutation<{ createEvent: EventGql }, { input: Record<string, unknown> }>(CREATE_EVENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpdateEventMutation = () =>\n useMutation<{ updateEvent: EventGql }, { id: string; input: Record<string, unknown> }>(UPDATE_EVENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpsertAnnouncementMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_ANNOUNCEMENT_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ANNOUNCEMENTS_QUERY }],\n }\n );\nexport const useUpsertWorkflowTemplateMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_WORKFLOW_TEMPLATE_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: WORKFLOW_TEMPLATES_QUERY }],\n }\n );\nexport const useUpsertAutomationRuleMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_AUTOMATION_RULE_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: AUTOMATION_RULES_QUERY }],\n }\n );\nexport const useDeleteWorkflowTemplateMutation = () =>\n useMutation<{ deleteWorkflowTemplate: boolean }, { id: string }>(DELETE_WORKFLOW_TEMPLATE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: WORKFLOW_TEMPLATES_QUERY }],\n });\nexport const useDeleteAutomationRuleMutation = () =>\n useMutation<{ deleteAutomationRule: boolean }, { id: string }>(DELETE_AUTOMATION_RULE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: AUTOMATION_RULES_QUERY }],\n });\n\n// BOFF-5893 — automation run observability.\nexport const useAutomationRuleRunsQuery = (variables: {\n ruleId?: string;\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AutomationRuleRunsResponse, { ruleId?: string; eventId?: string; limit?: number; offset?: number }>(\n AUTOMATION_RULE_RUNS_QUERY,\n { variables: vars, skip }\n );\n};\n\n// BOFF-5893 — reusable event templates.\nexport const useEventTemplatesQuery = (variables: { limit?: number; offset?: number; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<EventTemplatesResponse, { limit?: number; offset?: number }>(EVENT_TEMPLATES_QUERY, {\n variables: vars,\n skip,\n });\n};\n\nexport const useSaveEventTemplateMutation = () =>\n useMutation<SaveEventTemplateResponse, { input: Record<string, unknown> }>(SAVE_EVENT_TEMPLATE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_TEMPLATES_QUERY }],\n });\n\nexport const useDeleteEventTemplateMutation = () =>\n useMutation<DeleteEventTemplateResponse, { id: string }>(DELETE_EVENT_TEMPLATE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_TEMPLATES_QUERY }],\n });\n\nexport const useCreateEventFromTemplateMutation = () =>\n useMutation<CreateEventFromTemplateResponse, { input: Record<string, unknown> }>(\n CREATE_EVENT_FROM_TEMPLATE_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: EVENT_PORTFOLIO_QUERY }, { query: EVENT_TEMPLATES_QUERY }],\n }\n );\n\n// BOFF-5893 — cross-event attendee history.\nexport const useAttendeeHistoryQuery = (variables: { email?: string; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<AttendeeHistoryResponse, { email?: string }>(ATTENDEE_HISTORY_QUERY, {\n variables: vars,\n skip: skip || !variables.email,\n });\n};\nexport const useUpsertCommunicationCampaignMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_COMMUNICATION_CAMPAIGN_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: COMMUNICATION_CAMPAIGNS_QUERY }],\n }\n );\nexport const useUpsertAnalyticsSnapshotMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_ANALYTICS_SNAPSHOT_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ANALYTICS_SNAPSHOTS_QUERY }],\n }\n );\n\n// ---------------------------------------------------------------------------\n// Single-entity fetch queries (edit-form hydration).\n//\n// The supergraph only exposes single-entity reads for Event, Sponsor and Venue\n// (`eventfullyManagedEvent` / `eventfullyManagedSponsor` / `eventfullyManagedVenue`).\n// Edit forms for every OTHER entity derive their initial state from the matching\n// LIST query (see SponsorFormPage for the `.items.find(id)` pattern) because the\n// backend has no by-id resolver for them.\n// ---------------------------------------------------------------------------\n\nexport const EVENT_QUERY = gql`\n query EventfullymanagedEvent($id: ID!) {\n event: eventfullyManagedEvent(id: $id) {\n id\n workspaceId\n name\n description\n type\n status\n timezone\n startAt\n endAt\n visibility\n capacity\n metadata\n }\n }\n`;\n\nexport const SPONSOR_QUERY = gql`\n query EventfullymanagedSponsor($id: ID!) {\n sponsor: eventfullyManagedSponsor(id: $id) {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n currency\n metrics\n metadata\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Entity tags (inline tagInfo, NOT the federated `tag {}` field).\n// ---------------------------------------------------------------------------\n\nexport const ENTITY_TAGS_QUERY = gql`\n query EventfullymanagedEntityTags($input: EventfullyManagedGetEntityTagsInput!) {\n eventfullyManagedEntityTags(input: $input) {\n id\n tagId\n entityId\n entityType\n source\n tagInfo {\n id\n key\n label\n color\n }\n }\n }\n`;\n\nexport const AVAILABLE_TAGS_QUERY = gql`\n query EventfullymanagedAvailableTags($limit: Int) {\n availableEventfullyManagedTags(limit: $limit) {\n id\n key\n label\n color\n }\n }\n`;\n\nexport const TAG_ENTITY_MUTATION = gql`\n mutation EventfullymanagedTagEntity($input: EventfullyManagedTagEntityInput!) {\n tagEventfullyManagedEntity(input: $input) {\n id\n tagId\n entityId\n entityType\n source\n tagInfo {\n id\n key\n label\n color\n }\n }\n }\n`;\n\nexport const UNTAG_ENTITY_MUTATION = gql`\n mutation EventfullymanagedUntagEntity($input: EventfullyManagedUntagEntityInput!) {\n untagEventfullyManagedEntity(input: $input)\n }\n`;\n\nexport const CREATE_ENTITY_TAG_MUTATION = gql`\n mutation EventfullymanagedCreateEntityTag($input: EventfullyManagedCreateEntityTagInput!) {\n createEventfullyManagedEntityTag(input: $input) {\n id\n key\n label\n color\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// EventSession — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst EVENT_SESSION_FIELDS = `\n id\n workspaceId\n eventId\n venueId\n title\n description\n sessionType\n track\n startsAt\n endsAt\n capacity\n status\n metadata\n`;\n\nexport const CREATE_EVENT_SESSION_MUTATION = gql`\n mutation EventfullymanagedCreateEventSession($input: EventfullyManagedEventSessionInput!) {\n createEventSession: eventfullyManagedCreateEventSession(input: $input) {\n ${EVENT_SESSION_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_EVENT_SESSION_MUTATION = gql`\n mutation EventfullymanagedUpdateEventSession($id: ID!, $input: EventfullyManagedEventSessionInput!) {\n updateEventSession: eventfullyManagedUpdateEventSession(id: $id, input: $input) {\n ${EVENT_SESSION_FIELDS}\n }\n }\n`;\n\nexport const DELETE_EVENT_SESSION_MUTATION = gql`\n mutation EventfullymanagedDeleteEventSession($id: ID!) {\n deleteEventSession: eventfullyManagedDeleteEventSession(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Speaker — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst SPEAKER_FIELDS = `\n id\n workspaceId\n fullName\n title\n organization\n email\n phone\n bio\n avatarUrl\n socialLinks\n`;\n\nexport const CREATE_SPEAKER_MUTATION = gql`\n mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {\n createSpeaker: eventfullyManagedCreateSpeaker(input: $input) {\n ${SPEAKER_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_SPEAKER_MUTATION = gql`\n mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {\n updateSpeaker: eventfullyManagedUpdateSpeaker(id: $id, input: $input) {\n ${SPEAKER_FIELDS}\n }\n }\n`;\n\nexport const DELETE_SPEAKER_MUTATION = gql`\n mutation EventfullymanagedDeleteSpeaker($id: ID!) {\n deleteSpeaker: eventfullyManagedDeleteSpeaker(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// TicketType — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst TICKET_TYPE_FIELDS = `\n id\n workspaceId\n eventId\n name\n description\n price\n currency\n capacity\n soldCount\n salesStartAt\n salesEndAt\n isActive\n metadata\n`;\n\nexport const CREATE_TICKET_TYPE_MUTATION = gql`\n mutation EventfullymanagedCreateTicketType($input: EventfullyManagedTicketTypeInput!) {\n createTicketType: eventfullyManagedCreateTicketType(input: $input) {\n ${TICKET_TYPE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_TICKET_TYPE_MUTATION = gql`\n mutation EventfullymanagedUpdateTicketType($id: ID!, $input: EventfullyManagedTicketTypeInput!) {\n updateTicketType: eventfullyManagedUpdateTicketType(id: $id, input: $input) {\n ${TICKET_TYPE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_TICKET_TYPE_MUTATION = gql`\n mutation EventfullymanagedDeleteTicketType($id: ID!) {\n deleteTicketType: eventfullyManagedDeleteTicketType(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// PromoCode — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst PROMO_CODE_FIELDS = `\n id\n workspaceId\n eventId\n code\n description\n discountType\n discountValue\n maxUses\n usedCount\n startsAt\n endsAt\n isActive\n metadata\n`;\n\nexport const CREATE_PROMO_CODE_MUTATION = gql`\n mutation EventfullymanagedCreatePromoCode($input: EventfullyManagedPromoCodeInput!) {\n createPromoCode: eventfullyManagedCreatePromoCode(input: $input) {\n ${PROMO_CODE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_PROMO_CODE_MUTATION = gql`\n mutation EventfullymanagedUpdatePromoCode($id: ID!, $input: EventfullyManagedPromoCodeInput!) {\n updatePromoCode: eventfullyManagedUpdatePromoCode(id: $id, input: $input) {\n ${PROMO_CODE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_PROMO_CODE_MUTATION = gql`\n mutation EventfullymanagedDeletePromoCode($id: ID!) {\n deletePromoCode: eventfullyManagedDeletePromoCode(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Registration — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst REGISTRATION_FIELDS = `\n id\n workspaceId\n eventId\n attendeeId\n ticketTypeId\n status\n quantity\n totalAmount\n promoCodeId\n currency\n registeredAt\n checkedInAt\n metadata\n`;\n\nexport const CREATE_REGISTRATION_MUTATION = gql`\n mutation EventfullymanagedCreateRegistration($input: EventfullyManagedRegistrationInput!) {\n createRegistration: eventfullyManagedCreateRegistration(input: $input) {\n ${REGISTRATION_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_REGISTRATION_MUTATION = gql`\n mutation EventfullymanagedUpdateRegistration($id: ID!, $input: EventfullyManagedRegistrationInput!) {\n updateRegistration: eventfullyManagedUpdateRegistration(id: $id, input: $input) {\n ${REGISTRATION_FIELDS}\n }\n }\n`;\n\nexport const DELETE_REGISTRATION_MUTATION = gql`\n mutation EventfullymanagedDeleteRegistration($id: ID!) {\n deleteRegistration: eventfullyManagedDeleteRegistration(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Attendee — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst ATTENDEE_FIELDS = `\n id\n workspaceId\n eventId\n fullName\n email\n phone\n company\n role\n profile\n metadata\n`;\n\nexport const CREATE_ATTENDEE_MUTATION = gql`\n mutation EventfullymanagedCreateAttendee($input: EventfullyManagedAttendeeInput!) {\n createAttendee: eventfullyManagedCreateAttendee(input: $input) {\n ${ATTENDEE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_ATTENDEE_MUTATION = gql`\n mutation EventfullymanagedUpdateAttendee($id: ID!, $input: EventfullyManagedAttendeeInput!) {\n updateAttendee: eventfullyManagedUpdateAttendee(id: $id, input: $input) {\n ${ATTENDEE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_ATTENDEE_MUTATION = gql`\n mutation EventfullymanagedDeleteAttendee($id: ID!) {\n deleteAttendee: eventfullyManagedDeleteAttendee(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Exhibitor — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst EXHIBITOR_FIELDS = `\n id\n workspaceId\n eventId\n name\n boothCode\n category\n contactName\n contactEmail\n website\n status\n metadata\n`;\n\n// BOFF-11369 — loads a single exhibitor by id so the edit form doesn't have\n// to find it inside a capped list query.\nexport const EXHIBITOR_QUERY = gql`\n query EventfullymanagedExhibitor($id: ID!) {\n exhibitor: eventfullyManagedExhibitor(id: $id) {\n ${EXHIBITOR_FIELDS}\n }\n }\n`;\n\nexport const CREATE_EXHIBITOR_MUTATION = gql`\n mutation EventfullymanagedCreateExhibitor($input: EventfullyManagedExhibitorInput!) {\n createExhibitor: eventfullyManagedCreateExhibitor(input: $input) {\n ${EXHIBITOR_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_EXHIBITOR_MUTATION = gql`\n mutation EventfullymanagedUpdateExhibitor($id: ID!, $input: EventfullyManagedExhibitorInput!) {\n updateExhibitor: eventfullyManagedUpdateExhibitor(id: $id, input: $input) {\n ${EXHIBITOR_FIELDS}\n }\n }\n`;\n\nexport const DELETE_EXHIBITOR_MUTATION = gql`\n mutation EventfullymanagedDeleteExhibitor($id: ID!) {\n deleteExhibitor: eventfullyManagedDeleteExhibitor(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Lead — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst LEAD_FIELDS = `\n id\n workspaceId\n eventId\n sponsorId\n exhibitorId\n attendeeName\n attendeeEmail\n score\n status\n notes\n capturedAt\n metadata\n`;\n\nexport const CREATE_LEAD_MUTATION = gql`\n mutation EventfullymanagedCreateLead($input: EventfullyManagedLeadInput!) {\n createLead: eventfullyManagedCreateLead(input: $input) {\n ${LEAD_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_LEAD_MUTATION = gql`\n mutation EventfullymanagedUpdateLead($id: ID!, $input: EventfullyManagedLeadInput!) {\n updateLead: eventfullyManagedUpdateLead(id: $id, input: $input) {\n ${LEAD_FIELDS}\n }\n }\n`;\n\nexport const DELETE_LEAD_MUTATION = gql`\n mutation EventfullymanagedDeleteLead($id: ID!) {\n deleteLead: eventfullyManagedDeleteLead(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// CheckInStation — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst CHECKIN_STATION_FIELDS = `\n id\n workspaceId\n eventId\n name\n code\n location\n isActive\n kioskConfig\n metadata\n`;\n\nexport const CREATE_CHECKIN_STATION_MUTATION = gql`\n mutation EventfullymanagedCreateCheckInStation($input: EventfullyManagedCheckInStationInput!) {\n createCheckInStation: eventfullyManagedCreateCheckInStation(input: $input) {\n ${CHECKIN_STATION_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_CHECKIN_STATION_MUTATION = gql`\n mutation EventfullymanagedUpdateCheckInStation($id: ID!, $input: EventfullyManagedCheckInStationInput!) {\n updateCheckInStation: eventfullyManagedUpdateCheckInStation(id: $id, input: $input) {\n ${CHECKIN_STATION_FIELDS}\n }\n }\n`;\n\nexport const DELETE_CHECKIN_STATION_MUTATION = gql`\n mutation EventfullymanagedDeleteCheckInStation($id: ID!) {\n deleteCheckInStation: eventfullyManagedDeleteCheckInStation(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// CheckInRecord — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst CHECKIN_RECORD_FIELDS = `\n id\n workspaceId\n eventId\n stationId\n attendeeId\n registrationId\n method\n status\n direction\n recordedAt\n clientScanId\n metadata\n alreadyCheckedIn\n`;\n\nexport const CREATE_CHECKIN_RECORD_MUTATION = gql`\n mutation EventfullymanagedCreateCheckInRecord($input: EventfullyManagedCheckInRecordInput!) {\n createCheckInRecord: eventfullyManagedCreateCheckInRecord(input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_CHECKIN_RECORD_MUTATION = gql`\n mutation EventfullymanagedUpdateCheckInRecord($id: ID!, $input: EventfullyManagedCheckInRecordInput!) {\n updateCheckInRecord: eventfullyManagedUpdateCheckInRecord(id: $id, input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\nexport const DELETE_CHECKIN_RECORD_MUTATION = gql`\n mutation EventfullymanagedDeleteCheckInRecord($id: ID!) {\n deleteCheckInRecord: eventfullyManagedDeleteCheckInRecord(id: $id)\n }\n`;\n\n// BOFF-4330 — kiosk QR scan path (signed token, offline-queue idempotent).\nexport const SCAN_CHECK_IN_MUTATION = gql`\n mutation EventfullymanagedScanCheckIn($input: EventfullyManagedScanCheckInInput!) {\n scanCheckIn: eventfullyManagedScanCheckIn(input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\n// BOFF-11376/BOFF-11377 — kiosk manual lookup path: resolves the attendee's\n// own active registration and enforces real session capacity server-side,\n// instead of a bare attendeeId with the session smuggled into metadata.\nexport const CREATE_MANUAL_CHECKIN_MUTATION = gql`\n mutation EventfullymanagedCreateManualCheckIn($input: EventfullyManagedManualCheckInInput!) {\n createManualCheckIn: eventfullyManagedCreateManualCheckIn(input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\n// BOFF-11375 — kiosk manual lookup: real server-side search (name partial,\n// email/id exact) instead of guessing over a 200-row client cache.\nexport const KIOSK_SEARCH_ATTENDEES_QUERY = gql`\n query EventfullymanagedKioskSearchAttendees($eventId: ID!, $query: String!) {\n kioskSearchAttendees: eventfullyManagedKioskSearchAttendees(eventId: $eventId, query: $query) {\n id\n fullName\n email\n }\n }\n`;\n\n// BOFF-4330 — a registration's signed QR check-in token + rendered PNG.\nexport const CHECK_IN_TOKEN_QUERY = gql`\n query EventfullymanagedCheckInToken($registrationId: ID!) {\n checkInToken: eventfullyManagedCheckInToken(registrationId: $registrationId) {\n registrationId\n token\n qrDataUrl\n }\n }\n`;\n\n// BOFF-4322 — on-demand badge PDF (base64-encoded `application/pdf` bytes).\n// Fetched via a one-off `apollo.query()` call (see `downloadBase64Pdf` /\n// `useApolloClient` usage in RegistrationPage), same pattern as\n// wspace-timecampus-svc's invoice PDF download — no generated lazy-query hook\n// needed for a rarely-used, heavy payload.\nexport const BADGE_PDF_QUERY = gql`\n query EventfullymanagedBadgePdf($registrationId: ID!) {\n badgePdf: eventfullyManagedBadgePdf(registrationId: $registrationId)\n }\n`;\n\n// BOFF-4551 — self-contained badge HTML for native printing through the\n// browser/OS print dialog (kiosk auto-print + manual reprint). Fetched via a\n// one-off `apollo.query()` and written into a hidden iframe whose\n// contentWindow.print() drives the printer — no PDF round-trip.\nexport const BADGE_HTML_QUERY = gql`\n query EventfullymanagedBadgeHtml($registrationId: ID!) {\n badgeHtml: eventfullyManagedBadgeHtml(registrationId: $registrationId)\n }\n`;\n\n// BOFF-4551 — native badge print pipeline. The kiosk enqueues one job per\n// printed badge (auditing the print server-side and letting a venue thermal\n// print agent coalesce the same queue); `format: PDF` matches the\n// browser-print fallback the kiosk itself performs. Only id + status are\n// selected — the kiosk treats the enqueue as fire-and-forget and reads none\n// of the payload back.\nconst BADGE_PRINT_JOB_FIELDS = `\n id\n status\n`;\n\nexport const ENQUEUE_BADGE_PRINT_MUTATION = gql`\n mutation EventfullymanagedEnqueueBadgePrint($input: EventfullyManagedEnqueueBadgePrintInput!) {\n enqueueBadgePrint: eventfullyManagedEnqueueBadgePrint(input: $input) {\n ${BADGE_PRINT_JOB_FIELDS}\n }\n }\n`;\n\n/** Downloads a base64-encoded PDF payload as a file in the browser. */\nexport function downloadBase64Pdf(base64: string, filename: string): void {\n const bytes = atob(base64);\n const buffer = new Uint8Array(bytes.length);\n for (let i = 0; i < bytes.length; i += 1) buffer[i] = bytes.charCodeAt(i);\n const blob = new Blob([buffer], { type: 'application/pdf' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n document.body.appendChild(link);\n link.click();\n link.remove();\n URL.revokeObjectURL(url);\n}\n\n// ---------------------------------------------------------------------------\n// Virtual sessions — bounded browser-native WebRTC core (BOFF-4318).\n// ---------------------------------------------------------------------------\n\nexport type VirtualParticipantGql = {\n id: string;\n workspaceId: string;\n sessionId: string;\n actorId: string;\n role: 'HOST' | 'PRESENTER' | 'ATTENDEE';\n muted: boolean;\n videoEnabled: boolean;\n joinedAt: string;\n leftAt?: string | null;\n};\n\nexport type VirtualSessionGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n eventSessionId?: string | null;\n mode: 'MEETING' | 'WEBINAR';\n status: 'ACTIVE' | 'ENDED';\n hostId: string;\n startedAt: string;\n endedAt?: string | null;\n participantCount: number;\n maxParticipants: number;\n participants: VirtualParticipantGql[];\n createdAt: string;\n updatedAt: string;\n};\n\nconst VIRTUAL_PARTICIPANT_FIELDS = `\n id\n workspaceId\n sessionId\n actorId\n role\n muted\n videoEnabled\n joinedAt\n leftAt\n`;\n\nconst VIRTUAL_SESSION_FIELDS = `\n id\n workspaceId\n eventId\n eventSessionId\n mode\n status\n hostId\n startedAt\n endedAt\n participantCount\n maxParticipants\n participants {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n createdAt\n updatedAt\n`;\n\nexport const VIRTUAL_SESSION_QUERY = gql`\n query EventfullymanagedVirtualSession($eventId: ID!, $eventSessionId: ID) {\n virtualSession: eventfullyManagedVirtualSession(eventId: $eventId, eventSessionId: $eventSessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const VIRTUAL_SESSIONS_QUERY = gql`\n query EventfullymanagedVirtualSessions($eventId: ID!, $limit: Int, $offset: Int) {\n virtualSessions: eventfullyManagedVirtualSessions(eventId: $eventId, limit: $limit, offset: $offset) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const HOST_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedHostVirtualSession($eventId: ID!, $eventSessionId: ID, $mode: EventfullyManagedVirtualSessionMode!) {\n hostVirtualSession: eventfullyManagedHostVirtualSession(eventId: $eventId, eventSessionId: $eventSessionId, mode: $mode) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const JOIN_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedJoinVirtualSession($eventId: ID!, $eventSessionId: ID) {\n joinVirtualSession: eventfullyManagedJoinVirtualSession(eventId: $eventId, eventSessionId: $eventSessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const LEAVE_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedLeaveVirtualSession($sessionId: ID!) {\n leaveVirtualSession: eventfullyManagedLeaveVirtualSession(sessionId: $sessionId)\n }\n`;\n\nexport const END_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedEndVirtualSession($sessionId: ID!) {\n endVirtualSession: eventfullyManagedEndVirtualSession(sessionId: $sessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const SET_VIRTUAL_MUTE_MUTATION = gql`\n mutation EventfullymanagedSetVirtualMute($sessionId: ID!, $muted: Boolean!) {\n setVirtualMute: eventfullyManagedSetVirtualMute(sessionId: $sessionId, muted: $muted) {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n }\n`;\n\nexport const SET_VIRTUAL_VIDEO_MUTATION = gql`\n mutation EventfullymanagedSetVirtualVideo($sessionId: ID!, $videoEnabled: Boolean!) {\n setVirtualVideo: eventfullyManagedSetVirtualVideo(sessionId: $sessionId, videoEnabled: $videoEnabled) {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n }\n`;\n\nexport const PROMOTE_VIRTUAL_PRESENTER_MUTATION = gql`\n mutation EventfullymanagedPromoteVirtualPresenter($sessionId: ID!, $actorId: ID!) {\n promoteVirtualPresenter: eventfullyManagedPromoteVirtualPresenter(sessionId: $sessionId, actorId: $actorId) {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n }\n`;\n\nexport const SEND_VIRTUAL_SIGNAL_MUTATION = gql`\n mutation EventfullymanagedSendVirtualSignal(\n $sessionId: ID!\n $toActorId: ID!\n $signalType: EventfullyManagedVirtualSignalType!\n $payload: JSON!\n ) {\n sendVirtualSignal: eventfullyManagedSendVirtualSignal(\n sessionId: $sessionId\n toActorId: $toActorId\n signalType: $signalType\n payload: $payload\n )\n }\n`;\n\n// Raw SDL strings (not `gql`-tagged) — consumed by `useEvmSubscription`'s\n// graphql-ws client, which takes a plain document string, not an Apollo\n// DocumentNode.\nexport const VIRTUAL_SIGNAL_SUBSCRIPTION_SDL = `\n subscription EventfullymanagedVirtualSignal($sessionId: ID!) {\n eventfullyManagedVirtualSignal(sessionId: $sessionId) {\n sessionId\n fromActorId\n toActorId\n signalType\n payload\n }\n }\n`;\n\nexport const VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL = `\n subscription EventfullymanagedVirtualParticipantsChanged($sessionId: ID!) {\n eventfullyManagedVirtualParticipantsChanged(sessionId: $sessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Integration connectors — bounded CRM/marketing-automation catalog (BOFF-4324).\n// ---------------------------------------------------------------------------\n\nexport type IntegrationConnectorGql = {\n id: string;\n workspaceId: string;\n provider: 'HUBSPOT';\n name: string;\n status: 'PENDING' | 'CONNECTED' | 'ERROR' | 'DISCONNECTED';\n externalAccountId?: string | null;\n externalAccountName?: string | null;\n lastSyncedAt?: string | null;\n lastError?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type IntegrationSyncRunGql = {\n id: string;\n workspaceId: string;\n connectorId: string;\n eventId?: string | null;\n status: 'RUNNING' | 'SUCCESS' | 'FAILED';\n recordsSynced: number;\n recordsFailed: number;\n errorMessage?: string | null;\n startedAt: string;\n completedAt?: string | null;\n};\n\nconst INTEGRATION_CONNECTOR_FIELDS = `\n id\n workspaceId\n provider\n name\n status\n externalAccountId\n externalAccountName\n lastSyncedAt\n lastError\n createdAt\n updatedAt\n`;\n\nconst INTEGRATION_SYNC_RUN_FIELDS = `\n id\n workspaceId\n connectorId\n eventId\n status\n recordsSynced\n recordsFailed\n errorMessage\n startedAt\n completedAt\n`;\n\nexport const INTEGRATION_CONNECTORS_QUERY = gql`\n query EventfullymanagedIntegrationConnectors($limit: Int, $offset: Int) {\n integrationConnectors: eventfullyManagedIntegrationConnectors(limit: $limit, offset: $offset) {\n ${INTEGRATION_CONNECTOR_FIELDS}\n }\n }\n`;\n\nexport const INTEGRATION_SYNC_RUNS_QUERY = gql`\n query EventfullymanagedIntegrationSyncRuns($connectorId: ID!, $limit: Int, $offset: Int) {\n integrationSyncRuns: eventfullyManagedIntegrationSyncRuns(connectorId: $connectorId, limit: $limit, offset: $offset) {\n ${INTEGRATION_SYNC_RUN_FIELDS}\n }\n }\n`;\n\nexport const CREATE_INTEGRATION_CONNECTOR_MUTATION = gql`\n mutation EventfullymanagedCreateIntegrationConnector($input: EventfullyManagedCreateIntegrationConnectorInput!) {\n createIntegrationConnector: eventfullyManagedCreateIntegrationConnector(input: $input) {\n ${INTEGRATION_CONNECTOR_FIELDS}\n }\n }\n`;\n\nexport const DELETE_INTEGRATION_CONNECTOR_MUTATION = gql`\n mutation EventfullymanagedDeleteIntegrationConnector($id: ID!) {\n deleteIntegrationConnector: eventfullyManagedDeleteIntegrationConnector(id: $id)\n }\n`;\n\nexport const SYNC_ATTENDEES_TO_CONNECTOR_MUTATION = gql`\n mutation EventfullymanagedSyncAttendeesToConnector($connectorId: ID!, $eventId: ID!) {\n syncAttendeesToConnector: eventfullyManagedSyncAttendeesToConnector(connectorId: $connectorId, eventId: $eventId) {\n ${INTEGRATION_SYNC_RUN_FIELDS}\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// NetworkingProfile — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst NETWORKING_PROFILE_FIELDS = `\n id\n workspaceId\n eventId\n attendeeId\n interests\n lookingFor\n industry\n role\n visibility\n metadata\n`;\n\nexport const CREATE_NETWORKING_PROFILE_MUTATION = gql`\n mutation EventfullymanagedCreateNetworkingProfile($input: EventfullyManagedNetworkingProfileInput!) {\n createNetworkingProfile: eventfullyManagedCreateNetworkingProfile(input: $input) {\n ${NETWORKING_PROFILE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_NETWORKING_PROFILE_MUTATION = gql`\n mutation EventfullymanagedUpdateNetworkingProfile($id: ID!, $input: EventfullyManagedNetworkingProfileInput!) {\n updateNetworkingProfile: eventfullyManagedUpdateNetworkingProfile(id: $id, input: $input) {\n ${NETWORKING_PROFILE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_NETWORKING_PROFILE_MUTATION = gql`\n mutation EventfullymanagedDeleteNetworkingProfile($id: ID!) {\n deleteNetworkingProfile: eventfullyManagedDeleteNetworkingProfile(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// NetworkingMatch — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst NETWORKING_MATCH_FIELDS = `\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n`;\n\nexport const CREATE_NETWORKING_MATCH_MUTATION = gql`\n mutation EventfullymanagedCreateNetworkingMatch($input: EventfullyManagedNetworkingMatchInput!) {\n createNetworkingMatch: eventfullyManagedCreateNetworkingMatch(input: $input) {\n ${NETWORKING_MATCH_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_NETWORKING_MATCH_MUTATION = gql`\n mutation EventfullymanagedUpdateNetworkingMatch($id: ID!, $input: EventfullyManagedNetworkingMatchInput!) {\n updateNetworkingMatch: eventfullyManagedUpdateNetworkingMatch(id: $id, input: $input) {\n ${NETWORKING_MATCH_FIELDS}\n }\n }\n`;\n\nexport const DELETE_NETWORKING_MATCH_MUTATION = gql`\n mutation EventfullymanagedDeleteNetworkingMatch($id: ID!) {\n deleteNetworkingMatch: eventfullyManagedDeleteNetworkingMatch(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Meeting — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst MEETING_FIELDS = `\n id\n workspaceId\n eventId\n title\n startsAt\n endsAt\n location\n notes\n sourceProfileId\n targetProfileId\n status\n metadata\n`;\n\nexport const CREATE_MEETING_MUTATION = gql`\n mutation EventfullymanagedCreateMeeting($input: EventfullyManagedMeetingInput!) {\n createMeeting: eventfullyManagedCreateMeeting(input: $input) {\n ${MEETING_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_MEETING_MUTATION = gql`\n mutation EventfullymanagedUpdateMeeting($id: ID!, $input: EventfullyManagedMeetingInput!) {\n updateMeeting: eventfullyManagedUpdateMeeting(id: $id, input: $input) {\n ${MEETING_FIELDS}\n }\n }\n`;\n\nexport const DELETE_MEETING_MUTATION = gql`\n mutation EventfullymanagedDeleteMeeting($id: ID!) {\n deleteMeeting: eventfullyManagedDeleteMeeting(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Delete-only for existing create/update entities (Event, Venue, Sponsor).\n// ---------------------------------------------------------------------------\n\nexport const DELETE_EVENT_MUTATION = gql`\n mutation EventfullymanagedDeleteEvent($id: ID!) {\n deleteEvent: eventfullyManagedDeleteEvent(id: $id)\n }\n`;\n\nexport const DELETE_VENUE_MUTATION = gql`\n mutation EventfullymanagedDeleteVenue($id: ID!) {\n deleteVenue: eventfullyManagedDeleteVenue(id: $id)\n }\n`;\n\nexport const DELETE_SPONSOR_MUTATION = gql`\n mutation EventfullymanagedDeleteSponsor($id: ID!) {\n deleteSponsor: eventfullyManagedDeleteSponsor(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Communications — publish announcement / send campaign.\n// ---------------------------------------------------------------------------\n\nexport const PUBLISH_ANNOUNCEMENT_MUTATION = gql`\n mutation EventfullymanagedPublishAnnouncement($id: ID!) {\n publishAnnouncement: eventfullyManagedPublishAnnouncement(id: $id) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const SEND_COMMUNICATION_CAMPAIGN_MUTATION = gql`\n mutation EventfullymanagedSendCommunicationCampaign($id: ID!) {\n sendCommunicationCampaign: eventfullyManagedSendCommunicationCampaign(id: $id) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\n// ===========================================================================\n// Response type aliases\n// ===========================================================================\n\ntype EventDetailResponse = { event: EventDetailGql | null };\ntype SponsorDetailResponse = { sponsor: SponsorGql | null };\ntype ExhibitorDetailResponse = { exhibitor: ExhibitorGql | null };\ntype ExhibitorSummaryResponse = { exhibitorSummary: { boothCount: number } };\ntype EntityTagsResponse = { eventfullyManagedEntityTags: EntityTagAssignmentGql[] };\ntype AvailableTagsResponse = { availableEventfullyManagedTags: AvailableTagGql[] };\ntype TagEntityResponse = { tagEventfullyManagedEntity: EntityTagAssignmentGql };\ntype UntagEntityResponse = { untagEventfullyManagedEntity: boolean };\ntype CreateEntityTagResponse = { createEventfullyManagedEntityTag: AvailableTagGql };\n\ntype CreateEventSessionResponse = { createEventSession: EventSessionGql };\ntype UpdateEventSessionResponse = { updateEventSession: EventSessionGql };\ntype DeleteEventSessionResponse = { deleteEventSession: boolean };\ntype CreateSpeakerResponse = { createSpeaker: SpeakerGql };\ntype UpdateSpeakerResponse = { updateSpeaker: SpeakerGql };\ntype DeleteSpeakerResponse = { deleteSpeaker: boolean };\ntype CreateTicketTypeResponse = { createTicketType: TicketTypeGql };\ntype UpdateTicketTypeResponse = { updateTicketType: TicketTypeGql };\ntype DeleteTicketTypeResponse = { deleteTicketType: boolean };\ntype CreatePromoCodeResponse = { createPromoCode: PromoCodeGql };\ntype UpdatePromoCodeResponse = { updatePromoCode: PromoCodeGql };\ntype DeletePromoCodeResponse = { deletePromoCode: boolean };\ntype CreateRegistrationResponse = { createRegistration: RegistrationGql };\ntype UpdateRegistrationResponse = { updateRegistration: RegistrationGql };\ntype DeleteRegistrationResponse = { deleteRegistration: boolean };\ntype CreateAttendeeResponse = { createAttendee: AttendeeGql };\ntype UpdateAttendeeResponse = { updateAttendee: AttendeeGql };\ntype DeleteAttendeeResponse = { deleteAttendee: boolean };\ntype CreateExhibitorResponse = { createExhibitor: ExhibitorGql };\ntype UpdateExhibitorResponse = { updateExhibitor: ExhibitorGql };\ntype DeleteExhibitorResponse = { deleteExhibitor: boolean };\ntype CreateLeadResponse = { createLead: LeadGql };\ntype UpdateLeadResponse = { updateLead: LeadGql };\ntype DeleteLeadResponse = { deleteLead: boolean };\ntype CreateCheckInStationResponse = { createCheckInStation: CheckInStationGql };\ntype UpdateCheckInStationResponse = { updateCheckInStation: CheckInStationGql };\ntype DeleteCheckInStationResponse = { deleteCheckInStation: boolean };\ntype CreateCheckInRecordResponse = { createCheckInRecord: CheckInRecordGql };\ntype UpdateCheckInRecordResponse = { updateCheckInRecord: CheckInRecordGql };\ntype DeleteCheckInRecordResponse = { deleteCheckInRecord: boolean };\n// BOFF-4330\ntype ScanCheckInResponse = { scanCheckIn: CheckInRecordGql };\n// BOFF-4551 — native badge print pipeline. Only id + status are selected (the\n// kiosk treats the enqueue as fire-and-forget and reads none of the payload\n// back), so the type intentionally mirrors exactly that selection.\nexport type BadgePrintJobGql = {\n id: string;\n status: string;\n};\ntype EnqueueBadgePrintResponse = { enqueueBadgePrint: BadgePrintJobGql };\ntype EnqueueBadgePrintVars = {\n input: { registrationId: string; stationId?: string | null; format?: 'ZPL' | 'PDF' };\n};\ntype ScanCheckInVars = { input: Record<string, unknown> };\ntype CreateManualCheckInResponse = { createManualCheckIn: CheckInRecordGql };\nexport type KioskAttendeeMatchGql = { id: string; fullName: string; email: string };\ntype KioskSearchAttendeesResponse = { kioskSearchAttendees: KioskAttendeeMatchGql[] };\ntype CreateNetworkingProfileResponse = { createNetworkingProfile: NetworkingProfileGql };\ntype UpdateNetworkingProfileResponse = { updateNetworkingProfile: NetworkingProfileGql };\ntype DeleteNetworkingProfileResponse = { deleteNetworkingProfile: boolean };\ntype CreateNetworkingMatchResponse = { createNetworkingMatch: NetworkingMatchGql };\ntype UpdateNetworkingMatchResponse = { updateNetworkingMatch: NetworkingMatchGql };\ntype DeleteNetworkingMatchResponse = { deleteNetworkingMatch: boolean };\ntype CreateMeetingResponse = { createMeeting: MeetingGql };\ntype UpdateMeetingResponse = { updateMeeting: MeetingGql };\ntype DeleteMeetingResponse = { deleteMeeting: boolean };\ntype DeleteEventResponse = { deleteEvent: boolean };\ntype DeleteVenueResponse = { deleteVenue: boolean };\ntype DeleteSponsorResponse = { deleteSponsor: boolean };\ntype PublishAnnouncementResponse = { publishAnnouncement: SimpleEntityGql };\ntype SendCommunicationCampaignResponse = { sendCommunicationCampaign: SimpleEntityGql };\n\n// BOFF-4318 — virtual session responses.\ntype VirtualSessionResponse = { virtualSession: VirtualSessionGql | null };\ntype VirtualSessionsResponse = { virtualSessions: VirtualSessionGql[] };\ntype HostVirtualSessionResponse = { hostVirtualSession: VirtualSessionGql };\ntype JoinVirtualSessionResponse = { joinVirtualSession: VirtualSessionGql };\ntype LeaveVirtualSessionResponse = { leaveVirtualSession: boolean };\ntype EndVirtualSessionResponse = { endVirtualSession: VirtualSessionGql };\ntype SetVirtualMuteResponse = { setVirtualMute: VirtualParticipantGql };\ntype SetVirtualVideoResponse = { setVirtualVideo: VirtualParticipantGql };\ntype PromoteVirtualPresenterResponse = { promoteVirtualPresenter: VirtualParticipantGql };\ntype SendVirtualSignalResponse = { sendVirtualSignal: boolean };\n\n// BOFF-4324 — integration connector responses.\ntype IntegrationConnectorsResponse = { integrationConnectors: IntegrationConnectorGql[] };\ntype IntegrationSyncRunsResponse = { integrationSyncRuns: IntegrationSyncRunGql[] };\ntype CreateIntegrationConnectorResponse = { createIntegrationConnector: IntegrationConnectorGql };\ntype DeleteIntegrationConnectorResponse = { deleteIntegrationConnector: boolean };\ntype SyncAttendeesToConnectorResponse = { syncAttendeesToConnector: IntegrationSyncRunGql };\n\ntype CreateVars = { input: Record<string, unknown> };\ntype UpdateVars = { id: string; input: Record<string, unknown> };\ntype IdVar = { id: string };\n\n// ===========================================================================\n// Single-entity + tag query hooks\n// ===========================================================================\n\nexport const useEventQuery = (id: string) =>\n useQuery<EventDetailResponse, IdVar>(EVENT_QUERY, { variables: { id }, skip: !id });\nexport const useSponsorQuery = (id: string) =>\n useQuery<SponsorDetailResponse, IdVar>(SPONSOR_QUERY, { variables: { id }, skip: !id });\nexport const useExhibitorQuery = (id: string) =>\n useQuery<ExhibitorDetailResponse, IdVar>(EXHIBITOR_QUERY, { variables: { id }, skip: !id });\nexport const useExhibitorSummaryQuery = (variables: { workspaceId?: string; eventId?: string } = {}) =>\n useQuery<ExhibitorSummaryResponse, { workspaceId?: string; eventId?: string }>(EXHIBITOR_SUMMARY_QUERY, {\n variables,\n });\n\n// BOFF-4330 — a registration's signed QR check-in token + rendered PNG.\nexport type CheckInTokenGql = { registrationId: string; token: string; qrDataUrl: string };\ntype CheckInTokenResponse = { checkInToken: CheckInTokenGql };\nexport const useCheckInTokenQuery = (registrationId: string) =>\n useQuery<CheckInTokenResponse, { registrationId: string }>(CHECK_IN_TOKEN_QUERY, {\n variables: { registrationId },\n skip: !registrationId,\n });\n\nexport const useEntityTagsQuery = (variables: { input: { entityType: string; entityId: string } }) =>\n useQuery<EntityTagsResponse, { input: { entityType: string; entityId: string } }>(ENTITY_TAGS_QUERY, {\n variables,\n skip: !variables.input.entityId,\n });\nexport const useAvailableTagsQuery = (variables: { limit?: number } = {}) =>\n useQuery<AvailableTagsResponse, { limit?: number }>(AVAILABLE_TAGS_QUERY, { variables });\n\nconst CAMPAIGN_AUDIENCE_TAGS_QUERY = gql`\n query EventfullymanagedCampaignAudienceTags($query: String!) {\n searchTags(query: $query, limit: 5) {\n id\n label\n scope\n }\n }\n`;\n\ntype AudienceTagOption = Pick<AvailableTagGql, 'id' | 'label'> & { scope: string };\n\nexport const useCampaignAudienceTagsQuery = (query: string) =>\n useQuery<{ searchTags: AudienceTagOption[] }, { query: string }>(CAMPAIGN_AUDIENCE_TAGS_QUERY, {\n variables: { query },\n });\n\n// ===========================================================================\n// Tag mutation hooks\n// ===========================================================================\n\nexport const useTagEntityMutation = () =>\n useMutation<TagEntityResponse, { input: Record<string, unknown> }>(TAG_ENTITY_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useUntagEntityMutation = () =>\n useMutation<UntagEntityResponse, { input: Record<string, unknown> }>(UNTAG_ENTITY_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useCreateEntityTagMutation = () =>\n useMutation<CreateEntityTagResponse, { input: Record<string, unknown> }>(CREATE_ENTITY_TAG_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: AVAILABLE_TAGS_QUERY }],\n });\n\n// ===========================================================================\n// CRUD mutation hooks\n// ===========================================================================\n\nexport const useCreateEventSessionMutation = () =>\n useMutation<CreateEventSessionResponse, CreateVars>(CREATE_EVENT_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_SESSIONS_QUERY }],\n });\nexport const useUpdateEventSessionMutation = () =>\n useMutation<UpdateEventSessionResponse, UpdateVars>(UPDATE_EVENT_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_SESSIONS_QUERY }],\n });\nexport const useDeleteEventSessionMutation = () =>\n useMutation<DeleteEventSessionResponse, IdVar>(DELETE_EVENT_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_SESSIONS_QUERY }],\n });\n\nexport const useCreateSpeakerMutation = () =>\n useMutation<CreateSpeakerResponse, CreateVars>(CREATE_SPEAKER_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPEAKERS_QUERY }],\n });\nexport const useUpdateSpeakerMutation = () =>\n useMutation<UpdateSpeakerResponse, UpdateVars>(UPDATE_SPEAKER_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPEAKERS_QUERY }],\n });\nexport const useDeleteSpeakerMutation = () =>\n useMutation<DeleteSpeakerResponse, IdVar>(DELETE_SPEAKER_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPEAKERS_QUERY }],\n });\n\nexport const useCreateTicketTypeMutation = () =>\n useMutation<CreateTicketTypeResponse, CreateVars>(CREATE_TICKET_TYPE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: TICKET_TYPES_QUERY }],\n });\nexport const useUpdateTicketTypeMutation = () =>\n useMutation<UpdateTicketTypeResponse, UpdateVars>(UPDATE_TICKET_TYPE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: TICKET_TYPES_QUERY }],\n });\nexport const useDeleteTicketTypeMutation = () =>\n useMutation<DeleteTicketTypeResponse, IdVar>(DELETE_TICKET_TYPE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: TICKET_TYPES_QUERY }],\n });\n\nexport const useCreatePromoCodeMutation = () =>\n useMutation<CreatePromoCodeResponse, CreateVars>(CREATE_PROMO_CODE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: PROMO_CODES_QUERY }],\n });\nexport const useUpdatePromoCodeMutation = () =>\n useMutation<UpdatePromoCodeResponse, UpdateVars>(UPDATE_PROMO_CODE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: PROMO_CODES_QUERY }],\n });\nexport const useDeletePromoCodeMutation = () =>\n useMutation<DeletePromoCodeResponse, IdVar>(DELETE_PROMO_CODE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: PROMO_CODES_QUERY }],\n });\n\nexport const useCreateRegistrationMutation = () =>\n useMutation<CreateRegistrationResponse, CreateVars>(CREATE_REGISTRATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: REGISTRATIONS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpdateRegistrationMutation = () =>\n useMutation<UpdateRegistrationResponse, UpdateVars>(UPDATE_REGISTRATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: REGISTRATIONS_QUERY }],\n });\nexport const useDeleteRegistrationMutation = () =>\n useMutation<DeleteRegistrationResponse, IdVar>(DELETE_REGISTRATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: REGISTRATIONS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\n\nexport const useCreateAttendeeMutation = () =>\n useMutation<CreateAttendeeResponse, CreateVars>(CREATE_ATTENDEE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ATTENDEES_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpdateAttendeeMutation = () =>\n useMutation<UpdateAttendeeResponse, UpdateVars>(UPDATE_ATTENDEE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ATTENDEES_QUERY }],\n });\nexport const useDeleteAttendeeMutation = () =>\n useMutation<DeleteAttendeeResponse, IdVar>(DELETE_ATTENDEE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ATTENDEES_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\n\nexport const useCreateExhibitorMutation = () =>\n useMutation<CreateExhibitorResponse, CreateVars>(CREATE_EXHIBITOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EXHIBITORS_QUERY }],\n });\nexport const useUpdateExhibitorMutation = () =>\n useMutation<UpdateExhibitorResponse, UpdateVars>(UPDATE_EXHIBITOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EXHIBITORS_QUERY }],\n });\nexport const useDeleteExhibitorMutation = () =>\n useMutation<DeleteExhibitorResponse, IdVar>(DELETE_EXHIBITOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EXHIBITORS_QUERY }],\n });\n\nexport const useCreateLeadMutation = () =>\n useMutation<CreateLeadResponse, CreateVars>(CREATE_LEAD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: LEADS_QUERY }],\n });\nexport const useUpdateLeadMutation = () =>\n useMutation<UpdateLeadResponse, UpdateVars>(UPDATE_LEAD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: LEADS_QUERY }],\n });\nexport const useDeleteLeadMutation = () =>\n useMutation<DeleteLeadResponse, IdVar>(DELETE_LEAD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: LEADS_QUERY }],\n });\n\nexport const useCreateCheckInStationMutation = () =>\n useMutation<CreateCheckInStationResponse, CreateVars>(CREATE_CHECKIN_STATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_STATIONS_QUERY }],\n });\nexport const useUpdateCheckInStationMutation = () =>\n useMutation<UpdateCheckInStationResponse, UpdateVars>(UPDATE_CHECKIN_STATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_STATIONS_QUERY }],\n });\nexport const useDeleteCheckInStationMutation = () =>\n useMutation<DeleteCheckInStationResponse, IdVar>(DELETE_CHECKIN_STATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_STATIONS_QUERY }],\n });\n\nexport const useCreateCheckInRecordMutation = () =>\n useMutation<CreateCheckInRecordResponse, CreateVars>(CREATE_CHECKIN_RECORD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\nexport const useUpdateCheckInRecordMutation = () =>\n useMutation<UpdateCheckInRecordResponse, UpdateVars>(UPDATE_CHECKIN_RECORD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\nexport const useDeleteCheckInRecordMutation = () =>\n useMutation<DeleteCheckInRecordResponse, IdVar>(DELETE_CHECKIN_RECORD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\n\n// BOFF-4330 — kiosk QR scan path. Deliberately has NO `onError` toast: callers\n// (interactive submit AND the background offline-queue sync loop) decide for\n// themselves how to react to a failure — a background sync retry failing\n// because the device is still offline should never pop an error toast.\nexport const useScanCheckInMutation = () =>\n useMutation<ScanCheckInResponse, ScanCheckInVars>(SCAN_CHECK_IN_MUTATION, {\n errorPolicy: 'all',\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\n\n// BOFF-11376/BOFF-11377 — kiosk manual lookup path. No `onError` toast, same\n// reasoning as scanCheckIn: the caller shows its own contextual error.\nexport const useCreateManualCheckInMutation = () =>\n useMutation<CreateManualCheckInResponse, CreateVars>(CREATE_MANUAL_CHECKIN_MUTATION, {\n errorPolicy: 'all',\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\n\n// BOFF-11375 — on-demand kiosk attendee search, skipped until a query is typed.\nexport const useKioskSearchAttendeesQuery = (variables: { eventId: string; query: string }) =>\n useQuery<KioskSearchAttendeesResponse, { eventId: string; query: string }>(KIOSK_SEARCH_ATTENDEES_QUERY, {\n variables,\n skip: !variables.query.trim(),\n });\n\n// BOFF-4551 — no `onError` toast: the kiosk treats a failed print as a\n// non-fatal side effect of a check-in that already succeeded (the caller\n// shows its own contextual toast).\nexport const useEnqueueBadgePrintMutation = () =>\n useMutation<EnqueueBadgePrintResponse, EnqueueBadgePrintVars>(ENQUEUE_BADGE_PRINT_MUTATION, {\n errorPolicy: 'all',\n });\n\nexport const useCreateNetworkingProfileMutation = () =>\n useMutation<CreateNetworkingProfileResponse, CreateVars>(CREATE_NETWORKING_PROFILE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_PROFILES_QUERY }],\n });\nexport const useUpdateNetworkingProfileMutation = () =>\n useMutation<UpdateNetworkingProfileResponse, UpdateVars>(UPDATE_NETWORKING_PROFILE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_PROFILES_QUERY }],\n });\nexport const useDeleteNetworkingProfileMutation = () =>\n useMutation<DeleteNetworkingProfileResponse, IdVar>(DELETE_NETWORKING_PROFILE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_PROFILES_QUERY }],\n });\n\nexport const useGenerateNetworkingMatchesMutation = () =>\n useMutation<GenerateNetworkingMatchesResponse, { eventId: string }>(GENERATE_NETWORKING_MATCHES_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\nexport const useCreateNetworkingMatchMutation = () =>\n useMutation<CreateNetworkingMatchResponse, CreateVars>(CREATE_NETWORKING_MATCH_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\nexport const useUpdateNetworkingMatchMutation = () =>\n useMutation<UpdateNetworkingMatchResponse, UpdateVars>(UPDATE_NETWORKING_MATCH_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\nexport const useDeleteNetworkingMatchMutation = () =>\n useMutation<DeleteNetworkingMatchResponse, IdVar>(DELETE_NETWORKING_MATCH_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\n\nexport const useCreateMeetingMutation = () =>\n useMutation<CreateMeetingResponse, CreateVars>(CREATE_MEETING_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: MEETINGS_QUERY }],\n });\nexport const useUpdateMeetingMutation = () =>\n useMutation<UpdateMeetingResponse, UpdateVars>(UPDATE_MEETING_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: MEETINGS_QUERY }],\n });\nexport const useDeleteMeetingMutation = () =>\n useMutation<DeleteMeetingResponse, IdVar>(DELETE_MEETING_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: MEETINGS_QUERY }],\n });\n\nexport const useDeleteEventMutation = () =>\n useMutation<DeleteEventResponse, IdVar>(DELETE_EVENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useDeleteVenueMutation = () =>\n useMutation<DeleteVenueResponse, IdVar>(DELETE_VENUE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: VENUES_QUERY }],\n });\nexport const useDeleteSponsorMutation = () =>\n useMutation<DeleteSponsorResponse, IdVar>(DELETE_SPONSOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPONSORS_QUERY }],\n });\n\nexport const usePublishAnnouncementMutation = () =>\n useMutation<PublishAnnouncementResponse, IdVar>(PUBLISH_ANNOUNCEMENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ANNOUNCEMENTS_QUERY }],\n });\nexport const useSendCommunicationCampaignMutation = () =>\n useMutation<SendCommunicationCampaignResponse, IdVar>(SEND_COMMUNICATION_CAMPAIGN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: COMMUNICATION_CAMPAIGNS_QUERY }],\n });\n\n// ===========================================================================\n// Virtual session hooks (BOFF-4318)\n// ===========================================================================\n\nexport const useVirtualSessionQuery = (variables: { eventId?: string; eventSessionId?: string | null }) =>\n useQuery<VirtualSessionResponse, { eventId?: string; eventSessionId?: string | null }>(VIRTUAL_SESSION_QUERY, {\n variables,\n skip: !variables.eventId,\n });\nexport const useVirtualSessionsQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<VirtualSessionsResponse, { eventId?: string; limit?: number; offset?: number }>(VIRTUAL_SESSIONS_QUERY, {\n variables,\n skip: !variables.eventId,\n });\n\nexport const useHostVirtualSessionMutation = () =>\n useMutation<\n HostVirtualSessionResponse,\n { eventId: string; eventSessionId?: string | null; mode: 'MEETING' | 'WEBINAR' }\n >(HOST_VIRTUAL_SESSION_MUTATION, { errorPolicy: 'all', onError: onMutationError });\nexport const useJoinVirtualSessionMutation = () =>\n useMutation<JoinVirtualSessionResponse, { eventId: string; eventSessionId?: string | null }>(\n JOIN_VIRTUAL_SESSION_MUTATION,\n { errorPolicy: 'all', onError: onMutationError }\n );\nexport const useLeaveVirtualSessionMutation = () =>\n useMutation<LeaveVirtualSessionResponse, { sessionId: string }>(LEAVE_VIRTUAL_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useEndVirtualSessionMutation = () =>\n useMutation<EndVirtualSessionResponse, { sessionId: string }>(END_VIRTUAL_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useSetVirtualMuteMutation = () =>\n useMutation<SetVirtualMuteResponse, { sessionId: string; muted: boolean }>(SET_VIRTUAL_MUTE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useSetVirtualVideoMutation = () =>\n useMutation<SetVirtualVideoResponse, { sessionId: string; videoEnabled: boolean }>(SET_VIRTUAL_VIDEO_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const usePromoteVirtualPresenterMutation = () =>\n useMutation<PromoteVirtualPresenterResponse, { sessionId: string; actorId: string }>(\n PROMOTE_VIRTUAL_PRESENTER_MUTATION,\n { errorPolicy: 'all', onError: onMutationError }\n );\n/**\n * Signal mutations fire many times per second during ICE negotiation — no\n * `onMutationError` toast spam; the calling hook decides how (or whether) to\n * surface a transport failure to the user.\n */\nexport const useSendVirtualSignalMutation = () =>\n useMutation<\n SendVirtualSignalResponse,\n { sessionId: string; toActorId: string; signalType: 'OFFER' | 'ANSWER' | 'ICE_CANDIDATE'; payload: unknown }\n >(SEND_VIRTUAL_SIGNAL_MUTATION, { errorPolicy: 'all' });\n\n// ===========================================================================\n// Integration connector hooks (BOFF-4324)\n// ===========================================================================\n\nexport const useIntegrationConnectorsQuery = (variables: { limit?: number; offset?: number } = {}) =>\n useQuery<IntegrationConnectorsResponse, { limit?: number; offset?: number }>(INTEGRATION_CONNECTORS_QUERY, {\n variables,\n });\nexport const useIntegrationSyncRunsQuery = (variables: { connectorId?: string; limit?: number; offset?: number }) =>\n useQuery<IntegrationSyncRunsResponse, { connectorId?: string; limit?: number; offset?: number }>(\n INTEGRATION_SYNC_RUNS_QUERY,\n { variables, skip: !variables.connectorId }\n );\n\nexport const useCreateIntegrationConnectorMutation = () =>\n useMutation<CreateIntegrationConnectorResponse, CreateVars>(CREATE_INTEGRATION_CONNECTOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: INTEGRATION_CONNECTORS_QUERY }],\n });\nexport const useDeleteIntegrationConnectorMutation = () =>\n useMutation<DeleteIntegrationConnectorResponse, IdVar>(DELETE_INTEGRATION_CONNECTOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: INTEGRATION_CONNECTORS_QUERY }],\n });\nexport const useSyncAttendeesToConnectorMutation = () =>\n useMutation<SyncAttendeesToConnectorResponse, { connectorId: string; eventId: string }>(\n SYNC_ATTENDEES_TO_CONNECTOR_MUTATION,\n { errorPolicy: 'all', onError: onMutationError }\n );\n"],"mappings":";;;;;AAWA,IAAMA,KAAmB,MAA2B;CAClD,EAAO,MAAM,wBAAwBC,EAAM,WAAW,mBAAmB;AAC3E,GAugBaC,IAA0B,CAAG;;;;;;;;;;;;;;;;;GAqB7BC,IAAwB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2C3BC,KAA2B,CAAG;;;;;;;;;;;;;;;;;GAmB9BC,IAAe,CAAG;;;;;;;;;;;;;;;;;;;;GA6BlBC,IAAwB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmD3BC,IAAe,CAAG;;;;;;;;;;;;;;;;;;;;;;;GAyBlBC,IAAc,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCjBC,IAAiB,CAAG;;;;;;;;;;;;;;;;;;;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AC,GAOU2M,WACX7K,EAGEuF,IAA+B;CAAE,aAAa;CAAO,SAASzL;AAAgB,CAAC,GACtEgR,WACX9K,EACEwF,IACA;CAAE,aAAa;CAAO,SAAS1L;AAAgB,CACjD,GACWiR,WACX/K,EAAgEyF,IAAgC;CAC9F,aAAa;CACb,SAAS3L;AACX,CAAC,GACUkR,WACXhL,EAA8D0F,IAA8B;CAC1F,aAAa;CACb,SAAS5L;AACX,CAAC,GACUmR,WACXjL,EAA2E2F,IAA2B;CACpG,aAAa;CACb,SAAS7L;AACX,CAAC,GACUoR,WACXlL,EAAmF4F,IAA4B;CAC7G,aAAa;CACb,SAAS9L;AACX,CAAC,GACUqR,WACXnL,EACE6F,IACA;CAAE,aAAa;CAAO,SAAS/L;AAAgB,CACjD,GAMWsR,WACXpL,EAGE8F,IAA8B,EAAE,aAAa,MAAM,CAAC,GAM3CuF,MAAiC,IAAiD,CAAC,MAC9F3N,EAA6EyI,GAA8B,EACzG,aACF,CAAC,GACUmF,MAA+B,MAC1C5N,EACE0I,IACA;CAAE;CAAW,MAAM,CAAClI,EAAU;AAAY,CAC5C,GAEWqN,WACXvL,EAA4DqG,IAAuC;CACjG,aAAa;CACb,SAASvM;CACT,gBAAgB,CAAC,EAAE,OAAOqM,EAA6B,CAAC;AAC1D,CAAC,GACUqF,WACXxL,EAAuDsG,IAAuC;CAC5F,aAAa;CACb,SAASxM;CACT,gBAAgB,CAAC,EAAE,OAAOqM,EAA6B,CAAC;AAC1D,CAAC,GACUsF,WACXzL,EACEuG,IACA;CAAE,aAAa;CAAO,SAASzM;AAAgB,CACjD"}
1
+ {"version":3,"file":"eventApi.js","names":["onMutationError","error","DASHBOARD_SUMMARY_QUERY","FINANCE_SUMMARY_QUERY","SPONSOR_ROI_REPORT_QUERY","EVENTS_QUERY","EVENT_PORTFOLIO_QUERY","VENUES_QUERY","VENUE_QUERY","SPONSORS_QUERY","SPONSORS_PORTFOLIO_TOTALS_QUERY","REGISTRATIONS_QUERY","ATTENDEES_QUERY","EVENT_SESSIONS_QUERY","SPEAKERS_QUERY","SPEAKER_QUERY","TICKET_TYPES_QUERY","PROMO_CODES_QUERY","EXHIBITORS_QUERY","EXHIBITOR_SUMMARY_QUERY","LEADS_QUERY","CHECKIN_RECORDS_QUERY","CHECK_IN_THROUGHPUT_QUERY","SESSION_CONFLICTS_QUERY","NETWORKING_PROFILES_QUERY","CHECKIN_STATIONS_QUERY","NETWORKING_MATCHES_QUERY","GENERATE_NETWORKING_MATCHES_MUTATION","SUGGESTED_CONNECTIONS_QUERY","RECOMMENDED_SESSIONS_QUERY","MEETINGS_QUERY","MEETING_QUERY","ANNOUNCEMENTS_QUERY","WORKFLOW_TEMPLATES_QUERY","AUTOMATION_RULES_QUERY","AUTOMATION_RULE_RUNS_QUERY","EVENT_TEMPLATES_QUERY","SAVE_EVENT_TEMPLATE_MUTATION","DELETE_EVENT_TEMPLATE_MUTATION","CREATE_EVENT_FROM_TEMPLATE_MUTATION","ATTENDEE_HISTORY_QUERY","COMMUNICATION_CAMPAIGNS_QUERY","ANALYTICS_SNAPSHOTS_QUERY","CREATE_VENUE_MUTATION","UPDATE_VENUE_MUTATION","CREATE_SPONSOR_MUTATION","UPDATE_SPONSOR_MUTATION","CREATE_FLOOR_PLAN_MUTATION","UPDATE_FLOOR_PLAN_MUTATION","DELETE_FLOOR_PLAN_MUTATION","CREATE_EVENT_MUTATION","UPDATE_EVENT_MUTATION","UPSERT_ANNOUNCEMENT_MUTATION","UPSERT_WORKFLOW_TEMPLATE_MUTATION","UPSERT_AUTOMATION_RULE_MUTATION","DELETE_WORKFLOW_TEMPLATE_MUTATION","DELETE_AUTOMATION_RULE_MUTATION","UPSERT_COMMUNICATION_CAMPAIGN_MUTATION","UPSERT_ANALYTICS_SNAPSHOT_MUTATION","useDashboardSummaryQuery","useQuery","useFinanceSummaryQuery","options","useSponsorRoiReportQuery","useEventsQuery","useEventPortfolioQuery","useVenuesQuery","vars","variables","useVenueQuery","id","useSponsorsQuery","useSponsorsPortfolioTotalsQuery","useRegistrationsQuery","useAttendeesQuery","useEventSessionsQuery","useSpeakersQuery","useSpeakerQuery","useTicketTypesQuery","usePromoCodesQuery","useExhibitorsQuery","useLeadsQuery","useCheckInStationsQuery","useCheckInRecordsQuery","useCheckInThroughputQuery","useSessionConflictsQuery","useNetworkingProfilesQuery","useNetworkingMatchesQuery","useSuggestedConnectionsQuery","useRecommendedSessionsQuery","useMeetingsQuery","useMeetingQuery","useAnnouncementsQuery","useWorkflowTemplatesQuery","useAutomationRulesQuery","useCommunicationCampaignsQuery","useAnalyticsSnapshotsQuery","useCreateVenueMutation","useMutation","useUpdateVenueMutation","useCreateSponsorMutation","useUpdateSponsorMutation","useCreateFloorPlanMutation","useUpdateFloorPlanMutation","useDeleteFloorPlanMutation","useCreateEventMutation","useUpdateEventMutation","useUpsertAnnouncementMutation","useUpsertWorkflowTemplateMutation","useUpsertAutomationRuleMutation","useDeleteWorkflowTemplateMutation","useDeleteAutomationRuleMutation","useAutomationRuleRunsQuery","useEventTemplatesQuery","useSaveEventTemplateMutation","useDeleteEventTemplateMutation","useCreateEventFromTemplateMutation","useAttendeeHistoryQuery","skip","useUpsertCommunicationCampaignMutation","useUpsertAnalyticsSnapshotMutation","EVENT_QUERY","SPONSOR_QUERY","ENTITY_TAGS_QUERY","AVAILABLE_TAGS_QUERY","TAG_ENTITY_MUTATION","UNTAG_ENTITY_MUTATION","CREATE_ENTITY_TAG_MUTATION","EVENT_SESSION_FIELDS","CREATE_EVENT_SESSION_MUTATION","UPDATE_EVENT_SESSION_MUTATION","DELETE_EVENT_SESSION_MUTATION","SPEAKER_FIELDS","CREATE_SPEAKER_MUTATION","UPDATE_SPEAKER_MUTATION","DELETE_SPEAKER_MUTATION","TICKET_TYPE_FIELDS","CREATE_TICKET_TYPE_MUTATION","UPDATE_TICKET_TYPE_MUTATION","DELETE_TICKET_TYPE_MUTATION","PROMO_CODE_FIELDS","CREATE_PROMO_CODE_MUTATION","UPDATE_PROMO_CODE_MUTATION","DELETE_PROMO_CODE_MUTATION","REGISTRATION_FIELDS","CREATE_REGISTRATION_MUTATION","UPDATE_REGISTRATION_MUTATION","DELETE_REGISTRATION_MUTATION","ATTENDEE_FIELDS","CREATE_ATTENDEE_MUTATION","UPDATE_ATTENDEE_MUTATION","DELETE_ATTENDEE_MUTATION","EXHIBITOR_FIELDS","EXHIBITOR_QUERY","CREATE_EXHIBITOR_MUTATION","UPDATE_EXHIBITOR_MUTATION","DELETE_EXHIBITOR_MUTATION","LEAD_FIELDS","CREATE_LEAD_MUTATION","CHECKIN_STATION_FIELDS","CREATE_CHECKIN_STATION_MUTATION","UPDATE_CHECKIN_STATION_MUTATION","DELETE_CHECKIN_STATION_MUTATION","CHECKIN_RECORD_FIELDS","UPDATE_CHECKIN_RECORD_MUTATION","DELETE_CHECKIN_RECORD_MUTATION","SCAN_CHECK_IN_MUTATION","CREATE_MANUAL_CHECKIN_MUTATION","KIOSK_SEARCH_ATTENDEES_QUERY","CHECK_IN_TOKEN_QUERY","BADGE_PDF_QUERY","BADGE_HTML_QUERY","ENQUEUE_BADGE_PRINT_MUTATION","downloadBase64Pdf","bytes","base64","buffer","i","blob","url","link","filename","VIRTUAL_PARTICIPANT_FIELDS","VIRTUAL_SESSION_FIELDS","VIRTUAL_SESSION_QUERY","HOST_VIRTUAL_SESSION_MUTATION","JOIN_VIRTUAL_SESSION_MUTATION","LEAVE_VIRTUAL_SESSION_MUTATION","END_VIRTUAL_SESSION_MUTATION","SET_VIRTUAL_MUTE_MUTATION","SET_VIRTUAL_VIDEO_MUTATION","PROMOTE_VIRTUAL_PRESENTER_MUTATION","SEND_VIRTUAL_SIGNAL_MUTATION","VIRTUAL_SIGNAL_SUBSCRIPTION_SDL","VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL","INTEGRATION_CONNECTOR_FIELDS","INTEGRATION_SYNC_RUN_FIELDS","INTEGRATION_CONNECTORS_QUERY","INTEGRATION_SYNC_RUNS_QUERY","CREATE_INTEGRATION_CONNECTOR_MUTATION","DELETE_INTEGRATION_CONNECTOR_MUTATION","SYNC_ATTENDEES_TO_CONNECTOR_MUTATION","NETWORKING_PROFILE_FIELDS","CREATE_NETWORKING_PROFILE_MUTATION","UPDATE_NETWORKING_PROFILE_MUTATION","NETWORKING_MATCH_FIELDS","MEETING_FIELDS","CREATE_MEETING_MUTATION","UPDATE_MEETING_MUTATION","DELETE_MEETING_MUTATION","DELETE_EVENT_MUTATION","DELETE_VENUE_MUTATION","DELETE_SPONSOR_MUTATION","PUBLISH_ANNOUNCEMENT_MUTATION","SEND_COMMUNICATION_CAMPAIGN_MUTATION","useEventQuery","useSponsorQuery","useExhibitorQuery","useExhibitorSummaryQuery","useCheckInTokenQuery","registrationId","useEntityTagsQuery","useAvailableTagsQuery","CAMPAIGN_AUDIENCE_TAGS_QUERY","useCampaignAudienceTagsQuery","useTagEntityMutation","useUntagEntityMutation","useCreateEntityTagMutation","useCreateEventSessionMutation","useUpdateEventSessionMutation","useDeleteEventSessionMutation","useCreateSpeakerMutation","useUpdateSpeakerMutation","useDeleteSpeakerMutation","useCreateTicketTypeMutation","useUpdateTicketTypeMutation","useDeleteTicketTypeMutation","useCreatePromoCodeMutation","useUpdatePromoCodeMutation","useDeletePromoCodeMutation","useCreateRegistrationMutation","useUpdateRegistrationMutation","useDeleteRegistrationMutation","useCreateAttendeeMutation","useUpdateAttendeeMutation","useDeleteAttendeeMutation","useCreateExhibitorMutation","useUpdateExhibitorMutation","useDeleteExhibitorMutation","useCreateLeadMutation","useCreateCheckInStationMutation","useUpdateCheckInStationMutation","useDeleteCheckInStationMutation","useUpdateCheckInRecordMutation","useDeleteCheckInRecordMutation","useScanCheckInMutation","useCreateManualCheckInMutation","useKioskSearchAttendeesQuery","useEnqueueBadgePrintMutation","useCreateNetworkingProfileMutation","useUpdateNetworkingProfileMutation","useGenerateNetworkingMatchesMutation","useCreateMeetingMutation","useUpdateMeetingMutation","useDeleteMeetingMutation","useDeleteEventMutation","useDeleteVenueMutation","useDeleteSponsorMutation","usePublishAnnouncementMutation","useSendCommunicationCampaignMutation","useVirtualSessionQuery","useHostVirtualSessionMutation","useJoinVirtualSessionMutation","useLeaveVirtualSessionMutation","useEndVirtualSessionMutation","useSetVirtualMuteMutation","useSetVirtualVideoMutation","usePromoteVirtualPresenterMutation","useSendVirtualSignalMutation","useIntegrationConnectorsQuery","useIntegrationSyncRunsQuery","useCreateIntegrationConnectorMutation","useDeleteIntegrationConnectorMutation","useSyncAttendeesToConnectorMutation"],"sources":["../../../src/eventfullymanaged/api/eventApi.ts"],"sourcesContent":["import { gql, type ErrorLike } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\n\nimport { notify } from '../lib/toast';\n\n/**\n * Shared mutation error sink. The gateway client runs with `errorPolicy: 'all'`,\n * so in-band GraphQL errors also invoke `onError`; wiring this on every write\n * mutation guarantees a failure is always surfaced to the user even if a caller\n * forgets to inspect the resolved result.\n */\nconst onMutationError = (error: ErrorLike): void => {\n notify.error('Something went wrong', error.message || 'Please try again.');\n};\n\nexport type RegistrationStatusCountGql = { status: string; count: number };\n\ntype DashboardSummaryResponse = {\n dashboardSummary: {\n totalEvents: number;\n activeEvents: number;\n totalRegistrations: number;\n totalAttendees: number;\n totalVenues: number;\n totalSponsors: number;\n upcomingSessions: number;\n checkedInRegistrations: number;\n registrationsByStatus: RegistrationStatusCountGql[];\n };\n};\n\nexport type CurrencyAmountGql = { currency: string; amount: string };\n\nexport type EventFinanceBreakdownGql = {\n event: EventGql;\n revenueByCurrency: CurrencyAmountGql[];\n refundsByCurrency: CurrencyAmountGql[];\n netRevenueByCurrency: CurrencyAmountGql[];\n paidRegistrations: number;\n refundedRegistrations: number;\n};\n\ntype FinanceSummaryResponse = {\n financeSummary: {\n revenueByCurrency: CurrencyAmountGql[];\n refundsByCurrency: CurrencyAmountGql[];\n netRevenueByCurrency: CurrencyAmountGql[];\n byEvent: EventFinanceBreakdownGql[];\n registrationsTotal: number;\n ticketTypesTotal: number;\n promoCodesTotal: number;\n };\n};\n\nexport type SponsorRoiGql = {\n sponsorId: string;\n name: string;\n level: string;\n contractValue: number;\n currency?: string | null;\n leadsCaptured: number;\n leadsTarget: number;\n costPerLead: number | null;\n};\n\ntype SponsorRoiReportResponse = {\n sponsorRoiReport: {\n items: SponsorRoiGql[];\n totalSponsors: number;\n totalLeadsCaptured: number;\n };\n};\n\nexport type EventGql = {\n id: string;\n name: string;\n};\n\nexport type VenueGql = {\n id: string;\n workspaceId: string;\n name: string;\n description?: string | null;\n addressLine1?: string | null;\n city?: string | null;\n state?: string | null;\n country?: string | null;\n postalCode?: string | null;\n capacity?: number | null;\n amenities: string[];\n pricing?: Record<string, unknown> | null;\n openingHours?: Record<string, unknown> | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type FloorPlanGql = {\n id: string;\n venueId: string;\n name: string;\n imageUrl?: string | null;\n dimensions?: Record<string, unknown> | null;\n interactiveAreas?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type TicketTypeGql = {\n id: string;\n eventId: string;\n name: string;\n description?: string | null;\n price: string;\n currency: string;\n capacity?: number | null;\n soldCount: number;\n salesStartAt?: string | null;\n salesEndAt?: string | null;\n isActive: boolean;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type PromoCodeGql = {\n id: string;\n eventId: string;\n code: string;\n description?: string | null;\n discountType: string;\n discountValue: string;\n maxUses?: number | null;\n usedCount: number;\n startsAt?: string | null;\n endsAt?: string | null;\n isActive: boolean;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type ExhibitorGql = {\n id: string;\n eventId: string;\n name: string;\n boothCode?: string | null;\n category?: string | null;\n contactName?: string | null;\n contactEmail?: string | null;\n website?: string | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n // BOFF-11370 — server-computed, not capped by any client-side lead fetch.\n leadCount?: number;\n};\n\nexport type LeadGql = {\n id: string;\n eventId: string;\n sponsorId?: string | null;\n exhibitorId?: string | null;\n attendeeName: string;\n attendeeEmail: string;\n score?: number | null;\n status: string;\n notes?: string | null;\n capturedAt: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type CheckInRecordGql = {\n id: string;\n eventId: string;\n stationId?: string | null;\n attendeeId?: string | null;\n registrationId?: string | null;\n method: string;\n status: string;\n direction: string;\n recordedAt: string;\n // BOFF-4330 — the offline-queue idempotency key this scan was recorded\n // (or synced) with, if any.\n clientScanId?: string | null;\n metadata?: Record<string, unknown> | null;\n // BOFF-11379 — true when this response was an idempotent replay of an\n // existing record rather than a brand-new check-in.\n alreadyCheckedIn?: boolean | null;\n};\n\nexport type NetworkingProfileGql = {\n id: string;\n eventId: string;\n attendeeId: string;\n interests: string[];\n lookingFor: string[];\n industry?: string | null;\n role?: string | null;\n visibility: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type SponsorGql = {\n id: string;\n eventId: string;\n name: string;\n level: string;\n logoUrl?: string | null;\n website?: string | null;\n contactName?: string | null;\n contactEmail?: string | null;\n contactPhone?: string | null;\n currency?: string | null;\n // BOFF-11360: `leadsTarget` is the manual goal; `leads` is retained only\n // to read pre-existing rows saved before the split — never written by\n // the form anymore.\n metrics?: { value?: number; leads?: number; leadsTarget?: number } | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type EventDetailGql = {\n id: string;\n workspaceId: string;\n name: string;\n description?: string | null;\n type: string;\n status: string;\n timezone: string;\n startAt: string;\n endAt: string;\n visibility: string;\n capacity?: number | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type EventSessionGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n venueId?: string | null;\n title: string;\n description?: string | null;\n sessionType: string;\n track?: string | null;\n startsAt: string;\n endsAt: string;\n capacity?: number | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type SpeakerGql = {\n id: string;\n workspaceId: string;\n fullName: string;\n title?: string | null;\n organization?: string | null;\n email?: string | null;\n phone?: string | null;\n bio?: string | null;\n avatarUrl?: string | null;\n socialLinks?: Record<string, unknown> | null;\n};\n\nexport type RegistrationGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n attendeeId?: string | null;\n ticketTypeId?: string | null;\n status: string;\n quantity: number;\n totalAmount?: string | null;\n promoCodeId?: string | null;\n currency: string;\n registeredAt: string;\n checkedInAt?: string | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type AttendeeGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n fullName: string;\n email: string;\n phone?: string | null;\n company?: string | null;\n role?: string | null;\n profile?: Record<string, unknown> | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type CheckInStationGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n name: string;\n code: string;\n location?: string | null;\n isActive: boolean;\n kioskConfig?: Record<string, unknown> | null;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type MeetingGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n title: string;\n startsAt: string;\n endsAt: string;\n location?: string | null;\n notes?: string | null;\n sourceProfileId?: string | null;\n targetProfileId?: string | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type NetworkingMatchGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n sourceProfileId: string;\n targetProfileId: string;\n score: number;\n reason?: string | null;\n status: string;\n metadata?: Record<string, unknown> | null;\n};\n\nexport type SessionRecommendationEmptyReason = 'NO_PROFILE' | 'NO_INTERESTS' | 'NO_UPCOMING_SESSIONS' | 'NO_SIGNAL';\n\nexport type SessionRecommendationGql = {\n score: number;\n reason: string;\n matchedTopics: string[];\n seatsRemaining?: number | null;\n session: {\n id: string;\n eventId: string;\n title: string;\n sessionType: string;\n track?: string | null;\n startsAt: string;\n endsAt: string;\n capacity?: number | null;\n status: string;\n };\n};\n\nexport type SimpleEntityGql = {\n id: string;\n workspaceId: string;\n eventId?: string | null;\n name?: string | null;\n title?: string | null;\n status?: string | null;\n metadata?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type EntityTagInfoGql = {\n id: string;\n key?: string | null;\n label?: string | null;\n color?: string | null;\n};\n\nexport type EntityTagAssignmentGql = {\n id: string;\n tagId: string;\n entityId: string;\n entityType: string;\n source: string;\n tagInfo?: EntityTagInfoGql | null;\n};\n\nexport type AvailableTagGql = {\n id: string;\n key: string;\n label: string;\n color?: string | null;\n};\n\ntype EventsResponse = { events: { total: number; items: EventGql[] } };\nexport type EventLifecycle = 'UPCOMING' | 'LIVE' | 'PAST';\nexport type PortfolioEventGql = {\n id: string;\n workspaceId: string;\n name: string;\n type?: string | null;\n status?: string | null;\n timezone?: string | null;\n startAt?: string | null;\n endAt?: string | null;\n visibility?: string | null;\n capacity?: number | null;\n metadata?: Record<string, unknown> | null;\n};\nexport type EventPortfolioItem = {\n lifecycle: EventLifecycle;\n registrations: number;\n checkedIn: number;\n checkInRate: number | null;\n venueId: string | null;\n venueName: string | null;\n event: PortfolioEventGql;\n};\nexport type EventPortfolioResponse = {\n portfolio: {\n total: number;\n counts: { all: number; upcoming: number; live: number; past: number };\n totalRegistrations: number;\n totalCheckedIn: number;\n totalVenues: number;\n totalSponsors: number;\n items: EventPortfolioItem[];\n };\n};\nexport type EventPortfolioVariables = {\n workspaceId?: string;\n lifecycle?: EventLifecycle;\n search?: string;\n limit?: number;\n offset?: number;\n};\ntype VenuesResponse = { venues: { total: number; items: VenueGql[] } };\ntype VenueResponse = { venue: VenueGql | null; floorPlans: { total: number; items: FloorPlanGql[] } };\ntype SponsorsResponse = { sponsors: { total: number; items: SponsorGql[] } };\ntype CreateVenueResponse = { createVenue: VenueGql };\ntype UpdateVenueResponse = { updateVenue: VenueGql };\ntype CreateSponsorResponse = { createSponsor: SponsorGql };\ntype UpdateSponsorResponse = { updateSponsor: SponsorGql };\ntype CreateFloorPlanResponse = { createFloorPlan: FloorPlanGql };\ntype UpdateFloorPlanResponse = { updateFloorPlan: FloorPlanGql };\ntype DeleteFloorPlanResponse = { deleteFloorPlan: boolean };\ntype TicketTypesResponse = { ticketTypes: { total: number; items: TicketTypeGql[] } };\ntype PromoCodesResponse = { promoCodes: { total: number; items: PromoCodeGql[] } };\ntype ExhibitorsResponse = { exhibitors: { total: number; items: ExhibitorGql[] } };\ntype LeadsResponse = { leads: { total: number; items: LeadGql[] } };\ntype CheckInRecordsResponse = { checkInRecords: { total: number; items: CheckInRecordGql[] } };\ntype NetworkingProfilesResponse = { networkingProfiles: { total: number; items: NetworkingProfileGql[] } };\ntype RegistrationsResponse = { registrations: { total: number; items: RegistrationGql[] } };\ntype AttendeesResponse = { attendees: { total: number; items: AttendeeGql[] } };\ntype EventSessionsResponse = { eventSessions: { total: number; items: EventSessionGql[] } };\ntype SpeakersResponse = { speakers: { total: number; items: SpeakerGql[] } };\ntype SpeakerResponse = { speaker: SpeakerGql | null };\ntype SimpleEntity = {\n id: string;\n workspaceId: string;\n eventId?: string | null;\n name?: string | null;\n title?: string | null;\n status?: string | null;\n metadata?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\n// BOFF-5893 — automation execution observability.\ntype AutomationRuleRunGql = {\n id: string;\n ruleId: string;\n eventId?: string | null;\n trigger: string;\n actionType: string;\n status: string;\n workflowRunId?: string | null;\n createdAt: string;\n};\n\n// BOFF-5893 — reusable event template row.\nexport type EventTemplateGql = {\n id: string;\n workspaceId: string;\n name: string;\n description?: string | null;\n sourceEventId?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype EventFromTemplateGql = {\n id: string;\n name: string;\n status: string;\n timezone: string;\n startAt: string;\n endAt: string;\n capacity?: number | null;\n};\n\n// BOFF-5893 — one event a person attended/registered for in this workspace.\nexport type AttendeeHistoryEntryGql = {\n attendeeId: string;\n fullName: string;\n email: string;\n eventId: string;\n eventName: string;\n eventStatus: string;\n eventStartAt: string;\n eventEndAt: string;\n registrationStatus?: string | null;\n registeredAt?: string | null;\n checkedIn: boolean;\n};\ntype SimpleEntityResponse = { total: number; items: SimpleEntity[] };\ntype CheckInStationsResponse = { checkInStations: SimpleEntityResponse };\ntype NetworkingMatchesResponse = { networkingMatches: { total: number; items: NetworkingMatchGql[] } };\ntype GenerateNetworkingMatchesResponse = {\n generateNetworkingMatches: { total: number; items: NetworkingMatchGql[] };\n};\ntype SuggestedConnectionsResponse = { suggestedConnections: { total: number; items: NetworkingMatchGql[] } };\ntype RecommendedSessionsResponse = {\n recommendedSessions: {\n total: number;\n emptyReason?: SessionRecommendationEmptyReason | null;\n items: SessionRecommendationGql[];\n };\n};\ntype MeetingsResponse = { meetings: SimpleEntityResponse };\ntype AnnouncementsResponse = { announcements: SimpleEntityResponse };\ntype WorkflowTemplatesResponse = { workflowTemplates: SimpleEntityResponse };\ntype AutomationRulesResponse = { automationRules: SimpleEntityResponse };\ntype AutomationRuleRunsResponse = { automationRuleRuns: { total: number; items: AutomationRuleRunGql[] } };\ntype EventTemplatesResponse = { eventTemplates: { total: number; items: EventTemplateGql[] } };\ntype SaveEventTemplateResponse = { saveEventTemplate: EventTemplateGql };\ntype DeleteEventTemplateResponse = { deleteEventTemplate: boolean };\ntype CreateEventFromTemplateResponse = { createEventFromTemplate: EventFromTemplateGql };\ntype AttendeeHistoryResponse = { attendeeHistory: AttendeeHistoryEntryGql[] };\ntype CommunicationCampaignsResponse = { communicationCampaigns: SimpleEntityResponse };\ntype AnalyticsSnapshotsResponse = { analyticsSnapshots: SimpleEntityResponse };\ntype UpsertSimpleEntityResponse = { [key: string]: SimpleEntity };\n\nexport const DASHBOARD_SUMMARY_QUERY = gql`\n query EventfullymanagedDashboardSummary {\n dashboardSummary: eventfullyManagedDashboardSummary {\n totalEvents\n activeEvents\n totalRegistrations\n totalAttendees\n totalVenues\n totalSponsors\n upcomingSessions\n checkedInRegistrations\n registrationsByStatus {\n status\n count\n }\n }\n }\n`;\n\n// BOFF-11390 / BOFF-11391 — server-computed Finance revenue, grouped by currency.\n// BOFF-5891 — refunds, net revenue and the per-event rollup join the summary.\nexport const FINANCE_SUMMARY_QUERY = gql`\n query EventfullymanagedFinanceSummary {\n financeSummary: eventfullyManagedFinanceSummary {\n revenueByCurrency {\n currency\n amount\n }\n refundsByCurrency {\n currency\n amount\n }\n netRevenueByCurrency {\n currency\n amount\n }\n byEvent {\n event {\n id\n name\n }\n revenueByCurrency {\n currency\n amount\n }\n refundsByCurrency {\n currency\n amount\n }\n netRevenueByCurrency {\n currency\n amount\n }\n paidRegistrations\n refundedRegistrations\n }\n registrationsTotal\n ticketTypesTotal\n promoCodesTotal\n }\n }\n`;\n\n// BOFF-5891 — sponsor contract value vs leads captured (ROI per sponsor).\nexport const SPONSOR_ROI_REPORT_QUERY = gql`\n query EventfullymanagedSponsorRoiReport {\n sponsorRoiReport: eventfullyManagedSponsorRoiReport {\n items {\n sponsorId\n name\n level\n contractValue\n currency\n leadsCaptured\n leadsTarget\n costPerLead\n }\n totalSponsors\n totalLeadsCaptured\n }\n }\n`;\n\nexport const EVENTS_QUERY = gql`\n query EventfullymanagedEvents($search: String, $limit: Int, $offset: Int) {\n events: eventfullyManagedEvents(search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n name\n description\n type\n status\n timezone\n startAt\n endAt\n visibility\n capacity\n metadata\n }\n }\n }\n`;\n\n/**\n * BOFF-4005 — multi-event portfolio (mock efm-23). Lifecycle filtering,\n * per-event registration/check-in counts and pagination all happen in the\n * service, scoped to the active workspace. `workspaceId` is sent so Apollo\n * keys the cached result per workspace: switching organization or workspace\n * in the shell context switcher therefore always refetches.\n */\nexport const EVENT_PORTFOLIO_QUERY = gql`\n query EventfullymanagedEventPortfolio(\n $workspaceId: ID\n $lifecycle: EventfullyManagedEventLifecycle\n $search: String\n $limit: Int\n $offset: Int\n ) {\n portfolio: eventfullyManagedEventPortfolio(\n workspaceId: $workspaceId\n lifecycle: $lifecycle\n search: $search\n limit: $limit\n offset: $offset\n ) {\n total\n counts {\n all\n upcoming\n live\n past\n }\n totalRegistrations\n totalCheckedIn\n totalVenues\n totalSponsors\n items {\n lifecycle\n registrations\n checkedIn\n checkInRate\n venueId\n venueName\n event {\n id\n workspaceId\n name\n type\n status\n timezone\n startAt\n endAt\n visibility\n capacity\n metadata\n }\n }\n }\n }\n`;\n\nexport const VENUES_QUERY = gql`\n query EventfullymanagedVenues($search: String, $limit: Int, $offset: Int) {\n venues: eventfullyManagedVenues(search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n name\n description\n addressLine1\n city\n state\n country\n postalCode\n capacity\n amenities\n pricing\n openingHours\n status\n metadata\n }\n }\n }\n`;\n\nexport const VENUE_QUERY = gql`\n query EventfullymanagedVenue($id: ID!) {\n venue: eventfullyManagedVenue(id: $id) {\n id\n workspaceId\n name\n description\n addressLine1\n city\n state\n country\n postalCode\n capacity\n amenities\n pricing\n openingHours\n status\n metadata\n createdAt\n updatedAt\n }\n floorPlans: eventfullyManagedFloorPlans(venueId: $id, limit: 100, offset: 0) {\n total\n items {\n id\n venueId\n name\n imageUrl\n dimensions\n interactiveAreas\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const SPONSORS_QUERY = gql`\n query EventfullymanagedSponsors($search: String, $limit: Int, $offset: Int) {\n sponsors: eventfullyManagedSponsors(search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n currency\n metrics\n metadata\n createdAt\n }\n }\n }\n`;\n\n// BOFF-11362: real totals over every matching sponsor, not just the loaded page.\nexport const SPONSORS_PORTFOLIO_TOTALS_QUERY = gql`\n query EventfullymanagedSponsorsPortfolioTotals($eventId: ID) {\n sponsorsPortfolioTotals: eventfullyManagedSponsorsPortfolioTotals(eventId: $eventId) {\n totalSponsors\n byCurrency {\n currency\n count\n contractValue\n leadsTarget\n }\n }\n }\n`;\n\nexport const REGISTRATIONS_QUERY = gql`\n query EventfullymanagedRegistrations($eventId: ID, $limit: Int, $offset: Int) {\n registrations: eventfullyManagedRegistrations(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n attendeeId\n attendeeName\n ticketTypeId\n status\n quantity\n totalAmount\n currency\n registeredAt\n checkedInAt\n }\n }\n }\n`;\n\nexport const ATTENDEES_QUERY = gql`\n query EventfullymanagedAttendees($eventId: ID, $limit: Int, $offset: Int) {\n attendees: eventfullyManagedAttendees(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n fullName\n email\n phone\n company\n role\n metadata\n }\n }\n }\n`;\n\nexport const EVENT_SESSIONS_QUERY = gql`\n query EventfullymanagedEventSessions($eventId: ID, $limit: Int, $offset: Int) {\n eventSessions: eventfullyManagedEventSessions(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n venueId\n title\n sessionType\n track\n startsAt\n endsAt\n status\n }\n }\n }\n`;\n\nexport const SPEAKERS_QUERY = gql`\n query EventfullymanagedSpeakers($limit: Int, $offset: Int) {\n speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {\n total\n items {\n id\n fullName\n title\n organization\n email\n }\n }\n }\n`;\n\n// BOFF-11230: by-id lookup so the Edit Speaker form doesn't depend on the\n// speaker being inside the first 100 rows of SPEAKERS_QUERY.\nexport const SPEAKER_QUERY = gql`\n query EventfullymanagedSpeaker($id: ID!) {\n speaker: eventfullyManagedSpeaker(id: $id) {\n id\n fullName\n title\n organization\n bio\n avatarUrl\n email\n phone\n socialLinks\n }\n }\n`;\n\nexport const TICKET_TYPES_QUERY = gql`\n query EventfullymanagedTicketTypes($eventId: ID, $search: String, $limit: Int, $offset: Int) {\n ticketTypes: eventfullyManagedTicketTypes(eventId: $eventId, search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n name\n description\n price\n currency\n capacity\n soldCount\n salesStartAt\n salesEndAt\n isActive\n metadata\n }\n }\n }\n`;\n\nexport const PROMO_CODES_QUERY = gql`\n query EventfullymanagedPromoCodes($eventId: ID, $search: String, $limit: Int, $offset: Int) {\n promoCodes: eventfullyManagedPromoCodes(eventId: $eventId, search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n code\n description\n discountType\n discountValue\n maxUses\n usedCount\n startsAt\n endsAt\n isActive\n metadata\n }\n }\n }\n`;\n\nexport const EXHIBITORS_QUERY = gql`\n query EventfullymanagedExhibitors($eventId: ID, $search: String, $limit: Int, $offset: Int) {\n exhibitors: eventfullyManagedExhibitors(eventId: $eventId, search: $search, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n name\n boothCode\n category\n contactName\n contactEmail\n website\n status\n metadata\n leadCount\n }\n }\n }\n`;\n\n// BOFF-11370 — real distinct-boothCode count across the full matching set,\n// not a count over a capped client-side exhibitor fetch.\nexport const EXHIBITOR_SUMMARY_QUERY = gql`\n query EventfullymanagedExhibitorSummary($workspaceId: ID, $eventId: ID) {\n exhibitorSummary: eventfullyManagedExhibitorSummary(workspaceId: $workspaceId, eventId: $eventId) {\n boothCount\n }\n }\n`;\n\nexport const LEADS_QUERY = gql`\n query EventfullymanagedLeads(\n $eventId: ID\n $sponsorId: ID\n $exhibitorId: ID\n $search: String\n $limit: Int\n $offset: Int\n ) {\n leads: eventfullyManagedLeads(\n eventId: $eventId\n sponsorId: $sponsorId\n exhibitorId: $exhibitorId\n search: $search\n limit: $limit\n offset: $offset\n ) {\n total\n items {\n id\n eventId\n sponsorId\n exhibitorId\n attendeeName\n attendeeEmail\n score\n status\n notes\n capturedAt\n metadata\n }\n }\n }\n`;\n\nexport const CHECKIN_RECORDS_QUERY = gql`\n query EventfullymanagedCheckInRecords($eventId: ID, $limit: Int, $offset: Int) {\n checkInRecords: eventfullyManagedCheckInRecords(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n stationId\n attendeeId\n registrationId\n sessionId\n method\n status\n direction\n recordedAt\n metadata\n }\n }\n }\n`;\n\n// BOFF-3999 — hourly check-in throughput for one event.\nexport const CHECK_IN_THROUGHPUT_QUERY = gql`\n query EventfullymanagedCheckInThroughput($eventId: ID!, $date: DateTime) {\n checkInThroughput: eventfullyManagedCheckInThroughput(eventId: $eventId, date: $date) {\n hour\n count\n timezone\n }\n }\n`;\n\n// BOFF-4331 — agenda-conflict detection for one event.\nexport const SESSION_CONFLICTS_QUERY = gql`\n query EventfullymanagedSessionConflicts($eventId: ID!) {\n sessionConflicts: eventfullyManagedSessionConflicts(eventId: $eventId) {\n type\n sessionAId\n sessionATitle\n sessionBId\n sessionBTitle\n venueId\n speakerId\n message\n }\n }\n`;\n\nexport const NETWORKING_PROFILES_QUERY = gql`\n query EventfullymanagedNetworkingProfiles($eventId: ID, $limit: Int, $offset: Int) {\n networkingProfiles: eventfullyManagedNetworkingProfiles(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n eventId\n attendeeId\n interests\n lookingFor\n industry\n role\n visibility\n metadata\n }\n }\n }\n`;\n\nexport const CHECKIN_STATIONS_QUERY = gql`\n query EventfullymanagedCheckInStations($eventId: ID, $limit: Int, $offset: Int) {\n checkInStations: eventfullyManagedCheckInStations(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\n// BOFF-4321 — typed fields (score/reason are real columns; the list resolver\n// no longer routes through the generic simple-entity projection that dropped\n// them).\nexport const NETWORKING_MATCHES_QUERY = gql`\n query EventfullymanagedNetworkingMatches($eventId: ID, $limit: Int, $offset: Int) {\n networkingMatches: eventfullyManagedNetworkingMatches(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\n// BOFF-4321 — deterministic matchmaking engine: bulk (organizer) generation\n// and attendee-facing top-N suggestions.\nexport const GENERATE_NETWORKING_MATCHES_MUTATION = gql`\n mutation EventfullymanagedGenerateNetworkingMatches($eventId: ID!) {\n generateNetworkingMatches: eventfullyManagedGenerateNetworkingMatches(eventId: $eventId) {\n total\n items {\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const SUGGESTED_CONNECTIONS_QUERY = gql`\n query EventfullymanagedSuggestedConnections($eventId: ID!, $attendeeId: ID!, $limit: Int) {\n suggestedConnections: eventfullyManagedSuggestedConnections(\n eventId: $eventId\n attendeeId: $attendeeId\n limit: $limit\n ) {\n total\n items {\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const RECOMMENDED_SESSIONS_QUERY = gql`\n query EventfullymanagedRecommendedSessions($eventId: ID!, $attendeeId: ID!, $limit: Int) {\n recommendedSessions: eventfullyManagedRecommendSessions(eventId: $eventId, attendeeId: $attendeeId, limit: $limit) {\n total\n emptyReason\n items {\n score\n reason\n matchedTopics\n seatsRemaining\n session {\n id\n eventId\n title\n sessionType\n track\n startsAt\n endsAt\n capacity\n status\n }\n }\n }\n }\n`;\n\nexport const MEETINGS_QUERY = gql`\n query EventfullymanagedMeetings($eventId: ID, $limit: Int, $offset: Int) {\n meetings: eventfullyManagedMeetings(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\n// BOFF-11357: real by-ID lookup — eventfullyManagedMeetings only returns a\n// capped, generic projection (see the comment on MEETINGS_QUERY above), so\n// the Edit Meeting form could not load a meeting past the first page.\nexport const MEETING_QUERY = gql`\n query EventfullymanagedMeeting($id: ID!) {\n meeting: eventfullyManagedMeeting(id: $id) {\n id\n eventId\n title\n sourceProfileId\n targetProfileId\n startsAt\n endsAt\n location\n notes\n status\n metadata\n }\n }\n`;\n\nexport const ANNOUNCEMENTS_QUERY = gql`\n query EventfullymanagedAnnouncements($eventId: ID, $limit: Int, $offset: Int) {\n announcements: eventfullyManagedAnnouncements(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const WORKFLOW_TEMPLATES_QUERY = gql`\n query EventfullymanagedWorkflowTemplates($eventId: ID, $limit: Int, $offset: Int) {\n workflowTemplates: eventfullyManagedWorkflowTemplates(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const AUTOMATION_RULES_QUERY = gql`\n query EventfullymanagedAutomationRules($eventId: ID, $limit: Int, $offset: Int) {\n automationRules: eventfullyManagedAutomationRules(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const AUTOMATION_RULE_RUNS_QUERY = gql`\n query EventfullymanagedAutomationRuleRuns($ruleId: ID, $eventId: ID, $limit: Int, $offset: Int) {\n automationRuleRuns: eventfullyManagedAutomationRuleRuns(\n ruleId: $ruleId\n eventId: $eventId\n limit: $limit\n offset: $offset\n ) {\n total\n items {\n id\n ruleId\n eventId\n trigger\n actionType\n status\n workflowRunId\n createdAt\n }\n }\n }\n`;\n\n// BOFF-5893 — reusable event templates.\nexport const EVENT_TEMPLATES_QUERY = gql`\n query EventfullymanagedEventTemplates($limit: Int, $offset: Int) {\n eventTemplates: eventfullyManagedEventTemplates(limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n name\n description\n sourceEventId\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const SAVE_EVENT_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedSaveEventTemplate($input: EventfullyManagedSaveEventTemplateInput!) {\n saveEventTemplate: eventfullyManagedSaveEventTemplate(input: $input) {\n id\n workspaceId\n name\n description\n sourceEventId\n }\n }\n`;\n\nexport const DELETE_EVENT_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedDeleteEventTemplate($id: ID!) {\n deleteEventTemplate: eventfullyManagedDeleteEventTemplate(id: $id)\n }\n`;\n\nexport const CREATE_EVENT_FROM_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedCreateEventFromTemplate($input: EventfullyManagedCreateEventFromTemplateInput!) {\n createEventFromTemplate: eventfullyManagedCreateEventFromTemplate(input: $input) {\n id\n name\n status\n timezone\n startAt\n endAt\n capacity\n }\n }\n`;\n\n// BOFF-5893 — cross-event attendee history.\nexport const ATTENDEE_HISTORY_QUERY = gql`\n query EventfullymanagedAttendeeHistory($email: String!) {\n attendeeHistory: eventfullyManagedAttendeeHistory(email: $email) {\n attendeeId\n fullName\n email\n eventId\n eventName\n eventStatus\n eventStartAt\n eventEndAt\n registrationStatus\n registeredAt\n checkedIn\n }\n }\n`;\n\nexport const COMMUNICATION_CAMPAIGNS_QUERY = gql`\n query EventfullymanagedCommunicationCampaigns($eventId: ID, $limit: Int, $offset: Int) {\n communicationCampaigns: eventfullyManagedCommunicationCampaigns(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n metrics\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const ANALYTICS_SNAPSHOTS_QUERY = gql`\n query EventfullymanagedAnalyticsSnapshots($eventId: ID, $limit: Int, $offset: Int) {\n analyticsSnapshots: eventfullyManagedAnalyticsSnapshots(eventId: $eventId, limit: $limit, offset: $offset) {\n total\n items {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n }\n`;\n\nexport const CREATE_VENUE_MUTATION = gql`\n mutation EventfullymanagedCreateVenue($input: EventfullyManagedVenueInput!) {\n createVenue: eventfullyManagedCreateVenue(input: $input) {\n id\n name\n description\n city\n state\n country\n capacity\n amenities\n status\n pricing\n openingHours\n metadata\n }\n }\n`;\n\nexport const UPDATE_VENUE_MUTATION = gql`\n mutation EventfullymanagedUpdateVenue($id: ID!, $input: EventfullyManagedVenueInput!) {\n updateVenue: eventfullyManagedUpdateVenue(id: $id, input: $input) {\n id\n name\n description\n city\n state\n country\n capacity\n amenities\n status\n pricing\n openingHours\n metadata\n }\n }\n`;\n\nexport const CREATE_SPONSOR_MUTATION = gql`\n mutation EventfullymanagedCreateSponsor($input: EventfullyManagedSponsorInput!) {\n createSponsor: eventfullyManagedCreateSponsor(input: $input) {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n metrics\n metadata\n }\n }\n`;\n\nexport const UPDATE_SPONSOR_MUTATION = gql`\n mutation EventfullymanagedUpdateSponsor($id: ID!, $input: EventfullyManagedSponsorInput!) {\n updateSponsor: eventfullyManagedUpdateSponsor(id: $id, input: $input) {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n metrics\n metadata\n }\n }\n`;\n\nexport const CREATE_FLOOR_PLAN_MUTATION = gql`\n mutation EventfullymanagedCreateFloorPlan($input: EventfullyManagedFloorPlanInput!) {\n createFloorPlan: eventfullyManagedCreateFloorPlan(input: $input) {\n id\n venueId\n name\n imageUrl\n dimensions\n interactiveAreas\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPDATE_FLOOR_PLAN_MUTATION = gql`\n mutation EventfullymanagedUpdateFloorPlan($id: ID!, $input: EventfullyManagedFloorPlanInput!) {\n updateFloorPlan: eventfullyManagedUpdateFloorPlan(id: $id, input: $input) {\n id\n venueId\n name\n imageUrl\n dimensions\n interactiveAreas\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const DELETE_FLOOR_PLAN_MUTATION = gql`\n mutation EventfullymanagedDeleteFloorPlan($id: ID!) {\n deleteFloorPlan: eventfullyManagedDeleteFloorPlan(id: $id)\n }\n`;\n\nexport const CREATE_EVENT_MUTATION = gql`\n mutation EventfullymanagedCreateEvent($input: EventfullyManagedEventInput!) {\n createEvent: eventfullyManagedCreateEvent(input: $input) {\n id\n name\n type\n status\n startAt\n endAt\n timezone\n visibility\n capacity\n metadata\n }\n }\n`;\n\nexport const UPDATE_EVENT_MUTATION = gql`\n mutation EventfullymanagedUpdateEvent($id: ID!, $input: EventfullyManagedEventInput!) {\n updateEvent: eventfullyManagedUpdateEvent(id: $id, input: $input) {\n id\n name\n type\n status\n startAt\n endAt\n timezone\n visibility\n capacity\n metadata\n }\n }\n`;\n\nexport const UPSERT_ANNOUNCEMENT_MUTATION = gql`\n mutation EventfullymanagedUpsertAnnouncement($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertAnnouncement: eventfullyManagedUpsertAnnouncement(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPSERT_WORKFLOW_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedUpsertWorkflowTemplate($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertWorkflowTemplate: eventfullyManagedUpsertWorkflowTemplate(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPSERT_AUTOMATION_RULE_MUTATION = gql`\n mutation EventfullymanagedUpsertAutomationRule($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertAutomationRule: eventfullyManagedUpsertAutomationRule(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\n// BOFF-11393\nexport const DELETE_WORKFLOW_TEMPLATE_MUTATION = gql`\n mutation EventfullymanagedDeleteWorkflowTemplate($id: ID!) {\n deleteWorkflowTemplate: eventfullyManagedDeleteWorkflowTemplate(id: $id)\n }\n`;\n\nexport const DELETE_AUTOMATION_RULE_MUTATION = gql`\n mutation EventfullymanagedDeleteAutomationRule($id: ID!) {\n deleteAutomationRule: eventfullyManagedDeleteAutomationRule(id: $id)\n }\n`;\n\nexport const UPSERT_COMMUNICATION_CAMPAIGN_MUTATION = gql`\n mutation EventfullymanagedUpsertCommunicationCampaign($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertCommunicationCampaign: eventfullyManagedUpsertCommunicationCampaign(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const UPSERT_ANALYTICS_SNAPSHOT_MUTATION = gql`\n mutation EventfullymanagedUpsertAnalyticsSnapshot($id: ID, $input: EventfullyManagedSimpleEntityInput!) {\n upsertAnalyticsSnapshot: eventfullyManagedUpsertAnalyticsSnapshot(id: $id, input: $input) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const useDashboardSummaryQuery = () => useQuery<DashboardSummaryResponse>(DASHBOARD_SUMMARY_QUERY);\nexport const useFinanceSummaryQuery = (options: { skip?: boolean } = {}) =>\n useQuery<FinanceSummaryResponse>(FINANCE_SUMMARY_QUERY, { skip: options.skip });\nexport const useSponsorRoiReportQuery = (options: { skip?: boolean } = {}) =>\n useQuery<SponsorRoiReportResponse>(SPONSOR_ROI_REPORT_QUERY, { skip: options.skip });\nexport const useEventsQuery = (variables: { search?: string; limit?: number; offset?: number }) =>\n useQuery<EventsResponse, { search?: string; limit?: number; offset?: number }>(EVENTS_QUERY, { variables });\nexport const useEventPortfolioQuery = (variables: EventPortfolioVariables) =>\n useQuery<EventPortfolioResponse, EventPortfolioVariables>(EVENT_PORTFOLIO_QUERY, {\n variables,\n fetchPolicy: 'cache-and-network',\n });\nexport const useVenuesQuery = (variables: { search?: string; limit?: number; offset?: number; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<VenuesResponse, { search?: string; limit?: number; offset?: number }>(VENUES_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useVenueQuery = (id: string) =>\n useQuery<VenueResponse, { id: string }>(VENUE_QUERY, { variables: { id }, skip: !id });\nexport const useSponsorsQuery = (variables: { search?: string; limit?: number; offset?: number; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<SponsorsResponse, { search?: string; limit?: number; offset?: number }>(SPONSORS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport type SponsorsPortfolioTotalsGql = {\n totalSponsors: number;\n byCurrency: Array<{ currency: string | null; count: number; contractValue: number; leadsTarget: number }>;\n};\ntype SponsorsPortfolioTotalsResponse = { sponsorsPortfolioTotals: SponsorsPortfolioTotalsGql };\nexport const useSponsorsPortfolioTotalsQuery = (variables: { eventId?: string } = {}) =>\n useQuery<SponsorsPortfolioTotalsResponse, { eventId?: string }>(SPONSORS_PORTFOLIO_TOTALS_QUERY, { variables });\nexport const useRegistrationsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<RegistrationsResponse, { eventId?: string; limit?: number; offset?: number }>(REGISTRATIONS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useAttendeesQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<AttendeesResponse, { eventId?: string; limit?: number; offset?: number }>(ATTENDEES_QUERY, { variables });\nexport const useEventSessionsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<EventSessionsResponse, { eventId?: string; limit?: number; offset?: number }>(EVENT_SESSIONS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useSpeakersQuery = (variables: { limit?: number; offset?: number }) =>\n useQuery<SpeakersResponse, { limit?: number; offset?: number }>(SPEAKERS_QUERY, { variables });\nexport const useSpeakerQuery = (id: string) =>\n useQuery<SpeakerResponse, { id: string }>(SPEAKER_QUERY, { variables: { id }, skip: !id });\nexport const useTicketTypesQuery = (variables: {\n eventId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<TicketTypesResponse, { eventId?: string; search?: string; limit?: number; offset?: number }>(\n TICKET_TYPES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const usePromoCodesQuery = (variables: {\n eventId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<PromoCodesResponse, { eventId?: string; search?: string; limit?: number; offset?: number }>(\n PROMO_CODES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useExhibitorsQuery = (variables: {\n eventId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<ExhibitorsResponse, { eventId?: string; search?: string; limit?: number; offset?: number }>(\n EXHIBITORS_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useLeadsQuery = (variables: {\n eventId?: string;\n sponsorId?: string;\n exhibitorId?: string;\n search?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<\n LeadsResponse,\n { eventId?: string; sponsorId?: string; exhibitorId?: string; search?: string; limit?: number; offset?: number }\n >(LEADS_QUERY, { variables: vars, skip });\n};\nexport const useCheckInStationsQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<CheckInStationsResponse, { eventId?: string; limit?: number; offset?: number }>(CHECKIN_STATIONS_QUERY, {\n variables,\n });\nexport const useCheckInRecordsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<CheckInRecordsResponse, { eventId?: string; limit?: number; offset?: number }>(\n CHECKIN_RECORDS_QUERY,\n { variables: vars, skip }\n );\n};\n\nexport type CheckInThroughputPointGql = { hour: string; count: number; timezone: string };\ntype CheckInThroughputResponse = { checkInThroughput: CheckInThroughputPointGql[] };\nexport const useCheckInThroughputQuery = (variables: { eventId?: string; date?: string }) =>\n useQuery<CheckInThroughputResponse, { eventId: string; date?: string }>(CHECK_IN_THROUGHPUT_QUERY, {\n variables: { eventId: variables.eventId ?? '', date: variables.date },\n skip: !variables.eventId,\n });\n\nexport type SessionConflictGql = {\n type: string;\n sessionAId: string;\n sessionATitle: string;\n sessionBId: string;\n sessionBTitle: string;\n venueId?: string | null;\n speakerId?: string | null;\n message: string;\n};\ntype SessionConflictsResponse = { sessionConflicts: SessionConflictGql[] };\nexport const useSessionConflictsQuery = (variables: { eventId?: string }) =>\n useQuery<SessionConflictsResponse, { eventId: string }>(SESSION_CONFLICTS_QUERY, {\n variables: { eventId: variables.eventId ?? '' },\n skip: !variables.eventId,\n });\nexport const useNetworkingProfilesQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<NetworkingProfilesResponse, { eventId?: string; limit?: number; offset?: number }>(\n NETWORKING_PROFILES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useNetworkingMatchesQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<NetworkingMatchesResponse, { eventId?: string; limit?: number; offset?: number }>(NETWORKING_MATCHES_QUERY, {\n variables,\n });\nexport const useSuggestedConnectionsQuery = (variables: { eventId?: string; attendeeId?: string; limit?: number }) =>\n useQuery<SuggestedConnectionsResponse, { eventId?: string; attendeeId?: string; limit?: number }>(\n SUGGESTED_CONNECTIONS_QUERY,\n { variables, skip: !variables.eventId || !variables.attendeeId }\n );\nexport const useRecommendedSessionsQuery = (variables: { eventId?: string; attendeeId?: string; limit?: number }) =>\n useQuery<RecommendedSessionsResponse, { eventId?: string; attendeeId?: string; limit?: number }>(\n RECOMMENDED_SESSIONS_QUERY,\n { variables, skip: !variables.eventId || !variables.attendeeId }\n );\nexport const useMeetingsQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<MeetingsResponse, { eventId?: string; limit?: number; offset?: number }>(MEETINGS_QUERY, { variables });\ntype MeetingDetailResponse = { meeting: MeetingGql | null };\nexport const useMeetingQuery = (id: string) =>\n useQuery<MeetingDetailResponse, IdVar>(MEETING_QUERY, { variables: { id }, skip: !id });\nexport const useAnnouncementsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AnnouncementsResponse, { eventId?: string; limit?: number; offset?: number }>(ANNOUNCEMENTS_QUERY, {\n variables: vars,\n skip,\n });\n};\nexport const useWorkflowTemplatesQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<WorkflowTemplatesResponse, { eventId?: string; limit?: number; offset?: number }>(\n WORKFLOW_TEMPLATES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useAutomationRulesQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AutomationRulesResponse, { eventId?: string; limit?: number; offset?: number }>(\n AUTOMATION_RULES_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useCommunicationCampaignsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<CommunicationCampaignsResponse, { eventId?: string; limit?: number; offset?: number }>(\n COMMUNICATION_CAMPAIGNS_QUERY,\n { variables: vars, skip }\n );\n};\nexport const useAnalyticsSnapshotsQuery = (variables: {\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AnalyticsSnapshotsResponse, { eventId?: string; limit?: number; offset?: number }>(\n ANALYTICS_SNAPSHOTS_QUERY,\n { variables: vars, skip }\n );\n};\n\nexport const useCreateVenueMutation = () =>\n useMutation<CreateVenueResponse, { input: Record<string, unknown> }>(CREATE_VENUE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: VENUES_QUERY }],\n });\nexport const useUpdateVenueMutation = () =>\n useMutation<UpdateVenueResponse, { id: string; input: Record<string, unknown> }>(UPDATE_VENUE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: VENUES_QUERY }],\n });\nexport const useCreateSponsorMutation = () =>\n useMutation<CreateSponsorResponse, { input: Record<string, unknown> }>(CREATE_SPONSOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPONSORS_QUERY }],\n });\nexport const useUpdateSponsorMutation = () =>\n useMutation<UpdateSponsorResponse, { id: string; input: Record<string, unknown> }>(UPDATE_SPONSOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPONSORS_QUERY }],\n });\nexport const useCreateFloorPlanMutation = () =>\n useMutation<CreateFloorPlanResponse, { input: Record<string, unknown> }>(CREATE_FLOOR_PLAN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useUpdateFloorPlanMutation = () =>\n useMutation<UpdateFloorPlanResponse, { id: string; input: Record<string, unknown> }>(UPDATE_FLOOR_PLAN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useDeleteFloorPlanMutation = () =>\n useMutation<DeleteFloorPlanResponse, IdVar>(DELETE_FLOOR_PLAN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useCreateEventMutation = () =>\n useMutation<{ createEvent: EventGql }, { input: Record<string, unknown> }>(CREATE_EVENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpdateEventMutation = () =>\n useMutation<{ updateEvent: EventGql }, { id: string; input: Record<string, unknown> }>(UPDATE_EVENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpsertAnnouncementMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_ANNOUNCEMENT_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ANNOUNCEMENTS_QUERY }],\n }\n );\nexport const useUpsertWorkflowTemplateMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_WORKFLOW_TEMPLATE_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: WORKFLOW_TEMPLATES_QUERY }],\n }\n );\nexport const useUpsertAutomationRuleMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_AUTOMATION_RULE_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: AUTOMATION_RULES_QUERY }],\n }\n );\nexport const useDeleteWorkflowTemplateMutation = () =>\n useMutation<{ deleteWorkflowTemplate: boolean }, { id: string }>(DELETE_WORKFLOW_TEMPLATE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: WORKFLOW_TEMPLATES_QUERY }],\n });\nexport const useDeleteAutomationRuleMutation = () =>\n useMutation<{ deleteAutomationRule: boolean }, { id: string }>(DELETE_AUTOMATION_RULE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: AUTOMATION_RULES_QUERY }],\n });\n\n// BOFF-5893 — automation run observability.\nexport const useAutomationRuleRunsQuery = (variables: {\n ruleId?: string;\n eventId?: string;\n limit?: number;\n offset?: number;\n skip?: boolean;\n}) => {\n const { skip, ...vars } = variables;\n return useQuery<AutomationRuleRunsResponse, { ruleId?: string; eventId?: string; limit?: number; offset?: number }>(\n AUTOMATION_RULE_RUNS_QUERY,\n { variables: vars, skip }\n );\n};\n\n// BOFF-5893 — reusable event templates.\nexport const useEventTemplatesQuery = (variables: { limit?: number; offset?: number; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<EventTemplatesResponse, { limit?: number; offset?: number }>(EVENT_TEMPLATES_QUERY, {\n variables: vars,\n skip,\n });\n};\n\nexport const useSaveEventTemplateMutation = () =>\n useMutation<SaveEventTemplateResponse, { input: Record<string, unknown> }>(SAVE_EVENT_TEMPLATE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_TEMPLATES_QUERY }],\n });\n\nexport const useDeleteEventTemplateMutation = () =>\n useMutation<DeleteEventTemplateResponse, { id: string }>(DELETE_EVENT_TEMPLATE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_TEMPLATES_QUERY }],\n });\n\nexport const useCreateEventFromTemplateMutation = () =>\n useMutation<CreateEventFromTemplateResponse, { input: Record<string, unknown> }>(\n CREATE_EVENT_FROM_TEMPLATE_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: EVENT_PORTFOLIO_QUERY }, { query: EVENT_TEMPLATES_QUERY }],\n }\n );\n\n// BOFF-5893 — cross-event attendee history.\nexport const useAttendeeHistoryQuery = (variables: { email?: string; skip?: boolean }) => {\n const { skip, ...vars } = variables;\n return useQuery<AttendeeHistoryResponse, { email?: string }>(ATTENDEE_HISTORY_QUERY, {\n variables: vars,\n skip: skip || !variables.email,\n });\n};\nexport const useUpsertCommunicationCampaignMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_COMMUNICATION_CAMPAIGN_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: COMMUNICATION_CAMPAIGNS_QUERY }],\n }\n );\nexport const useUpsertAnalyticsSnapshotMutation = () =>\n useMutation<UpsertSimpleEntityResponse, { id?: string; input: Record<string, unknown> }>(\n UPSERT_ANALYTICS_SNAPSHOT_MUTATION,\n {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ANALYTICS_SNAPSHOTS_QUERY }],\n }\n );\n\n// ---------------------------------------------------------------------------\n// Single-entity fetch queries (edit-form hydration).\n//\n// The supergraph only exposes single-entity reads for Event, Sponsor and Venue\n// (`eventfullyManagedEvent` / `eventfullyManagedSponsor` / `eventfullyManagedVenue`).\n// Edit forms for every OTHER entity derive their initial state from the matching\n// LIST query (see SponsorFormPage for the `.items.find(id)` pattern) because the\n// backend has no by-id resolver for them.\n// ---------------------------------------------------------------------------\n\nexport const EVENT_QUERY = gql`\n query EventfullymanagedEvent($id: ID!) {\n event: eventfullyManagedEvent(id: $id) {\n id\n workspaceId\n name\n description\n type\n status\n timezone\n startAt\n endAt\n visibility\n capacity\n metadata\n }\n }\n`;\n\nexport const SPONSOR_QUERY = gql`\n query EventfullymanagedSponsor($id: ID!) {\n sponsor: eventfullyManagedSponsor(id: $id) {\n id\n eventId\n name\n level\n logoUrl\n website\n contactName\n contactEmail\n contactPhone\n currency\n metrics\n metadata\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Entity tags (inline tagInfo, NOT the federated `tag {}` field).\n// ---------------------------------------------------------------------------\n\nexport const ENTITY_TAGS_QUERY = gql`\n query EventfullymanagedEntityTags($input: EventfullyManagedGetEntityTagsInput!) {\n eventfullyManagedEntityTags(input: $input) {\n id\n tagId\n entityId\n entityType\n source\n tagInfo {\n id\n key\n label\n color\n }\n }\n }\n`;\n\nexport const AVAILABLE_TAGS_QUERY = gql`\n query EventfullymanagedAvailableTags($limit: Int) {\n availableEventfullyManagedTags(limit: $limit) {\n id\n key\n label\n color\n }\n }\n`;\n\nexport const TAG_ENTITY_MUTATION = gql`\n mutation EventfullymanagedTagEntity($input: EventfullyManagedTagEntityInput!) {\n tagEventfullyManagedEntity(input: $input) {\n id\n tagId\n entityId\n entityType\n source\n tagInfo {\n id\n key\n label\n color\n }\n }\n }\n`;\n\nexport const UNTAG_ENTITY_MUTATION = gql`\n mutation EventfullymanagedUntagEntity($input: EventfullyManagedUntagEntityInput!) {\n untagEventfullyManagedEntity(input: $input)\n }\n`;\n\nexport const CREATE_ENTITY_TAG_MUTATION = gql`\n mutation EventfullymanagedCreateEntityTag($input: EventfullyManagedCreateEntityTagInput!) {\n createEventfullyManagedEntityTag(input: $input) {\n id\n key\n label\n color\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// EventSession — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst EVENT_SESSION_FIELDS = `\n id\n workspaceId\n eventId\n venueId\n title\n description\n sessionType\n track\n startsAt\n endsAt\n capacity\n status\n metadata\n`;\n\nexport const CREATE_EVENT_SESSION_MUTATION = gql`\n mutation EventfullymanagedCreateEventSession($input: EventfullyManagedEventSessionInput!) {\n createEventSession: eventfullyManagedCreateEventSession(input: $input) {\n ${EVENT_SESSION_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_EVENT_SESSION_MUTATION = gql`\n mutation EventfullymanagedUpdateEventSession($id: ID!, $input: EventfullyManagedEventSessionInput!) {\n updateEventSession: eventfullyManagedUpdateEventSession(id: $id, input: $input) {\n ${EVENT_SESSION_FIELDS}\n }\n }\n`;\n\nexport const DELETE_EVENT_SESSION_MUTATION = gql`\n mutation EventfullymanagedDeleteEventSession($id: ID!) {\n deleteEventSession: eventfullyManagedDeleteEventSession(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Speaker — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst SPEAKER_FIELDS = `\n id\n workspaceId\n fullName\n title\n organization\n email\n phone\n bio\n avatarUrl\n socialLinks\n`;\n\nexport const CREATE_SPEAKER_MUTATION = gql`\n mutation EventfullymanagedCreateSpeaker($input: EventfullyManagedSpeakerInput!) {\n createSpeaker: eventfullyManagedCreateSpeaker(input: $input) {\n ${SPEAKER_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_SPEAKER_MUTATION = gql`\n mutation EventfullymanagedUpdateSpeaker($id: ID!, $input: EventfullyManagedSpeakerInput!) {\n updateSpeaker: eventfullyManagedUpdateSpeaker(id: $id, input: $input) {\n ${SPEAKER_FIELDS}\n }\n }\n`;\n\nexport const DELETE_SPEAKER_MUTATION = gql`\n mutation EventfullymanagedDeleteSpeaker($id: ID!) {\n deleteSpeaker: eventfullyManagedDeleteSpeaker(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// TicketType — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst TICKET_TYPE_FIELDS = `\n id\n workspaceId\n eventId\n name\n description\n price\n currency\n capacity\n soldCount\n salesStartAt\n salesEndAt\n isActive\n metadata\n`;\n\nexport const CREATE_TICKET_TYPE_MUTATION = gql`\n mutation EventfullymanagedCreateTicketType($input: EventfullyManagedTicketTypeInput!) {\n createTicketType: eventfullyManagedCreateTicketType(input: $input) {\n ${TICKET_TYPE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_TICKET_TYPE_MUTATION = gql`\n mutation EventfullymanagedUpdateTicketType($id: ID!, $input: EventfullyManagedTicketTypeInput!) {\n updateTicketType: eventfullyManagedUpdateTicketType(id: $id, input: $input) {\n ${TICKET_TYPE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_TICKET_TYPE_MUTATION = gql`\n mutation EventfullymanagedDeleteTicketType($id: ID!) {\n deleteTicketType: eventfullyManagedDeleteTicketType(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// PromoCode — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst PROMO_CODE_FIELDS = `\n id\n workspaceId\n eventId\n code\n description\n discountType\n discountValue\n maxUses\n usedCount\n startsAt\n endsAt\n isActive\n metadata\n`;\n\nexport const CREATE_PROMO_CODE_MUTATION = gql`\n mutation EventfullymanagedCreatePromoCode($input: EventfullyManagedPromoCodeInput!) {\n createPromoCode: eventfullyManagedCreatePromoCode(input: $input) {\n ${PROMO_CODE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_PROMO_CODE_MUTATION = gql`\n mutation EventfullymanagedUpdatePromoCode($id: ID!, $input: EventfullyManagedPromoCodeInput!) {\n updatePromoCode: eventfullyManagedUpdatePromoCode(id: $id, input: $input) {\n ${PROMO_CODE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_PROMO_CODE_MUTATION = gql`\n mutation EventfullymanagedDeletePromoCode($id: ID!) {\n deletePromoCode: eventfullyManagedDeletePromoCode(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Registration — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst REGISTRATION_FIELDS = `\n id\n workspaceId\n eventId\n attendeeId\n ticketTypeId\n status\n quantity\n totalAmount\n promoCodeId\n currency\n registeredAt\n checkedInAt\n metadata\n`;\n\nexport const CREATE_REGISTRATION_MUTATION = gql`\n mutation EventfullymanagedCreateRegistration($input: EventfullyManagedRegistrationInput!) {\n createRegistration: eventfullyManagedCreateRegistration(input: $input) {\n ${REGISTRATION_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_REGISTRATION_MUTATION = gql`\n mutation EventfullymanagedUpdateRegistration($id: ID!, $input: EventfullyManagedRegistrationInput!) {\n updateRegistration: eventfullyManagedUpdateRegistration(id: $id, input: $input) {\n ${REGISTRATION_FIELDS}\n }\n }\n`;\n\nexport const DELETE_REGISTRATION_MUTATION = gql`\n mutation EventfullymanagedDeleteRegistration($id: ID!) {\n deleteRegistration: eventfullyManagedDeleteRegistration(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Attendee — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst ATTENDEE_FIELDS = `\n id\n workspaceId\n eventId\n fullName\n email\n phone\n company\n role\n profile\n metadata\n`;\n\nexport const CREATE_ATTENDEE_MUTATION = gql`\n mutation EventfullymanagedCreateAttendee($input: EventfullyManagedAttendeeInput!) {\n createAttendee: eventfullyManagedCreateAttendee(input: $input) {\n ${ATTENDEE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_ATTENDEE_MUTATION = gql`\n mutation EventfullymanagedUpdateAttendee($id: ID!, $input: EventfullyManagedAttendeeInput!) {\n updateAttendee: eventfullyManagedUpdateAttendee(id: $id, input: $input) {\n ${ATTENDEE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_ATTENDEE_MUTATION = gql`\n mutation EventfullymanagedDeleteAttendee($id: ID!) {\n deleteAttendee: eventfullyManagedDeleteAttendee(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Exhibitor — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst EXHIBITOR_FIELDS = `\n id\n workspaceId\n eventId\n name\n boothCode\n category\n contactName\n contactEmail\n website\n status\n metadata\n`;\n\n// BOFF-11369 — loads a single exhibitor by id so the edit form doesn't have\n// to find it inside a capped list query.\nexport const EXHIBITOR_QUERY = gql`\n query EventfullymanagedExhibitor($id: ID!) {\n exhibitor: eventfullyManagedExhibitor(id: $id) {\n ${EXHIBITOR_FIELDS}\n }\n }\n`;\n\nexport const CREATE_EXHIBITOR_MUTATION = gql`\n mutation EventfullymanagedCreateExhibitor($input: EventfullyManagedExhibitorInput!) {\n createExhibitor: eventfullyManagedCreateExhibitor(input: $input) {\n ${EXHIBITOR_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_EXHIBITOR_MUTATION = gql`\n mutation EventfullymanagedUpdateExhibitor($id: ID!, $input: EventfullyManagedExhibitorInput!) {\n updateExhibitor: eventfullyManagedUpdateExhibitor(id: $id, input: $input) {\n ${EXHIBITOR_FIELDS}\n }\n }\n`;\n\nexport const DELETE_EXHIBITOR_MUTATION = gql`\n mutation EventfullymanagedDeleteExhibitor($id: ID!) {\n deleteExhibitor: eventfullyManagedDeleteExhibitor(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Lead — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst LEAD_FIELDS = `\n id\n workspaceId\n eventId\n sponsorId\n exhibitorId\n attendeeName\n attendeeEmail\n score\n status\n notes\n capturedAt\n metadata\n`;\n\nexport const CREATE_LEAD_MUTATION = gql`\n mutation EventfullymanagedCreateLead($input: EventfullyManagedLeadInput!) {\n createLead: eventfullyManagedCreateLead(input: $input) {\n ${LEAD_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_LEAD_MUTATION = gql`\n mutation EventfullymanagedUpdateLead($id: ID!, $input: EventfullyManagedLeadInput!) {\n updateLead: eventfullyManagedUpdateLead(id: $id, input: $input) {\n ${LEAD_FIELDS}\n }\n }\n`;\n\nexport const DELETE_LEAD_MUTATION = gql`\n mutation EventfullymanagedDeleteLead($id: ID!) {\n deleteLead: eventfullyManagedDeleteLead(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// CheckInStation — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst CHECKIN_STATION_FIELDS = `\n id\n workspaceId\n eventId\n name\n code\n location\n isActive\n kioskConfig\n metadata\n`;\n\nexport const CREATE_CHECKIN_STATION_MUTATION = gql`\n mutation EventfullymanagedCreateCheckInStation($input: EventfullyManagedCheckInStationInput!) {\n createCheckInStation: eventfullyManagedCreateCheckInStation(input: $input) {\n ${CHECKIN_STATION_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_CHECKIN_STATION_MUTATION = gql`\n mutation EventfullymanagedUpdateCheckInStation($id: ID!, $input: EventfullyManagedCheckInStationInput!) {\n updateCheckInStation: eventfullyManagedUpdateCheckInStation(id: $id, input: $input) {\n ${CHECKIN_STATION_FIELDS}\n }\n }\n`;\n\nexport const DELETE_CHECKIN_STATION_MUTATION = gql`\n mutation EventfullymanagedDeleteCheckInStation($id: ID!) {\n deleteCheckInStation: eventfullyManagedDeleteCheckInStation(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// CheckInRecord — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst CHECKIN_RECORD_FIELDS = `\n id\n workspaceId\n eventId\n stationId\n attendeeId\n registrationId\n method\n status\n direction\n recordedAt\n clientScanId\n metadata\n alreadyCheckedIn\n`;\n\nexport const CREATE_CHECKIN_RECORD_MUTATION = gql`\n mutation EventfullymanagedCreateCheckInRecord($input: EventfullyManagedCheckInRecordInput!) {\n createCheckInRecord: eventfullyManagedCreateCheckInRecord(input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_CHECKIN_RECORD_MUTATION = gql`\n mutation EventfullymanagedUpdateCheckInRecord($id: ID!, $input: EventfullyManagedCheckInRecordInput!) {\n updateCheckInRecord: eventfullyManagedUpdateCheckInRecord(id: $id, input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\nexport const DELETE_CHECKIN_RECORD_MUTATION = gql`\n mutation EventfullymanagedDeleteCheckInRecord($id: ID!) {\n deleteCheckInRecord: eventfullyManagedDeleteCheckInRecord(id: $id)\n }\n`;\n\n// BOFF-4330 — kiosk QR scan path (signed token, offline-queue idempotent).\nexport const SCAN_CHECK_IN_MUTATION = gql`\n mutation EventfullymanagedScanCheckIn($input: EventfullyManagedScanCheckInInput!) {\n scanCheckIn: eventfullyManagedScanCheckIn(input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\n// BOFF-11376/BOFF-11377 — kiosk manual lookup path: resolves the attendee's\n// own active registration and enforces real session capacity server-side,\n// instead of a bare attendeeId with the session smuggled into metadata.\nexport const CREATE_MANUAL_CHECKIN_MUTATION = gql`\n mutation EventfullymanagedCreateManualCheckIn($input: EventfullyManagedManualCheckInInput!) {\n createManualCheckIn: eventfullyManagedCreateManualCheckIn(input: $input) {\n ${CHECKIN_RECORD_FIELDS}\n }\n }\n`;\n\n// BOFF-11375 — kiosk manual lookup: real server-side search (name partial,\n// email/id exact) instead of guessing over a 200-row client cache.\nexport const KIOSK_SEARCH_ATTENDEES_QUERY = gql`\n query EventfullymanagedKioskSearchAttendees($eventId: ID!, $query: String!) {\n kioskSearchAttendees: eventfullyManagedKioskSearchAttendees(eventId: $eventId, query: $query) {\n id\n fullName\n email\n }\n }\n`;\n\n// BOFF-4330 — a registration's signed QR check-in token + rendered PNG.\nexport const CHECK_IN_TOKEN_QUERY = gql`\n query EventfullymanagedCheckInToken($registrationId: ID!) {\n checkInToken: eventfullyManagedCheckInToken(registrationId: $registrationId) {\n registrationId\n token\n qrDataUrl\n }\n }\n`;\n\n// BOFF-4322 — on-demand badge PDF (base64-encoded `application/pdf` bytes).\n// Fetched via a one-off `apollo.query()` call (see `downloadBase64Pdf` /\n// `useApolloClient` usage in RegistrationPage), same pattern as\n// wspace-timecampus-svc's invoice PDF download — no generated lazy-query hook\n// needed for a rarely-used, heavy payload.\nexport const BADGE_PDF_QUERY = gql`\n query EventfullymanagedBadgePdf($registrationId: ID!) {\n badgePdf: eventfullyManagedBadgePdf(registrationId: $registrationId)\n }\n`;\n\n// BOFF-4551 — self-contained badge HTML for native printing through the\n// browser/OS print dialog (kiosk auto-print + manual reprint). Fetched via a\n// one-off `apollo.query()` and written into a hidden iframe whose\n// contentWindow.print() drives the printer — no PDF round-trip.\nexport const BADGE_HTML_QUERY = gql`\n query EventfullymanagedBadgeHtml($registrationId: ID!) {\n badgeHtml: eventfullyManagedBadgeHtml(registrationId: $registrationId)\n }\n`;\n\n// BOFF-4551 — native badge print pipeline. The kiosk enqueues one job per\n// printed badge (auditing the print server-side and letting a venue thermal\n// print agent coalesce the same queue); `format: PDF` matches the\n// browser-print fallback the kiosk itself performs. Only id + status are\n// selected — the kiosk treats the enqueue as fire-and-forget and reads none\n// of the payload back.\nconst BADGE_PRINT_JOB_FIELDS = `\n id\n status\n`;\n\nexport const ENQUEUE_BADGE_PRINT_MUTATION = gql`\n mutation EventfullymanagedEnqueueBadgePrint($input: EventfullyManagedEnqueueBadgePrintInput!) {\n enqueueBadgePrint: eventfullyManagedEnqueueBadgePrint(input: $input) {\n ${BADGE_PRINT_JOB_FIELDS}\n }\n }\n`;\n\n/** Downloads a base64-encoded PDF payload as a file in the browser. */\nexport function downloadBase64Pdf(base64: string, filename: string): void {\n const bytes = atob(base64);\n const buffer = new Uint8Array(bytes.length);\n for (let i = 0; i < bytes.length; i += 1) buffer[i] = bytes.charCodeAt(i);\n const blob = new Blob([buffer], { type: 'application/pdf' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = filename;\n document.body.appendChild(link);\n link.click();\n link.remove();\n URL.revokeObjectURL(url);\n}\n\n// ---------------------------------------------------------------------------\n// Virtual sessions — bounded browser-native WebRTC core (BOFF-4318).\n// ---------------------------------------------------------------------------\n\nexport type VirtualParticipantGql = {\n id: string;\n workspaceId: string;\n sessionId: string;\n actorId: string;\n role: 'HOST' | 'PRESENTER' | 'ATTENDEE';\n muted: boolean;\n videoEnabled: boolean;\n joinedAt: string;\n leftAt?: string | null;\n};\n\nexport type VirtualSessionGql = {\n id: string;\n workspaceId: string;\n eventId: string;\n eventSessionId?: string | null;\n mode: 'MEETING' | 'WEBINAR';\n status: 'ACTIVE' | 'ENDED';\n hostId: string;\n startedAt: string;\n endedAt?: string | null;\n participantCount: number;\n maxParticipants: number;\n participants: VirtualParticipantGql[];\n createdAt: string;\n updatedAt: string;\n};\n\nconst VIRTUAL_PARTICIPANT_FIELDS = `\n id\n workspaceId\n sessionId\n actorId\n role\n muted\n videoEnabled\n joinedAt\n leftAt\n`;\n\nconst VIRTUAL_SESSION_FIELDS = `\n id\n workspaceId\n eventId\n eventSessionId\n mode\n status\n hostId\n startedAt\n endedAt\n participantCount\n maxParticipants\n participants {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n createdAt\n updatedAt\n`;\n\nexport const VIRTUAL_SESSION_QUERY = gql`\n query EventfullymanagedVirtualSession($eventId: ID!, $eventSessionId: ID) {\n virtualSession: eventfullyManagedVirtualSession(eventId: $eventId, eventSessionId: $eventSessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const VIRTUAL_SESSIONS_QUERY = gql`\n query EventfullymanagedVirtualSessions($eventId: ID!, $limit: Int, $offset: Int) {\n virtualSessions: eventfullyManagedVirtualSessions(eventId: $eventId, limit: $limit, offset: $offset) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const HOST_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedHostVirtualSession($eventId: ID!, $eventSessionId: ID, $mode: EventfullyManagedVirtualSessionMode!) {\n hostVirtualSession: eventfullyManagedHostVirtualSession(eventId: $eventId, eventSessionId: $eventSessionId, mode: $mode) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const JOIN_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedJoinVirtualSession($eventId: ID!, $eventSessionId: ID) {\n joinVirtualSession: eventfullyManagedJoinVirtualSession(eventId: $eventId, eventSessionId: $eventSessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const LEAVE_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedLeaveVirtualSession($sessionId: ID!) {\n leaveVirtualSession: eventfullyManagedLeaveVirtualSession(sessionId: $sessionId)\n }\n`;\n\nexport const END_VIRTUAL_SESSION_MUTATION = gql`\n mutation EventfullymanagedEndVirtualSession($sessionId: ID!) {\n endVirtualSession: eventfullyManagedEndVirtualSession(sessionId: $sessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\nexport const SET_VIRTUAL_MUTE_MUTATION = gql`\n mutation EventfullymanagedSetVirtualMute($sessionId: ID!, $muted: Boolean!) {\n setVirtualMute: eventfullyManagedSetVirtualMute(sessionId: $sessionId, muted: $muted) {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n }\n`;\n\nexport const SET_VIRTUAL_VIDEO_MUTATION = gql`\n mutation EventfullymanagedSetVirtualVideo($sessionId: ID!, $videoEnabled: Boolean!) {\n setVirtualVideo: eventfullyManagedSetVirtualVideo(sessionId: $sessionId, videoEnabled: $videoEnabled) {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n }\n`;\n\nexport const PROMOTE_VIRTUAL_PRESENTER_MUTATION = gql`\n mutation EventfullymanagedPromoteVirtualPresenter($sessionId: ID!, $actorId: ID!) {\n promoteVirtualPresenter: eventfullyManagedPromoteVirtualPresenter(sessionId: $sessionId, actorId: $actorId) {\n ${VIRTUAL_PARTICIPANT_FIELDS}\n }\n }\n`;\n\nexport const SEND_VIRTUAL_SIGNAL_MUTATION = gql`\n mutation EventfullymanagedSendVirtualSignal(\n $sessionId: ID!\n $toActorId: ID!\n $signalType: EventfullyManagedVirtualSignalType!\n $payload: JSON!\n ) {\n sendVirtualSignal: eventfullyManagedSendVirtualSignal(\n sessionId: $sessionId\n toActorId: $toActorId\n signalType: $signalType\n payload: $payload\n )\n }\n`;\n\n// Raw SDL strings (not `gql`-tagged) — consumed by `useEvmSubscription`'s\n// graphql-ws client, which takes a plain document string, not an Apollo\n// DocumentNode.\nexport const VIRTUAL_SIGNAL_SUBSCRIPTION_SDL = `\n subscription EventfullymanagedVirtualSignal($sessionId: ID!) {\n eventfullyManagedVirtualSignal(sessionId: $sessionId) {\n sessionId\n fromActorId\n toActorId\n signalType\n payload\n }\n }\n`;\n\nexport const VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL = `\n subscription EventfullymanagedVirtualParticipantsChanged($sessionId: ID!) {\n eventfullyManagedVirtualParticipantsChanged(sessionId: $sessionId) {\n ${VIRTUAL_SESSION_FIELDS}\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Integration connectors — bounded CRM/marketing-automation catalog (BOFF-4324).\n// ---------------------------------------------------------------------------\n\nexport type IntegrationConnectorGql = {\n id: string;\n workspaceId: string;\n provider: 'HUBSPOT';\n name: string;\n status: 'PENDING' | 'CONNECTED' | 'ERROR' | 'DISCONNECTED';\n externalAccountId?: string | null;\n externalAccountName?: string | null;\n lastSyncedAt?: string | null;\n lastError?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type IntegrationSyncRunGql = {\n id: string;\n workspaceId: string;\n connectorId: string;\n eventId?: string | null;\n status: 'RUNNING' | 'SUCCESS' | 'FAILED';\n recordsSynced: number;\n recordsFailed: number;\n errorMessage?: string | null;\n startedAt: string;\n completedAt?: string | null;\n};\n\nconst INTEGRATION_CONNECTOR_FIELDS = `\n id\n workspaceId\n provider\n name\n status\n externalAccountId\n externalAccountName\n lastSyncedAt\n lastError\n createdAt\n updatedAt\n`;\n\nconst INTEGRATION_SYNC_RUN_FIELDS = `\n id\n workspaceId\n connectorId\n eventId\n status\n recordsSynced\n recordsFailed\n errorMessage\n startedAt\n completedAt\n`;\n\nexport const INTEGRATION_CONNECTORS_QUERY = gql`\n query EventfullymanagedIntegrationConnectors($limit: Int, $offset: Int) {\n integrationConnectors: eventfullyManagedIntegrationConnectors(limit: $limit, offset: $offset) {\n ${INTEGRATION_CONNECTOR_FIELDS}\n }\n }\n`;\n\nexport const INTEGRATION_SYNC_RUNS_QUERY = gql`\n query EventfullymanagedIntegrationSyncRuns($connectorId: ID!, $limit: Int, $offset: Int) {\n integrationSyncRuns: eventfullyManagedIntegrationSyncRuns(connectorId: $connectorId, limit: $limit, offset: $offset) {\n ${INTEGRATION_SYNC_RUN_FIELDS}\n }\n }\n`;\n\nexport const CREATE_INTEGRATION_CONNECTOR_MUTATION = gql`\n mutation EventfullymanagedCreateIntegrationConnector($input: EventfullyManagedCreateIntegrationConnectorInput!) {\n createIntegrationConnector: eventfullyManagedCreateIntegrationConnector(input: $input) {\n ${INTEGRATION_CONNECTOR_FIELDS}\n }\n }\n`;\n\nexport const DELETE_INTEGRATION_CONNECTOR_MUTATION = gql`\n mutation EventfullymanagedDeleteIntegrationConnector($id: ID!) {\n deleteIntegrationConnector: eventfullyManagedDeleteIntegrationConnector(id: $id)\n }\n`;\n\nexport const SYNC_ATTENDEES_TO_CONNECTOR_MUTATION = gql`\n mutation EventfullymanagedSyncAttendeesToConnector($connectorId: ID!, $eventId: ID!) {\n syncAttendeesToConnector: eventfullyManagedSyncAttendeesToConnector(connectorId: $connectorId, eventId: $eventId) {\n ${INTEGRATION_SYNC_RUN_FIELDS}\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// NetworkingProfile — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst NETWORKING_PROFILE_FIELDS = `\n id\n workspaceId\n eventId\n attendeeId\n interests\n lookingFor\n industry\n role\n visibility\n metadata\n`;\n\nexport const CREATE_NETWORKING_PROFILE_MUTATION = gql`\n mutation EventfullymanagedCreateNetworkingProfile($input: EventfullyManagedNetworkingProfileInput!) {\n createNetworkingProfile: eventfullyManagedCreateNetworkingProfile(input: $input) {\n ${NETWORKING_PROFILE_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_NETWORKING_PROFILE_MUTATION = gql`\n mutation EventfullymanagedUpdateNetworkingProfile($id: ID!, $input: EventfullyManagedNetworkingProfileInput!) {\n updateNetworkingProfile: eventfullyManagedUpdateNetworkingProfile(id: $id, input: $input) {\n ${NETWORKING_PROFILE_FIELDS}\n }\n }\n`;\n\nexport const DELETE_NETWORKING_PROFILE_MUTATION = gql`\n mutation EventfullymanagedDeleteNetworkingProfile($id: ID!) {\n deleteNetworkingProfile: eventfullyManagedDeleteNetworkingProfile(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// NetworkingMatch — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst NETWORKING_MATCH_FIELDS = `\n id\n workspaceId\n eventId\n sourceProfileId\n targetProfileId\n score\n reason\n status\n metadata\n`;\n\nexport const CREATE_NETWORKING_MATCH_MUTATION = gql`\n mutation EventfullymanagedCreateNetworkingMatch($input: EventfullyManagedNetworkingMatchInput!) {\n createNetworkingMatch: eventfullyManagedCreateNetworkingMatch(input: $input) {\n ${NETWORKING_MATCH_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_NETWORKING_MATCH_MUTATION = gql`\n mutation EventfullymanagedUpdateNetworkingMatch($id: ID!, $input: EventfullyManagedNetworkingMatchInput!) {\n updateNetworkingMatch: eventfullyManagedUpdateNetworkingMatch(id: $id, input: $input) {\n ${NETWORKING_MATCH_FIELDS}\n }\n }\n`;\n\nexport const DELETE_NETWORKING_MATCH_MUTATION = gql`\n mutation EventfullymanagedDeleteNetworkingMatch($id: ID!) {\n deleteNetworkingMatch: eventfullyManagedDeleteNetworkingMatch(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Meeting — create / update / delete.\n// ---------------------------------------------------------------------------\n\nconst MEETING_FIELDS = `\n id\n workspaceId\n eventId\n title\n startsAt\n endsAt\n location\n notes\n sourceProfileId\n targetProfileId\n status\n metadata\n`;\n\nexport const CREATE_MEETING_MUTATION = gql`\n mutation EventfullymanagedCreateMeeting($input: EventfullyManagedMeetingInput!) {\n createMeeting: eventfullyManagedCreateMeeting(input: $input) {\n ${MEETING_FIELDS}\n }\n }\n`;\n\nexport const UPDATE_MEETING_MUTATION = gql`\n mutation EventfullymanagedUpdateMeeting($id: ID!, $input: EventfullyManagedMeetingInput!) {\n updateMeeting: eventfullyManagedUpdateMeeting(id: $id, input: $input) {\n ${MEETING_FIELDS}\n }\n }\n`;\n\nexport const DELETE_MEETING_MUTATION = gql`\n mutation EventfullymanagedDeleteMeeting($id: ID!) {\n deleteMeeting: eventfullyManagedDeleteMeeting(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Delete-only for existing create/update entities (Event, Venue, Sponsor).\n// ---------------------------------------------------------------------------\n\nexport const DELETE_EVENT_MUTATION = gql`\n mutation EventfullymanagedDeleteEvent($id: ID!) {\n deleteEvent: eventfullyManagedDeleteEvent(id: $id)\n }\n`;\n\nexport const DELETE_VENUE_MUTATION = gql`\n mutation EventfullymanagedDeleteVenue($id: ID!) {\n deleteVenue: eventfullyManagedDeleteVenue(id: $id)\n }\n`;\n\nexport const DELETE_SPONSOR_MUTATION = gql`\n mutation EventfullymanagedDeleteSponsor($id: ID!) {\n deleteSponsor: eventfullyManagedDeleteSponsor(id: $id)\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Communications — publish announcement / send campaign.\n// ---------------------------------------------------------------------------\n\nexport const PUBLISH_ANNOUNCEMENT_MUTATION = gql`\n mutation EventfullymanagedPublishAnnouncement($id: ID!) {\n publishAnnouncement: eventfullyManagedPublishAnnouncement(id: $id) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\nexport const SEND_COMMUNICATION_CAMPAIGN_MUTATION = gql`\n mutation EventfullymanagedSendCommunicationCampaign($id: ID!) {\n sendCommunicationCampaign: eventfullyManagedSendCommunicationCampaign(id: $id) {\n id\n workspaceId\n eventId\n name\n title\n status\n metadata\n createdAt\n updatedAt\n }\n }\n`;\n\n// ===========================================================================\n// Response type aliases\n// ===========================================================================\n\ntype EventDetailResponse = { event: EventDetailGql | null };\ntype SponsorDetailResponse = { sponsor: SponsorGql | null };\ntype ExhibitorDetailResponse = { exhibitor: ExhibitorGql | null };\ntype ExhibitorSummaryResponse = { exhibitorSummary: { boothCount: number } };\ntype EntityTagsResponse = { eventfullyManagedEntityTags: EntityTagAssignmentGql[] };\ntype AvailableTagsResponse = { availableEventfullyManagedTags: AvailableTagGql[] };\ntype TagEntityResponse = { tagEventfullyManagedEntity: EntityTagAssignmentGql };\ntype UntagEntityResponse = { untagEventfullyManagedEntity: boolean };\ntype CreateEntityTagResponse = { createEventfullyManagedEntityTag: AvailableTagGql };\n\ntype CreateEventSessionResponse = { createEventSession: EventSessionGql };\ntype UpdateEventSessionResponse = { updateEventSession: EventSessionGql };\ntype DeleteEventSessionResponse = { deleteEventSession: boolean };\ntype CreateSpeakerResponse = { createSpeaker: SpeakerGql };\ntype UpdateSpeakerResponse = { updateSpeaker: SpeakerGql };\ntype DeleteSpeakerResponse = { deleteSpeaker: boolean };\ntype CreateTicketTypeResponse = { createTicketType: TicketTypeGql };\ntype UpdateTicketTypeResponse = { updateTicketType: TicketTypeGql };\ntype DeleteTicketTypeResponse = { deleteTicketType: boolean };\ntype CreatePromoCodeResponse = { createPromoCode: PromoCodeGql };\ntype UpdatePromoCodeResponse = { updatePromoCode: PromoCodeGql };\ntype DeletePromoCodeResponse = { deletePromoCode: boolean };\ntype CreateRegistrationResponse = { createRegistration: RegistrationGql };\ntype UpdateRegistrationResponse = { updateRegistration: RegistrationGql };\ntype DeleteRegistrationResponse = { deleteRegistration: boolean };\ntype CreateAttendeeResponse = { createAttendee: AttendeeGql };\ntype UpdateAttendeeResponse = { updateAttendee: AttendeeGql };\ntype DeleteAttendeeResponse = { deleteAttendee: boolean };\ntype CreateExhibitorResponse = { createExhibitor: ExhibitorGql };\ntype UpdateExhibitorResponse = { updateExhibitor: ExhibitorGql };\ntype DeleteExhibitorResponse = { deleteExhibitor: boolean };\ntype CreateLeadResponse = { createLead: LeadGql };\ntype UpdateLeadResponse = { updateLead: LeadGql };\ntype DeleteLeadResponse = { deleteLead: boolean };\ntype CreateCheckInStationResponse = { createCheckInStation: CheckInStationGql };\ntype UpdateCheckInStationResponse = { updateCheckInStation: CheckInStationGql };\ntype DeleteCheckInStationResponse = { deleteCheckInStation: boolean };\ntype CreateCheckInRecordResponse = { createCheckInRecord: CheckInRecordGql };\ntype UpdateCheckInRecordResponse = { updateCheckInRecord: CheckInRecordGql };\ntype DeleteCheckInRecordResponse = { deleteCheckInRecord: boolean };\n// BOFF-4330\ntype ScanCheckInResponse = { scanCheckIn: CheckInRecordGql };\n// BOFF-4551 — native badge print pipeline. Only id + status are selected (the\n// kiosk treats the enqueue as fire-and-forget and reads none of the payload\n// back), so the type intentionally mirrors exactly that selection.\nexport type BadgePrintJobGql = {\n id: string;\n status: string;\n};\ntype EnqueueBadgePrintResponse = { enqueueBadgePrint: BadgePrintJobGql };\ntype EnqueueBadgePrintVars = {\n input: { registrationId: string; stationId?: string | null; format?: 'ZPL' | 'PDF' };\n};\ntype ScanCheckInVars = { input: Record<string, unknown> };\ntype CreateManualCheckInResponse = { createManualCheckIn: CheckInRecordGql };\nexport type KioskAttendeeMatchGql = { id: string; fullName: string; email: string };\ntype KioskSearchAttendeesResponse = { kioskSearchAttendees: KioskAttendeeMatchGql[] };\ntype CreateNetworkingProfileResponse = { createNetworkingProfile: NetworkingProfileGql };\ntype UpdateNetworkingProfileResponse = { updateNetworkingProfile: NetworkingProfileGql };\ntype DeleteNetworkingProfileResponse = { deleteNetworkingProfile: boolean };\ntype CreateNetworkingMatchResponse = { createNetworkingMatch: NetworkingMatchGql };\ntype UpdateNetworkingMatchResponse = { updateNetworkingMatch: NetworkingMatchGql };\ntype DeleteNetworkingMatchResponse = { deleteNetworkingMatch: boolean };\ntype CreateMeetingResponse = { createMeeting: MeetingGql };\ntype UpdateMeetingResponse = { updateMeeting: MeetingGql };\ntype DeleteMeetingResponse = { deleteMeeting: boolean };\ntype DeleteEventResponse = { deleteEvent: boolean };\ntype DeleteVenueResponse = { deleteVenue: boolean };\ntype DeleteSponsorResponse = { deleteSponsor: boolean };\ntype PublishAnnouncementResponse = { publishAnnouncement: SimpleEntityGql };\ntype SendCommunicationCampaignResponse = { sendCommunicationCampaign: SimpleEntityGql };\n\n// BOFF-4318 — virtual session responses.\ntype VirtualSessionResponse = { virtualSession: VirtualSessionGql | null };\ntype VirtualSessionsResponse = { virtualSessions: VirtualSessionGql[] };\ntype HostVirtualSessionResponse = { hostVirtualSession: VirtualSessionGql };\ntype JoinVirtualSessionResponse = { joinVirtualSession: VirtualSessionGql };\ntype LeaveVirtualSessionResponse = { leaveVirtualSession: boolean };\ntype EndVirtualSessionResponse = { endVirtualSession: VirtualSessionGql };\ntype SetVirtualMuteResponse = { setVirtualMute: VirtualParticipantGql };\ntype SetVirtualVideoResponse = { setVirtualVideo: VirtualParticipantGql };\ntype PromoteVirtualPresenterResponse = { promoteVirtualPresenter: VirtualParticipantGql };\ntype SendVirtualSignalResponse = { sendVirtualSignal: boolean };\n\n// BOFF-4324 — integration connector responses.\ntype IntegrationConnectorsResponse = { integrationConnectors: IntegrationConnectorGql[] };\ntype IntegrationSyncRunsResponse = { integrationSyncRuns: IntegrationSyncRunGql[] };\ntype CreateIntegrationConnectorResponse = { createIntegrationConnector: IntegrationConnectorGql };\ntype DeleteIntegrationConnectorResponse = { deleteIntegrationConnector: boolean };\ntype SyncAttendeesToConnectorResponse = { syncAttendeesToConnector: IntegrationSyncRunGql };\n\ntype CreateVars = { input: Record<string, unknown> };\ntype UpdateVars = { id: string; input: Record<string, unknown> };\ntype IdVar = { id: string };\n\n// ===========================================================================\n// Single-entity + tag query hooks\n// ===========================================================================\n\nexport const useEventQuery = (id: string) =>\n useQuery<EventDetailResponse, IdVar>(EVENT_QUERY, { variables: { id }, skip: !id });\nexport const useSponsorQuery = (id: string) =>\n useQuery<SponsorDetailResponse, IdVar>(SPONSOR_QUERY, { variables: { id }, skip: !id });\nexport const useExhibitorQuery = (id: string) =>\n useQuery<ExhibitorDetailResponse, IdVar>(EXHIBITOR_QUERY, { variables: { id }, skip: !id });\nexport const useExhibitorSummaryQuery = (variables: { workspaceId?: string; eventId?: string } = {}) =>\n useQuery<ExhibitorSummaryResponse, { workspaceId?: string; eventId?: string }>(EXHIBITOR_SUMMARY_QUERY, {\n variables,\n });\n\n// BOFF-4330 — a registration's signed QR check-in token + rendered PNG.\nexport type CheckInTokenGql = { registrationId: string; token: string; qrDataUrl: string };\ntype CheckInTokenResponse = { checkInToken: CheckInTokenGql };\nexport const useCheckInTokenQuery = (registrationId: string) =>\n useQuery<CheckInTokenResponse, { registrationId: string }>(CHECK_IN_TOKEN_QUERY, {\n variables: { registrationId },\n skip: !registrationId,\n });\n\nexport const useEntityTagsQuery = (variables: { input: { entityType: string; entityId: string } }) =>\n useQuery<EntityTagsResponse, { input: { entityType: string; entityId: string } }>(ENTITY_TAGS_QUERY, {\n variables,\n skip: !variables.input.entityId,\n });\nexport const useAvailableTagsQuery = (variables: { limit?: number } = {}) =>\n useQuery<AvailableTagsResponse, { limit?: number }>(AVAILABLE_TAGS_QUERY, { variables });\n\nconst CAMPAIGN_AUDIENCE_TAGS_QUERY = gql`\n query EventfullymanagedCampaignAudienceTags($query: String!) {\n searchTags(query: $query, limit: 5) {\n id\n label\n scope\n }\n }\n`;\n\ntype AudienceTagOption = Pick<AvailableTagGql, 'id' | 'label'> & { scope: string };\n\nexport const useCampaignAudienceTagsQuery = (query: string) =>\n useQuery<{ searchTags: AudienceTagOption[] }, { query: string }>(CAMPAIGN_AUDIENCE_TAGS_QUERY, {\n variables: { query },\n });\n\n// ===========================================================================\n// Tag mutation hooks\n// ===========================================================================\n\nexport const useTagEntityMutation = () =>\n useMutation<TagEntityResponse, { input: Record<string, unknown> }>(TAG_ENTITY_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useUntagEntityMutation = () =>\n useMutation<UntagEntityResponse, { input: Record<string, unknown> }>(UNTAG_ENTITY_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useCreateEntityTagMutation = () =>\n useMutation<CreateEntityTagResponse, { input: Record<string, unknown> }>(CREATE_ENTITY_TAG_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: AVAILABLE_TAGS_QUERY }],\n });\n\n// ===========================================================================\n// CRUD mutation hooks\n// ===========================================================================\n\nexport const useCreateEventSessionMutation = () =>\n useMutation<CreateEventSessionResponse, CreateVars>(CREATE_EVENT_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_SESSIONS_QUERY }],\n });\nexport const useUpdateEventSessionMutation = () =>\n useMutation<UpdateEventSessionResponse, UpdateVars>(UPDATE_EVENT_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_SESSIONS_QUERY }],\n });\nexport const useDeleteEventSessionMutation = () =>\n useMutation<DeleteEventSessionResponse, IdVar>(DELETE_EVENT_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENT_SESSIONS_QUERY }],\n });\n\nexport const useCreateSpeakerMutation = () =>\n useMutation<CreateSpeakerResponse, CreateVars>(CREATE_SPEAKER_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPEAKERS_QUERY }],\n });\nexport const useUpdateSpeakerMutation = () =>\n useMutation<UpdateSpeakerResponse, UpdateVars>(UPDATE_SPEAKER_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPEAKERS_QUERY }],\n });\nexport const useDeleteSpeakerMutation = () =>\n useMutation<DeleteSpeakerResponse, IdVar>(DELETE_SPEAKER_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPEAKERS_QUERY }],\n });\n\nexport const useCreateTicketTypeMutation = () =>\n useMutation<CreateTicketTypeResponse, CreateVars>(CREATE_TICKET_TYPE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: TICKET_TYPES_QUERY }],\n });\nexport const useUpdateTicketTypeMutation = () =>\n useMutation<UpdateTicketTypeResponse, UpdateVars>(UPDATE_TICKET_TYPE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: TICKET_TYPES_QUERY }],\n });\nexport const useDeleteTicketTypeMutation = () =>\n useMutation<DeleteTicketTypeResponse, IdVar>(DELETE_TICKET_TYPE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: TICKET_TYPES_QUERY }],\n });\n\nexport const useCreatePromoCodeMutation = () =>\n useMutation<CreatePromoCodeResponse, CreateVars>(CREATE_PROMO_CODE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: PROMO_CODES_QUERY }],\n });\nexport const useUpdatePromoCodeMutation = () =>\n useMutation<UpdatePromoCodeResponse, UpdateVars>(UPDATE_PROMO_CODE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: PROMO_CODES_QUERY }],\n });\nexport const useDeletePromoCodeMutation = () =>\n useMutation<DeletePromoCodeResponse, IdVar>(DELETE_PROMO_CODE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: PROMO_CODES_QUERY }],\n });\n\nexport const useCreateRegistrationMutation = () =>\n useMutation<CreateRegistrationResponse, CreateVars>(CREATE_REGISTRATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: REGISTRATIONS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpdateRegistrationMutation = () =>\n useMutation<UpdateRegistrationResponse, UpdateVars>(UPDATE_REGISTRATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: REGISTRATIONS_QUERY }],\n });\nexport const useDeleteRegistrationMutation = () =>\n useMutation<DeleteRegistrationResponse, IdVar>(DELETE_REGISTRATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: REGISTRATIONS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\n\nexport const useCreateAttendeeMutation = () =>\n useMutation<CreateAttendeeResponse, CreateVars>(CREATE_ATTENDEE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ATTENDEES_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useUpdateAttendeeMutation = () =>\n useMutation<UpdateAttendeeResponse, UpdateVars>(UPDATE_ATTENDEE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ATTENDEES_QUERY }],\n });\nexport const useDeleteAttendeeMutation = () =>\n useMutation<DeleteAttendeeResponse, IdVar>(DELETE_ATTENDEE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ATTENDEES_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\n\nexport const useCreateExhibitorMutation = () =>\n useMutation<CreateExhibitorResponse, CreateVars>(CREATE_EXHIBITOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EXHIBITORS_QUERY }],\n });\nexport const useUpdateExhibitorMutation = () =>\n useMutation<UpdateExhibitorResponse, UpdateVars>(UPDATE_EXHIBITOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EXHIBITORS_QUERY }],\n });\nexport const useDeleteExhibitorMutation = () =>\n useMutation<DeleteExhibitorResponse, IdVar>(DELETE_EXHIBITOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EXHIBITORS_QUERY }],\n });\n\nexport const useCreateLeadMutation = () =>\n useMutation<CreateLeadResponse, CreateVars>(CREATE_LEAD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: LEADS_QUERY }],\n });\nexport const useUpdateLeadMutation = () =>\n useMutation<UpdateLeadResponse, UpdateVars>(UPDATE_LEAD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: LEADS_QUERY }],\n });\nexport const useDeleteLeadMutation = () =>\n useMutation<DeleteLeadResponse, IdVar>(DELETE_LEAD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: LEADS_QUERY }],\n });\n\nexport const useCreateCheckInStationMutation = () =>\n useMutation<CreateCheckInStationResponse, CreateVars>(CREATE_CHECKIN_STATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_STATIONS_QUERY }],\n });\nexport const useUpdateCheckInStationMutation = () =>\n useMutation<UpdateCheckInStationResponse, UpdateVars>(UPDATE_CHECKIN_STATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_STATIONS_QUERY }],\n });\nexport const useDeleteCheckInStationMutation = () =>\n useMutation<DeleteCheckInStationResponse, IdVar>(DELETE_CHECKIN_STATION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_STATIONS_QUERY }],\n });\n\nexport const useCreateCheckInRecordMutation = () =>\n useMutation<CreateCheckInRecordResponse, CreateVars>(CREATE_CHECKIN_RECORD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\nexport const useUpdateCheckInRecordMutation = () =>\n useMutation<UpdateCheckInRecordResponse, UpdateVars>(UPDATE_CHECKIN_RECORD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\nexport const useDeleteCheckInRecordMutation = () =>\n useMutation<DeleteCheckInRecordResponse, IdVar>(DELETE_CHECKIN_RECORD_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\n\n// BOFF-4330 — kiosk QR scan path. Deliberately has NO `onError` toast: callers\n// (interactive submit AND the background offline-queue sync loop) decide for\n// themselves how to react to a failure — a background sync retry failing\n// because the device is still offline should never pop an error toast.\nexport const useScanCheckInMutation = () =>\n useMutation<ScanCheckInResponse, ScanCheckInVars>(SCAN_CHECK_IN_MUTATION, {\n errorPolicy: 'all',\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\n\n// BOFF-11376/BOFF-11377 — kiosk manual lookup path. No `onError` toast, same\n// reasoning as scanCheckIn: the caller shows its own contextual error.\nexport const useCreateManualCheckInMutation = () =>\n useMutation<CreateManualCheckInResponse, CreateVars>(CREATE_MANUAL_CHECKIN_MUTATION, {\n errorPolicy: 'all',\n refetchQueries: [{ query: CHECKIN_RECORDS_QUERY }],\n });\n\n// BOFF-11375 — on-demand kiosk attendee search, skipped until a query is typed.\nexport const useKioskSearchAttendeesQuery = (variables: { eventId: string; query: string }) =>\n useQuery<KioskSearchAttendeesResponse, { eventId: string; query: string }>(KIOSK_SEARCH_ATTENDEES_QUERY, {\n variables,\n skip: !variables.query.trim(),\n });\n\n// BOFF-4551 — no `onError` toast: the kiosk treats a failed print as a\n// non-fatal side effect of a check-in that already succeeded (the caller\n// shows its own contextual toast).\nexport const useEnqueueBadgePrintMutation = () =>\n useMutation<EnqueueBadgePrintResponse, EnqueueBadgePrintVars>(ENQUEUE_BADGE_PRINT_MUTATION, {\n errorPolicy: 'all',\n });\n\nexport const useCreateNetworkingProfileMutation = () =>\n useMutation<CreateNetworkingProfileResponse, CreateVars>(CREATE_NETWORKING_PROFILE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_PROFILES_QUERY }],\n });\nexport const useUpdateNetworkingProfileMutation = () =>\n useMutation<UpdateNetworkingProfileResponse, UpdateVars>(UPDATE_NETWORKING_PROFILE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_PROFILES_QUERY }],\n });\nexport const useDeleteNetworkingProfileMutation = () =>\n useMutation<DeleteNetworkingProfileResponse, IdVar>(DELETE_NETWORKING_PROFILE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_PROFILES_QUERY }],\n });\n\nexport const useGenerateNetworkingMatchesMutation = () =>\n useMutation<GenerateNetworkingMatchesResponse, { eventId: string }>(GENERATE_NETWORKING_MATCHES_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\nexport const useCreateNetworkingMatchMutation = () =>\n useMutation<CreateNetworkingMatchResponse, CreateVars>(CREATE_NETWORKING_MATCH_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\nexport const useUpdateNetworkingMatchMutation = () =>\n useMutation<UpdateNetworkingMatchResponse, UpdateVars>(UPDATE_NETWORKING_MATCH_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\nexport const useDeleteNetworkingMatchMutation = () =>\n useMutation<DeleteNetworkingMatchResponse, IdVar>(DELETE_NETWORKING_MATCH_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: NETWORKING_MATCHES_QUERY }],\n });\n\nexport const useCreateMeetingMutation = () =>\n useMutation<CreateMeetingResponse, CreateVars>(CREATE_MEETING_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: MEETINGS_QUERY }],\n });\nexport const useUpdateMeetingMutation = () =>\n useMutation<UpdateMeetingResponse, UpdateVars>(UPDATE_MEETING_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: MEETINGS_QUERY }],\n });\nexport const useDeleteMeetingMutation = () =>\n useMutation<DeleteMeetingResponse, IdVar>(DELETE_MEETING_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: MEETINGS_QUERY }],\n });\n\nexport const useDeleteEventMutation = () =>\n useMutation<DeleteEventResponse, IdVar>(DELETE_EVENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: EVENTS_QUERY }, { query: DASHBOARD_SUMMARY_QUERY }],\n });\nexport const useDeleteVenueMutation = () =>\n useMutation<DeleteVenueResponse, IdVar>(DELETE_VENUE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: VENUES_QUERY }],\n });\nexport const useDeleteSponsorMutation = () =>\n useMutation<DeleteSponsorResponse, IdVar>(DELETE_SPONSOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: SPONSORS_QUERY }],\n });\n\nexport const usePublishAnnouncementMutation = () =>\n useMutation<PublishAnnouncementResponse, IdVar>(PUBLISH_ANNOUNCEMENT_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: ANNOUNCEMENTS_QUERY }],\n });\nexport const useSendCommunicationCampaignMutation = () =>\n useMutation<SendCommunicationCampaignResponse, IdVar>(SEND_COMMUNICATION_CAMPAIGN_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: COMMUNICATION_CAMPAIGNS_QUERY }],\n });\n\n// ===========================================================================\n// Virtual session hooks (BOFF-4318)\n// ===========================================================================\n\nexport const useVirtualSessionQuery = (variables: { eventId?: string; eventSessionId?: string | null }) =>\n useQuery<VirtualSessionResponse, { eventId?: string; eventSessionId?: string | null }>(VIRTUAL_SESSION_QUERY, {\n variables,\n skip: !variables.eventId,\n });\nexport const useVirtualSessionsQuery = (variables: { eventId?: string; limit?: number; offset?: number }) =>\n useQuery<VirtualSessionsResponse, { eventId?: string; limit?: number; offset?: number }>(VIRTUAL_SESSIONS_QUERY, {\n variables,\n skip: !variables.eventId,\n });\n\nexport const useHostVirtualSessionMutation = () =>\n useMutation<\n HostVirtualSessionResponse,\n { eventId: string; eventSessionId?: string | null; mode: 'MEETING' | 'WEBINAR' }\n >(HOST_VIRTUAL_SESSION_MUTATION, { errorPolicy: 'all', onError: onMutationError });\nexport const useJoinVirtualSessionMutation = () =>\n useMutation<JoinVirtualSessionResponse, { eventId: string; eventSessionId?: string | null }>(\n JOIN_VIRTUAL_SESSION_MUTATION,\n { errorPolicy: 'all', onError: onMutationError }\n );\nexport const useLeaveVirtualSessionMutation = () =>\n useMutation<LeaveVirtualSessionResponse, { sessionId: string }>(LEAVE_VIRTUAL_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useEndVirtualSessionMutation = () =>\n useMutation<EndVirtualSessionResponse, { sessionId: string }>(END_VIRTUAL_SESSION_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useSetVirtualMuteMutation = () =>\n useMutation<SetVirtualMuteResponse, { sessionId: string; muted: boolean }>(SET_VIRTUAL_MUTE_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const useSetVirtualVideoMutation = () =>\n useMutation<SetVirtualVideoResponse, { sessionId: string; videoEnabled: boolean }>(SET_VIRTUAL_VIDEO_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n });\nexport const usePromoteVirtualPresenterMutation = () =>\n useMutation<PromoteVirtualPresenterResponse, { sessionId: string; actorId: string }>(\n PROMOTE_VIRTUAL_PRESENTER_MUTATION,\n { errorPolicy: 'all', onError: onMutationError }\n );\n/**\n * Signal mutations fire many times per second during ICE negotiation — no\n * `onMutationError` toast spam; the calling hook decides how (or whether) to\n * surface a transport failure to the user.\n */\nexport const useSendVirtualSignalMutation = () =>\n useMutation<\n SendVirtualSignalResponse,\n { sessionId: string; toActorId: string; signalType: 'OFFER' | 'ANSWER' | 'ICE_CANDIDATE'; payload: unknown }\n >(SEND_VIRTUAL_SIGNAL_MUTATION, { errorPolicy: 'all' });\n\n// ===========================================================================\n// Integration connector hooks (BOFF-4324)\n// ===========================================================================\n\nexport const useIntegrationConnectorsQuery = (variables: { limit?: number; offset?: number } = {}) =>\n useQuery<IntegrationConnectorsResponse, { limit?: number; offset?: number }>(INTEGRATION_CONNECTORS_QUERY, {\n variables,\n });\nexport const useIntegrationSyncRunsQuery = (variables: { connectorId?: string; limit?: number; offset?: number }) =>\n useQuery<IntegrationSyncRunsResponse, { connectorId?: string; limit?: number; offset?: number }>(\n INTEGRATION_SYNC_RUNS_QUERY,\n { variables, skip: !variables.connectorId }\n );\n\nexport const useCreateIntegrationConnectorMutation = () =>\n useMutation<CreateIntegrationConnectorResponse, CreateVars>(CREATE_INTEGRATION_CONNECTOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: INTEGRATION_CONNECTORS_QUERY }],\n });\nexport const useDeleteIntegrationConnectorMutation = () =>\n useMutation<DeleteIntegrationConnectorResponse, IdVar>(DELETE_INTEGRATION_CONNECTOR_MUTATION, {\n errorPolicy: 'all',\n onError: onMutationError,\n refetchQueries: [{ query: INTEGRATION_CONNECTORS_QUERY }],\n });\nexport const useSyncAttendeesToConnectorMutation = () =>\n useMutation<SyncAttendeesToConnectorResponse, { connectorId: string; eventId: string }>(\n SYNC_ATTENDEES_TO_CONNECTOR_MUTATION,\n { errorPolicy: 'all', onError: onMutationError }\n );\n"],"mappings":";;;;;AAWA,IAAMA,KAAmB,MAA2B;CAClD,EAAO,MAAM,wBAAwBC,EAAM,WAAW,mBAAmB;AAC3E,GAugBaC,IAA0B,CAAG;;;;;;;;;;;;;;;;;GAqB7BC,IAAwB,CAAG;;;;;;;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