mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat(core): migration for created by and updated by fields (#12171)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
query getDocCreatedByUpdatedByList($workspaceId: String!, $pagination: PaginationInput!) {
|
||||
workspace(id: $workspaceId) {
|
||||
docs(pagination: $pagination) {
|
||||
totalCount
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
creatorId
|
||||
lastUpdaterId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -981,6 +981,29 @@ export const getCurrentUserQuery = {
|
||||
deprecations: ["'token' is deprecated: use [/api/auth/sign-in?native=true] instead"],
|
||||
};
|
||||
|
||||
export const getDocCreatedByUpdatedByListQuery = {
|
||||
id: 'getDocCreatedByUpdatedByListQuery' as const,
|
||||
op: 'getDocCreatedByUpdatedByList',
|
||||
query: `query getDocCreatedByUpdatedByList($workspaceId: String!, $pagination: PaginationInput!) {
|
||||
workspace(id: $workspaceId) {
|
||||
docs(pagination: $pagination) {
|
||||
totalCount
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
creatorId
|
||||
lastUpdaterId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getDocDefaultRoleQuery = {
|
||||
id: 'getDocDefaultRoleQuery' as const,
|
||||
op: 'getDocDefaultRole',
|
||||
|
||||
@@ -3603,6 +3603,36 @@ export type GetCurrentUserQuery = {
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type GetDocCreatedByUpdatedByListQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
pagination: PaginationInput;
|
||||
}>;
|
||||
|
||||
export type GetDocCreatedByUpdatedByListQuery = {
|
||||
__typename?: 'Query';
|
||||
workspace: {
|
||||
__typename?: 'WorkspaceType';
|
||||
docs: {
|
||||
__typename?: 'PaginatedDocType';
|
||||
totalCount: number;
|
||||
pageInfo: {
|
||||
__typename?: 'PageInfo';
|
||||
endCursor: string | null;
|
||||
hasNextPage: boolean;
|
||||
};
|
||||
edges: Array<{
|
||||
__typename?: 'DocTypeEdge';
|
||||
node: {
|
||||
__typename?: 'DocType';
|
||||
id: string;
|
||||
creatorId: string | null;
|
||||
lastUpdaterId: string | null;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type GetDocDefaultRoleQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
docId: Scalars['String']['input'];
|
||||
@@ -4736,6 +4766,11 @@ export type Queries =
|
||||
variables: GetCurrentUserQueryVariables;
|
||||
response: GetCurrentUserQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getDocCreatedByUpdatedByListQuery';
|
||||
variables: GetDocCreatedByUpdatedByListQueryVariables;
|
||||
response: GetDocCreatedByUpdatedByListQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getDocDefaultRoleQuery';
|
||||
variables: GetDocDefaultRoleQueryVariables;
|
||||
|
||||
Reference in New Issue
Block a user