1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

Consolidate frontend types (#1245)

This commit is contained in:
Philipp Fischbeck 2022-05-21 21:22:02 +02:00 committed by GitHub
parent 6a88a59981
commit 479900e912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 261 additions and 582 deletions

View file

@ -50,10 +50,10 @@ export interface BackupOptions {
notifications?: boolean;
}
export interface CheckAppConfig {
emailReady?: boolean;
ldapReady?: boolean;
baseUrlSet?: boolean;
isUpToDate?: boolean;
emailReady: boolean;
ldapReady: boolean;
baseUrlSet: boolean;
isUpToDate: boolean;
}
export interface ChowdownURL {
url: string;
@ -174,6 +174,16 @@ export interface CustomPageOut {
export interface DockerVolumeText {
text: string;
}
export interface EmailReady {
ready: boolean;
}
export interface EmailSuccess {
success: boolean;
error?: string;
}
export interface EmailTest {
email: string;
}
export interface GroupImport {
name: string;
status: boolean;

View file

@ -41,7 +41,7 @@ export interface EmailInvitation {
export interface GroupAdminUpdate {
id: string;
name: string;
preferences: UpdateGroupPreferences;
preferences?: UpdateGroupPreferences;
}
export interface UpdateGroupPreferences {
privateGroup?: boolean;

View file

@ -14,10 +14,6 @@ export interface Category {
name: string;
slug: string;
}
export interface CreatRandomEntry {
date: string;
entryType?: PlanEntryType & string;
}
export interface CreatePlanEntry {
date: string;
entryType?: PlanEntryType & string;
@ -25,6 +21,10 @@ export interface CreatePlanEntry {
text?: string;
recipeId?: string;
}
export interface CreateRandomEntry {
date: string;
entryType?: PlanEntryType & string;
}
export interface ListItem {
title?: string;
text?: string;

View file

@ -26,15 +26,6 @@ export interface TagBase {
id: string;
slug: string;
}
export interface BulkActionError {
recipe: string;
error: string;
}
export interface BulkActionsResponse {
success: boolean;
message: string;
errors?: BulkActionError[];
}
export interface CategoryIn {
name: string;
}
@ -335,6 +326,9 @@ export interface RecipeToolSave {
onHand?: boolean;
groupId: string;
}
export interface RecipeZipTokenResponse {
token: string;
}
export interface SaveIngredientFood {
name: string;
description?: string;
@ -373,3 +367,6 @@ export interface UnitFoodBase {
name: string;
description?: string;
}
export interface UpdateImageResponse {
image: string;
}

View file

@ -18,5 +18,5 @@ export interface SuccessResponse {
error?: boolean;
}
export interface ValidationResponse {
valid?: boolean;
valid: boolean;
}

View file

@ -31,6 +31,9 @@ export interface CreateUserRegistration {
seedData?: boolean;
locale?: string;
}
export interface DeleteTokenResponse {
tokenDelete: string;
}
export interface ForgotPassword {
email: string;
}
@ -62,9 +65,7 @@ export interface UserOut {
cacheKey: string;
}
export interface LongLiveTokenOut {
name: string;
id: number;
createdAt: string;
token: string;
}
export interface ReadGroupPreferences {
privateGroup?: boolean;
@ -78,7 +79,7 @@ export interface ReadGroupPreferences {
groupId: string;
id: string;
}
export interface LoingLiveTokenIn {
export interface LongLiveTokenIn {
name: string;
}
export interface LongLiveTokenInDB {