refacto: error on favorites

This commit is contained in:
Julien Froidefond
2025-02-26 10:32:51 +01:00
parent 2bb53b186b
commit 94c75ac126
3 changed files with 40 additions and 12 deletions

View File

@@ -47,6 +47,9 @@ export const ERROR_CODES = {
DELETE_ERROR: "FAVORITE_DELETE_ERROR",
FETCH_ERROR: "FAVORITE_FETCH_ERROR",
UPDATE_ERROR: "FAVORITE_UPDATE_ERROR",
NETWORK_ERROR: "FAVORITE_NETWORK_ERROR",
SERVER_ERROR: "FAVORITE_SERVER_ERROR",
STATUS_CHECK_ERROR: "FAVORITE_STATUS_CHECK_ERROR",
},
PREFERENCES: {
FETCH_ERROR: "PREFERENCES_FETCH_ERROR",
@@ -82,6 +85,11 @@ export const ERROR_CODES = {
SAVE_ERROR: "DEBUG_SAVE_ERROR",
CLEAR_ERROR: "DEBUG_CLEAR_ERROR",
},
CLIENT: {
FETCH_ERROR: "CLIENT_FETCH_ERROR",
NETWORK_ERROR: "CLIENT_NETWORK_ERROR",
REQUEST_FAILED: "CLIENT_REQUEST_FAILED",
},
} as const;
type Values<T> = T[keyof T];