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

Feature/database backups (#1040)

* add annotations to docs

* alchemy data dumper

* initial tests

* sourcery refactor

* db backups/restore

* potential postgres fix

* potential postgres fix

* this is terrible

* potential pg fix

* cleanup

* remove unused import

* fix comparison

* generate frontend types

* update timestamp and add directory filter

* rewrite to new admin-api

* update backup routers

* add file_token response helper

* update imports

* remove test_backup
This commit is contained in:
Hayden 2022-03-13 15:42:22 -08:00 committed by GitHub
parent 2d1ef7173d
commit 8eefa05393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 756 additions and 229 deletions

View file

@ -99,12 +99,12 @@ export interface RecipeSummary {
dateUpdated?: string;
}
export interface RecipeCategory {
id: string;
id?: string;
name: string;
slug: string;
}
export interface RecipeTag {
id: string;
id?: string;
name: string;
slug: string;
}

View file

@ -24,7 +24,7 @@ export interface ReadCookBook {
position?: number;
categories?: CategoryBase[];
groupId: string;
id: number;
id: string;
}
export interface RecipeCategoryResponse {
name: string;
@ -55,12 +55,12 @@ export interface RecipeSummary {
dateUpdated?: string;
}
export interface RecipeCategory {
id: string;
id?: string;
name: string;
slug: string;
}
export interface RecipeTag {
id: string;
id?: string;
name: string;
slug: string;
}
@ -117,7 +117,7 @@ export interface RecipeCookBook {
position?: number;
categories: RecipeCategoryResponse[];
groupId: string;
id: number;
id: string;
}
export interface SaveCookBook {
name: string;
@ -134,5 +134,5 @@ export interface UpdateCookBook {
position?: number;
categories?: CategoryBase[];
groupId: string;
id: number;
id: string;
}

View file

@ -206,7 +206,7 @@ export interface ReadGroupPreferences {
recipeDisableComments?: boolean;
recipeDisableAmount?: boolean;
groupId: string;
id: number;
id: string;
}
export interface ReadInviteToken {
token: string;
@ -219,7 +219,7 @@ export interface ReadWebhook {
url?: string;
time?: string;
groupId: string;
id: number;
id: string;
}
export interface RecipeSummary {
id?: string;
@ -244,12 +244,12 @@ export interface RecipeSummary {
dateUpdated?: string;
}
export interface RecipeCategory {
id: string;
id?: string;
name: string;
slug: string;
}
export interface RecipeTag {
id: string;
id?: string;
name: string;
slug: string;
}

View file

@ -7,7 +7,7 @@
export type PlanEntryType = "breakfast" | "lunch" | "dinner" | "side";
export type PlanRulesDay = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | "unset";
export type PlanRulesType = "breakfast" | "lunch" | "dinner" | "unset";
export type PlanRulesType = "breakfast" | "lunch" | "dinner" | "side" | "unset";
export interface Category {
id: string;
@ -118,12 +118,12 @@ export interface RecipeSummary {
dateUpdated?: string;
}
export interface RecipeCategory {
id: string;
id?: string;
name: string;
slug: string;
}
export interface RecipeTag {
id: string;
id?: string;
name: string;
slug: string;
}

View file

@ -67,12 +67,12 @@ export interface CreateRecipeBulk {
tags?: RecipeTag[];
}
export interface RecipeCategory {
id: string;
id?: string;
name: string;
slug: string;
}
export interface RecipeTag {
id: string;
id?: string;
name: string;
slug: string;
}

View file

@ -10,6 +10,9 @@ export interface ErrorResponse {
error?: boolean;
exception?: string;
}
export interface FileTokenResponse {
file_token: string;
}
export interface SuccessResponse {
message: string;
error?: boolean;

View file

@ -74,7 +74,7 @@ export interface ReadGroupPreferences {
recipeDisableComments?: boolean;
recipeDisableAmount?: boolean;
groupId: string;
id: number;
id: string;
}
export interface LoingLiveTokenIn {
name: string;
@ -131,12 +131,12 @@ export interface RecipeSummary {
dateUpdated?: string;
}
export interface RecipeCategory {
id: string;
id?: string;
name: string;
slug: string;
}
export interface RecipeTag {
id: string;
id?: string;
name: string;
slug: string;
}
@ -196,26 +196,12 @@ export interface SavePasswordResetToken {
userId: string;
token: string;
}
export interface SignUpIn {
name: string;
admin: boolean;
}
export interface SignUpOut {
name: string;
admin: boolean;
token: string;
id: number;
}
export interface SignUpToken {
name: string;
admin: boolean;
token: string;
}
export interface Token {
access_token: string;
token_type: string;
}
export interface TokenData {
user_id?: string;
username?: string;
}
export interface UpdateGroup {