()
| 1102 | } |
| 1103 | `; |
| 1104 | export const getPlusGifterUser = async (): Promise<UserShortProfile | null> => { |
| 1105 | try { |
| 1106 | const res = await gqlClient.request(GET_PLUS_GIFTER_USER); |
| 1107 | return res.plusGifterUser; |
| 1108 | } catch (error) { |
| 1109 | if (error instanceof ClientError) { |
| 1110 | const errorCode = error.response?.errors?.[0]?.extensions?.code; |
| 1111 | if (errorCode === ApiError.Forbidden) { |
| 1112 | return null; |
| 1113 | } |
| 1114 | } |
| 1115 | |
| 1116 | throw error; |
| 1117 | } |
| 1118 | }; |
| 1119 | |
| 1120 | export const REQUEST_APP_ACCOUNT_TOKEN_MUTATION = gql` |
| 1121 | mutation RequestAppAccountToken { |
nothing calls this directly
no outgoing calls
no test coverage detected