These import paths relied on the private EE module that was deleted from the repo. In the community build they either threw 'enterprise license' (DOCX/PDF) or silently no-op'd (Confluence). The frontend buttons were already removed in 38064064; this cleans up the dead backend stubs. - import.service.ts: drop processDocx/processPdf methods, their dispatcher branches, the pageId computation + insertPage spread, and the now-unused moduleRef param/ModuleRef import - file-import-task.service.ts: drop the Confluence branch and the now-unused moduleRef param/ModuleRef import - import.controller.ts: restrict file extensions to .md/.html and zip sources to generic/notion; update the error message accordingly - file.utils.ts: remove Confluence from the FileImportSource enum - features.ts: remove the unused CONFLUENCE_IMPORT/DOCX_IMPORT/PDF_IMPORT feature keys The isConfluenceImport logic in import-attachment.service.ts is intentionally left in place (real shared attachment-parsing code, not a stub); its removal is a separate, riskier refactor.
23 lines
638 B
TypeScript
23 lines
638 B
TypeScript
export const Feature = {
|
|
SSO_CUSTOM: 'sso:custom',
|
|
SSO_GOOGLE: 'sso:google',
|
|
MFA: 'mfa',
|
|
API_KEYS: 'api:keys',
|
|
COMMENT_RESOLUTION: 'comment:resolution',
|
|
PAGE_PERMISSIONS: 'page:permissions',
|
|
AI: 'ai',
|
|
ATTACHMENT_INDEXING: 'attachment:indexing',
|
|
SECURITY_SETTINGS: 'security:settings',
|
|
MCP: 'mcp',
|
|
SCIM: 'scim',
|
|
PAGE_VERIFICATION: 'page:verification',
|
|
AUDIT_LOGS: 'audit:logs',
|
|
RETENTION: 'retention',
|
|
SHARING_CONTROLS: 'sharing:controls',
|
|
VIEWER_COMMENTS: 'comment:viewer',
|
|
TEMPLATES: 'templates',
|
|
PDF_EXPORT: 'export:pdf',
|
|
} as const;
|
|
|
|
export type FeatureKey = (typeof Feature)[keyof typeof Feature];
|