@burdenoff/microfe-eventfullymanaged 2026.1124.1 → 2026.1124.3

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 (25) hide show
  1. package/dist/eventfullymanaged/pages/certificates/CertificateEmailControls.d.ts +6 -0
  2. package/dist/eventfullymanaged/pages/certificates/CertificateEmailControls.js +141 -0
  3. package/dist/eventfullymanaged/pages/certificates/CertificateEmailControls.js.map +1 -0
  4. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +143 -111
  5. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -1
  6. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
  7. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
  8. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
  9. package/dist/eventfullymanaged/pages/certificates/CertificateReceiptSearch.d.ts +8 -0
  10. package/dist/eventfullymanaged/pages/certificates/CertificateReceiptSearch.js +43 -0
  11. package/dist/eventfullymanaged/pages/certificates/CertificateReceiptSearch.js.map +1 -0
  12. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
  13. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +86 -0
  14. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
  15. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +71 -60
  16. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -1
  17. package/dist/generated/wspace-operations.d.ts +240 -0
  18. package/dist/generated/wspace-operations.js +133 -30
  19. package/dist/generated/wspace-operations.js.map +1 -1
  20. package/dist/generated/wspace-types.d.ts +651 -6
  21. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +23 -0
  22. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
  23. package/dist/node_modules/@apollo/client/errors/utils.js +15 -0
  24. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
  25. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CertificateTemplates.js","names":["CertificateTemplateEditor","tr","useTr","id","useId","paging","usePagination","requiredIds","setRequiredIds","useState","template","error","setError","createTemplate","creating","useCreateEventCertificateTemplateMutation","updateTemplate","updating","useUpdateEventCertificateTemplateMutation","sessions","useEventSessionsQuery","page","saving","saveError","Dialog","open","onClose","DialogContent","DialogHeader","DialogTitle","DialogDescription","form","event","title","issuerName","statement","input","result","mutationSucceeded","Label","Input","Textarea","Button","session","next","Pagination","CertificateTemplates","editor","setEditor","archiveTemplate","useArchiveEventCertificateTemplateMutation","archiveError","archive","templates","Badge","ActionMenu","onChange"],"sources":["../../../../src/eventfullymanaged/pages/certificates/CertificateTemplates.tsx"],"sourcesContent":["import { useId, useState, type FormEvent } from 'react';\nimport {\n Badge,\n Button,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n Input,\n Label,\n Textarea,\n} from '@burdenoff/fe-libs/ui';\nimport {\n useArchiveEventCertificateTemplateMutation,\n useCreateEventCertificateTemplateMutation,\n useUpdateEventCertificateTemplateMutation,\n type EventCertificateTemplateFieldsFragment,\n} from '../../../generated/wspace-operations';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useEventSessionsQuery } from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\ntype Template = EventCertificateTemplateFieldsFragment;\n\ntype EditorProps = {\n eventId: string;\n template?: Template;\n onClose: () => void;\n onSaved: () => void;\n};\n\nfunction CertificateTemplateEditor({ eventId, template, onClose, onSaved }: EditorProps) {\n const tr = useTr();\n const id = useId();\n const paging = usePagination();\n const [requiredIds, setRequiredIds] = useState(() => new Set(template?.requiredSessionIds ?? []));\n const [error, setError] = useState(false);\n const [createTemplate, { loading: creating }] = useCreateEventCertificateTemplateMutation();\n const [updateTemplate, { loading: updating }] = useUpdateEventCertificateTemplateMutation();\n const sessions = useEventSessionsQuery({ eventId, limit: paging.limit, offset: paging.offset });\n const page = sessions.data?.eventSessions;\n const saving = creating || updating;\n const saveError = tr('eventfullymanaged.certificates.templateSaveError', 'Could not save template');\n\n const submit = async (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n const form = new FormData(event.currentTarget);\n const title = String(form.get('title') ?? '').trim();\n const issuerName = String(form.get('issuer') ?? '').trim();\n const statement = String(form.get('statement') ?? '').trim() || null;\n if (!title || !issuerName || requiredIds.size === 0) {\n setError(true);\n return;\n }\n const input = { title, issuerName, statement, requiredSessionIds: [...requiredIds] };\n try {\n if (template) {\n const result = await updateTemplate({\n variables: { eventId, id: template.id, revision: template.revision, input },\n });\n if (!mutationSucceeded(result, result.data?.eventfullyManagedUpdateCertificateTemplate.id, saveError)) return;\n } else {\n const result = await createTemplate({ variables: { eventId, input } });\n if (!mutationSucceeded(result, result.data?.eventfullyManagedCreateCertificateTemplate.id, saveError)) return;\n }\n onSaved();\n } catch {\n notify.error(saveError);\n }\n };\n\n return (\n <Dialog\n open\n onOpenChange={(open) => {\n if (!open && !saving) onClose();\n }}\n >\n <DialogContent className=\"max-h-[90dvh] overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>\n {template\n ? tr('eventfullymanaged.certificates.editTemplate', 'Edit template')\n : tr('eventfullymanaged.certificates.newTemplate', 'New certificate template')}\n </DialogTitle>\n <DialogDescription>\n {tr(\n 'eventfullymanaged.certificates.templateHelp',\n 'Choose the sessions an attendee must complete to earn this certificate.'\n )}\n </DialogDescription>\n </DialogHeader>\n <form onSubmit={submit} onChange={() => setError(false)}>\n <fieldset disabled={saving} className=\"space-y-4\">\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'title'}>{tr('eventfullymanaged.certificates.templateTitle', 'Title')}</Label>\n <Input id={id + 'title'} name=\"title\" defaultValue={template?.title} maxLength={160} required />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'issuer'}>{tr('eventfullymanaged.certificates.issuer', 'Issuer')}</Label>\n <Input id={id + 'issuer'} name=\"issuer\" defaultValue={template?.issuerName} maxLength={160} required />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'statement'}>\n {tr('eventfullymanaged.certificates.statement', 'Statement (optional)')}\n </Label>\n <Textarea\n id={id + 'statement'}\n name=\"statement\"\n defaultValue={template?.statement ?? ''}\n maxLength={500}\n rows={3}\n />\n </div>\n <fieldset className=\"space-y-2\">\n <legend className=\"mb-2 text-sm font-medium\">\n {tr('eventfullymanaged.certificates.requiredSessions', 'Required sessions')}\n </legend>\n {sessions.loading ? (\n <p role=\"status\">{tr('eventfullymanaged.certificates.loadingSessions', 'Loading sessions…')}</p>\n ) : null}\n {sessions.error ? (\n <div className=\"space-y-2\" role=\"alert\">\n <p>{tr('eventfullymanaged.certificates.sessionError', 'Could not load sessions.')}</p>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => void sessions.refetch().catch(() => undefined)}\n >\n {tr('eventfullymanaged.certificates.retry', 'Retry')}\n </Button>\n </div>\n ) : null}\n {page?.items.map((session) => (\n <label key={session.id} className=\"flex min-h-10 items-center gap-2 text-sm\">\n <input\n type=\"checkbox\"\n checked={requiredIds.has(session.id)}\n disabled={requiredIds.size >= 100 && !requiredIds.has(session.id)}\n onChange={(event) => {\n const next = new Set(requiredIds);\n if (event.target.checked) next.add(session.id);\n else next.delete(session.id);\n setRequiredIds(next);\n }}\n />\n <span>{session.title}</span>\n </label>\n ))}\n {page && page.total === 0 ? (\n <p className=\"text-sm text-text-secondary\">\n {tr('eventfullymanaged.certificates.noSessions', 'Add an event session before creating a template.')}\n </p>\n ) : null}\n {page ? (\n <Pagination\n offset={paging.offset}\n limit={paging.limit}\n total={page.total}\n loadedCount={page.items.length}\n onPrev={paging.prevPage}\n onNext={paging.nextPage}\n loading={sessions.loading}\n itemLabel=\"sessions\"\n />\n ) : null}\n <p className=\"text-sm text-text-secondary\" aria-live=\"polite\">\n {tr('eventfullymanaged.certificates.requiredCount', '{{count}} selected', { count: requiredIds.size })}\n </p>\n </fieldset>\n {error ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {tr(\n 'eventfullymanaged.certificates.invalidTemplate',\n 'Enter a title and issuer, and select at least one session.'\n )}\n </p>\n ) : null}\n <div className=\"flex flex-wrap justify-end gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={onClose}>\n {tr('eventfullymanaged.certificates.cancel', 'Cancel')}\n </Button>\n <Button type=\"submit\" disabled={Boolean(sessions.error)}>\n {saving\n ? tr('eventfullymanaged.certificates.saving', 'Saving…')\n : tr('eventfullymanaged.certificates.save', 'Save template')}\n </Button>\n </div>\n </fieldset>\n </form>\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function CertificateTemplates({\n eventId,\n templates,\n onChange,\n}: {\n eventId: string;\n templates: Template[];\n onChange: () => void;\n}) {\n const tr = useTr();\n const [editor, setEditor] = useState<Template | 'new' | null>(null);\n const [archiveTemplate] = useArchiveEventCertificateTemplateMutation();\n const archiveError = tr('eventfullymanaged.certificates.archiveError', 'Could not archive template');\n\n const archive = async (template: Template) => {\n try {\n const result = await archiveTemplate({\n variables: { eventId, id: template.id, revision: template.revision },\n });\n if (\n mutationSucceeded(\n result,\n result.data?.eventfullyManagedArchiveCertificateTemplate ? template.id : null,\n archiveError\n )\n ) {\n onChange();\n return;\n }\n } catch {\n notify.error(archiveError);\n }\n throw new Error('Certificate template archive was not confirmed.');\n };\n\n return (\n <section className=\"space-y-4\">\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <h2 className=\"text-lg font-semibold\">{tr('eventfullymanaged.certificates.templates', 'Templates')}</h2>\n <Button type=\"button\" onClick={() => setEditor('new')}>\n {tr('eventfullymanaged.certificates.newTemplate', 'New certificate template')}\n </Button>\n </div>\n {templates.length === 0 ? (\n <p className=\"text-text-secondary\">\n {tr('eventfullymanaged.certificates.noTemplates', 'No active templates on this page.')}\n </p>\n ) : null}\n <ul className=\"space-y-2\">\n {templates.map((template) => (\n <li\n key={template.id}\n className=\"flex items-start justify-between gap-3 rounded-card border border-border-seam p-3\"\n >\n <div className=\"min-w-0 space-y-1\">\n <h3 className=\"font-medium break-words\">{template.title}</h3>\n <p className=\"text-sm text-text-secondary break-words\">{template.issuerName}</p>\n <Badge variant=\"secondary\">\n {tr('eventfullymanaged.certificates.revision', 'Revision {{revision}}', {\n revision: template.revision,\n })}\n </Badge>\n </div>\n <ActionMenu\n ariaLabel={tr('eventfullymanaged.certificates.templateActions', 'Actions for {{title}}', {\n title: template.title,\n })}\n entityName={template.title}\n onEdit={() => setEditor(template)}\n deleteLabel={tr('eventfullymanaged.certificates.archive', 'Archive')}\n confirmNote={tr(\n 'eventfullymanaged.certificates.archiveNote',\n 'Existing issued receipts remain available.'\n )}\n onDelete={() => archive(template)}\n />\n </li>\n ))}\n </ul>\n {editor ? (\n <CertificateTemplateEditor\n key={editor === 'new' ? 'new' : editor.id}\n eventId={eventId}\n template={editor === 'new' ? undefined : editor}\n onClose={() => setEditor(null)}\n onSaved={() => {\n setEditor(null);\n onChange();\n }}\n />\n ) : null}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;AAmCA,SAASA,EAA0B,EAAE,YAAS,aAAU,YAAS,cAAwB;CACvF,IAAMC,IAAKC,EAAM,GACXC,IAAKC,EAAM,GACXC,IAASC,EAAc,GACvB,CAACC,GAAaC,KAAkBC,QAAe,IAAI,IAAIC,GAAU,sBAAsB,CAAC,CAAC,CAAC,GAC1F,CAACC,GAAOC,KAAYH,EAAS,EAAK,GAClC,CAACI,GAAgB,EAAE,SAASC,OAAcC,EAA0C,GACpF,CAACC,GAAgB,EAAE,SAASC,OAAcC,EAA0C,GACpFC,IAAWC,EAAsB;EAAE;EAAS,OAAOf,EAAO;EAAO,QAAQA,EAAO;CAAO,CAAC,GACxFgB,IAAOF,E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,EAAG,8CAA8C,mCAAmC;GACpF,CAAA,IACD;GACJ,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAoD,EAAU,KAAK,MACd,kBAAC,MAAD;KAEE,WAAU;KAFZ,UAAA,CAIE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA;OACE,kBAAC,MAAD;QAAI,WAAU;QAA2B,UAAA3C,EAAS;OAAU,CAAA;OAC5D,kBAAC,KAAD;QAAG,WAAU;QAA2C,UAAAA,EAAS;OAAc,CAAA;OAC/E,kBAAC4C,GAAD;QAAO,SAAQ;QACZ,UAAArD,EAAG,2CAA2C,yBAAyB,EACtE,UAAUS,EAAS,SACrB,CAAC;OACI,CAAA;MACJ;KACL,CAAA,GAAA,kBAAC6C,GAAD;MACE,WAAWtD,EAAG,kDAAkD,yBAAyB,EACvF,OAAOS,EAAS,MAClB,CAAC;MACD,YAAYA,EAAS;MACrB,cAAcsC,EAAUtC,CAAQ;MAChC,aAAaT,EAAG,0CAA0C,SAAS;MACnE,aAAaA,EACX,8CACA,4CACF;MACA,gBAAgBmD,EAAQ1C,CAAQ;KACjC,CAAA,CACC;IAzBG,GAAAA,EAAS,EAyBZ,CACL;GACC,CAAA;GACHqC,IACC,kBAAC/C,GAAD;IAEW;IACT,UAAU+C,MAAW,QAAQ,KAAA,IAAYA;IACzC,eAAeC,EAAU,IAAI;IAC7B,eAAe;KAEb,AADAA,EAAU,IAAI,GACdQ,EAAS;IACX;GACD,GARMT,MAAW,QAAQ,QAAQA,EAAO,EAQxC,IACC;EACG;;AAEb"}
1
+ {"version":3,"file":"CertificateTemplates.js","names":["CertificateTemplateEditor","tr","useTr","id","useId","paging","usePagination","requiredIds","setRequiredIds","useState","template","error","setError","createTemplate","creating","useCreateEventCertificateTemplateMutation","updateTemplate","updating","useUpdateEventCertificateTemplateMutation","sessions","useEventSessionsQuery","page","saving","saveError","Dialog","open","onClose","DialogContent","DialogHeader","DialogTitle","DialogDescription","form","event","title","issuerName","statement","input","result","mutationSucceeded","Label","Input","Textarea","Button","session","next","Pagination","CertificateTemplates","editor","setEditor","scheduleTemplate","setScheduleTemplate","archiveTemplate","useArchiveEventCertificateTemplateMutation","archiveError","archive","templates","Badge","ActionMenu","CertificateScheduleDialog","onChange"],"sources":["../../../../src/eventfullymanaged/pages/certificates/CertificateTemplates.tsx"],"sourcesContent":["import { useId, useState, type FormEvent } from 'react';\nimport {\n Badge,\n Button,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n Input,\n Label,\n Textarea,\n} from '@burdenoff/fe-libs/ui';\nimport {\n useArchiveEventCertificateTemplateMutation,\n useCreateEventCertificateTemplateMutation,\n useUpdateEventCertificateTemplateMutation,\n type EventCertificateTemplateFieldsFragment,\n} from '../../../generated/wspace-operations';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useEventSessionsQuery } from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\nimport { CertificateScheduleDialog } from './CertificateScheduleDialog';\n\ntype Template = EventCertificateTemplateFieldsFragment;\n\ntype EditorProps = {\n eventId: string;\n template?: Template;\n onClose: () => void;\n onSaved: () => void;\n};\n\nfunction CertificateTemplateEditor({ eventId, template, onClose, onSaved }: EditorProps) {\n const tr = useTr();\n const id = useId();\n const paging = usePagination();\n const [requiredIds, setRequiredIds] = useState(() => new Set(template?.requiredSessionIds ?? []));\n const [error, setError] = useState(false);\n const [createTemplate, { loading: creating }] = useCreateEventCertificateTemplateMutation();\n const [updateTemplate, { loading: updating }] = useUpdateEventCertificateTemplateMutation();\n const sessions = useEventSessionsQuery({ eventId, limit: paging.limit, offset: paging.offset });\n const page = sessions.data?.eventSessions;\n const saving = creating || updating;\n const saveError = tr('eventfullymanaged.certificates.templateSaveError', 'Could not save template');\n\n const submit = async (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n const form = new FormData(event.currentTarget);\n const title = String(form.get('title') ?? '').trim();\n const issuerName = String(form.get('issuer') ?? '').trim();\n const statement = String(form.get('statement') ?? '').trim() || null;\n if (!title || !issuerName || requiredIds.size === 0) {\n setError(true);\n return;\n }\n const input = { title, issuerName, statement, requiredSessionIds: [...requiredIds] };\n try {\n if (template) {\n const result = await updateTemplate({\n variables: { eventId, id: template.id, revision: template.revision, input },\n });\n if (!mutationSucceeded(result, result.data?.eventfullyManagedUpdateCertificateTemplate.id, saveError)) return;\n } else {\n const result = await createTemplate({ variables: { eventId, input } });\n if (!mutationSucceeded(result, result.data?.eventfullyManagedCreateCertificateTemplate.id, saveError)) return;\n }\n onSaved();\n } catch {\n notify.error(saveError);\n }\n };\n\n return (\n <Dialog\n open\n onOpenChange={(open) => {\n if (!open && !saving) onClose();\n }}\n >\n <DialogContent className=\"max-h-[90dvh] overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>\n {template\n ? tr('eventfullymanaged.certificates.editTemplate', 'Edit template')\n : tr('eventfullymanaged.certificates.newTemplate', 'New certificate template')}\n </DialogTitle>\n <DialogDescription>\n {tr(\n 'eventfullymanaged.certificates.templateHelp',\n 'Choose the sessions an attendee must complete to earn this certificate.'\n )}\n </DialogDescription>\n </DialogHeader>\n <form onSubmit={submit} onChange={() => setError(false)}>\n <fieldset disabled={saving} className=\"space-y-4\">\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'title'}>{tr('eventfullymanaged.certificates.templateTitle', 'Title')}</Label>\n <Input id={id + 'title'} name=\"title\" defaultValue={template?.title} maxLength={160} required />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'issuer'}>{tr('eventfullymanaged.certificates.issuer', 'Issuer')}</Label>\n <Input id={id + 'issuer'} name=\"issuer\" defaultValue={template?.issuerName} maxLength={160} required />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'statement'}>\n {tr('eventfullymanaged.certificates.statement', 'Statement (optional)')}\n </Label>\n <Textarea\n id={id + 'statement'}\n name=\"statement\"\n defaultValue={template?.statement ?? ''}\n maxLength={500}\n rows={3}\n />\n </div>\n <fieldset className=\"space-y-2\">\n <legend className=\"mb-2 text-sm font-medium\">\n {tr('eventfullymanaged.certificates.requiredSessions', 'Required sessions')}\n </legend>\n {sessions.loading ? (\n <p role=\"status\">{tr('eventfullymanaged.certificates.loadingSessions', 'Loading sessions…')}</p>\n ) : null}\n {sessions.error ? (\n <div className=\"space-y-2\" role=\"alert\">\n <p>{tr('eventfullymanaged.certificates.sessionError', 'Could not load sessions.')}</p>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => void sessions.refetch().catch(() => undefined)}\n >\n {tr('eventfullymanaged.certificates.retry', 'Retry')}\n </Button>\n </div>\n ) : null}\n {page?.items.map((session) => (\n <label key={session.id} className=\"flex min-h-10 items-center gap-2 text-sm\">\n <input\n type=\"checkbox\"\n checked={requiredIds.has(session.id)}\n disabled={requiredIds.size >= 100 && !requiredIds.has(session.id)}\n onChange={(event) => {\n const next = new Set(requiredIds);\n if (event.target.checked) next.add(session.id);\n else next.delete(session.id);\n setRequiredIds(next);\n }}\n />\n <span>{session.title}</span>\n </label>\n ))}\n {page && page.total === 0 ? (\n <p className=\"text-sm text-text-secondary\">\n {tr('eventfullymanaged.certificates.noSessions', 'Add an event session before creating a template.')}\n </p>\n ) : null}\n {page ? (\n <Pagination\n offset={paging.offset}\n limit={paging.limit}\n total={page.total}\n loadedCount={page.items.length}\n onPrev={paging.prevPage}\n onNext={paging.nextPage}\n loading={sessions.loading}\n itemLabel=\"sessions\"\n />\n ) : null}\n <p className=\"text-sm text-text-secondary\" aria-live=\"polite\">\n {tr('eventfullymanaged.certificates.requiredCount', '{{count}} selected', { count: requiredIds.size })}\n </p>\n </fieldset>\n {error ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {tr(\n 'eventfullymanaged.certificates.invalidTemplate',\n 'Enter a title and issuer, and select at least one session.'\n )}\n </p>\n ) : null}\n <div className=\"flex flex-wrap justify-end gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={onClose}>\n {tr('eventfullymanaged.certificates.cancel', 'Cancel')}\n </Button>\n <Button type=\"submit\" disabled={Boolean(sessions.error)}>\n {saving\n ? tr('eventfullymanaged.certificates.saving', 'Saving…')\n : tr('eventfullymanaged.certificates.save', 'Save template')}\n </Button>\n </div>\n </fieldset>\n </form>\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function CertificateTemplates({\n eventId,\n templates,\n onChange,\n}: {\n eventId: string;\n templates: Template[];\n onChange: () => void;\n}) {\n const tr = useTr();\n const [editor, setEditor] = useState<Template | 'new' | null>(null);\n const [scheduleTemplate, setScheduleTemplate] = useState<Template | null>(null);\n const [archiveTemplate] = useArchiveEventCertificateTemplateMutation();\n const archiveError = tr('eventfullymanaged.certificates.archiveError', 'Could not archive template');\n\n const archive = async (template: Template) => {\n try {\n const result = await archiveTemplate({\n variables: { eventId, id: template.id, revision: template.revision },\n });\n if (\n mutationSucceeded(\n result,\n result.data?.eventfullyManagedArchiveCertificateTemplate ? template.id : null,\n archiveError\n )\n ) {\n onChange();\n return;\n }\n } catch {\n notify.error(archiveError);\n }\n throw new Error('Certificate template archive was not confirmed.');\n };\n\n return (\n <section className=\"space-y-4\">\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <h2 className=\"text-lg font-semibold\">{tr('eventfullymanaged.certificates.templates', 'Templates')}</h2>\n <Button type=\"button\" onClick={() => setEditor('new')}>\n {tr('eventfullymanaged.certificates.newTemplate', 'New certificate template')}\n </Button>\n </div>\n {templates.length === 0 ? (\n <p className=\"text-text-secondary\">\n {tr('eventfullymanaged.certificates.noTemplates', 'No active templates on this page.')}\n </p>\n ) : null}\n <ul className=\"space-y-2\">\n {templates.map((template) => (\n <li\n key={template.id}\n className=\"flex items-start justify-between gap-3 rounded-card border border-border-seam p-3\"\n >\n <div className=\"min-w-0 space-y-1\">\n <h3 className=\"font-medium break-words\">{template.title}</h3>\n <p className=\"text-sm text-text-secondary break-words\">{template.issuerName}</p>\n <Badge variant=\"secondary\">\n {tr('eventfullymanaged.certificates.revision', 'Revision {{revision}}', {\n revision: template.revision,\n })}\n </Badge>\n </div>\n <ActionMenu\n ariaLabel={tr('eventfullymanaged.certificates.templateActions', 'Actions for {{title}}', {\n title: template.title,\n })}\n entityName={template.title}\n onEdit={() => setEditor(template)}\n extraItems={[\n {\n key: 'schedule',\n label: tr('eventfullymanaged.certificates.schedule', 'Schedule automatic issuance'),\n onSelect: () => setScheduleTemplate(template),\n },\n ]}\n deleteLabel={tr('eventfullymanaged.certificates.archive', 'Archive')}\n confirmNote={tr(\n 'eventfullymanaged.certificates.archiveNote',\n 'Existing issued receipts remain available.'\n )}\n onDelete={() => archive(template)}\n />\n </li>\n ))}\n </ul>\n {scheduleTemplate ? (\n <CertificateScheduleDialog\n eventId={eventId}\n template={scheduleTemplate}\n onClose={() => setScheduleTemplate(null)}\n />\n ) : null}\n {editor ? (\n <CertificateTemplateEditor\n key={editor === 'new' ? 'new' : editor.id}\n eventId={eventId}\n template={editor === 'new' ? undefined : editor}\n onClose={() => setEditor(null)}\n onSaved={() => {\n setEditor(null);\n onChange();\n }}\n />\n ) : null}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAoCA,SAASA,EAA0B,EAAE,YAAS,aAAU,YAAS,cAAwB;CACvF,IAAMC,IAAKC,EAAM,GACXC,IAAKC,EAAM,GACXC,IAASC,EAAc,GACvB,CAACC,GAAaC,KAAkBC,QAAe,IAAI,IAAIC,GAAU,sBAAsB,CAAC,CAAC,CAAC,GAC1F,CAACC,GAAOC,KAAYH,EAAS,EAAK,GAClC,CAACI,GAAgB,EAAE,SAASC,OAAcC,EAA0C,GACpF,CAACC,GAAgB,EAAE,SAASC,OAAcC,EAA0C,GACpFC,IAAWC,EAAsB;EAAE;EAAS,OAAOf,EAAO;EAAO,QAAQA,EAAO;CAAO,CAAC,GACxFgB,IAAOF,EAAS,MAAM,eACtBG,IAASR,KAAYG,GACrBM,IA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AAAtD,EAAG,8CAA8C,mCAAmC;GACpF,CAAA,IACD;GACJ,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAsD,EAAU,KAAK,MACd,kBAAC,MAAD;KAEE,WAAU;KAFZ,UAAA,CAIE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA;OACE,kBAAC,MAAD;QAAI,WAAU;QAA2B,UAAA7C,EAAS;OAAU,CAAA;OAC5D,kBAAC,KAAD;QAAG,WAAU;QAA2C,UAAAA,EAAS;OAAc,CAAA;OAC/E,kBAAC8C,GAAD;QAAO,SAAQ;QACZ,UAAAvD,EAAG,2CAA2C,yBAAyB,EACtE,UAAUS,EAAS,SACrB,CAAC;OACI,CAAA;MACJ;KACL,CAAA,GAAA,kBAAC+C,GAAD;MACE,WAAWxD,EAAG,kDAAkD,yBAAyB,EACvF,OAAOS,EAAS,MAClB,CAAC;MACD,YAAYA,EAAS;MACrB,cAAcsC,EAAUtC,CAAQ;MAChC,YAAY,CACV;OACE,KAAK;OACL,OAAOT,EAAG,2CAA2C,6BAA6B;OAClF,gBAAgBiD,EAAoBxC,CAAQ;MAC9C,CACF;MACA,aAAaT,EAAG,0CAA0C,SAAS;MACnE,aAAaA,EACX,8CACA,4CACF;MACA,gBAAgBqD,EAAQ5C,CAAQ;KACjC,CAAA,CACC;IAhCG,GAAAA,EAAS,EAgCZ,CACL;GACC,CAAA;GACHuC,IACC,kBAACS,GAAD;IACW;IACT,UAAUT;IACV,eAAeC,EAAoB,IAAI;GACxC,CAAA,IACC;GACHH,IACC,kBAAC/C,GAAD;IAEW;IACT,UAAU+C,MAAW,QAAQ,KAAA,IAAYA;IACzC,eAAeC,EAAU,IAAI;IAC7B,eAAe;KAEb,AADAA,EAAU,IAAI,GACdW,EAAS;IACX;GACD,GARMZ,MAAW,QAAQ,QAAQA,EAAO,EAQxC,IACC;EACG;;AAEb"}
@@ -192,8 +192,103 @@ export type EventCertificateRegistrationsQuery = {
192
192
  }>;
193
193
  };
194
194
  };
195
+ export type EventCertificatePdfQueryVariables = Types.Exact<{
196
+ eventId: Types.Scalars['ID']['input'];
197
+ id: Types.Scalars['ID']['input'];
198
+ }>;
199
+ export type EventCertificatePdfQuery = {
200
+ __typename?: 'Query';
201
+ eventfullyManagedCertificatePdf: {
202
+ __typename?: 'EventfullyManagedCertificatePdf';
203
+ filename: string;
204
+ contentType: string;
205
+ contentBase64: string;
206
+ };
207
+ };
208
+ export type ScheduleEventCertificateIssuanceMutationVariables = Types.Exact<{
209
+ eventId: Types.Scalars['ID']['input'];
210
+ templateId: Types.Scalars['ID']['input'];
211
+ templateRevision: Types.Scalars['Int']['input'];
212
+ sendEmail: Types.Scalars['Boolean']['input'];
213
+ }>;
214
+ export type ScheduleEventCertificateIssuanceMutation = {
215
+ __typename?: 'Mutation';
216
+ eventfullyManagedScheduleCertificateIssuance: {
217
+ __typename?: 'EventfullyManagedCertificateRun';
218
+ id: string;
219
+ templateRevision: number;
220
+ status: string;
221
+ nextAttemptAt: string;
222
+ completedAt?: string | null;
223
+ sendEmail: boolean;
224
+ };
225
+ };
226
+ export type EventIssuedCertificateQueryVariables = Types.Exact<{
227
+ eventId: Types.Scalars['ID']['input'];
228
+ registrationId: Types.Scalars['ID']['input'];
229
+ templateId: Types.Scalars['ID']['input'];
230
+ }>;
231
+ export type EventIssuedCertificateQuery = {
232
+ __typename?: 'Query';
233
+ eventfullyManagedIssuedCertificate?: {
234
+ __typename?: 'EventfullyManagedCertificate';
235
+ id: string;
236
+ eventId: string;
237
+ title: string;
238
+ issuedAt: string;
239
+ registrationId: string;
240
+ templateId: string;
241
+ templateRevision: number;
242
+ } | null;
243
+ };
244
+ export type EventCertificateEmailFieldsFragment = {
245
+ __typename?: 'EventfullyManagedCertificateEmailDelivery';
246
+ id: string;
247
+ eventId: string;
248
+ certificateId: string;
249
+ status: string;
250
+ channelStatus?: string | null;
251
+ createdAt: string;
252
+ submittedAt?: string | null;
253
+ };
254
+ export type EventLatestCertificateEmailQueryVariables = Types.Exact<{
255
+ eventId: Types.Scalars['ID']['input'];
256
+ certificateId: Types.Scalars['ID']['input'];
257
+ }>;
258
+ export type EventLatestCertificateEmailQuery = {
259
+ __typename?: 'Query';
260
+ eventfullyManagedLatestCertificateEmailDelivery?: {
261
+ __typename?: 'EventfullyManagedCertificateEmailDelivery';
262
+ id: string;
263
+ eventId: string;
264
+ certificateId: string;
265
+ status: string;
266
+ channelStatus?: string | null;
267
+ createdAt: string;
268
+ submittedAt?: string | null;
269
+ } | null;
270
+ };
271
+ export type QueueEventCertificateEmailMutationVariables = Types.Exact<{
272
+ eventId: Types.Scalars['ID']['input'];
273
+ certificateId: Types.Scalars['ID']['input'];
274
+ requestId: Types.Scalars['ID']['input'];
275
+ }>;
276
+ export type QueueEventCertificateEmailMutation = {
277
+ __typename?: 'Mutation';
278
+ eventfullyManagedQueueCertificateEmail: {
279
+ __typename?: 'EventfullyManagedCertificateEmailDelivery';
280
+ id: string;
281
+ eventId: string;
282
+ certificateId: string;
283
+ status: string;
284
+ channelStatus?: string | null;
285
+ createdAt: string;
286
+ submittedAt?: string | null;
287
+ };
288
+ };
195
289
  export declare const EventCertificateTemplateFieldsFragmentDoc: Apollo.DocumentNode;
196
290
  export declare const EventCertificateReceiptFieldsFragmentDoc: Apollo.DocumentNode;
291
+ export declare const EventCertificateEmailFieldsFragmentDoc: Apollo.DocumentNode;
197
292
  export declare const EventfullymanagedSavedAttendanceForecastDocument: Apollo.DocumentNode;
198
293
  /**
199
294
  * __useEventfullymanagedSavedAttendanceForecastQuery__
@@ -474,3 +569,148 @@ export type EventCertificateRegistrationsQueryHookResult = ReturnType<typeof use
474
569
  export type EventCertificateRegistrationsLazyQueryHookResult = ReturnType<typeof useEventCertificateRegistrationsLazyQuery>;
475
570
  export type EventCertificateRegistrationsSuspenseQueryHookResult = ReturnType<typeof useEventCertificateRegistrationsSuspenseQuery>;
476
571
  export type EventCertificateRegistrationsQueryResult = Apollo.QueryResult<Types.EventCertificateRegistrationsQuery, Types.EventCertificateRegistrationsQueryVariables>;
572
+ export declare const EventCertificatePdfDocument: Apollo.DocumentNode;
573
+ /**
574
+ * __useEventCertificatePdfQuery__
575
+ *
576
+ * To run a query within a React component, call `useEventCertificatePdfQuery` and pass it any options that fit your needs.
577
+ * When your component renders, `useEventCertificatePdfQuery` returns an object from Apollo Client that contains loading, error, and data properties
578
+ * you can use to render your UI.
579
+ *
580
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
581
+ *
582
+ * @example
583
+ * const { data, loading, error } = useEventCertificatePdfQuery({
584
+ * variables: {
585
+ * eventId: // value for 'eventId'
586
+ * id: // value for 'id'
587
+ * },
588
+ * });
589
+ */
590
+ export declare function useEventCertificatePdfQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables> & ({
591
+ variables: Types.EventCertificatePdfQueryVariables;
592
+ skip?: boolean;
593
+ } | {
594
+ skip: boolean;
595
+ })): ApolloReactHooks.useQuery.Result<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables, "empty" | "complete" | "streaming", Types.EventCertificatePdfQueryVariables, undefined>;
596
+ export declare function useEventCertificatePdfLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables, "empty" | "complete" | "streaming", undefined>;
597
+ export declare function useEventCertificatePdfSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables>;
598
+ export declare function useEventCertificatePdfSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.EventCertificatePdfQuery | undefined, Types.EventCertificatePdfQueryVariables>;
599
+ export type EventCertificatePdfQueryHookResult = ReturnType<typeof useEventCertificatePdfQuery>;
600
+ export type EventCertificatePdfLazyQueryHookResult = ReturnType<typeof useEventCertificatePdfLazyQuery>;
601
+ export type EventCertificatePdfSuspenseQueryHookResult = ReturnType<typeof useEventCertificatePdfSuspenseQuery>;
602
+ export type EventCertificatePdfQueryResult = Apollo.QueryResult<Types.EventCertificatePdfQuery, Types.EventCertificatePdfQueryVariables>;
603
+ export declare const ScheduleEventCertificateIssuanceDocument: Apollo.DocumentNode;
604
+ export type ScheduleEventCertificateIssuanceMutationFn = Apollo.MutationFunction<Types.ScheduleEventCertificateIssuanceMutation, Types.ScheduleEventCertificateIssuanceMutationVariables>;
605
+ /**
606
+ * __useScheduleEventCertificateIssuanceMutation__
607
+ *
608
+ * To run a mutation, you first call `useScheduleEventCertificateIssuanceMutation` within a React component and pass it any options that fit your needs.
609
+ * When your component renders, `useScheduleEventCertificateIssuanceMutation` returns a tuple that includes:
610
+ * - A mutate function that you can call at any time to execute the mutation
611
+ * - An object with fields that represent the current status of the mutation's execution
612
+ *
613
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
614
+ *
615
+ * @example
616
+ * const [scheduleEventCertificateIssuanceMutation, { data, loading, error }] = useScheduleEventCertificateIssuanceMutation({
617
+ * variables: {
618
+ * eventId: // value for 'eventId'
619
+ * templateId: // value for 'templateId'
620
+ * templateRevision: // value for 'templateRevision'
621
+ * sendEmail: // value for 'sendEmail'
622
+ * },
623
+ * });
624
+ */
625
+ export declare function useScheduleEventCertificateIssuanceMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.ScheduleEventCertificateIssuanceMutation, Types.ScheduleEventCertificateIssuanceMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.ScheduleEventCertificateIssuanceMutation, any, Apollo.ApolloCache, undefined>;
626
+ export type ScheduleEventCertificateIssuanceMutationHookResult = ReturnType<typeof useScheduleEventCertificateIssuanceMutation>;
627
+ export type ScheduleEventCertificateIssuanceMutationResult = Apollo.MutationResult<Types.ScheduleEventCertificateIssuanceMutation>;
628
+ export type ScheduleEventCertificateIssuanceMutationOptions = Apollo.BaseMutationOptions<Types.ScheduleEventCertificateIssuanceMutation, Types.ScheduleEventCertificateIssuanceMutationVariables>;
629
+ export declare const EventIssuedCertificateDocument: Apollo.DocumentNode;
630
+ /**
631
+ * __useEventIssuedCertificateQuery__
632
+ *
633
+ * To run a query within a React component, call `useEventIssuedCertificateQuery` and pass it any options that fit your needs.
634
+ * When your component renders, `useEventIssuedCertificateQuery` returns an object from Apollo Client that contains loading, error, and data properties
635
+ * you can use to render your UI.
636
+ *
637
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
638
+ *
639
+ * @example
640
+ * const { data, loading, error } = useEventIssuedCertificateQuery({
641
+ * variables: {
642
+ * eventId: // value for 'eventId'
643
+ * registrationId: // value for 'registrationId'
644
+ * templateId: // value for 'templateId'
645
+ * },
646
+ * });
647
+ */
648
+ export declare function useEventIssuedCertificateQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables> & ({
649
+ variables: Types.EventIssuedCertificateQueryVariables;
650
+ skip?: boolean;
651
+ } | {
652
+ skip: boolean;
653
+ })): ApolloReactHooks.useQuery.Result<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables, "empty" | "complete" | "streaming", Types.EventIssuedCertificateQueryVariables, undefined>;
654
+ export declare function useEventIssuedCertificateLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables, "empty" | "complete" | "streaming", undefined>;
655
+ export declare function useEventIssuedCertificateSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables>;
656
+ export declare function useEventIssuedCertificateSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.EventIssuedCertificateQuery | undefined, Types.EventIssuedCertificateQueryVariables>;
657
+ export type EventIssuedCertificateQueryHookResult = ReturnType<typeof useEventIssuedCertificateQuery>;
658
+ export type EventIssuedCertificateLazyQueryHookResult = ReturnType<typeof useEventIssuedCertificateLazyQuery>;
659
+ export type EventIssuedCertificateSuspenseQueryHookResult = ReturnType<typeof useEventIssuedCertificateSuspenseQuery>;
660
+ export type EventIssuedCertificateQueryResult = Apollo.QueryResult<Types.EventIssuedCertificateQuery, Types.EventIssuedCertificateQueryVariables>;
661
+ export declare const EventLatestCertificateEmailDocument: Apollo.DocumentNode;
662
+ /**
663
+ * __useEventLatestCertificateEmailQuery__
664
+ *
665
+ * To run a query within a React component, call `useEventLatestCertificateEmailQuery` and pass it any options that fit your needs.
666
+ * When your component renders, `useEventLatestCertificateEmailQuery` returns an object from Apollo Client that contains loading, error, and data properties
667
+ * you can use to render your UI.
668
+ *
669
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
670
+ *
671
+ * @example
672
+ * const { data, loading, error } = useEventLatestCertificateEmailQuery({
673
+ * variables: {
674
+ * eventId: // value for 'eventId'
675
+ * certificateId: // value for 'certificateId'
676
+ * },
677
+ * });
678
+ */
679
+ export declare function useEventLatestCertificateEmailQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables> & ({
680
+ variables: Types.EventLatestCertificateEmailQueryVariables;
681
+ skip?: boolean;
682
+ } | {
683
+ skip: boolean;
684
+ })): ApolloReactHooks.useQuery.Result<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables, "empty" | "complete" | "streaming", Types.EventLatestCertificateEmailQueryVariables, undefined>;
685
+ export declare function useEventLatestCertificateEmailLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables, "empty" | "complete" | "streaming", undefined>;
686
+ export declare function useEventLatestCertificateEmailSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables>;
687
+ export declare function useEventLatestCertificateEmailSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.EventLatestCertificateEmailQuery | undefined, Types.EventLatestCertificateEmailQueryVariables>;
688
+ export type EventLatestCertificateEmailQueryHookResult = ReturnType<typeof useEventLatestCertificateEmailQuery>;
689
+ export type EventLatestCertificateEmailLazyQueryHookResult = ReturnType<typeof useEventLatestCertificateEmailLazyQuery>;
690
+ export type EventLatestCertificateEmailSuspenseQueryHookResult = ReturnType<typeof useEventLatestCertificateEmailSuspenseQuery>;
691
+ export type EventLatestCertificateEmailQueryResult = Apollo.QueryResult<Types.EventLatestCertificateEmailQuery, Types.EventLatestCertificateEmailQueryVariables>;
692
+ export declare const QueueEventCertificateEmailDocument: Apollo.DocumentNode;
693
+ export type QueueEventCertificateEmailMutationFn = Apollo.MutationFunction<Types.QueueEventCertificateEmailMutation, Types.QueueEventCertificateEmailMutationVariables>;
694
+ /**
695
+ * __useQueueEventCertificateEmailMutation__
696
+ *
697
+ * To run a mutation, you first call `useQueueEventCertificateEmailMutation` within a React component and pass it any options that fit your needs.
698
+ * When your component renders, `useQueueEventCertificateEmailMutation` returns a tuple that includes:
699
+ * - A mutate function that you can call at any time to execute the mutation
700
+ * - An object with fields that represent the current status of the mutation's execution
701
+ *
702
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
703
+ *
704
+ * @example
705
+ * const [queueEventCertificateEmailMutation, { data, loading, error }] = useQueueEventCertificateEmailMutation({
706
+ * variables: {
707
+ * eventId: // value for 'eventId'
708
+ * certificateId: // value for 'certificateId'
709
+ * requestId: // value for 'requestId'
710
+ * },
711
+ * });
712
+ */
713
+ export declare function useQueueEventCertificateEmailMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.QueueEventCertificateEmailMutation, Types.QueueEventCertificateEmailMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.QueueEventCertificateEmailMutation, any, Apollo.ApolloCache, undefined>;
714
+ export type QueueEventCertificateEmailMutationHookResult = ReturnType<typeof useQueueEventCertificateEmailMutation>;
715
+ export type QueueEventCertificateEmailMutationResult = Apollo.MutationResult<Types.QueueEventCertificateEmailMutation>;
716
+ export type QueueEventCertificateEmailMutationOptions = Apollo.BaseMutationOptions<Types.QueueEventCertificateEmailMutation, Types.QueueEventCertificateEmailMutationVariables>;
@@ -24,6 +24,16 @@ var i = {}, a = e`
24
24
  templateRevision
25
25
  }
26
26
  `, s = e`
27
+ fragment EventCertificateEmailFields on EventfullyManagedCertificateEmailDelivery {
28
+ id
29
+ eventId
30
+ certificateId
31
+ status
32
+ channelStatus
33
+ createdAt
34
+ submittedAt
35
+ }
36
+ `, c = e`
27
37
  query EventfullymanagedSavedAttendanceForecast($eventId: ID!) {
28
38
  eventfullyManagedAiDecision(eventId: $eventId, kind: ATTENDANCE_FORECAST) {
29
39
  id
@@ -34,14 +44,14 @@ var i = {}, a = e`
34
44
  }
35
45
  }
36
46
  `;
37
- function c(e) {
47
+ function l(e) {
38
48
  let t = {
39
49
  ...i,
40
50
  ...e
41
51
  };
42
- return r(s, t);
52
+ return r(c, t);
43
53
  }
44
- var l = e`
54
+ var u = e`
45
55
  mutation EventfullymanagedForecastAttendance($eventId: ID!) {
46
56
  eventfullyManagedForecastAttendance(eventId: $eventId) {
47
57
  eventId
@@ -60,14 +70,14 @@ var l = e`
60
70
  }
61
71
  }
62
72
  `;
63
- function u(e) {
73
+ function d(e) {
64
74
  let t = {
65
75
  ...i,
66
76
  ...e
67
77
  };
68
- return n(l, t);
78
+ return n(u, t);
69
79
  }
70
- var d = e`
80
+ var f = e`
71
81
  query EventCertificateTemplates($eventId: ID!, $limit: Int!, $offset: Int!) {
72
82
  eventfullyManagedCertificateTemplates(
73
83
  eventId: $eventId
@@ -81,14 +91,14 @@ var d = e`
81
91
  }
82
92
  }
83
93
  ${a}`;
84
- function f(e) {
94
+ function p(e) {
85
95
  let t = {
86
96
  ...i,
87
97
  ...e
88
98
  };
89
- return r(d, t);
99
+ return r(f, t);
90
100
  }
91
- var p = e`
101
+ var m = e`
92
102
  query EventCertificateEligibility($eventId: ID!, $registrationId: ID!, $requiredSessionIds: [ID!]!) {
93
103
  eventfullyManagedCertificateEligibility(
94
104
  eventId: $eventId
@@ -101,42 +111,42 @@ var p = e`
101
111
  }
102
112
  }
103
113
  `;
104
- function m(e) {
114
+ function h(e) {
105
115
  let n = {
106
116
  ...i,
107
117
  ...e
108
118
  };
109
- return t(p, n);
119
+ return t(m, n);
110
120
  }
111
- var h = e`
121
+ var g = e`
112
122
  query EventCertificateReceipt($eventId: ID!, $id: ID!) {
113
123
  eventfullyManagedCertificate(eventId: $eventId, id: $id) {
114
124
  ...EventCertificateReceiptFields
115
125
  }
116
126
  }
117
127
  ${o}`;
118
- function g(e) {
128
+ function _(e) {
119
129
  let n = {
120
130
  ...i,
121
131
  ...e
122
132
  };
123
- return t(h, n);
133
+ return t(g, n);
124
134
  }
125
- var _ = e`
135
+ var v = e`
126
136
  mutation CreateEventCertificateTemplate($eventId: ID!, $input: EventfullyManagedCertificateTemplateInput!) {
127
137
  eventfullyManagedCreateCertificateTemplate(eventId: $eventId, input: $input) {
128
138
  ...EventCertificateTemplateFields
129
139
  }
130
140
  }
131
141
  ${a}`;
132
- function v(e) {
142
+ function y(e) {
133
143
  let t = {
134
144
  ...i,
135
145
  ...e
136
146
  };
137
- return n(_, t);
147
+ return n(v, t);
138
148
  }
139
- var y = e`
149
+ var b = e`
140
150
  mutation UpdateEventCertificateTemplate($eventId: ID!, $id: ID!, $revision: Int!, $input: EventfullyManagedCertificateTemplateInput!) {
141
151
  eventfullyManagedUpdateCertificateTemplate(
142
152
  eventId: $eventId
@@ -148,14 +158,14 @@ var y = e`
148
158
  }
149
159
  }
150
160
  ${a}`;
151
- function b(e) {
161
+ function x(e) {
152
162
  let t = {
153
163
  ...i,
154
164
  ...e
155
165
  };
156
- return n(y, t);
166
+ return n(b, t);
157
167
  }
158
- var x = e`
168
+ var S = e`
159
169
  mutation ArchiveEventCertificateTemplate($eventId: ID!, $id: ID!, $revision: Int!) {
160
170
  eventfullyManagedArchiveCertificateTemplate(
161
171
  eventId: $eventId
@@ -164,14 +174,14 @@ var x = e`
164
174
  )
165
175
  }
166
176
  `;
167
- function S(e) {
177
+ function C(e) {
168
178
  let t = {
169
179
  ...i,
170
180
  ...e
171
181
  };
172
- return n(x, t);
182
+ return n(S, t);
173
183
  }
174
- var C = e`
184
+ var w = e`
175
185
  mutation IssueEventCertificate($eventId: ID!, $registrationId: ID!, $templateId: ID!) {
176
186
  eventfullyManagedIssueCertificate(
177
187
  eventId: $eventId
@@ -182,14 +192,14 @@ var C = e`
182
192
  }
183
193
  }
184
194
  ${o}`;
185
- function w(e) {
195
+ function T(e) {
186
196
  let t = {
187
197
  ...i,
188
198
  ...e
189
199
  };
190
- return n(C, t);
200
+ return n(w, t);
191
201
  }
192
- var T = e`
202
+ var E = e`
193
203
  query EventCertificateRegistrations($eventId: ID!, $limit: Int!, $offset: Int!) {
194
204
  eventfullyManagedRegistrations(
195
205
  eventId: $eventId
@@ -205,13 +215,106 @@ var T = e`
205
215
  }
206
216
  }
207
217
  `;
208
- function E(e) {
218
+ function D(e) {
219
+ let t = {
220
+ ...i,
221
+ ...e
222
+ };
223
+ return r(E, t);
224
+ }
225
+ var O = e`
226
+ query EventCertificatePdf($eventId: ID!, $id: ID!) {
227
+ eventfullyManagedCertificatePdf(eventId: $eventId, id: $id) {
228
+ filename
229
+ contentType
230
+ contentBase64
231
+ }
232
+ }
233
+ `;
234
+ function k(e) {
235
+ let n = {
236
+ ...i,
237
+ ...e
238
+ };
239
+ return t(O, n);
240
+ }
241
+ var A = e`
242
+ mutation ScheduleEventCertificateIssuance($eventId: ID!, $templateId: ID!, $templateRevision: Int!, $sendEmail: Boolean!) {
243
+ eventfullyManagedScheduleCertificateIssuance(
244
+ eventId: $eventId
245
+ templateId: $templateId
246
+ templateRevision: $templateRevision
247
+ sendEmail: $sendEmail
248
+ ) {
249
+ id
250
+ templateRevision
251
+ status
252
+ nextAttemptAt
253
+ completedAt
254
+ sendEmail
255
+ }
256
+ }
257
+ `;
258
+ function j(e) {
259
+ let t = {
260
+ ...i,
261
+ ...e
262
+ };
263
+ return n(A, t);
264
+ }
265
+ var M = e`
266
+ query EventIssuedCertificate($eventId: ID!, $registrationId: ID!, $templateId: ID!) {
267
+ eventfullyManagedIssuedCertificate(
268
+ eventId: $eventId
269
+ registrationId: $registrationId
270
+ templateId: $templateId
271
+ ) {
272
+ ...EventCertificateReceiptFields
273
+ }
274
+ }
275
+ ${o}`;
276
+ function N(e) {
277
+ let n = {
278
+ ...i,
279
+ ...e
280
+ };
281
+ return t(M, n);
282
+ }
283
+ var P = e`
284
+ query EventLatestCertificateEmail($eventId: ID!, $certificateId: ID!) {
285
+ eventfullyManagedLatestCertificateEmailDelivery(
286
+ eventId: $eventId
287
+ certificateId: $certificateId
288
+ ) {
289
+ ...EventCertificateEmailFields
290
+ }
291
+ }
292
+ ${s}`;
293
+ function F(e) {
294
+ let t = {
295
+ ...i,
296
+ ...e
297
+ };
298
+ return r(P, t);
299
+ }
300
+ var I = e`
301
+ mutation QueueEventCertificateEmail($eventId: ID!, $certificateId: ID!, $requestId: ID!) {
302
+ eventfullyManagedQueueCertificateEmail(
303
+ eventId: $eventId
304
+ certificateId: $certificateId
305
+ requestId: $requestId
306
+ ) {
307
+ ...EventCertificateEmailFields
308
+ }
309
+ }
310
+ ${s}`;
311
+ function L(e) {
209
312
  let t = {
210
313
  ...i,
211
314
  ...e
212
315
  };
213
- return r(T, t);
316
+ return n(I, t);
214
317
  }
215
- export { x as ArchiveEventCertificateTemplateDocument, _ as CreateEventCertificateTemplateDocument, p as EventCertificateEligibilityDocument, h as EventCertificateReceiptDocument, o as EventCertificateReceiptFieldsFragmentDoc, T as EventCertificateRegistrationsDocument, a as EventCertificateTemplateFieldsFragmentDoc, d as EventCertificateTemplatesDocument, l as EventfullymanagedForecastAttendanceDocument, s as EventfullymanagedSavedAttendanceForecastDocument, C as IssueEventCertificateDocument, y as UpdateEventCertificateTemplateDocument, S as useArchiveEventCertificateTemplateMutation, v as useCreateEventCertificateTemplateMutation, m as useEventCertificateEligibilityLazyQuery, g as useEventCertificateReceiptLazyQuery, E as useEventCertificateRegistrationsQuery, f as useEventCertificateTemplatesQuery, u as useEventfullymanagedForecastAttendanceMutation, c as useEventfullymanagedSavedAttendanceForecastQuery, w as useIssueEventCertificateMutation, b as useUpdateEventCertificateTemplateMutation };
318
+ export { S as ArchiveEventCertificateTemplateDocument, v as CreateEventCertificateTemplateDocument, m as EventCertificateEligibilityDocument, s as EventCertificateEmailFieldsFragmentDoc, O as EventCertificatePdfDocument, g as EventCertificateReceiptDocument, o as EventCertificateReceiptFieldsFragmentDoc, E as EventCertificateRegistrationsDocument, a as EventCertificateTemplateFieldsFragmentDoc, f as EventCertificateTemplatesDocument, M as EventIssuedCertificateDocument, P as EventLatestCertificateEmailDocument, u as EventfullymanagedForecastAttendanceDocument, c as EventfullymanagedSavedAttendanceForecastDocument, w as IssueEventCertificateDocument, I as QueueEventCertificateEmailDocument, A as ScheduleEventCertificateIssuanceDocument, b as UpdateEventCertificateTemplateDocument, C as useArchiveEventCertificateTemplateMutation, y as useCreateEventCertificateTemplateMutation, h as useEventCertificateEligibilityLazyQuery, k as useEventCertificatePdfLazyQuery, _ as useEventCertificateReceiptLazyQuery, D as useEventCertificateRegistrationsQuery, p as useEventCertificateTemplatesQuery, N as useEventIssuedCertificateLazyQuery, F as useEventLatestCertificateEmailQuery, d as useEventfullymanagedForecastAttendanceMutation, l as useEventfullymanagedSavedAttendanceForecastQuery, T as useIssueEventCertificateMutation, L as useQueueEventCertificateEmailMutation, j as useScheduleEventCertificateIssuanceMutation, x as useUpdateEventCertificateTemplateMutation };
216
319
 
217
320
  //# sourceMappingURL=wspace-operations.js.map