run code-generator

This commit is contained in:
Hayden 2023-08-20 17:57:58 -05:00
parent b827429c27
commit acf7607106
No known key found for this signature in database
GPG Key ID: 17CF79474E257545
10 changed files with 132 additions and 96 deletions

View File

@ -3,12 +3,12 @@ export const LOCALES = [
{ {
name: "繁體中文 (Chinese traditional)", name: "繁體中文 (Chinese traditional)",
value: "zh-TW", value: "zh-TW",
progress: 50, progress: 26,
}, },
{ {
name: "简体中文 (Chinese simplified)", name: "简体中文 (Chinese simplified)",
value: "zh-CN", value: "zh-CN",
progress: 41, progress: 34,
}, },
{ {
name: "Tiếng Việt (Vietnamese)", name: "Tiếng Việt (Vietnamese)",
@ -18,57 +18,57 @@ export const LOCALES = [
{ {
name: "Українська (Ukrainian)", name: "Українська (Ukrainian)",
value: "uk-UA", value: "uk-UA",
progress: 88, progress: 100,
}, },
{ {
name: "Türkçe (Turkish)", name: "Türkçe (Turkish)",
value: "tr-TR", value: "tr-TR",
progress: 41, progress: 47,
}, },
{ {
name: "Svenska (Swedish)", name: "Svenska (Swedish)",
value: "sv-SE", value: "sv-SE",
progress: 66, progress: 60,
}, },
{ {
name: "српски (Serbian)", name: "српски (Serbian)",
value: "sr-SP", value: "sr-SP",
progress: 8, progress: 2,
}, },
{ {
name: "Slovenian", name: "Slovenian",
value: "sl-SI", value: "sl-SI",
progress: 73, progress: 47,
}, },
{ {
name: "Slovak", name: "Slovak",
value: "sk-SK", value: "sk-SK",
progress: 78, progress: 99,
}, },
{ {
name: "Pусский (Russian)", name: "Pусский (Russian)",
value: "ru-RU", value: "ru-RU",
progress: 49, progress: 31,
}, },
{ {
name: "Română (Romanian)", name: "Română (Romanian)",
value: "ro-RO", value: "ro-RO",
progress: 7, progress: 12,
}, },
{ {
name: "Português (Portuguese)", name: "Português (Portuguese)",
value: "pt-PT", value: "pt-PT",
progress: 27, progress: 69,
}, },
{ {
name: "Português do Brasil (Brazilian Portuguese)", name: "Português do Brasil (Brazilian Portuguese)",
value: "pt-BR", value: "pt-BR",
progress: 31, progress: 97,
}, },
{ {
name: "Polski (Polish)", name: "Polski (Polish)",
value: "pl-PL", value: "pl-PL",
progress: 69, progress: 99,
}, },
{ {
name: "Norsk (Norwegian)", name: "Norsk (Norwegian)",
@ -78,37 +78,52 @@ export const LOCALES = [
{ {
name: "Nederlands (Dutch)", name: "Nederlands (Dutch)",
value: "nl-NL", value: "nl-NL",
progress: 81, progress: 100,
},
{
name: "Latvian",
value: "lv-LV",
progress: 0,
}, },
{ {
name: "Lithuanian", name: "Lithuanian",
value: "lt-LT", value: "lt-LT",
progress: 65, progress: 99,
}, },
{ {
name: "한국어 (Korean)", name: "한국어 (Korean)",
value: "ko-KR", value: "ko-KR",
progress: 0, progress: 3,
}, },
{ {
name: "日本語 (Japanese)", name: "日本語 (Japanese)",
value: "ja-JP", value: "ja-JP",
progress: 0, progress: 9,
}, },
{ {
name: "Italiano (Italian)", name: "Italiano (Italian)",
value: "it-IT", value: "it-IT",
progress: 81, progress: 98,
}, },
{ {
name: "Magyar (Hungarian)", name: "Magyar (Hungarian)",
value: "hu-HU", value: "hu-HU",
progress: 60, progress: 43,
},
{
name: "Croatian",
value: "hr-HR",
progress: 100,
}, },
{ {
name: "עברית (Hebrew)", name: "עברית (Hebrew)",
value: "he-IL", value: "he-IL",
progress: 24, progress: 99,
},
{
name: "Galician",
value: "gl-ES",
progress: 0,
}, },
{ {
name: "Français (French)", name: "Français (French)",
@ -118,17 +133,17 @@ export const LOCALES = [
{ {
name: "French, Canada", name: "French, Canada",
value: "fr-CA", value: "fr-CA",
progress: 61, progress: 54,
}, },
{ {
name: "Suomi (Finnish)", name: "Suomi (Finnish)",
value: "fi-FI", value: "fi-FI",
progress: 45, progress: 31,
}, },
{ {
name: "Español (Spanish)", name: "Español (Spanish)",
value: "es-ES", value: "es-ES",
progress: 70, progress: 59,
}, },
{ {
name: "American English", name: "American English",
@ -138,46 +153,46 @@ export const LOCALES = [
{ {
name: "British English", name: "British English",
value: "en-GB", value: "en-GB",
progress: 23, progress: 2,
}, },
{ {
name: "Ελληνικά (Greek)", name: "Ελληνικά (Greek)",
value: "el-GR", value: "el-GR",
progress: 51, progress: 33,
}, },
{ {
name: "Deutsch (German)", name: "Deutsch (German)",
value: "de-DE", value: "de-DE",
progress: 99, progress: 100,
}, },
{ {
name: "Dansk (Danish)", name: "Dansk (Danish)",
value: "da-DK", value: "da-DK",
progress: 76, progress: 90,
}, },
{ {
name: "Čeština (Czech)", name: "Čeština (Czech)",
value: "cs-CZ", value: "cs-CZ",
progress: 75, progress: 60,
}, },
{ {
name: "Català (Catalan)", name: "Català (Catalan)",
value: "ca-ES", value: "ca-ES",
progress: 69, progress: 54,
}, },
{ {
name: "Bulgarian", name: "Bulgarian",
value: "bg-BG", value: "bg-BG",
progress: 25, progress: 13,
}, },
{ {
name: "العربية (Arabic)", name: "العربية (Arabic)",
value: "ar-SA", value: "ar-SA",
progress: 18, progress: 7,
}, },
{ {
name: "Afrikaans (Afrikaans)", name: "Afrikaans (Afrikaans)",
value: "af-ZA", value: "af-ZA",
progress: 6, progress: 0,
}, },
] ]

View File

@ -357,7 +357,7 @@ export interface RecipeTimelineEventCreate {
subject: string; subject: string;
eventType: TimelineEventType; eventType: TimelineEventType;
eventMessage?: string; eventMessage?: string;
image?: TimelineEventImage; image?: TimelineEventImage & string;
timestamp?: string; timestamp?: string;
} }
export interface RecipeTimelineEventIn { export interface RecipeTimelineEventIn {
@ -366,7 +366,7 @@ export interface RecipeTimelineEventIn {
subject: string; subject: string;
eventType: TimelineEventType; eventType: TimelineEventType;
eventMessage?: string; eventMessage?: string;
image?: TimelineEventImage; image?: TimelineEventImage & string;
timestamp?: string; timestamp?: string;
} }
export interface RecipeTimelineEventOut { export interface RecipeTimelineEventOut {
@ -375,7 +375,7 @@ export interface RecipeTimelineEventOut {
subject: string; subject: string;
eventType: TimelineEventType; eventType: TimelineEventType;
eventMessage?: string; eventMessage?: string;
image?: TimelineEventImage; image?: TimelineEventImage & string;
timestamp?: string; timestamp?: string;
id: string; id: string;
createdAt: string; createdAt: string;

View File

@ -21,6 +21,15 @@ export interface PaginationQuery {
orderBy?: string; orderBy?: string;
orderDirection?: OrderDirection & string; orderDirection?: OrderDirection & string;
queryFilter?: string; queryFilter?: string;
paginationSeed?: string;
}
export interface RecipeSearchQuery {
cookbook?: string;
requireAllCategories?: boolean;
requireAllTags?: boolean;
requireAllTools?: boolean;
requireAllFoods?: boolean;
search?: string;
} }
export interface SuccessResponse { export interface SuccessResponse {
message: string; message: string;

View File

@ -119,6 +119,9 @@ export interface PrivateUser {
loginAttemps?: number; loginAttemps?: number;
lockedAt?: string; lockedAt?: string;
} }
export interface PasswordResetToken {
token: string;
}
export interface PrivatePasswordResetToken { export interface PrivatePasswordResetToken {
userId: string; userId: string;
token: string; token: string;
@ -148,6 +151,7 @@ export interface UnlockResults {
export interface UpdateGroup { export interface UpdateGroup {
name: string; name: string;
id: string; id: string;
slug: string;
categories?: CategoryBase[]; categories?: CategoryBase[];
webhooks?: unknown[]; webhooks?: unknown[];
} }
@ -234,6 +238,3 @@ export interface UserIn {
export interface ValidateResetToken { export interface ValidateResetToken {
token: string; token: string;
} }
export interface PasswordResetToken {
token: string;
}

View File

@ -158,6 +158,7 @@ export default {
i18n: { i18n: {
locales: [ locales: [
// CODE_GEN_ID: MESSAGE_LOCALES // CODE_GEN_ID: MESSAGE_LOCALES
{ code: "lv-LV", file: "lv-LV.json" },
{ code: "el-GR", file: "el-GR.json" }, { code: "el-GR", file: "el-GR.json" },
{ code: "it-IT", file: "it-IT.json" }, { code: "it-IT", file: "it-IT.json" },
{ code: "ko-KR", file: "ko-KR.json" }, { code: "ko-KR", file: "ko-KR.json" },
@ -177,12 +178,14 @@ export default {
{ code: "lt-LT", file: "lt-LT.json" }, { code: "lt-LT", file: "lt-LT.json" },
{ code: "fr-CA", file: "fr-CA.json" }, { code: "fr-CA", file: "fr-CA.json" },
{ code: "pl-PL", file: "pl-PL.json" }, { code: "pl-PL", file: "pl-PL.json" },
{ code: "hr-HR", file: "hr-HR.json" },
{ code: "da-DK", file: "da-DK.json" }, { code: "da-DK", file: "da-DK.json" },
{ code: "pt-BR", file: "pt-BR.json" }, { code: "pt-BR", file: "pt-BR.json" },
{ code: "de-DE", file: "de-DE.json" }, { code: "de-DE", file: "de-DE.json" },
{ code: "ca-ES", file: "ca-ES.json" }, { code: "ca-ES", file: "ca-ES.json" },
{ code: "sr-SP", file: "sr-SP.json" }, { code: "sr-SP", file: "sr-SP.json" },
{ code: "cs-CZ", file: "cs-CZ.json" }, { code: "cs-CZ", file: "cs-CZ.json" },
{ code: "gl-ES", file: "gl-ES.json" },
{ code: "fr-FR", file: "fr-FR.json" }, { code: "fr-FR", file: "fr-FR.json" },
{ code: "zh-TW", file: "zh-TW.json" }, { code: "zh-TW", file: "zh-TW.json" },
{ code: "af-ZA", file: "af-ZA.json" }, { code: "af-ZA", file: "af-ZA.json" },

View File

@ -18,6 +18,7 @@ import ButtonLink from "@/components/global/ButtonLink.vue";
import ContextMenu from "@/components/global/ContextMenu.vue"; import ContextMenu from "@/components/global/ContextMenu.vue";
import CrudTable from "@/components/global/CrudTable.vue"; import CrudTable from "@/components/global/CrudTable.vue";
import DevDumpJson from "@/components/global/DevDumpJson.vue"; import DevDumpJson from "@/components/global/DevDumpJson.vue";
import DocLink from "@/components/global/DocLink.vue";
import DropZone from "@/components/global/DropZone.vue"; import DropZone from "@/components/global/DropZone.vue";
import HelpIcon from "@/components/global/HelpIcon.vue"; import HelpIcon from "@/components/global/HelpIcon.vue";
import InputColor from "@/components/global/InputColor.vue"; import InputColor from "@/components/global/InputColor.vue";
@ -57,6 +58,7 @@ declare module "vue" {
ContextMenu: typeof ContextMenu; ContextMenu: typeof ContextMenu;
CrudTable: typeof CrudTable; CrudTable: typeof CrudTable;
DevDumpJson: typeof DevDumpJson; DevDumpJson: typeof DevDumpJson;
DocLink: typeof DocLink;
DropZone: typeof DropZone; DropZone: typeof DropZone;
HelpIcon: typeof HelpIcon; HelpIcon: typeof HelpIcon;
InputColor: typeof InputColor; InputColor: typeof InputColor;

View File

@ -45,7 +45,15 @@ from .invite_token import CreateInviteToken, EmailInitationResponse, EmailInvita
from .webhook import CreateWebhook, ReadWebhook, SaveWebhook, WebhookPagination, WebhookType from .webhook import CreateWebhook, ReadWebhook, SaveWebhook, WebhookPagination, WebhookType
__all__ = [ __all__ = [
"GroupAdminUpdate", "CreateGroupPreferences",
"ReadGroupPreferences",
"UpdateGroupPreferences",
"GroupDataExport",
"CreateWebhook",
"ReadWebhook",
"SaveWebhook",
"WebhookPagination",
"WebhookType",
"GroupEventNotifierCreate", "GroupEventNotifierCreate",
"GroupEventNotifierOptions", "GroupEventNotifierOptions",
"GroupEventNotifierOptionsOut", "GroupEventNotifierOptionsOut",
@ -55,13 +63,8 @@ __all__ = [
"GroupEventNotifierSave", "GroupEventNotifierSave",
"GroupEventNotifierUpdate", "GroupEventNotifierUpdate",
"GroupEventPagination", "GroupEventPagination",
"GroupDataExport",
"DataMigrationCreate", "DataMigrationCreate",
"SupportedMigrations", "SupportedMigrations",
"SetPermissions",
"CreateGroupPreferences",
"ReadGroupPreferences",
"UpdateGroupPreferences",
"SeederConfig", "SeederConfig",
"ShoppingListAddRecipeParams", "ShoppingListAddRecipeParams",
"ShoppingListCreate", "ShoppingListCreate",
@ -85,6 +88,8 @@ __all__ = [
"ShoppingListSave", "ShoppingListSave",
"ShoppingListSummary", "ShoppingListSummary",
"ShoppingListUpdate", "ShoppingListUpdate",
"GroupAdminUpdate",
"SetPermissions",
"GroupStatistics", "GroupStatistics",
"GroupStorage", "GroupStorage",
"CreateInviteToken", "CreateInviteToken",
@ -92,9 +97,4 @@ __all__ = [
"EmailInvitation", "EmailInvitation",
"ReadInviteToken", "ReadInviteToken",
"SaveInviteToken", "SaveInviteToken",
"CreateWebhook",
"ReadWebhook",
"SaveWebhook",
"WebhookPagination",
"WebhookType",
] ]

View File

@ -84,27 +84,29 @@ from .recipe_tool import RecipeToolCreate, RecipeToolOut, RecipeToolResponse, Re
from .request_helpers import RecipeDuplicate, RecipeSlug, RecipeZipTokenResponse, SlugResponse, UpdateImageResponse from .request_helpers import RecipeDuplicate, RecipeSlug, RecipeZipTokenResponse, SlugResponse, UpdateImageResponse
__all__ = [ __all__ = [
"CreateRecipe", "RecipeToolCreate",
"CreateRecipeBulk", "RecipeToolOut",
"CreateRecipeByUrlBulk", "RecipeToolResponse",
"Recipe", "RecipeToolSave",
"RecipeCategory", "RecipeTimelineEventCreate",
"RecipeCategoryPagination", "RecipeTimelineEventIn",
"RecipeLastMade", "RecipeTimelineEventOut",
"RecipePagination", "RecipeTimelineEventPagination",
"RecipeSummary", "RecipeTimelineEventUpdate",
"RecipeTag", "TimelineEventImage",
"RecipeTagPagination", "TimelineEventType",
"RecipeTool",
"RecipeToolPagination",
"RecipeAsset", "RecipeAsset",
"AssignCategories", "RecipeSettings",
"AssignSettings", "RecipeShareToken",
"AssignTags", "RecipeShareTokenCreate",
"DeleteRecipes", "RecipeShareTokenSave",
"ExportBase", "RecipeShareTokenSummary",
"ExportRecipes", "RecipeDuplicate",
"ExportTypes", "RecipeSlug",
"RecipeZipTokenResponse",
"SlugResponse",
"UpdateImageResponse",
"RecipeNote",
"CategoryBase", "CategoryBase",
"CategoryIn", "CategoryIn",
"CategoryOut", "CategoryOut",
@ -121,7 +123,17 @@ __all__ = [
"RecipeCommentSave", "RecipeCommentSave",
"RecipeCommentUpdate", "RecipeCommentUpdate",
"UserBase", "UserBase",
"AssignCategories",
"AssignSettings",
"AssignTags",
"DeleteRecipes",
"ExportBase",
"ExportRecipes",
"ExportTypes",
"IngredientReferences",
"RecipeStep",
"RecipeImageTypes", "RecipeImageTypes",
"Nutrition",
"CreateIngredientFood", "CreateIngredientFood",
"CreateIngredientUnit", "CreateIngredientUnit",
"IngredientConfidence", "IngredientConfidence",
@ -140,31 +152,19 @@ __all__ = [
"SaveIngredientFood", "SaveIngredientFood",
"SaveIngredientUnit", "SaveIngredientUnit",
"UnitFoodBase", "UnitFoodBase",
"RecipeNote", "CreateRecipe",
"Nutrition", "CreateRecipeBulk",
"CreateRecipeByUrlBulk",
"Recipe",
"RecipeCategory",
"RecipeCategoryPagination",
"RecipeLastMade",
"RecipePagination",
"RecipeSummary",
"RecipeTag",
"RecipeTagPagination",
"RecipeTool",
"RecipeToolPagination",
"ScrapeRecipe", "ScrapeRecipe",
"ScrapeRecipeTest", "ScrapeRecipeTest",
"RecipeSettings",
"RecipeShareToken",
"RecipeShareTokenCreate",
"RecipeShareTokenSave",
"RecipeShareTokenSummary",
"IngredientReferences",
"RecipeStep",
"RecipeTimelineEventCreate",
"RecipeTimelineEventIn",
"RecipeTimelineEventOut",
"RecipeTimelineEventPagination",
"RecipeTimelineEventUpdate",
"TimelineEventImage",
"TimelineEventType",
"RecipeToolCreate",
"RecipeToolOut",
"RecipeToolResponse",
"RecipeToolSave",
"RecipeDuplicate",
"RecipeSlug",
"RecipeZipTokenResponse",
"SlugResponse",
"UpdateImageResponse",
] ]

View File

@ -1,6 +1,7 @@
# This file is auto-generated by gen_schema_exports.py # This file is auto-generated by gen_schema_exports.py
from .pagination import OrderDirection, PaginationBase, PaginationQuery from .pagination import OrderDirection, PaginationBase, PaginationQuery, RecipeSearchQuery
from .query_filter import LogicalOperator, QueryFilter, QueryFilterComponent, RelationalOperator from .query_filter import LogicalOperator, QueryFilter, QueryFilterComponent, RelationalKeyword, RelationalOperator
from .query_search import SearchFilter
from .responses import ErrorResponse, FileTokenResponse, SuccessResponse from .responses import ErrorResponse, FileTokenResponse, SuccessResponse
from .validation import ValidationResponse from .validation import ValidationResponse
@ -8,12 +9,15 @@ __all__ = [
"ErrorResponse", "ErrorResponse",
"FileTokenResponse", "FileTokenResponse",
"SuccessResponse", "SuccessResponse",
"SearchFilter",
"LogicalOperator", "LogicalOperator",
"QueryFilter", "QueryFilter",
"QueryFilterComponent", "QueryFilterComponent",
"RelationalKeyword",
"RelationalOperator", "RelationalOperator",
"OrderDirection", "OrderDirection",
"PaginationBase", "PaginationBase",
"PaginationQuery", "PaginationQuery",
"RecipeSearchQuery",
"ValidationResponse", "ValidationResponse",
] ]

View File

@ -21,6 +21,7 @@ from .user import (
) )
from .user_passwords import ( from .user_passwords import (
ForgotPassword, ForgotPassword,
PasswordResetToken,
PrivatePasswordResetToken, PrivatePasswordResetToken,
ResetPassword, ResetPassword,
SavePasswordResetToken, SavePasswordResetToken,
@ -49,6 +50,7 @@ __all__ = [
"UserOut", "UserOut",
"UserPagination", "UserPagination",
"ForgotPassword", "ForgotPassword",
"PasswordResetToken",
"PrivatePasswordResetToken", "PrivatePasswordResetToken",
"ResetPassword", "ResetPassword",
"SavePasswordResetToken", "SavePasswordResetToken",