fix(server): realtime module not loaded (#14952)

#### PR Dependency Tree


* **PR #14952** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Optimized workspace invite link fetching by separating it from general
workspace configuration queries for improved performance.
* Reorganized transcription-related backend modules to better separate
concerns and enable real-time functionality.

* **Chores**
* Updated generated GraphQL types and iOS query definitions to reflect
API changes.

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/toeverything/AFFiNE/pull/14952)

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-05-12 18:54:42 +08:00
committed by GitHub
parent ac6d0d35af
commit a1d150a748
18 changed files with 246 additions and 104 deletions
+13 -4
View File
@@ -3126,10 +3126,6 @@ export const getWorkspaceConfigQuery = {
enableSharing
enableUrlPreview
enableDocEmbedding
inviteLink {
link
expireTime
}
}
}`,
};
@@ -3195,6 +3191,19 @@ export const acceptInviteByInviteIdMutation = {
}`,
};
export const getWorkspaceInviteLinkQuery = {
id: 'getWorkspaceInviteLinkQuery' as const,
op: 'getWorkspaceInviteLink',
query: `query getWorkspaceInviteLink($id: String!) {
workspace(id: $id) {
inviteLink {
link
expireTime
}
}
}`,
};
export const createInviteLinkMutation = {
id: 'createInviteLinkMutation' as const,
op: 'createInviteLink',
@@ -4,9 +4,5 @@ query getWorkspaceConfig($id: String!) {
enableSharing
enableUrlPreview
enableDocEmbedding
inviteLink {
link
expireTime
}
}
}
@@ -0,0 +1,8 @@
query getWorkspaceInviteLink($id: String!) {
workspace(id: $id) {
inviteLink {
link
expireTime
}
}
}
+21 -5
View File
@@ -7794,11 +7794,6 @@ export type GetWorkspaceConfigQuery = {
enableSharing: boolean;
enableUrlPreview: boolean;
enableDocEmbedding: boolean;
inviteLink: {
__typename?: 'InviteLink';
link: string;
expireTime: string;
} | null;
};
};
@@ -7867,6 +7862,22 @@ export type AcceptInviteByInviteIdMutation = {
acceptInviteById: boolean;
};
export type GetWorkspaceInviteLinkQueryVariables = Exact<{
id: Scalars['String']['input'];
}>;
export type GetWorkspaceInviteLinkQuery = {
__typename?: 'Query';
workspace: {
__typename?: 'WorkspaceType';
inviteLink: {
__typename?: 'InviteLink';
link: string;
expireTime: string;
} | null;
};
};
export type CreateInviteLinkMutationVariables = Exact<{
workspaceId: Scalars['String']['input'];
expireTime: WorkspaceInviteLinkExpireTime;
@@ -8418,6 +8429,11 @@ export type Queries =
variables: GetWorkspaceConfigQueryVariables;
response: GetWorkspaceConfigQuery;
}
| {
name: 'getWorkspaceInviteLinkQuery';
variables: GetWorkspaceInviteLinkQueryVariables;
response: GetWorkspaceInviteLinkQuery;
}
| {
name: 'workspaceInvoicesQuery';
variables: WorkspaceInvoicesQueryVariables;