UNPKG

@appello/services

Version:

Services package with api / graphql

18 lines (17 loc) 661 B
import { ApolloClient } from '@apollo/client'; import { Nullable } from '@appello/common'; export declare enum GqlErrorCodeEnum { TOKEN_EXPIRED = "TOKEN_EXPIRED", UNPROCESSABLE_ENTITY = "UNPROCESSABLE_ENTITY", RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND", UNKNOWN_ERROR = "UNKNOWN_ERROR", DELETE_NOT_POSSIBLE = "DELETE_NOT_POSSIBLE" } export declare const gqlClient: { client: Nullable<ApolloClient<unknown>>; }; export declare enum GqlErrorMessagesEnum { SOMETHING_WRONG = "Something went wrong", UNKNOWN_ERROR = "An unknown error has occurred" } export declare const DEFAULT_REFRESH_TOKEN_ERROR_MESSAGE = "Tokens refresh failed";