react-code-dataset / spectrum /shared /graphql /fragments /directMessageThread /directMessageThreadInfo.js
Download spectrum/shared/graphql/fragments/directMessageThread/directMessageThreadInfo.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/directMessageThread/directMessageThreadInfo.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/fragments/directMessageThread/directMessageThreadInfo.js
-
curl -L -o directMessageThreadInfo.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/directMessageThread/directMessageThreadInfo.js
542 Bytes
| // @flow | |
| import gql from 'graphql-tag'; | |
| import type { UserInfoType } from '../user/userInfo'; | |
| export type ParticipantType = { | |
| ...$Exact<UserInfoType>, | |
| userId: string, | |
| }; | |
| export type DirectMessageThreadInfoType = { | |
| id: string, | |
| snippet: string, | |
| threadLastActive: Date, | |
| participants: Array<ParticipantType>, | |
| }; | |
| export default gql` | |
| fragment directMessageThreadInfo on DirectMessageThread { | |
| id | |
| snippet | |
| threadLastActive | |
| participants { | |
| id | |
| name | |
| profilePhoto | |
| username | |
| userId | |
| } | |
| } | |
| `; | |