@keepfy/error-extractor
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -37,2 +37,6 @@ import { SuggestionsMap } from './types'; | ||
message: any; | ||
type: "INVALID_SESSION"; | ||
title: string; | ||
} | { | ||
message: any; | ||
type: "INVALID_SUBSCRIPTION"; | ||
@@ -39,0 +43,0 @@ title: string; |
@@ -51,2 +51,7 @@ import { fromGraphQLError } from './error'; | ||
}, | ||
INVALID_SESSION: { | ||
type: 'INVALID_SESSION', | ||
title: 'Conta desconectada', | ||
message: 'Realize novamente o seu login' | ||
}, | ||
ENTITY_NOT_FOUND: { | ||
@@ -53,0 +58,0 @@ type: 'ENTITY_NOT_FOUND', |
@@ -13,3 +13,3 @@ import { ErrorResponse } from 'apollo-link-error'; | ||
}; | ||
export declare type BackEndErrorTypes = 'AUTHENTICATION_FAILED' | 'FORBIDDEN' | 'INVALID_SUBSCRIPTION' | 'ENTITY_NOT_FOUND' | 'INVALID_INPUT' | 'INTERNAL_SERVER_ERROR' | 'BUSINESS_ERROR' | keyof BackendErrorsWithProperties; | ||
export declare type BackEndErrorTypes = 'AUTHENTICATION_FAILED' | 'FORBIDDEN' | 'INVALID_SESSION' | 'INVALID_SUBSCRIPTION' | 'ENTITY_NOT_FOUND' | 'INVALID_INPUT' | 'INTERNAL_SERVER_ERROR' | 'BUSINESS_ERROR' | keyof BackendErrorsWithProperties; | ||
export declare type AllErrorTypes = ClientErrorTypes | BackEndErrorTypes; | ||
@@ -16,0 +16,0 @@ export declare type MessageSuggestion = { |
{ | ||
"name": "@keepfy/error-extractor", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "An error extractor package for keepfy frontend apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
16745
388