mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-13 20:41:24 -05:00
Consolidate frontend types (#1245)
This commit is contained in:
committed by
GitHub
parent
6a88a59981
commit
479900e912
@@ -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;
|
||||
|
||||
@@ -41,7 +41,7 @@ export interface EmailInvitation {
|
||||
export interface GroupAdminUpdate {
|
||||
id: string;
|
||||
name: string;
|
||||
preferences: UpdateGroupPreferences;
|
||||
preferences?: UpdateGroupPreferences;
|
||||
}
|
||||
export interface UpdateGroupPreferences {
|
||||
privateGroup?: boolean;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -18,5 +18,5 @@ export interface SuccessResponse {
|
||||
error?: boolean;
|
||||
}
|
||||
export interface ValidationResponse {
|
||||
valid?: boolean;
|
||||
valid: boolean;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user