diff --git a/client/assets/langs/en.json b/client/assets/langs/en.json index 68bcc2ca5..da6fabde8 100644 --- a/client/assets/langs/en.json +++ b/client/assets/langs/en.json @@ -122,5 +122,7 @@ "VIDEO": "Video", "WARNING": "Warning", "WRITE_MESSAGE": "Write message...", - "YES": "Yes" + "YES": "Yes", + "SHARE_VIDEO": "Share video", + "SHARING_VIDEO": "Sharing video..." } \ No newline at end of file diff --git a/client/assets/langs/ko.json b/client/assets/langs/ko.json index 64405d9e4..d3fa298f8 100644 --- a/client/assets/langs/ko.json +++ b/client/assets/langs/ko.json @@ -122,5 +122,7 @@ "VIDEO": "비디오", "WARNING": "경고", "WRITE_MESSAGE": "메세지를 입력해주세요…", - "YES": "예" + "YES": "예", + "SHARE_VIDEO": "비디오 공유", + "SHARING_VIDEO": "비디오를 공유합니다..." } diff --git a/client/package.json b/client/package.json index e64f7ae01..63b65dfa1 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "name": "hackatalk", "private": true, - "version": "1.13.0", + "version": "1.14.0", "main": "node_modules/expo/AppEntry.js", "description": "Opensource chat app", "author": "dooboolab", @@ -31,22 +31,22 @@ "deploy-hosting": "npm run predeploy && firebase deploy --only hosting" }, "dependencies": { - "@apollo/client": "^3.5.6", + "@apollo/client": "^3.5.10", "@emotion/native": "^11.0.0", - "@emotion/react": "^11.7.1", - "@expo/match-media": "^0.1.0", - "@expo/react-native-action-sheet": "^3.12.0", + "@emotion/react": "^11.8.2", + "@expo/match-media": "^0.3.0", + "@expo/react-native-action-sheet": "^3.13.0", "@expo/vector-icons": "^12.0.5", - "@react-native-async-storage/async-storage": "~1.15.14", + "@react-native-async-storage/async-storage": "~1.15.0", "@react-native-masked-view/masked-view": "0.2.6", - "@react-navigation/bottom-tabs": "^6.0.9", - "@react-navigation/core": "^6.1.0", - "@react-navigation/material-top-tabs": "^6.0.6", - "@react-navigation/native": "^6.0.6", - "@react-navigation/stack": "^6.0.11", + "@react-navigation/bottom-tabs": "^6.2.0", + "@react-navigation/core": "^6.1.1", + "@react-navigation/material-top-tabs": "^6.1.1", + "@react-navigation/native": "^6.0.8", + "@react-navigation/stack": "^6.1.1", "apollo-upload-client": "^17.0.0", - "dooboo-ui": "^0.1.54", - "expo": "^44.0.0", + "dooboo-ui": "^0.1.61", + "expo": "^44.0.6", "expo-ads-admob": "~12.0.0", "expo-app-loading": "~1.3.0", "expo-apple-authentication": "~4.1.0", @@ -58,27 +58,27 @@ "expo-device": "~4.1.0", "expo-image-manipulator": "~10.2.0", "expo-image-picker": "~12.0.1", - "expo-linear-gradient": "~11.0.0", + "expo-linear-gradient": "~11.0.3", "expo-localization": "~12.0.0", "expo-notifications": "~0.14.0", "expo-random": "~12.1.1", "expo-screen-orientation": "~4.1.1", "expo-splash-screen": "~0.14.1", - "expo-updates": "~0.11.5", + "expo-updates": "~0.11.6", "expo-video-thumbnails": "~6.1.0", "expo-web-browser": "~10.1.0", - "graphql": "^16.2.0", + "graphql": "^16.3.0", "i18n-js": "^3.8.0", - "immer": "^9.0.7", + "immer": "^9.0.12", "mime": "^3.0.0", "moment": "^2.29.1", - "nanoid": "^3.1.31", + "nanoid": "^3.3.1", "react": "17.0.2", - "react-native": "^0.64.3", + "react-native": "0.64.3", "react-native-appearance": "~0.3.4", "react-native-error-boundary": "^1.1.12", "react-native-gesture-handler": "~2.1.0", - "react-native-get-random-values": "~1.7.1", + "react-native-get-random-values": "~1.7.2", "react-native-modalbox": "^2.0.2", "react-native-pager-view": "5.4.9", "react-native-parsed-text": "^0.0.22", @@ -88,79 +88,79 @@ "react-native-screens": "~3.10.1", "react-native-svg": "12.1.1", "react-native-tab-view": "^3.1.1", - "react-native-web": "0.17.5", + "react-native-web": "0.17.7", "react-native-webview": "11.15.0", "react-navigation-stack": "^2.10.4", - "react-relay": "^13.0.1", + "react-relay": "^13.2.0", "react-responsive": "^8.2.0", - "relay-runtime": "^13.0.1", - "sentry-expo": "^4.0.3", + "relay-runtime": "^13.2.0", + "sentry-expo": "^4.1.0", "subscriptions-transport-ws": "^0.11.0" }, "devDependencies": { - "@babel/cli": "^7.16.0", - "@babel/core": "^7.16.5", - "@babel/plugin-proposal-class-properties": "^7.16.5", - "@babel/plugin-proposal-decorators": "7.16.5", - "@babel/plugin-proposal-object-rest-spread": "^7.16.5", - "@babel/plugin-transform-block-scoping": "^7.16.5", - "@babel/plugin-transform-runtime": "^7.16.5", - "@babel/preset-react": "^7.16.5", - "@babel/preset-typescript": "^7.16.5", - "@babel/runtime": "^7.16.5", - "@dooboo/eslint-config": "^1.2.5", - "@emotion/babel-plugin": "^11.7.1", - "@expo/metro-config": "^0.3.7", - "@expo/webpack-config": "~0.16.14", - "@graphql-codegen/cli": "^2.3.0", - "@graphql-codegen/typescript": "^2.4.1", - "@graphql-codegen/typescript-document-nodes": "^2.2.1", - "@graphql-codegen/typescript-graphql-files-modules": "^2.1.0", - "@graphql-codegen/typescript-operations": "^2.2.1", - "@graphql-codegen/typescript-react-apollo": "^3.2.2", - "@graphql-tools/relay-operation-optimizer": "6.4.1", - "@svgr/webpack": "^5", + "@babel/cli": "^7.17.6", + "@babel/core": "^7.17.8", + "@babel/plugin-proposal-class-properties": "^7.16.7", + "@babel/plugin-proposal-decorators": "7.17.8", + "@babel/plugin-proposal-object-rest-spread": "^7.17.3", + "@babel/plugin-transform-block-scoping": "^7.16.7", + "@babel/plugin-transform-runtime": "^7.17.0", + "@babel/preset-react": "^7.16.7", + "@babel/preset-typescript": "^7.16.7", + "@babel/runtime": "^7.17.8", + "@dooboo/eslint-config": "^1.3.3", + "@emotion/babel-plugin": "^11.7.2", + "@expo/metro-config": "^0.3.12", + "@expo/webpack-config": "~0.16.19", + "@graphql-codegen/cli": "^2.6.2", + "@graphql-codegen/typescript": "^2.4.8", + "@graphql-codegen/typescript-document-nodes": "^2.2.8", + "@graphql-codegen/typescript-graphql-files-modules": "^2.1.1", + "@graphql-codegen/typescript-operations": "^2.3.5", + "@graphql-codegen/typescript-react-apollo": "^3.2.11", + "@graphql-tools/relay-operation-optimizer": "6.4.5", + "@svgr/webpack": "^6", "@testing-library/react-hooks": "^7.0.2", - "@testing-library/react-native": "^9.0.0", - "@types/apollo-upload-client": "^14.1.0", + "@testing-library/react-native": "^9.1.0", + "@types/apollo-upload-client": "^17.0.0", "@types/expo": "^33.0.1", "@types/i18n-js": "^3.8.2", - "@types/jest": "^27.0.3", + "@types/jest": "^27.4.1", "@types/mime": "^2.0.3", - "@types/react": "~17.0.37", - "@types/react-native": "~0.66.9", + "@types/react": "~17.0.43", + "@types/react-native": "~0.67.3", "@types/react-native-modalbox": "^1.4.10", - "@types/react-relay": "^11.0.3", + "@types/react-relay": "^13.0.1", "@types/react-responsive": "^8.0.5", "@types/react-test-renderer": "^17.0", "@types/relay-test-utils": "^6.0.5", "abort-controller": "^3.0.0", "babel-plugin-inline-dotenv": "^1.6.0", - "babel-plugin-relay": "^13.0.1", + "babel-plugin-relay": "^13.2.0", "babel-preset-expo": "9.0.2", "codecov": "^3.8.3", - "eslint": "^8.5.0", + "eslint": "^8.12.0", "eslint-plugin-i18n-json": "^3.1.0", "get-graphql-schema": "^2.1.2", "import-sort-style-eslint": "^6.0.0", - "jest": "^27.4.5", + "jest": "^27.5.1", "jest-expo": "44.0.0", "jest-fetch-mock": "^3.0.3", "jetifier": "^2.0.0", "mockdate": "^3.0.5", "patch-package": "^6.4.7", "postinstall-postinstall": "^2.1.0", - "prettier": "^2.5.1", + "prettier": "^2.6.1", "prettier-plugin-import-sort": "^0.0.7", "react-dom": "17.0.2", - "react-native-svg-transformer": "^0.14.3", + "react-native-svg-transformer": "^1.0.0", "react-test-renderer": "17", - "relay-compiler": "^13.0.1", - "relay-compiler-language-typescript": "^15.0.0", + "relay-compiler": "^13.2.0", + "relay-compiler-language-typescript": "^15.0.1", "relay-config": "^12.0.1", - "relay-test-utils": "^13.0.1", - "ts-jest": "^27.1.2", - "typescript": "~4.5.4" + "relay-test-utils": "^13.2.0", + "ts-jest": "^27.1.4", + "typescript": "~4.6.3" }, "importSort": { ".js, .jsx": { @@ -176,4 +176,4 @@ "resolutions": { "react-native/@jest/create-cache-key-function": "^27.0.2" } -} \ No newline at end of file +} diff --git a/client/schema.graphql b/client/schema.graphql index 7cfd9bf18..681306a57 100644 --- a/client/schema.graphql +++ b/client/schema.graphql @@ -6,13 +6,13 @@ directive @specifiedBy( scalar AlertMode -scalar Auth - type AuthPayload { token: String! user: User! } +scalar AuthType + type BlockedUser { createdAt: DateTime updatedAt: DateTime @@ -255,7 +255,7 @@ type PageInfo { type Profile { socialId: String - authType: Auth + authType: AuthType user: User } diff --git a/client/src/__generated__/AuthProviderMeQuery.graphql.ts b/client/src/__generated__/AuthProviderMeQuery.graphql.ts index 50a005def..f39127237 100644 --- a/client/src/__generated__/AuthProviderMeQuery.graphql.ts +++ b/client/src/__generated__/AuthProviderMeQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<819823216ef71edd8eae785d87544801>> + * @generated SignedSource<<56a5bfbce315090811952b9bcb3af0ad>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,6 @@ import { ConcreteRequest, Query } from 'relay-runtime'; export type AuthProviderMeQuery$variables = {}; -export type AuthProviderMeQueryVariables = AuthProviderMeQuery$variables; export type AuthProviderMeQuery$data = { readonly me: { readonly id: string; @@ -22,9 +21,8 @@ export type AuthProviderMeQuery$data = { } | null; } | null; }; -export type AuthProviderMeQueryResponse = AuthProviderMeQuery$data; export type AuthProviderMeQuery = { - variables: AuthProviderMeQueryVariables; + variables: AuthProviderMeQuery$variables; response: AuthProviderMeQuery$data; }; diff --git a/client/src/__generated__/BlockedUserCreateMutation.graphql.ts b/client/src/__generated__/BlockedUserCreateMutation.graphql.ts index 028e530d0..c7dae2dab 100644 --- a/client/src/__generated__/BlockedUserCreateMutation.graphql.ts +++ b/client/src/__generated__/BlockedUserCreateMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<95cd56a86ceb3d9f5c9c2396e22c1839>> + * @generated SignedSource<<43781b7f07adaf7efc36d3db1c6a0c0e>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type BlockedUserCreateMutation$variables = { blockedUserId: string; }; -export type BlockedUserCreateMutationVariables = BlockedUserCreateMutation$variables; export type BlockedUserCreateMutation$data = { readonly createBlockedUser: { readonly blockedUser: { @@ -24,9 +23,8 @@ export type BlockedUserCreateMutation$data = { } | null; } | null; }; -export type BlockedUserCreateMutationResponse = BlockedUserCreateMutation$data; export type BlockedUserCreateMutation = { - variables: BlockedUserCreateMutationVariables; + variables: BlockedUserCreateMutation$variables; response: BlockedUserCreateMutation$data; }; diff --git a/client/src/__generated__/BlockedUserDeleteMutation.graphql.ts b/client/src/__generated__/BlockedUserDeleteMutation.graphql.ts index cd5edc703..784f97bb9 100644 --- a/client/src/__generated__/BlockedUserDeleteMutation.graphql.ts +++ b/client/src/__generated__/BlockedUserDeleteMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<641de41bd2eb0ff5561910be9725c943>> + * @generated SignedSource<<3f08771b83d06ad4f69a298a780edee0>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type BlockedUserDeleteMutation$variables = { blockedUserId: string; }; -export type BlockedUserDeleteMutationVariables = BlockedUserDeleteMutation$variables; export type BlockedUserDeleteMutation$data = { readonly deleteBlockedUser: { readonly blockedUser: { @@ -24,9 +23,8 @@ export type BlockedUserDeleteMutation$data = { } | null; } | null; }; -export type BlockedUserDeleteMutationResponse = BlockedUserDeleteMutation$data; export type BlockedUserDeleteMutation = { - variables: BlockedUserDeleteMutationVariables; + variables: BlockedUserDeleteMutation$variables; response: BlockedUserDeleteMutation$data; }; diff --git a/client/src/__generated__/ChannelCreateFriendsPaginationQuery.graphql.ts b/client/src/__generated__/ChannelCreateFriendsPaginationQuery.graphql.ts index a4a36c62d..54f70f733 100644 --- a/client/src/__generated__/ChannelCreateFriendsPaginationQuery.graphql.ts +++ b/client/src/__generated__/ChannelCreateFriendsPaginationQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -16,13 +16,11 @@ export type ChannelCreateFriendsPaginationQuery$variables = { includeMe?: boolean | null; searchText?: string | null; }; -export type ChannelCreateFriendsPaginationQueryVariables = ChannelCreateFriendsPaginationQuery$variables; export type ChannelCreateFriendsPaginationQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"ChannelCreate_friends">; }; -export type ChannelCreateFriendsPaginationQueryResponse = ChannelCreateFriendsPaginationQuery$data; export type ChannelCreateFriendsPaginationQuery = { - variables: ChannelCreateFriendsPaginationQueryVariables; + variables: ChannelCreateFriendsPaginationQuery$variables; response: ChannelCreateFriendsPaginationQuery$data; }; diff --git a/client/src/__generated__/ChannelCreate_friends.graphql.ts b/client/src/__generated__/ChannelCreate_friends.graphql.ts index 7a392bc4d..4a431c7f8 100644 --- a/client/src/__generated__/ChannelCreate_friends.graphql.ts +++ b/client/src/__generated__/ChannelCreate_friends.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<79d2c6b88f309b2cc0e0f39900892dd1>> + * @generated SignedSource<<97b6030d2e9edfaa50bc16ba749f5df8>> * @lightSyntaxTransform * @nogrep */ @@ -30,7 +30,6 @@ export type ChannelCreate_friends$data = { } | null; readonly " $fragmentType": "ChannelCreate_friends"; }; -export type ChannelCreate_friends = ChannelCreate_friends$data; export type ChannelCreate_friends$key = { readonly " $data"?: ChannelCreate_friends$data; readonly " $fragmentSpreads": FragmentRefs<"ChannelCreate_friends">; diff --git a/client/src/__generated__/ChannelFindOrCreatePrivateChannelMutation.graphql.ts b/client/src/__generated__/ChannelFindOrCreatePrivateChannelMutation.graphql.ts index 3fb21e087..8ef069f0d 100644 --- a/client/src/__generated__/ChannelFindOrCreatePrivateChannelMutation.graphql.ts +++ b/client/src/__generated__/ChannelFindOrCreatePrivateChannelMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<20595b7b6177cac52cbf9f676798700a>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type ChannelFindOrCreatePrivateChannelMutation$variables = { peerUserIds: ReadonlyArray; }; -export type ChannelFindOrCreatePrivateChannelMutationVariables = ChannelFindOrCreatePrivateChannelMutation$variables; export type ChannelFindOrCreatePrivateChannelMutation$data = { readonly findOrCreatePrivateChannel: { readonly id: string; @@ -20,9 +19,8 @@ export type ChannelFindOrCreatePrivateChannelMutation$data = { readonly channelType: any | null; } | null; }; -export type ChannelFindOrCreatePrivateChannelMutationResponse = ChannelFindOrCreatePrivateChannelMutation$data; export type ChannelFindOrCreatePrivateChannelMutation = { - variables: ChannelFindOrCreatePrivateChannelMutationVariables; + variables: ChannelFindOrCreatePrivateChannelMutation$variables; response: ChannelFindOrCreatePrivateChannelMutation$data; }; diff --git a/client/src/__generated__/ChannelLeaveChannelMutation.graphql.ts b/client/src/__generated__/ChannelLeaveChannelMutation.graphql.ts index 026708518..0a199e1a4 100644 --- a/client/src/__generated__/ChannelLeaveChannelMutation.graphql.ts +++ b/client/src/__generated__/ChannelLeaveChannelMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<08bcd3d31674e77d8b9d3af4646760f9>> + * @generated SignedSource<<1e63385766e287ca30d1471b0bc88e04>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type ChannelLeaveChannelMutation$variables = { channelId: string; }; -export type ChannelLeaveChannelMutationVariables = ChannelLeaveChannelMutation$variables; export type ChannelLeaveChannelMutation$data = { readonly leaveChannel: { readonly user: { @@ -25,9 +24,8 @@ export type ChannelLeaveChannelMutation$data = { readonly isVisible: boolean | null; } | null; }; -export type ChannelLeaveChannelMutationResponse = ChannelLeaveChannelMutation$data; export type ChannelLeaveChannelMutation = { - variables: ChannelLeaveChannelMutationVariables; + variables: ChannelLeaveChannelMutation$variables; response: ChannelLeaveChannelMutation$data; }; diff --git a/client/src/__generated__/ChannelQuery.graphql.ts b/client/src/__generated__/ChannelQuery.graphql.ts index ac9a948e6..9d0598a9b 100644 --- a/client/src/__generated__/ChannelQuery.graphql.ts +++ b/client/src/__generated__/ChannelQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<42ade1be59926b9a374439babf8d3ed1>> + * @generated SignedSource<<4738b9d83f0886915b25dd04fba46c45>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Query } from 'relay-runtime'; export type ChannelQuery$variables = { channelId: string; }; -export type ChannelQueryVariables = ChannelQuery$variables; export type ChannelQuery$data = { readonly channel: { readonly id: string; @@ -27,9 +26,8 @@ export type ChannelQuery$data = { }> | null; } | null; }; -export type ChannelQueryResponse = ChannelQuery$data; export type ChannelQuery = { - variables: ChannelQueryVariables; + variables: ChannelQuery$variables; response: ChannelQuery$data; }; diff --git a/client/src/__generated__/Channels.graphql.ts b/client/src/__generated__/Channels.graphql.ts index c05c922c2..8799ead82 100644 --- a/client/src/__generated__/Channels.graphql.ts +++ b/client/src/__generated__/Channels.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<98b250e957b5fd2903dd32792b4aca29>> + * @generated SignedSource<<3443aa65306276856821a1775839e856>> * @lightSyntaxTransform * @nogrep */ @@ -15,13 +15,11 @@ export type Channels$variables = { first: number; withMessage?: boolean | null; }; -export type ChannelsVariables = Channels$variables; export type Channels$data = { readonly " $fragmentSpreads": FragmentRefs<"MainChannelComponent_channel">; }; -export type ChannelsResponse = Channels$data; export type Channels = { - variables: ChannelsVariables; + variables: Channels$variables; response: Channels$data; }; diff --git a/client/src/__generated__/ChannelsQuery.graphql.ts b/client/src/__generated__/ChannelsQuery.graphql.ts index 5d7321da6..0039d62ea 100644 --- a/client/src/__generated__/ChannelsQuery.graphql.ts +++ b/client/src/__generated__/ChannelsQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<282893d8b43cb2e3fae93660c394562d>> * @lightSyntaxTransform * @nogrep */ @@ -15,13 +15,11 @@ export type ChannelsQuery$variables = { after?: string | null; withMessage?: boolean | null; }; -export type ChannelsQueryVariables = ChannelsQuery$variables; export type ChannelsQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"MainChannelComponent_channel">; }; -export type ChannelsQueryResponse = ChannelsQuery$data; export type ChannelsQuery = { - variables: ChannelsQueryVariables; + variables: ChannelsQuery$variables; response: ChannelsQuery$data; }; diff --git a/client/src/__generated__/FriendAddMutation.graphql.ts b/client/src/__generated__/FriendAddMutation.graphql.ts index 02fd16b44..8191f298a 100644 --- a/client/src/__generated__/FriendAddMutation.graphql.ts +++ b/client/src/__generated__/FriendAddMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<0c30cdfd53963945e747382822965a89>> + * @generated SignedSource<<61c9e408aa2d866b29e749a19e3a83d7>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type FriendAddMutation$variables = { friendId: string; }; -export type FriendAddMutationVariables = FriendAddMutation$variables; export type FriendAddMutation$data = { readonly addFriend: { readonly friend: { @@ -21,9 +20,8 @@ export type FriendAddMutation$data = { } | null; } | null; }; -export type FriendAddMutationResponse = FriendAddMutation$data; export type FriendAddMutation = { - variables: FriendAddMutationVariables; + variables: FriendAddMutation$variables; response: FriendAddMutation$data; }; diff --git a/client/src/__generated__/FriendDeleteMutation.graphql.ts b/client/src/__generated__/FriendDeleteMutation.graphql.ts index 66b54c995..d11e07a4e 100644 --- a/client/src/__generated__/FriendDeleteMutation.graphql.ts +++ b/client/src/__generated__/FriendDeleteMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<6e8662ffecbf42882ab8989bfd1c0218>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type FriendDeleteMutation$variables = { friendId: string; }; -export type FriendDeleteMutationVariables = FriendDeleteMutation$variables; export type FriendDeleteMutation$data = { readonly deleteFriend: { readonly friend: { @@ -21,9 +20,8 @@ export type FriendDeleteMutation$data = { } | null; } | null; }; -export type FriendDeleteMutationResponse = FriendDeleteMutation$data; export type FriendDeleteMutation = { - variables: FriendDeleteMutationVariables; + variables: FriendDeleteMutation$variables; response: FriendDeleteMutation$data; }; diff --git a/client/src/__generated__/FriendFriendsPaginationQuery.graphql.ts b/client/src/__generated__/FriendFriendsPaginationQuery.graphql.ts index 152739db5..3fe12793c 100644 --- a/client/src/__generated__/FriendFriendsPaginationQuery.graphql.ts +++ b/client/src/__generated__/FriendFriendsPaginationQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -16,13 +16,11 @@ export type FriendFriendsPaginationQuery$variables = { includeMe?: boolean | null; searchText?: string | null; }; -export type FriendFriendsPaginationQueryVariables = FriendFriendsPaginationQuery$variables; export type FriendFriendsPaginationQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"MainFriend_friends">; }; -export type FriendFriendsPaginationQueryResponse = FriendFriendsPaginationQuery$data; export type FriendFriendsPaginationQuery = { - variables: FriendFriendsPaginationQueryVariables; + variables: FriendFriendsPaginationQuery$variables; response: FriendFriendsPaginationQuery$data; }; diff --git a/client/src/__generated__/FriendsQuery.graphql.ts b/client/src/__generated__/FriendsQuery.graphql.ts index 2fe408a0c..9b901981a 100644 --- a/client/src/__generated__/FriendsQuery.graphql.ts +++ b/client/src/__generated__/FriendsQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<21f935014ca0ca9631a1d55ec44a10ed>> + * @generated SignedSource<<9e6ba10538d3bf6711e5686b9ed5cdb2>> * @lightSyntaxTransform * @nogrep */ @@ -16,13 +16,11 @@ export type FriendsQuery$variables = { searchText?: string | null; includeMe?: boolean | null; }; -export type FriendsQueryVariables = FriendsQuery$variables; export type FriendsQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"MainFriend_friends" | "ChannelCreate_friends">; }; -export type FriendsQueryResponse = FriendsQuery$data; export type FriendsQuery = { - variables: FriendsQueryVariables; + variables: FriendsQuery$variables; response: FriendsQuery$data; }; diff --git a/client/src/__generated__/MainChannelComponent_channel.graphql.ts b/client/src/__generated__/MainChannelComponent_channel.graphql.ts index 4c7033982..ff61dd505 100644 --- a/client/src/__generated__/MainChannelComponent_channel.graphql.ts +++ b/client/src/__generated__/MainChannelComponent_channel.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -44,7 +44,6 @@ export type MainChannelComponent_channel$data = { } | null; readonly " $fragmentType": "MainChannelComponent_channel"; }; -export type MainChannelComponent_channel = MainChannelComponent_channel$data; export type MainChannelComponent_channel$key = { readonly " $data"?: MainChannelComponent_channel$data; readonly " $fragmentSpreads": FragmentRefs<"MainChannelComponent_channel">; diff --git a/client/src/__generated__/MainFriendUserUpdatedSubscription.graphql.ts b/client/src/__generated__/MainFriendUserUpdatedSubscription.graphql.ts index 5deee4717..ec56ada55 100644 --- a/client/src/__generated__/MainFriendUserUpdatedSubscription.graphql.ts +++ b/client/src/__generated__/MainFriendUserUpdatedSubscription.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<241d608402737f47c7218865f7320bc4>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -11,16 +11,14 @@ import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type MainFriendUserUpdatedSubscription$variables = {}; -export type MainFriendUserUpdatedSubscriptionVariables = MainFriendUserUpdatedSubscription$variables; export type MainFriendUserUpdatedSubscription$data = { readonly userUpdated: { readonly id: string; readonly " $fragmentSpreads": FragmentRefs<"ProfileModal_user" | "UserListItem_user">; } | null; }; -export type MainFriendUserUpdatedSubscriptionResponse = MainFriendUserUpdatedSubscription$data; export type MainFriendUserUpdatedSubscription = { - variables: MainFriendUserUpdatedSubscriptionVariables; + variables: MainFriendUserUpdatedSubscription$variables; response: MainFriendUserUpdatedSubscription$data; }; @@ -137,9 +135,7 @@ return { "params": { "cacheID": "33a7f5d012f0b13f5dd22cbf3fc118ef", "id": null, - "metadata": { - "subscriptionName": "userUpdated" - }, + "metadata": {}, "name": "MainFriendUserUpdatedSubscription", "operationKind": "subscription", "text": "subscription MainFriendUserUpdatedSubscription {\n userUpdated {\n id\n ...ProfileModal_user\n ...UserListItem_user\n }\n}\n\nfragment ProfileModal_user on User {\n id\n photoURL\n name\n nickname\n hasBlocked\n statusMessage\n isFriend\n}\n\nfragment UserListItem_user on User {\n id\n photoURL\n nickname\n name\n statusMessage\n isOnline\n hasBlocked\n}\n" diff --git a/client/src/__generated__/MainFriend_friends.graphql.ts b/client/src/__generated__/MainFriend_friends.graphql.ts index e4cdafd9f..0cc5ff0ba 100644 --- a/client/src/__generated__/MainFriend_friends.graphql.ts +++ b/client/src/__generated__/MainFriend_friends.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<4b30cd941dfbdb7536078115eca58c9f>> + * @generated SignedSource<<84c7e624742e8d590f4e8b4942d80b62>> * @lightSyntaxTransform * @nogrep */ @@ -26,7 +26,6 @@ export type MainFriend_friends$data = { } | null; readonly " $fragmentType": "MainFriend_friends"; }; -export type MainFriend_friends = MainFriend_friends$data; export type MainFriend_friends$key = { readonly " $data"?: MainFriend_friends$data; readonly " $fragmentSpreads": FragmentRefs<"MainFriend_friends">; diff --git a/client/src/__generated__/MainStackNavigatorOnMessageSubscription.graphql.ts b/client/src/__generated__/MainStackNavigatorOnMessageSubscription.graphql.ts index 115e6158b..22be7844e 100644 --- a/client/src/__generated__/MainStackNavigatorOnMessageSubscription.graphql.ts +++ b/client/src/__generated__/MainStackNavigatorOnMessageSubscription.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<041faf8268cb3b27784f551645af906e>> + * @generated SignedSource<<9809aeb0abd5e5d512bcde5212d40da3>> * @lightSyntaxTransform * @nogrep */ @@ -13,7 +13,6 @@ import { FragmentRefs } from "relay-runtime"; export type MainStackNavigatorOnMessageSubscription$variables = { deviceKey: string; }; -export type MainStackNavigatorOnMessageSubscriptionVariables = MainStackNavigatorOnMessageSubscription$variables; export type MainStackNavigatorOnMessageSubscription$data = { readonly onMessage: { readonly id: string; @@ -47,9 +46,8 @@ export type MainStackNavigatorOnMessageSubscription$data = { readonly " $fragmentSpreads": FragmentRefs<"MessageListItem_message">; } | null; }; -export type MainStackNavigatorOnMessageSubscriptionResponse = MainStackNavigatorOnMessageSubscription$data; export type MainStackNavigatorOnMessageSubscription = { - variables: MainStackNavigatorOnMessageSubscriptionVariables; + variables: MainStackNavigatorOnMessageSubscription$variables; response: MainStackNavigatorOnMessageSubscription$data; }; @@ -318,9 +316,7 @@ return { "params": { "cacheID": "c99642bda9c3084912cc3ea0280cc12b", "id": null, - "metadata": { - "subscriptionName": "onMessage" - }, + "metadata": {}, "name": "MainStackNavigatorOnMessageSubscription", "operationKind": "subscription", "text": "subscription MainStackNavigatorOnMessageSubscription(\n $deviceKey: String!\n) {\n onMessage(deviceKey: $deviceKey) {\n id\n imageUrls\n channel {\n id\n lastMessage {\n id\n messageType\n text\n imageUrls\n fileUrls\n createdAt\n }\n memberships(excludeMe: false) {\n user {\n id\n name\n nickname\n thumbURL\n photoURL\n }\n }\n }\n sender {\n id\n name\n nickname\n }\n createdAt\n ...MessageListItem_message\n }\n}\n\nfragment MessageListItem_message on Message {\n id\n messageType\n text\n imageUrls\n fileUrls\n createdAt\n updatedAt\n sender {\n id\n name\n nickname\n thumbURL\n photoURL\n ...ProfileModal_user\n }\n}\n\nfragment ProfileModal_user on User {\n id\n photoURL\n name\n nickname\n hasBlocked\n statusMessage\n isFriend\n}\n" diff --git a/client/src/__generated__/MessageComponent_message.graphql.ts b/client/src/__generated__/MessageComponent_message.graphql.ts index 6ea7ebf5b..282019f4b 100644 --- a/client/src/__generated__/MessageComponent_message.graphql.ts +++ b/client/src/__generated__/MessageComponent_message.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<8a43de295e8ae8427ca9c2f5b84c7bfa>> + * @generated SignedSource<<097c18ba2c64e7416b6264a636f06b5c>> * @lightSyntaxTransform * @nogrep */ @@ -38,7 +38,6 @@ export type MessageComponent_message$data = { } | null; readonly " $fragmentType": "MessageComponent_message"; }; -export type MessageComponent_message = MessageComponent_message$data; export type MessageComponent_message$key = { readonly " $data"?: MessageComponent_message$data; readonly " $fragmentSpreads": FragmentRefs<"MessageComponent_message">; diff --git a/client/src/__generated__/MessageCreateMutation.graphql.ts b/client/src/__generated__/MessageCreateMutation.graphql.ts index f59c6e783..26b3f3dea 100644 --- a/client/src/__generated__/MessageCreateMutation.graphql.ts +++ b/client/src/__generated__/MessageCreateMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<13ec2077d89747be3364bed33f2f6b01>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -20,7 +20,6 @@ export type MessageCreateMutation$variables = { message: MessageCreateInput; deviceKey: string; }; -export type MessageCreateMutationVariables = MessageCreateMutation$variables; export type MessageCreateMutation$data = { readonly createMessage: { readonly id: string; @@ -55,9 +54,8 @@ export type MessageCreateMutation$data = { } | null; } | null; }; -export type MessageCreateMutationResponse = MessageCreateMutation$data; export type MessageCreateMutation = { - variables: MessageCreateMutationVariables; + variables: MessageCreateMutation$variables; response: MessageCreateMutation$data; }; diff --git a/client/src/__generated__/MessageLastMessageQuery.graphql.ts b/client/src/__generated__/MessageLastMessageQuery.graphql.ts index f56c71545..43d1b627a 100644 --- a/client/src/__generated__/MessageLastMessageQuery.graphql.ts +++ b/client/src/__generated__/MessageLastMessageQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<194d50d72ed7da61a5413c1703a73404>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Query } from 'relay-runtime'; export type MessageLastMessageQuery$variables = { messageId: string; }; -export type MessageLastMessageQueryVariables = MessageLastMessageQuery$variables; export type MessageLastMessageQuery$data = { readonly message: { readonly id: string; @@ -32,9 +31,8 @@ export type MessageLastMessageQuery$data = { } | null; } | null; }; -export type MessageLastMessageQueryResponse = MessageLastMessageQuery$data; export type MessageLastMessageQuery = { - variables: MessageLastMessageQueryVariables; + variables: MessageLastMessageQuery$variables; response: MessageLastMessageQuery$data; }; diff --git a/client/src/__generated__/MessageListItemTestQuery.graphql.ts b/client/src/__generated__/MessageListItemTestQuery.graphql.ts index 794b7b3d2..467b8c152 100644 --- a/client/src/__generated__/MessageListItemTestQuery.graphql.ts +++ b/client/src/__generated__/MessageListItemTestQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<5586e37de3eb729b287404cd76ff1811>> + * @generated SignedSource<<4db39b3c473c6e26efa589adcffd79af>> * @lightSyntaxTransform * @nogrep */ @@ -11,15 +11,13 @@ import { ConcreteRequest, Query } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type MessageListItemTestQuery$variables = {}; -export type MessageListItemTestQueryVariables = MessageListItemTestQuery$variables; export type MessageListItemTestQuery$data = { readonly myData: { readonly " $fragmentSpreads": FragmentRefs<"MessageListItem_message">; } | null; }; -export type MessageListItemTestQueryResponse = MessageListItemTestQuery$data; export type MessageListItemTestQuery = { - variables: MessageListItemTestQueryVariables; + variables: MessageListItemTestQuery$variables; response: MessageListItemTestQuery$data; }; diff --git a/client/src/__generated__/MessageListItem_message.graphql.ts b/client/src/__generated__/MessageListItem_message.graphql.ts index 2d0e96189..29fa9211d 100644 --- a/client/src/__generated__/MessageListItem_message.graphql.ts +++ b/client/src/__generated__/MessageListItem_message.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<2508a9d5a52d51c8ea247e533ebdf9c7>> + * @generated SignedSource<<90811d99969e536b0c355dc6e3324746>> * @lightSyntaxTransform * @nogrep */ @@ -28,7 +28,6 @@ export type MessageListItem_message$data = { } | null; readonly " $fragmentType": "MessageListItem_message"; }; -export type MessageListItem_message = MessageListItem_message$data; export type MessageListItem_message$key = { readonly " $data"?: MessageListItem_message$data; readonly " $fragmentSpreads": FragmentRefs<"MessageListItem_message">; diff --git a/client/src/__generated__/MessagePaginationQuery.graphql.ts b/client/src/__generated__/MessagePaginationQuery.graphql.ts index 33e73cab1..9e13db466 100644 --- a/client/src/__generated__/MessagePaginationQuery.graphql.ts +++ b/client/src/__generated__/MessagePaginationQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -16,13 +16,11 @@ export type MessagePaginationQuery$variables = { first: number; searchText?: string | null; }; -export type MessagePaginationQueryVariables = MessagePaginationQuery$variables; export type MessagePaginationQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"MessageComponent_message">; }; -export type MessagePaginationQueryResponse = MessagePaginationQuery$data; export type MessagePaginationQuery = { - variables: MessagePaginationQueryVariables; + variables: MessagePaginationQuery$variables; response: MessagePaginationQuery$data; }; diff --git a/client/src/__generated__/MessagesQuery.graphql.ts b/client/src/__generated__/MessagesQuery.graphql.ts index 8cd7e98b4..faea9b317 100644 --- a/client/src/__generated__/MessagesQuery.graphql.ts +++ b/client/src/__generated__/MessagesQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -16,13 +16,11 @@ export type MessagesQuery$variables = { channelId: string; searchText?: string | null; }; -export type MessagesQueryVariables = MessagesQuery$variables; export type MessagesQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"MessageComponent_message">; }; -export type MessagesQueryResponse = MessagesQuery$data; export type MessagesQuery = { - variables: MessagesQueryVariables; + variables: MessagesQuery$variables; response: MessagesQuery$data; }; diff --git a/client/src/__generated__/NotificationCreateNotificationMutation.graphql.ts b/client/src/__generated__/NotificationCreateNotificationMutation.graphql.ts index f15737860..f0891eb3a 100644 --- a/client/src/__generated__/NotificationCreateNotificationMutation.graphql.ts +++ b/client/src/__generated__/NotificationCreateNotificationMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<390ffdb098b8eda4f6f863af138940d8>> * @lightSyntaxTransform * @nogrep */ @@ -14,7 +14,6 @@ export type NotificationCreateNotificationMutation$variables = { device?: string | null; os?: string | null; }; -export type NotificationCreateNotificationMutationVariables = NotificationCreateNotificationMutation$variables; export type NotificationCreateNotificationMutation$data = { readonly createNotification: { readonly id: number; @@ -23,9 +22,8 @@ export type NotificationCreateNotificationMutation$data = { readonly createdAt: any | null; } | null; }; -export type NotificationCreateNotificationMutationResponse = NotificationCreateNotificationMutation$data; export type NotificationCreateNotificationMutation = { - variables: NotificationCreateNotificationMutationVariables; + variables: NotificationCreateNotificationMutation$variables; response: NotificationCreateNotificationMutation$data; }; diff --git a/client/src/__generated__/NotificationDeleteNotificationMutation.graphql.ts b/client/src/__generated__/NotificationDeleteNotificationMutation.graphql.ts index 45ff2f7c6..d387d715c 100644 --- a/client/src/__generated__/NotificationDeleteNotificationMutation.graphql.ts +++ b/client/src/__generated__/NotificationDeleteNotificationMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<5296aa075f4b44082dfcd46fbe4acee9>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type NotificationDeleteNotificationMutation$variables = { token: string; }; -export type NotificationDeleteNotificationMutationVariables = NotificationDeleteNotificationMutation$variables; export type NotificationDeleteNotificationMutation$data = { readonly deleteNotification: { readonly id: number; @@ -21,9 +20,8 @@ export type NotificationDeleteNotificationMutation$data = { readonly createdAt: any | null; } | null; }; -export type NotificationDeleteNotificationMutationResponse = NotificationDeleteNotificationMutation$data; export type NotificationDeleteNotificationMutation = { - variables: NotificationDeleteNotificationMutationVariables; + variables: NotificationDeleteNotificationMutation$variables; response: NotificationDeleteNotificationMutation$data; }; diff --git a/client/src/__generated__/ProfileModalTestQuery.graphql.ts b/client/src/__generated__/ProfileModalTestQuery.graphql.ts index 6986f227c..f35a198ef 100644 --- a/client/src/__generated__/ProfileModalTestQuery.graphql.ts +++ b/client/src/__generated__/ProfileModalTestQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<5e017e258cd528bc1ac57ad82ee725f3>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -11,15 +11,13 @@ import { ConcreteRequest, Query } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type ProfileModalTestQuery$variables = {}; -export type ProfileModalTestQueryVariables = ProfileModalTestQuery$variables; export type ProfileModalTestQuery$data = { readonly myData: { readonly " $fragmentSpreads": FragmentRefs<"ProfileModal_user">; } | null; }; -export type ProfileModalTestQueryResponse = ProfileModalTestQuery$data; export type ProfileModalTestQuery = { - variables: ProfileModalTestQueryVariables; + variables: ProfileModalTestQuery$variables; response: ProfileModalTestQuery$data; }; diff --git a/client/src/__generated__/ProfileModal_user.graphql.ts b/client/src/__generated__/ProfileModal_user.graphql.ts index 02039941e..5af22ed23 100644 --- a/client/src/__generated__/ProfileModal_user.graphql.ts +++ b/client/src/__generated__/ProfileModal_user.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -20,7 +20,6 @@ export type ProfileModal_user$data = { readonly isFriend: boolean | null; readonly " $fragmentType": "ProfileModal_user"; }; -export type ProfileModal_user = ProfileModal_user$data; export type ProfileModal_user$key = { readonly " $data"?: ProfileModal_user$data; readonly " $fragmentSpreads": FragmentRefs<"ProfileModal_user">; diff --git a/client/src/__generated__/ReportCreateReportMutation.graphql.ts b/client/src/__generated__/ReportCreateReportMutation.graphql.ts index e5f9ba0a4..228d33425 100644 --- a/client/src/__generated__/ReportCreateReportMutation.graphql.ts +++ b/client/src/__generated__/ReportCreateReportMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<48fb4a7db678fc63b9904aca7633259c>> * @lightSyntaxTransform * @nogrep */ @@ -13,15 +13,13 @@ export type ReportCreateReportMutation$variables = { reportedUserId: string; report: string; }; -export type ReportCreateReportMutationVariables = ReportCreateReportMutation$variables; export type ReportCreateReportMutation$data = { readonly createReport: { readonly report: string; } | null; }; -export type ReportCreateReportMutationResponse = ReportCreateReportMutation$data; export type ReportCreateReportMutation = { - variables: ReportCreateReportMutationVariables; + variables: ReportCreateReportMutation$variables; response: ReportCreateReportMutation$data; }; diff --git a/client/src/__generated__/SearchUserComponent_user.graphql.ts b/client/src/__generated__/SearchUserComponent_user.graphql.ts index 831e7a2f0..9fd730331 100644 --- a/client/src/__generated__/SearchUserComponent_user.graphql.ts +++ b/client/src/__generated__/SearchUserComponent_user.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<5389e970ab6cb9c8e65437a571a1a04c>> + * @generated SignedSource<<67e3a006c6dbf8652e8c1075cf879111>> * @lightSyntaxTransform * @nogrep */ @@ -26,7 +26,6 @@ export type SearchUserComponent_user$data = { } | null; readonly " $fragmentType": "SearchUserComponent_user"; }; -export type SearchUserComponent_user = SearchUserComponent_user$data; export type SearchUserComponent_user$key = { readonly " $data"?: SearchUserComponent_user$data; readonly " $fragmentSpreads": FragmentRefs<"SearchUserComponent_user">; diff --git a/client/src/__generated__/SearchUsersQuery.graphql.ts b/client/src/__generated__/SearchUsersQuery.graphql.ts index b9e8c17f5..aa65fba1a 100644 --- a/client/src/__generated__/SearchUsersQuery.graphql.ts +++ b/client/src/__generated__/SearchUsersQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<192f30116ccd92d47657330bb87cac75>> * @lightSyntaxTransform * @nogrep */ @@ -15,13 +15,11 @@ export type SearchUsersQuery$variables = { first?: number | null; searchText?: string | null; }; -export type SearchUsersQueryVariables = SearchUsersQuery$variables; export type SearchUsersQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"SearchUserComponent_user">; }; -export type SearchUsersQueryResponse = SearchUsersQuery$data; export type SearchUsersQuery = { - variables: SearchUsersQueryVariables; + variables: SearchUsersQuery$variables; response: SearchUsersQuery$data; }; diff --git a/client/src/__generated__/UploadSingleUploadMutation.graphql.ts b/client/src/__generated__/UploadSingleUploadMutation.graphql.ts index 12960e2fa..3d94dbecd 100644 --- a/client/src/__generated__/UploadSingleUploadMutation.graphql.ts +++ b/client/src/__generated__/UploadSingleUploadMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<7485b38b072c3b9b9484b9fa6a20a1cb>> + * @generated SignedSource<<4604d13a1c69bb0cfe12416b1fd97bc3>> * @lightSyntaxTransform * @nogrep */ @@ -13,13 +13,11 @@ export type UploadSingleUploadMutation$variables = { file: any; dir: string; }; -export type UploadSingleUploadMutationVariables = UploadSingleUploadMutation$variables; export type UploadSingleUploadMutation$data = { readonly singleUpload: string; }; -export type UploadSingleUploadMutationResponse = UploadSingleUploadMutation$data; export type UploadSingleUploadMutation = { - variables: UploadSingleUploadMutationVariables; + variables: UploadSingleUploadMutation$variables; response: UploadSingleUploadMutation$data; }; diff --git a/client/src/__generated__/UserBlockedUsersQuery.graphql.ts b/client/src/__generated__/UserBlockedUsersQuery.graphql.ts index dea96859e..7ec3a7b19 100644 --- a/client/src/__generated__/UserBlockedUsersQuery.graphql.ts +++ b/client/src/__generated__/UserBlockedUsersQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -11,16 +11,14 @@ import { ConcreteRequest, Query } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type UserBlockedUsersQuery$variables = {}; -export type UserBlockedUsersQueryVariables = UserBlockedUsersQuery$variables; export type UserBlockedUsersQuery$data = { readonly blockedUsers: ReadonlyArray<{ readonly id: string; readonly " $fragmentSpreads": FragmentRefs<"ProfileModal_user" | "UserListItem_user">; } | null> | null; }; -export type UserBlockedUsersQueryResponse = UserBlockedUsersQuery$data; export type UserBlockedUsersQuery = { - variables: UserBlockedUsersQueryVariables; + variables: UserBlockedUsersQuery$variables; response: UserBlockedUsersQuery$data; }; diff --git a/client/src/__generated__/UserChangeEmailPasswordMutation.graphql.ts b/client/src/__generated__/UserChangeEmailPasswordMutation.graphql.ts index 46184098a..527c7353d 100644 --- a/client/src/__generated__/UserChangeEmailPasswordMutation.graphql.ts +++ b/client/src/__generated__/UserChangeEmailPasswordMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<49600165fe4f100f81cb898fc0539cfb>> * @lightSyntaxTransform * @nogrep */ @@ -13,13 +13,11 @@ export type UserChangeEmailPasswordMutation$variables = { password: string; newPassword: string; }; -export type UserChangeEmailPasswordMutationVariables = UserChangeEmailPasswordMutation$variables; export type UserChangeEmailPasswordMutation$data = { readonly changeEmailPassword: boolean | null; }; -export type UserChangeEmailPasswordMutationResponse = UserChangeEmailPasswordMutation$data; export type UserChangeEmailPasswordMutation = { - variables: UserChangeEmailPasswordMutationVariables; + variables: UserChangeEmailPasswordMutation$variables; response: UserChangeEmailPasswordMutation$data; }; diff --git a/client/src/__generated__/UserFacebookSignInMutation.graphql.ts b/client/src/__generated__/UserFacebookSignInMutation.graphql.ts index 93c187d16..5e644cdf3 100644 --- a/client/src/__generated__/UserFacebookSignInMutation.graphql.ts +++ b/client/src/__generated__/UserFacebookSignInMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<6c254a600cd4ce1643fa481a4ce97971>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type UserFacebookSignInMutation$variables = { accessToken: string; }; -export type UserFacebookSignInMutationVariables = UserFacebookSignInMutation$variables; export type UserFacebookSignInMutation$data = { readonly signInWithFacebook: { readonly token: string; @@ -28,9 +27,8 @@ export type UserFacebookSignInMutation$data = { }; }; }; -export type UserFacebookSignInMutationResponse = UserFacebookSignInMutation$data; export type UserFacebookSignInMutation = { - variables: UserFacebookSignInMutationVariables; + variables: UserFacebookSignInMutation$variables; response: UserFacebookSignInMutation$data; }; diff --git a/client/src/__generated__/UserFindPwMutation.graphql.ts b/client/src/__generated__/UserFindPwMutation.graphql.ts index 063b1940a..e9f655bfd 100644 --- a/client/src/__generated__/UserFindPwMutation.graphql.ts +++ b/client/src/__generated__/UserFindPwMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<2533bbb2e7267f0038d45b04e1479113>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -12,13 +12,11 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type UserFindPwMutation$variables = { email: string; }; -export type UserFindPwMutationVariables = UserFindPwMutation$variables; export type UserFindPwMutation$data = { readonly findPassword: boolean; }; -export type UserFindPwMutationResponse = UserFindPwMutation$data; export type UserFindPwMutation = { - variables: UserFindPwMutationVariables; + variables: UserFindPwMutation$variables; response: UserFindPwMutation$data; }; diff --git a/client/src/__generated__/UserGoogleSignInMutation.graphql.ts b/client/src/__generated__/UserGoogleSignInMutation.graphql.ts index 9f9047a90..ae3ca34b4 100644 --- a/client/src/__generated__/UserGoogleSignInMutation.graphql.ts +++ b/client/src/__generated__/UserGoogleSignInMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<20129b09cf70416006065d6159044c4d>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type UserGoogleSignInMutation$variables = { accessToken: string; }; -export type UserGoogleSignInMutationVariables = UserGoogleSignInMutation$variables; export type UserGoogleSignInMutation$data = { readonly signInWithGoogle: { readonly token: string; @@ -28,9 +27,8 @@ export type UserGoogleSignInMutation$data = { }; }; }; -export type UserGoogleSignInMutationResponse = UserGoogleSignInMutation$data; export type UserGoogleSignInMutation = { - variables: UserGoogleSignInMutationVariables; + variables: UserGoogleSignInMutation$variables; response: UserGoogleSignInMutation$data; }; diff --git a/client/src/__generated__/UserListItemTestQuery.graphql.ts b/client/src/__generated__/UserListItemTestQuery.graphql.ts index 89d59c3c6..b978f74e5 100644 --- a/client/src/__generated__/UserListItemTestQuery.graphql.ts +++ b/client/src/__generated__/UserListItemTestQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<58fb72f37decad9b06cd4362787ef858>> * @lightSyntaxTransform * @nogrep */ @@ -11,15 +11,13 @@ import { ConcreteRequest, Query } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type UserListItemTestQuery$variables = {}; -export type UserListItemTestQueryVariables = UserListItemTestQuery$variables; export type UserListItemTestQuery$data = { readonly myData: { readonly " $fragmentSpreads": FragmentRefs<"UserListItem_user">; } | null; }; -export type UserListItemTestQueryResponse = UserListItemTestQuery$data; export type UserListItemTestQuery = { - variables: UserListItemTestQueryVariables; + variables: UserListItemTestQuery$variables; response: UserListItemTestQuery$data; }; diff --git a/client/src/__generated__/UserListItem_user.graphql.ts b/client/src/__generated__/UserListItem_user.graphql.ts index ff28bfb68..a52ac835a 100644 --- a/client/src/__generated__/UserListItem_user.graphql.ts +++ b/client/src/__generated__/UserListItem_user.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<0f9f202dd22209b41f3b4121081519ce>> + * @generated SignedSource<<26f54cd8ad779ee758c61a501dc8656a>> * @lightSyntaxTransform * @nogrep */ @@ -20,7 +20,6 @@ export type UserListItem_user$data = { readonly hasBlocked: boolean | null; readonly " $fragmentType": "UserListItem_user"; }; -export type UserListItem_user = UserListItem_user$data; export type UserListItem_user$key = { readonly " $data"?: UserListItem_user$data; readonly " $fragmentSpreads": FragmentRefs<"UserListItem_user">; diff --git a/client/src/__generated__/UserMeQuery.graphql.ts b/client/src/__generated__/UserMeQuery.graphql.ts index 9cd31af41..363c7a318 100644 --- a/client/src/__generated__/UserMeQuery.graphql.ts +++ b/client/src/__generated__/UserMeQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<363a39604dd4c1e2f2bbcd0afa2a907a>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,6 @@ import { ConcreteRequest, Query } from 'relay-runtime'; export type UserMeQuery$variables = {}; -export type UserMeQueryVariables = UserMeQuery$variables; export type UserMeQuery$data = { readonly me: { readonly id: string; @@ -26,9 +25,8 @@ export type UserMeQuery$data = { } | null; } | null; }; -export type UserMeQueryResponse = UserMeQuery$data; export type UserMeQuery = { - variables: UserMeQueryVariables; + variables: UserMeQuery$variables; response: UserMeQuery$data; }; diff --git a/client/src/__generated__/UserSignInAppleMutation.graphql.ts b/client/src/__generated__/UserSignInAppleMutation.graphql.ts index dc77e9286..be872e42d 100644 --- a/client/src/__generated__/UserSignInAppleMutation.graphql.ts +++ b/client/src/__generated__/UserSignInAppleMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<612df576a3d1ca96b6408756f9577244>> + * @generated SignedSource<<3b7c326590117127909f7820ca4a122c>> * @lightSyntaxTransform * @nogrep */ @@ -12,7 +12,6 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type UserSignInAppleMutation$variables = { accessToken: string; }; -export type UserSignInAppleMutationVariables = UserSignInAppleMutation$variables; export type UserSignInAppleMutation$data = { readonly signInWithApple: { readonly token: string; @@ -28,9 +27,8 @@ export type UserSignInAppleMutation$data = { }; }; }; -export type UserSignInAppleMutationResponse = UserSignInAppleMutation$data; export type UserSignInAppleMutation = { - variables: UserSignInAppleMutationVariables; + variables: UserSignInAppleMutation$variables; response: UserSignInAppleMutation$data; }; diff --git a/client/src/__generated__/UserSignInEmailMutation.graphql.ts b/client/src/__generated__/UserSignInEmailMutation.graphql.ts index 58cf7b9c5..47c0a3835 100644 --- a/client/src/__generated__/UserSignInEmailMutation.graphql.ts +++ b/client/src/__generated__/UserSignInEmailMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -13,7 +13,6 @@ export type UserSignInEmailMutation$variables = { email: string; password: string; }; -export type UserSignInEmailMutationVariables = UserSignInEmailMutation$variables; export type UserSignInEmailMutation$data = { readonly signInEmail: { readonly token: string; @@ -29,9 +28,8 @@ export type UserSignInEmailMutation$data = { }; }; }; -export type UserSignInEmailMutationResponse = UserSignInEmailMutation$data; export type UserSignInEmailMutation = { - variables: UserSignInEmailMutationVariables; + variables: UserSignInEmailMutation$variables; response: UserSignInEmailMutation$data; }; diff --git a/client/src/__generated__/UserSignUpMutation.graphql.ts b/client/src/__generated__/UserSignUpMutation.graphql.ts index 0b2ed97ac..91013be08 100644 --- a/client/src/__generated__/UserSignUpMutation.graphql.ts +++ b/client/src/__generated__/UserSignUpMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<349d1a6d965953712612582dce4612e8>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -23,7 +23,6 @@ export type UserSignUpMutation$variables = { user: UserCreateInput; photoUpload?: any | null; }; -export type UserSignUpMutationVariables = UserSignUpMutation$variables; export type UserSignUpMutation$data = { readonly signUp: { readonly id: string; @@ -33,9 +32,8 @@ export type UserSignUpMutation$data = { readonly verified: boolean | null; }; }; -export type UserSignUpMutationResponse = UserSignUpMutation$data; export type UserSignUpMutation = { - variables: UserSignUpMutationVariables; + variables: UserSignUpMutation$variables; response: UserSignUpMutation$data; }; diff --git a/client/src/__generated__/UserUpdateProfileMutation.graphql.ts b/client/src/__generated__/UserUpdateProfileMutation.graphql.ts index 4dac2c138..5138feb03 100644 --- a/client/src/__generated__/UserUpdateProfileMutation.graphql.ts +++ b/client/src/__generated__/UserUpdateProfileMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<0bce05ec860c680279748078bcd47b83>> + * @generated SignedSource<<94a0d58a3f969ea1c51bf861b5a5e639>> * @lightSyntaxTransform * @nogrep */ @@ -23,7 +23,6 @@ export type UserUpdateInput = { export type UserUpdateProfileMutation$variables = { user: UserUpdateInput; }; -export type UserUpdateProfileMutationVariables = UserUpdateProfileMutation$variables; export type UserUpdateProfileMutation$data = { readonly updateProfile: { readonly id: string; @@ -32,9 +31,8 @@ export type UserUpdateProfileMutation$data = { readonly statusMessage: string | null; } | null; }; -export type UserUpdateProfileMutationResponse = UserUpdateProfileMutation$data; export type UserUpdateProfileMutation = { - variables: UserUpdateProfileMutationVariables; + variables: UserUpdateProfileMutation$variables; response: UserUpdateProfileMutation$data; }; diff --git a/client/src/__generated__/UserUsersPaginationQuery.graphql.ts b/client/src/__generated__/UserUsersPaginationQuery.graphql.ts index af42705e5..7b558e98b 100644 --- a/client/src/__generated__/UserUsersPaginationQuery.graphql.ts +++ b/client/src/__generated__/UserUsersPaginationQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<9ac46d1297076432950ce6199dfbee4b>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -15,13 +15,11 @@ export type UserUsersPaginationQuery$variables = { after?: string | null; searchText?: string | null; }; -export type UserUsersPaginationQueryVariables = UserUsersPaginationQuery$variables; export type UserUsersPaginationQuery$data = { readonly " $fragmentSpreads": FragmentRefs<"SearchUserComponent_user">; }; -export type UserUsersPaginationQueryResponse = UserUsersPaginationQuery$data; export type UserUsersPaginationQuery = { - variables: UserUsersPaginationQueryVariables; + variables: UserUsersPaginationQuery$variables; response: UserUsersPaginationQuery$data; }; diff --git a/client/src/__generated__/UserVerifyEmailMutation.graphql.ts b/client/src/__generated__/UserVerifyEmailMutation.graphql.ts index 230ff6dc3..a2f553e4d 100644 --- a/client/src/__generated__/UserVerifyEmailMutation.graphql.ts +++ b/client/src/__generated__/UserVerifyEmailMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<1613a389ff68b58513491721b24954e8>> + * @generated SignedSource<<5acf0878310c84ec3bf8cb91a4f81558>> * @lightSyntaxTransform * @nogrep */ @@ -12,13 +12,11 @@ import { ConcreteRequest, Mutation } from 'relay-runtime'; export type UserVerifyEmailMutation$variables = { email: string; }; -export type UserVerifyEmailMutationVariables = UserVerifyEmailMutation$variables; export type UserVerifyEmailMutation$data = { readonly sendVerification: boolean; }; -export type UserVerifyEmailMutationResponse = UserVerifyEmailMutation$data; export type UserVerifyEmailMutation = { - variables: UserVerifyEmailMutationVariables; + variables: UserVerifyEmailMutation$variables; response: UserVerifyEmailMutation$data; }; diff --git a/client/src/components/navigations/MainStackNavigator/ProfileModal.tsx b/client/src/components/navigations/MainStackNavigator/ProfileModal.tsx index 704c4fdb7..013ad6b66 100644 --- a/client/src/components/navigations/MainStackNavigator/ProfileModal.tsx +++ b/client/src/components/navigations/MainStackNavigator/ProfileModal.tsx @@ -11,7 +11,7 @@ import { } from 'react-native'; import { ChannelFindOrCreatePrivateChannelMutation, - ChannelFindOrCreatePrivateChannelMutationResponse, + ChannelFindOrCreatePrivateChannelMutation$data, } from '../../../__generated__/ChannelFindOrCreatePrivateChannelMutation.graphql'; import {IC_NO_IMAGE, IC_PROFILE_W} from '../../../utils/Icons'; import {LoadingIndicator, useTheme} from 'dooboo-ui'; @@ -282,7 +282,7 @@ const ModalContent: FC = ({modalState, hideModal}) => { peerUserIds: [id], }, onCompleted: ( - response: ChannelFindOrCreatePrivateChannelMutationResponse, + response: ChannelFindOrCreatePrivateChannelMutation$data, ): void => { const channel = response.findOrCreatePrivateChannel; diff --git a/client/src/components/pages/ChangePw.tsx b/client/src/components/pages/ChangePw.tsx index 7938b93b0..aab2d01fc 100644 --- a/client/src/components/pages/ChangePw.tsx +++ b/client/src/components/pages/ChangePw.tsx @@ -10,7 +10,7 @@ import {Button, EditText, useTheme} from 'dooboo-ui'; import React, {FC, useEffect, useRef, useState} from 'react'; import type { UserChangeEmailPasswordMutation, - UserChangeEmailPasswordMutationResponse, + UserChangeEmailPasswordMutation$data, } from '../../__generated__/UserChangeEmailPasswordMutation.graphql'; import styled, {css} from '@emotion/native'; @@ -67,7 +67,7 @@ const ChangePw: FC = () => { onError: (error: Error) => { showAlertForError(normalizeErrorString(error)); }, - onCompleted: (response: UserChangeEmailPasswordMutationResponse) => { + onCompleted: (response: UserChangeEmailPasswordMutation$data) => { const resultBool = response.changeEmailPassword; if (resultBool) { diff --git a/client/src/components/pages/ChannelCreate.tsx b/client/src/components/pages/ChannelCreate.tsx index feedb67f0..5990c6e11 100644 --- a/client/src/components/pages/ChannelCreate.tsx +++ b/client/src/components/pages/ChannelCreate.tsx @@ -10,11 +10,11 @@ import { import {Channel, User, UserConnection, UserEdge} from '../../types/graphql'; import { ChannelCreateFriendsPaginationQuery, - ChannelCreateFriendsPaginationQueryVariables, + ChannelCreateFriendsPaginationQuery$variables, } from '../../__generated__/ChannelCreateFriendsPaginationQuery.graphql'; import { ChannelFindOrCreatePrivateChannelMutation, - ChannelFindOrCreatePrivateChannelMutationResponse, + ChannelFindOrCreatePrivateChannelMutation$data, } from '../../__generated__/ChannelFindOrCreatePrivateChannelMutation.graphql'; import {IC_CIRCLE_X, IC_NO_IMAGE} from '../../utils/Icons'; import React, { @@ -107,7 +107,7 @@ const friendsFragment = graphql` type FriendsFragmentProps = { friend: ChannelCreate_friends$key; scrollY: Animated.Value; - searchArgs: ChannelCreateFriendsPaginationQueryVariables; + searchArgs: ChannelCreateFriendsPaginationQuery$variables; selectedUsers: User[]; setSelectedUsers: (users: User[]) => void; }; @@ -280,7 +280,7 @@ const FriendsFragment: FC = ({ interface ContentProps { scrollY: Animated.Value; - searchArgs: ChannelCreateFriendsPaginationQueryVariables; + searchArgs: ChannelCreateFriendsPaginationQuery$variables; selectedUsers: User[]; setSelectedUsers: (users: User[]) => void; } @@ -330,7 +330,7 @@ const ChannelCreate: FC = () => { peerUserIds: userIds, }, onCompleted: ( - response: ChannelFindOrCreatePrivateChannelMutationResponse, + response: ChannelFindOrCreatePrivateChannelMutation$data, ): void => { const channel = response.findOrCreatePrivateChannel as Channel; @@ -374,7 +374,7 @@ const ChannelCreate: FC = () => { }); }, [commitChannel, navigation, selectedUsers, theme]); - const searchArgs: ChannelCreateFriendsPaginationQueryVariables = { + const searchArgs: ChannelCreateFriendsPaginationQuery$variables = { first: ITEM_CNT, searchText: debouncedText, includeMe: true, diff --git a/client/src/components/pages/FindPw.tsx b/client/src/components/pages/FindPw.tsx index 14b8a7ac0..58e3675aa 100644 --- a/client/src/components/pages/FindPw.tsx +++ b/client/src/components/pages/FindPw.tsx @@ -2,7 +2,7 @@ import {Button, EditText, useTheme} from 'dooboo-ui'; import React, {FC, useState} from 'react'; import type { UserFindPwMutation, - UserFindPwMutationResponse, + UserFindPwMutation$data, } from '../../__generated__/UserFindPwMutation.graphql'; import {showAlertForError, validateEmail} from '../../utils/common'; import styled, {css} from '@emotion/native'; @@ -47,7 +47,7 @@ const Page: FC = () => { onError: (error: Error) => { showAlertForError(normalizeErrorString(error)); }, - onCompleted: (response: UserFindPwMutationResponse) => { + onCompleted: (response: UserFindPwMutation$data) => { const result = response.findPassword; if (result) { diff --git a/client/src/components/pages/MainChannel.tsx b/client/src/components/pages/MainChannel.tsx index 40f0cedf9..137ab2622 100644 --- a/client/src/components/pages/MainChannel.tsx +++ b/client/src/components/pages/MainChannel.tsx @@ -1,7 +1,7 @@ import type { ChannelsQuery, - ChannelsQueryResponse, - ChannelsQueryVariables, + ChannelsQuery$data, + ChannelsQuery$variables, } from '../../__generated__/ChannelsQuery.graphql'; import {FlatList, Platform, TouchableOpacity, View} from 'react-native'; import React, {FC, Suspense, useMemo, useState} from 'react'; @@ -91,7 +91,7 @@ const channelsPaginationFragment = graphql` interface ChannelProps { channel: MainChannelComponent_channel$key; - searchArgs: ChannelsQueryVariables; + searchArgs: ChannelsQuery$variables; } const ChannelsFragment: FC = ({channel, searchArgs}) => { @@ -201,11 +201,11 @@ const ChannelsFragment: FC = ({channel, searchArgs}) => { }; interface ContentProps { - searchArgs: ChannelsQueryVariables; + searchArgs: ChannelsQuery$variables; } const ContentContainer: FC = ({searchArgs}) => { - const data: ChannelsQueryResponse = useLazyLoadQuery( + const data: ChannelsQuery$data = useLazyLoadQuery( channelsQuery, searchArgs, {fetchPolicy: 'store-or-network'}, @@ -218,7 +218,7 @@ const Screen: FC = () => { const {theme} = useTheme(); const navigation = useNavigation>(); - const searchArgs: ChannelsQueryVariables = { + const searchArgs: ChannelsQuery$variables = { first: ITEM_CNT, withMessage: true, }; diff --git a/client/src/components/pages/Message.tsx b/client/src/components/pages/Message.tsx index 9f7dd4533..46060c03c 100644 --- a/client/src/components/pages/Message.tsx +++ b/client/src/components/pages/Message.tsx @@ -34,8 +34,8 @@ import { } from '../navigations/MainStackNavigator'; import { MessagesQuery, - MessagesQueryResponse, - MessagesQueryVariables, + MessagesQuery$data, + MessagesQuery$variables, } from '../../__generated__/MessagesQuery.graphql'; import React, { FC, @@ -149,7 +149,7 @@ interface MessageProp { users: User[]; channelId: string; messages: MessageComponent_message$key; - searchArgs: MessagesQueryVariables; + searchArgs: MessagesQuery$variables; } const MessagesFragment: FC = ({channelId, messages, users}) => { @@ -567,14 +567,14 @@ const MessagesFragment: FC = ({channelId, messages, users}) => { interface ContentProps { channelId: string; - searchArgs: MessagesQueryVariables; + searchArgs: MessagesQuery$variables; } const ContentContainer: FC = ({searchArgs, channelId}) => { const navigation = useNavigation>(); const {user: auth} = useAuthContext(); - const messagesQueryResponse: MessagesQueryResponse = + const messagesQueryResponse: MessagesQuery$data = useLazyLoadQuery(messagesQuery, searchArgs, { fetchPolicy: 'store-or-network', }); @@ -684,7 +684,7 @@ const MessageScreen: FC = () => { deleteSameChannelNotification(); }, [channelId]); - const searchArgs: MessagesQueryVariables = { + const searchArgs: MessagesQuery$variables = { first: ITEM_CNT, channelId, }; diff --git a/client/src/components/pages/ProfileUpdate.tsx b/client/src/components/pages/ProfileUpdate.tsx index c7418eee3..154855c69 100644 --- a/client/src/components/pages/ProfileUpdate.tsx +++ b/client/src/components/pages/ProfileUpdate.tsx @@ -11,7 +11,7 @@ import {IC_CAMERA, IC_PROFILE} from '../../utils/Icons'; import React, {FC, useCallback, useEffect, useRef, useState} from 'react'; import { UploadSingleUploadMutation, - UploadSingleUploadMutationResponse, + UploadSingleUploadMutation$data, } from '../../__generated__/UploadSingleUploadMutation.graphql'; import {fetchQuery, useMutation, useRelayEnvironment} from 'react-relay'; import { @@ -183,7 +183,7 @@ const Screen: FC = () => { dir: 'profiles', }, uploadables: {file}, - onCompleted: (response: UploadSingleUploadMutationResponse) => { + onCompleted: (response: UploadSingleUploadMutation$data) => { const url = response.singleUpload; if (url) { diff --git a/client/src/components/pages/Report.tsx b/client/src/components/pages/Report.tsx index d217ade79..80003af3e 100644 --- a/client/src/components/pages/Report.tsx +++ b/client/src/components/pages/Report.tsx @@ -7,7 +7,7 @@ import { import React, {FC, useState} from 'react'; import type { ReportCreateReportMutation, - ReportCreateReportMutationResponse, + ReportCreateReportMutation$data, } from '../../__generated__/ReportCreateReportMutation.graphql'; import {RouteProp, useNavigation, useRoute} from '@react-navigation/core'; import styled, {css} from '@emotion/native'; @@ -53,7 +53,7 @@ const ReportScreen: FC = () => { onError: (error: Error) => { showAlertForError(normalizeErrorString(error)); }, - onCompleted: (response: ReportCreateReportMutationResponse) => { + onCompleted: (response: ReportCreateReportMutation$data) => { const {report} = response.createReport as Report; setMessage(''); diff --git a/client/src/components/pages/SearchUser.tsx b/client/src/components/pages/SearchUser.tsx index 1274abfe7..95d101942 100644 --- a/client/src/components/pages/SearchUser.tsx +++ b/client/src/components/pages/SearchUser.tsx @@ -15,8 +15,8 @@ import React, { } from 'react'; import type { UserUsersPaginationQuery, - UserUsersPaginationQueryResponse, - UserUsersPaginationQueryVariables, + UserUsersPaginationQuery$data, + UserUsersPaginationQuery$variables, } from '../../__generated__/UserUsersPaginationQuery.graphql'; import {graphql, useLazyLoadQuery, usePaginationFragment} from 'react-relay'; @@ -76,7 +76,7 @@ const usersFragment = graphql` type UserProps = { scrollY: Animated.Value; user: SearchUserComponent_user$key; - searchArgs: UserUsersPaginationQueryVariables; + searchArgs: UserUsersPaginationQuery$variables; }; const UsersFragment: FC = ({user, searchArgs}) => { @@ -147,11 +147,11 @@ const UsersFragment: FC = ({user, searchArgs}) => { interface ContentProps { scrollY: Animated.Value; - searchArgs: UserUsersPaginationQueryVariables; + searchArgs: UserUsersPaginationQuery$variables; } const ContentContainer: FC = ({searchArgs, scrollY}) => { - const data: UserUsersPaginationQueryResponse = + const data: UserUsersPaginationQuery$data = useLazyLoadQuery(usersQuery, searchArgs, { fetchPolicy: 'store-or-network', }); @@ -184,7 +184,7 @@ const Screen: FC = () => { }); }, [navigation]); - const searchArgs: UserUsersPaginationQueryVariables = { + const searchArgs: UserUsersPaginationQuery$variables = { first: ITEM_CNT, searchText: debouncedText, }; diff --git a/client/src/components/pages/SignIn/SocialSignInButton.tsx b/client/src/components/pages/SignIn/SocialSignInButton.tsx index 0ff9615a2..327ce2eda 100644 --- a/client/src/components/pages/SignIn/SocialSignInButton.tsx +++ b/client/src/components/pages/SignIn/SocialSignInButton.tsx @@ -8,11 +8,11 @@ import React, {FC, ReactElement, useEffect, useState} from 'react'; import {UseMutationConfig, useMutation} from 'react-relay'; import type { UserFacebookSignInMutation, - UserFacebookSignInMutationResponse, + UserFacebookSignInMutation$data, } from '../../../__generated__/UserFacebookSignInMutation.graphql'; import type { UserGoogleSignInMutation, - UserGoogleSignInMutationResponse, + UserGoogleSignInMutation$data, } from '../../../__generated__/UserGoogleSignInMutation.graphql'; import { signInWithFacebook, @@ -121,7 +121,7 @@ const SocialSignInButton: FC = ({ if (socialProvider === 'google') { const mutationConfig: UseMutationConfig = { variables: {accessToken}, - onCompleted: (googleResponse: UserGoogleSignInMutationResponse) => { + onCompleted: (googleResponse: UserGoogleSignInMutation$data) => { if (googleResponse.signInWithGoogle) { const {user, token} = googleResponse.signInWithGoogle; @@ -144,7 +144,7 @@ const SocialSignInButton: FC = ({ const mutationConfig = { variables: {accessToken}, - onCompleted: (fbResponse: UserFacebookSignInMutationResponse) => { + onCompleted: (fbResponse: UserFacebookSignInMutation$data) => { if (fbResponse.signInWithFacebook) { const {user, token} = fbResponse.signInWithFacebook; diff --git a/client/src/components/pages/SignIn/index.tsx b/client/src/components/pages/SignIn/index.tsx index 1dd987f76..0f818f981 100644 --- a/client/src/components/pages/SignIn/index.tsx +++ b/client/src/components/pages/SignIn/index.tsx @@ -34,11 +34,11 @@ import { import React, {FC, ReactElement, useEffect, useState} from 'react'; import type { UserSignInAppleMutation, - UserSignInAppleMutationResponse, + UserSignInAppleMutation$data, } from '../../../__generated__/UserSignInAppleMutation.graphql'; import type { UserSignInEmailMutation, - UserSignInEmailMutationResponse, + UserSignInEmailMutation$data, } from '../../../__generated__/UserSignInEmailMutation.graphql'; import {showAlertForError, validateEmail} from '../../../utils/common'; import {signInEmail, signInWithApple} from '../../../relay/queries/User'; @@ -187,7 +187,7 @@ const SignIn: FC = () => { password, }, - onCompleted: (response: UserSignInEmailMutationResponse) => { + onCompleted: (response: UserSignInEmailMutation$data) => { const {token, user} = response.signInEmail as AuthPayload; if (user && !user.verified) { @@ -266,7 +266,7 @@ const SignIn: FC = () => { variables: { accessToken: identityToken, }, - onCompleted: (response: UserSignInAppleMutationResponse) => { + onCompleted: (response: UserSignInAppleMutation$data) => { const {token, user} = response.signInWithApple as AuthPayload; if (user && token) { diff --git a/client/src/components/pages/VerifyEmail.tsx b/client/src/components/pages/VerifyEmail.tsx index 25f167c69..fea3c9d24 100644 --- a/client/src/components/pages/VerifyEmail.tsx +++ b/client/src/components/pages/VerifyEmail.tsx @@ -3,7 +3,7 @@ import React, {FC, useState} from 'react'; import {RouteProp, useRoute} from '@react-navigation/core'; import type { UserVerifyEmailMutation, - UserVerifyEmailMutationResponse, + UserVerifyEmailMutation$data, } from '../../__generated__/UserVerifyEmailMutation.graphql'; import {Alert} from 'react-native'; @@ -53,7 +53,7 @@ const Page: FC = () => { variables: { email, }, - onCompleted: (response: UserVerifyEmailMutationResponse) => { + onCompleted: (response: UserVerifyEmailMutation$data) => { if (response.sendVerification) { return Alert.alert(getString('RESENT_VERIFICATION_EMAIL')); } diff --git a/client/src/components/pages/__tests__/SignIn.test.tsx b/client/src/components/pages/__tests__/SignIn.test.tsx index 7532f1d2b..bb7945d52 100644 --- a/client/src/components/pages/__tests__/SignIn.test.tsx +++ b/client/src/components/pages/__tests__/SignIn.test.tsx @@ -11,7 +11,6 @@ import AuthContext from '../../../providers/AuthProvider'; import {FetchMock} from 'jest-fetch-mock'; import React from 'react'; import SignIn from '../SignIn'; -import {View} from 'react-native'; import {createMockEnvironment} from 'relay-test-utils'; import {getString} from '../../../../STRINGS'; import mockReactNavigation from '@react-navigation/core'; diff --git a/client/src/components/uis/MessageListItem.tsx b/client/src/components/uis/MessageListItem.tsx index 0e8c955e1..daa2a73f7 100644 --- a/client/src/components/uis/MessageListItem.tsx +++ b/client/src/components/uis/MessageListItem.tsx @@ -1,6 +1,5 @@ import {Linking, StyleSheet, TouchableOpacity, View} from 'react-native'; import React, {FC, useMemo, useState} from 'react'; -import {Theme, colors} from '../../theme'; import {graphql, useFragment} from 'react-relay'; import {IC_NO_IMAGE} from '../../utils/Icons'; @@ -10,6 +9,7 @@ import ParsedText from 'react-native-parsed-text'; import {ProfileModal_user$key} from '../../__generated__/ProfileModal_user.graphql'; import {User} from '../../types/graphql'; import VideoPlayer from './VideoPlayer'; +import {colors} from '../../theme'; import {getString} from '../../../STRINGS'; import moment from 'moment'; import styled from '@emotion/native'; diff --git a/client/src/components/uis/TagUserListItem.tsx b/client/src/components/uis/TagUserListItem.tsx index 6c9319ef1..6a55d6040 100644 --- a/client/src/components/uis/TagUserListItem.tsx +++ b/client/src/components/uis/TagUserListItem.tsx @@ -52,6 +52,7 @@ const StyledText = styled.Text` font-weight: bold; color: ${({theme}) => theme.text}; `; + function Shared({tagUser, selectTagUser}: Props): React.ReactElement { const photoURLObj: ImageSourcePropType | null = typeof tagUser?.photoURL === 'string' ? {uri: tagUser?.photoURL} : null; diff --git a/client/src/components/uis/VideoPlayer.tsx b/client/src/components/uis/VideoPlayer.tsx index ae8683831..dc4c0652a 100644 --- a/client/src/components/uis/VideoPlayer.tsx +++ b/client/src/components/uis/VideoPlayer.tsx @@ -1,7 +1,7 @@ import * as VideoThumbnails from 'expo-video-thumbnails'; import {AVPlaybackStatus, Video} from 'expo-av'; -import {Image, Platform, View} from 'react-native'; +import {Image, Platform, Share, View} from 'react-native'; import React, {FC, useEffect, useRef, useState} from 'react'; import {LoadingIndicator} from 'dooboo-ui'; @@ -69,7 +69,7 @@ const VideoPlayer: FC = ({uri, setMediaError}) => { } }, [uri]); - const handleLoadPress = async (): Promise => { + const handlePress = async (): Promise => { setLoadStarted(true); await videoRef.current?.loadAsync( @@ -87,6 +87,14 @@ const VideoPlayer: FC = ({uri, setMediaError}) => { ); }; + const handleLongPress = async (): Promise => { + await Share.share({ + title: getString('SHARE_VIDEO'), + message: getString('SHARING_VIDEO'), + url: uri, + }); + }; + return (