mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 11:36:25 +08:00
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. [](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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user