()
| 77 | // Read when called, not at module load: graphql/common sits in an import |
| 78 | // cycle with this file, so ApiError can still be undefined at load time. |
| 79 | const getFinalViewRejectionCodes = (): string[] => [ |
| 80 | ApiError.NotFound, |
| 81 | ApiError.Forbidden, |
| 82 | ApiError.Unauthenticated, |
| 83 | ]; |
| 84 | |
| 85 | export const isFinalViewRejection = (error: unknown): boolean => { |
| 86 | const errors = (error as Partial<ResponseError>)?.response?.errors; |
no outgoing calls
no test coverage detected