mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update gql types and operations
This commit is contained in:
@@ -7,13 +7,8 @@ export const GET_PROJECT_THREADS = gql`
|
|||||||
title
|
title
|
||||||
threadDescription
|
threadDescription
|
||||||
userMessages {
|
userMessages {
|
||||||
id
|
|
||||||
username
|
username
|
||||||
text
|
text
|
||||||
attachment {
|
|
||||||
name
|
|
||||||
src
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,13 +21,8 @@ export const GET_THREAD_BY_ID = gql`
|
|||||||
title
|
title
|
||||||
threadDescription
|
threadDescription
|
||||||
userMessages {
|
userMessages {
|
||||||
id
|
|
||||||
username
|
username
|
||||||
text
|
text
|
||||||
attachment {
|
|
||||||
name
|
|
||||||
src
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -41,13 +31,8 @@ export const GET_THREAD_BY_ID = gql`
|
|||||||
export const MESSAGES = gql`
|
export const MESSAGES = gql`
|
||||||
query Messages($threadId: String!) {
|
query Messages($threadId: String!) {
|
||||||
messages(threadId: $threadId) {
|
messages(threadId: $threadId) {
|
||||||
id
|
|
||||||
username
|
username
|
||||||
text
|
text
|
||||||
attachment {
|
|
||||||
name
|
|
||||||
src
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -67,13 +52,8 @@ export const CREATE_THREAD = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export const SEND_MSG = gql`
|
export const SEND_MSG = gql`
|
||||||
mutation SendMsg(
|
mutation SendMsg($threadId: String!, $username: String!, $msg: String!) {
|
||||||
$threadId: String!
|
sendMsg(threadId: $threadId, username: $username, msg: $msg)
|
||||||
$username: String!
|
|
||||||
$msg: String
|
|
||||||
$file: FileInput
|
|
||||||
) {
|
|
||||||
sendMsg(threadId: $threadId, username: $username, msg: $msg, file: $file)
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -86,10 +66,6 @@ export const CONNECT_STREAM = gql`
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
text
|
text
|
||||||
attachment {
|
|
||||||
name
|
|
||||||
src
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,17 +12,6 @@ export type Scalars = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type FileInput = {
|
|
||||||
name: Scalars['String'];
|
|
||||||
src: Scalars['String'];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type FileOutput = {
|
|
||||||
__typename?: 'FileOutput';
|
|
||||||
name: Scalars['String'];
|
|
||||||
src: Scalars['String'];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type MutationRoot = {
|
export type MutationRoot = {
|
||||||
__typename?: 'MutationRoot';
|
__typename?: 'MutationRoot';
|
||||||
createThread: Scalars['ID'];
|
createThread: Scalars['ID'];
|
||||||
@@ -46,8 +35,7 @@ export type MutationRootDeleteThreadArgs = {
|
|||||||
export type MutationRootSendMsgArgs = {
|
export type MutationRootSendMsgArgs = {
|
||||||
threadId: Scalars['String'];
|
threadId: Scalars['String'];
|
||||||
username: Scalars['String'];
|
username: Scalars['String'];
|
||||||
msg?: Maybe<Scalars['String']>;
|
msg: Scalars['String'];
|
||||||
file?: Maybe<FileInput>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationType =
|
export type MutationType =
|
||||||
@@ -55,7 +43,7 @@ export type MutationType =
|
|||||||
|
|
||||||
export type QueryRoot = {
|
export type QueryRoot = {
|
||||||
__typename?: 'QueryRoot';
|
__typename?: 'QueryRoot';
|
||||||
messages: Array<UserMessageObject>;
|
messages: Array<UserMessage>;
|
||||||
getProjectThreads: Array<ThreadObject>;
|
getProjectThreads: Array<ThreadObject>;
|
||||||
getThreadById: ThreadObject;
|
getThreadById: ThreadObject;
|
||||||
};
|
};
|
||||||
@@ -97,7 +85,13 @@ export type ThreadObject = {
|
|||||||
id: Scalars['String'];
|
id: Scalars['String'];
|
||||||
title: Scalars['String'];
|
title: Scalars['String'];
|
||||||
threadDescription: Scalars['String'];
|
threadDescription: Scalars['String'];
|
||||||
userMessages: Array<UserMessageObject>;
|
userMessages: Array<UserMessage>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type UserMessage = {
|
||||||
|
__typename?: 'UserMessage';
|
||||||
|
username: Scalars['String'];
|
||||||
|
text: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserMessageObject = {
|
export type UserMessageObject = {
|
||||||
@@ -105,7 +99,6 @@ export type UserMessageObject = {
|
|||||||
id: Scalars['String'];
|
id: Scalars['String'];
|
||||||
username: Scalars['String'];
|
username: Scalars['String'];
|
||||||
text: Scalars['String'];
|
text: Scalars['String'];
|
||||||
attachment: FileOutput;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetProjectThreadsQueryVariables = Exact<{
|
export type GetProjectThreadsQueryVariables = Exact<{
|
||||||
@@ -119,12 +112,8 @@ export type GetProjectThreadsQuery = (
|
|||||||
{ __typename?: 'ThreadObject' }
|
{ __typename?: 'ThreadObject' }
|
||||||
& Pick<ThreadObject, 'id' | 'title' | 'threadDescription'>
|
& Pick<ThreadObject, 'id' | 'title' | 'threadDescription'>
|
||||||
& { userMessages: Array<(
|
& { userMessages: Array<(
|
||||||
{ __typename?: 'UserMessageObject' }
|
{ __typename?: 'UserMessage' }
|
||||||
& Pick<UserMessageObject, 'id' | 'username' | 'text'>
|
& Pick<UserMessage, 'username' | 'text'>
|
||||||
& { attachment: (
|
|
||||||
{ __typename?: 'FileOutput' }
|
|
||||||
& Pick<FileOutput, 'name' | 'src'>
|
|
||||||
) }
|
|
||||||
)> }
|
)> }
|
||||||
)> }
|
)> }
|
||||||
);
|
);
|
||||||
@@ -140,12 +129,8 @@ export type GetThreadByIdQuery = (
|
|||||||
{ __typename?: 'ThreadObject' }
|
{ __typename?: 'ThreadObject' }
|
||||||
& Pick<ThreadObject, 'id' | 'title' | 'threadDescription'>
|
& Pick<ThreadObject, 'id' | 'title' | 'threadDescription'>
|
||||||
& { userMessages: Array<(
|
& { userMessages: Array<(
|
||||||
{ __typename?: 'UserMessageObject' }
|
{ __typename?: 'UserMessage' }
|
||||||
& Pick<UserMessageObject, 'id' | 'username' | 'text'>
|
& Pick<UserMessage, 'username' | 'text'>
|
||||||
& { attachment: (
|
|
||||||
{ __typename?: 'FileOutput' }
|
|
||||||
& Pick<FileOutput, 'name' | 'src'>
|
|
||||||
) }
|
|
||||||
)> }
|
)> }
|
||||||
) }
|
) }
|
||||||
);
|
);
|
||||||
@@ -158,12 +143,8 @@ export type MessagesQueryVariables = Exact<{
|
|||||||
export type MessagesQuery = (
|
export type MessagesQuery = (
|
||||||
{ __typename?: 'QueryRoot' }
|
{ __typename?: 'QueryRoot' }
|
||||||
& { messages: Array<(
|
& { messages: Array<(
|
||||||
{ __typename?: 'UserMessageObject' }
|
{ __typename?: 'UserMessage' }
|
||||||
& Pick<UserMessageObject, 'id' | 'username' | 'text'>
|
& Pick<UserMessage, 'username' | 'text'>
|
||||||
& { attachment: (
|
|
||||||
{ __typename?: 'FileOutput' }
|
|
||||||
& Pick<FileOutput, 'name' | 'src'>
|
|
||||||
) }
|
|
||||||
)> }
|
)> }
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -182,8 +163,7 @@ export type CreateThreadMutation = (
|
|||||||
export type SendMsgMutationVariables = Exact<{
|
export type SendMsgMutationVariables = Exact<{
|
||||||
threadId: Scalars['String'];
|
threadId: Scalars['String'];
|
||||||
username: Scalars['String'];
|
username: Scalars['String'];
|
||||||
msg?: Maybe<Scalars['String']>;
|
msg: Scalars['String'];
|
||||||
file?: Maybe<FileInput>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -205,10 +185,6 @@ export type ConnectStreamSubscription = (
|
|||||||
& { userMessage?: Maybe<(
|
& { userMessage?: Maybe<(
|
||||||
{ __typename?: 'UserMessageObject' }
|
{ __typename?: 'UserMessageObject' }
|
||||||
& Pick<UserMessageObject, 'id' | 'username' | 'text'>
|
& Pick<UserMessageObject, 'id' | 'username' | 'text'>
|
||||||
& { attachment: (
|
|
||||||
{ __typename?: 'FileOutput' }
|
|
||||||
& Pick<FileOutput, 'name' | 'src'>
|
|
||||||
) }
|
|
||||||
)> }
|
)> }
|
||||||
) }
|
) }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user