From 8eb2ba95129dc29e5caa331ab1858188795a42de Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 16 Mar 2025 15:38:37 +0100 Subject: [PATCH] applied custom openapi generator fix for omit generation --- vue3/src/openapi/.openapi-generator/VERSION | 2 +- vue3/src/openapi/apis/ApiApi.ts | 204 ++++---- vue3/src/openapi/models/AccessToken.ts | 7 +- vue3/src/openapi/models/AuthToken.ts | 7 +- vue3/src/openapi/models/AutoMealPlan.ts | 10 +- vue3/src/openapi/models/Automation.ts | 18 +- vue3/src/openapi/models/AutomationTypeEnum.ts | 6 +- vue3/src/openapi/models/BaseUnitEnum.ts | 6 +- vue3/src/openapi/models/BookmarkletImport.ts | 9 +- .../openapi/models/BookmarkletImportList.ts | 9 +- .../openapi/models/ConnectorConfigConfig.ts | 13 +- vue3/src/openapi/models/CookLog.ts | 14 +- vue3/src/openapi/models/CustomFilter.ts | 8 +- vue3/src/openapi/models/DefaultPageEnum.ts | 6 +- vue3/src/openapi/models/DeleteEnum.ts | 6 +- vue3/src/openapi/models/ExportLog.ts | 7 +- vue3/src/openapi/models/Food.ts | 37 +- vue3/src/openapi/models/FoodInheritField.ts | 11 +- vue3/src/openapi/models/FoodShoppingUpdate.ts | 14 +- vue3/src/openapi/models/FoodSimple.ts | 9 +- vue3/src/openapi/models/Group.ts | 7 +- vue3/src/openapi/models/ImportLog.ts | 8 +- vue3/src/openapi/models/Ingredient.ts | 13 +- vue3/src/openapi/models/IngredientString.ts | 7 +- vue3/src/openapi/models/InviteLink.ts | 12 +- vue3/src/openapi/models/Keyword.ts | 7 +- vue3/src/openapi/models/KeywordLabel.ts | 7 +- vue3/src/openapi/models/Localization.ts | 7 +- vue3/src/openapi/models/MealPlan.ts | 14 +- vue3/src/openapi/models/MealType.ts | 11 +- vue3/src/openapi/models/MethodEnum.ts | 6 +- .../openapi/models/NutritionInformation.ts | 9 +- vue3/src/openapi/models/OpenDataCategory.ts | 8 +- vue3/src/openapi/models/OpenDataConversion.ts | 10 +- vue3/src/openapi/models/OpenDataFood.ts | 19 +- .../openapi/models/OpenDataFoodProperty.ts | 8 +- vue3/src/openapi/models/OpenDataProperty.ts | 10 +- vue3/src/openapi/models/OpenDataStore.ts | 9 +- .../openapi/models/OpenDataStoreCategory.ts | 8 +- vue3/src/openapi/models/OpenDataUnit.ts | 12 +- .../openapi/models/OpenDataUnitTypeEnum.ts | 6 +- vue3/src/openapi/models/OpenDataVersion.ts | 7 +- .../openapi/models/PaginatedAutomationList.ts | 12 +- .../PaginatedBookmarkletImportListList.ts | 12 +- .../openapi/models/PaginatedCookLogList.ts | 12 +- .../models/PaginatedCustomFilterList.ts | 12 +- .../openapi/models/PaginatedExportLogList.ts | 12 +- vue3/src/openapi/models/PaginatedFoodList.ts | 12 +- .../openapi/models/PaginatedImportLogList.ts | 12 +- .../openapi/models/PaginatedIngredientList.ts | 12 +- .../openapi/models/PaginatedInviteLinkList.ts | 12 +- .../openapi/models/PaginatedKeywordList.ts | 12 +- .../openapi/models/PaginatedMealPlanList.ts | 12 +- .../openapi/models/PaginatedMealTypeList.ts | 12 +- .../openapi/models/PaginatedPropertyList.ts | 12 +- .../models/PaginatedPropertyTypeList.ts | 12 +- .../models/PaginatedRecipeBookEntryList.ts | 12 +- .../openapi/models/PaginatedRecipeBookList.ts | 12 +- .../models/PaginatedRecipeOverviewList.ts | 12 +- .../models/PaginatedShoppingListEntryList.ts | 12 +- .../models/PaginatedShoppingListRecipeList.ts | 12 +- vue3/src/openapi/models/PaginatedSpaceList.ts | 12 +- vue3/src/openapi/models/PaginatedStepList.ts | 12 +- .../PaginatedSupermarketCategoryList.ts | 12 +- ...aginatedSupermarketCategoryRelationList.ts | 12 +- .../models/PaginatedSupermarketList.ts | 12 +- vue3/src/openapi/models/PaginatedSyncList.ts | 12 +- .../openapi/models/PaginatedSyncLogList.ts | 12 +- .../models/PaginatedUnitConversionList.ts | 12 +- vue3/src/openapi/models/PaginatedUnitList.ts | 12 +- .../openapi/models/PaginatedUserFileList.ts | 12 +- .../openapi/models/PaginatedUserSpaceList.ts | 12 +- .../openapi/models/PaginatedViewLogList.ts | 12 +- vue3/src/openapi/models/ParsedIngredient.ts | 7 +- vue3/src/openapi/models/PatchedAccessToken.ts | 7 +- vue3/src/openapi/models/PatchedAutomation.ts | 18 +- .../models/PatchedBookmarkletImport.ts | 9 +- .../models/PatchedConnectorConfigConfig.ts | 13 +- vue3/src/openapi/models/PatchedCookLog.ts | 14 +- .../src/openapi/models/PatchedCustomFilter.ts | 8 +- vue3/src/openapi/models/PatchedExportLog.ts | 7 +- vue3/src/openapi/models/PatchedFood.ts | 37 +- vue3/src/openapi/models/PatchedImportLog.ts | 8 +- vue3/src/openapi/models/PatchedIngredient.ts | 17 +- vue3/src/openapi/models/PatchedInviteLink.ts | 12 +- vue3/src/openapi/models/PatchedKeyword.ts | 7 +- vue3/src/openapi/models/PatchedMealPlan.ts | 14 +- vue3/src/openapi/models/PatchedMealType.ts | 11 +- .../openapi/models/PatchedOpenDataCategory.ts | 8 +- .../models/PatchedOpenDataConversion.ts | 10 +- .../src/openapi/models/PatchedOpenDataFood.ts | 21 +- .../openapi/models/PatchedOpenDataProperty.ts | 10 +- .../openapi/models/PatchedOpenDataStore.ts | 11 +- .../src/openapi/models/PatchedOpenDataUnit.ts | 12 +- .../openapi/models/PatchedOpenDataVersion.ts | 7 +- vue3/src/openapi/models/PatchedProperty.ts | 10 +- .../src/openapi/models/PatchedPropertyType.ts | 15 +- vue3/src/openapi/models/PatchedRecipe.ts | 26 +- vue3/src/openapi/models/PatchedRecipeBook.ts | 11 +- .../openapi/models/PatchedRecipeBookEntry.ts | 9 +- .../models/PatchedShoppingListEntry.ts | 23 +- .../models/PatchedShoppingListRecipe.ts | 14 +- vue3/src/openapi/models/PatchedSpace.ts | 34 +- vue3/src/openapi/models/PatchedStep.ts | 15 +- vue3/src/openapi/models/PatchedStorage.ts | 16 +- vue3/src/openapi/models/PatchedSupermarket.ts | 12 +- .../models/PatchedSupermarketCategory.ts | 9 +- .../PatchedSupermarketCategoryRelation.ts | 8 +- vue3/src/openapi/models/PatchedSync.ts | 9 +- vue3/src/openapi/models/PatchedUnit.ts | 15 +- .../openapi/models/PatchedUnitConversion.ts | 13 +- vue3/src/openapi/models/PatchedUser.ts | 7 +- .../openapi/models/PatchedUserPreference.ts | 21 +- vue3/src/openapi/models/PatchedUserSpace.ts | 13 +- vue3/src/openapi/models/PatchedViewLog.ts | 7 +- vue3/src/openapi/models/Property.ts | 8 +- vue3/src/openapi/models/PropertyType.ts | 15 +- vue3/src/openapi/models/Recipe.ts | 18 +- vue3/src/openapi/models/RecipeBook.ts | 11 +- vue3/src/openapi/models/RecipeBookEntry.ts | 9 +- vue3/src/openapi/models/RecipeFlat.ts | 9 +- vue3/src/openapi/models/RecipeFromSource.ts | 13 +- .../models/RecipeFromSourceResponse.ts | 9 +- vue3/src/openapi/models/RecipeImage.ts | 11 +- vue3/src/openapi/models/RecipeOverview.ts | 11 +- .../openapi/models/RecipeShoppingUpdate.ts | 15 +- vue3/src/openapi/models/RecipeSimple.ts | 7 +- vue3/src/openapi/models/ServerSettings.ts | 7 +- vue3/src/openapi/models/ShareLink.ts | 7 +- vue3/src/openapi/models/ShoppingListEntry.ts | 21 +- .../openapi/models/ShoppingListEntryBulk.ts | 7 +- .../models/ShoppingListEntryBulkCreate.ts | 8 +- .../models/ShoppingListEntrySimpleCreate.ts | 7 +- vue3/src/openapi/models/ShoppingListRecipe.ts | 14 +- .../openapi/models/SourceImportDuplicate.ts | 7 +- vue3/src/openapi/models/SourceImportFood.ts | 7 +- .../openapi/models/SourceImportIngredient.ts | 9 +- .../src/openapi/models/SourceImportKeyword.ts | 9 +- .../openapi/models/SourceImportProperty.ts | 8 +- .../models/SourceImportPropertyType.ts | 7 +- vue3/src/openapi/models/SourceImportRecipe.ts | 10 +- vue3/src/openapi/models/SourceImportStep.ts | 8 +- vue3/src/openapi/models/SourceImportUnit.ts | 7 +- vue3/src/openapi/models/Space.ts | 34 +- .../openapi/models/SpaceNavTextColorEnum.ts | 6 +- vue3/src/openapi/models/SpaceThemeEnum.ts | 6 +- vue3/src/openapi/models/Step.ts | 13 +- vue3/src/openapi/models/Storage.ts | 16 +- vue3/src/openapi/models/Supermarket.ts | 12 +- .../src/openapi/models/SupermarketCategory.ts | 9 +- .../models/SupermarketCategoryRelation.ts | 8 +- vue3/src/openapi/models/Sync.ts | 9 +- vue3/src/openapi/models/SyncLog.ts | 7 +- vue3/src/openapi/models/ThemeEnum.ts | 6 +- vue3/src/openapi/models/Unit.ts | 15 +- vue3/src/openapi/models/UnitConversion.ts | 13 +- vue3/src/openapi/models/User.ts | 7 +- vue3/src/openapi/models/UserFile.ts | 8 +- vue3/src/openapi/models/UserFileView.ts | 8 +- vue3/src/openapi/models/UserPreference.ts | 21 +- .../models/UserPreferenceNavTextColorEnum.ts | 6 +- vue3/src/openapi/models/UserSpace.ts | 11 +- vue3/src/openapi/models/ViewLog.ts | 7 +- vue3/src/openapi/openapitools.json | 2 +- vue3/src/openapi/templates/apis.mustache | 446 ++++++++++++++++++ .../openapi/templates/modelGeneric.mustache | 160 +++++++ 166 files changed, 1125 insertions(+), 1519 deletions(-) create mode 100644 vue3/src/openapi/templates/apis.mustache create mode 100644 vue3/src/openapi/templates/modelGeneric.mustache diff --git a/vue3/src/openapi/.openapi-generator/VERSION b/vue3/src/openapi/.openapi-generator/VERSION index 758bb9c82..93c8ddab9 100644 --- a/vue3/src/openapi/.openapi-generator/VERSION +++ b/vue3/src/openapi/.openapi-generator/VERSION @@ -1 +1 @@ -7.10.0 +7.6.0 diff --git a/vue3/src/openapi/apis/ApiApi.ts b/vue3/src/openapi/apis/ApiApi.ts index 313428d6a..fab804fac 100644 --- a/vue3/src/openapi/apis/ApiApi.ts +++ b/vue3/src/openapi/apis/ApiApi.ts @@ -442,7 +442,7 @@ export interface ApiAutoPlanCreateRequest { } export interface ApiAutomationCreateRequest { - automation: Omit; + automation: Omit; } export interface ApiAutomationDestroyRequest { @@ -457,7 +457,7 @@ export interface ApiAutomationListRequest { export interface ApiAutomationPartialUpdateRequest { id: number; - patchedAutomation?: Omit; + patchedAutomation?: Omit; } export interface ApiAutomationRetrieveRequest { @@ -466,11 +466,11 @@ export interface ApiAutomationRetrieveRequest { export interface ApiAutomationUpdateRequest { id: number; - automation: Omit; + automation: Omit; } export interface ApiBookmarkletImportCreateRequest { - bookmarkletImport: Omit; + bookmarkletImport: Omit; } export interface ApiBookmarkletImportDestroyRequest { @@ -484,7 +484,7 @@ export interface ApiBookmarkletImportListRequest { export interface ApiBookmarkletImportPartialUpdateRequest { id: number; - patchedBookmarkletImport?: Omit; + patchedBookmarkletImport?: Omit; } export interface ApiBookmarkletImportRetrieveRequest { @@ -493,11 +493,11 @@ export interface ApiBookmarkletImportRetrieveRequest { export interface ApiBookmarkletImportUpdateRequest { id: number; - bookmarkletImport: Omit; + bookmarkletImport: Omit; } export interface ApiConnectorConfigCreateRequest { - connectorConfigConfig: Omit; + connectorConfigConfig: Omit; } export interface ApiConnectorConfigDestroyRequest { @@ -506,7 +506,7 @@ export interface ApiConnectorConfigDestroyRequest { export interface ApiConnectorConfigPartialUpdateRequest { id: number; - patchedConnectorConfigConfig?: Omit; + patchedConnectorConfigConfig?: Omit; } export interface ApiConnectorConfigRetrieveRequest { @@ -515,11 +515,11 @@ export interface ApiConnectorConfigRetrieveRequest { export interface ApiConnectorConfigUpdateRequest { id: number; - connectorConfigConfig: Omit; + connectorConfigConfig: Omit; } export interface ApiCookLogCreateRequest { - cookLog: Omit; + cookLog: Omit; } export interface ApiCookLogDestroyRequest { @@ -534,7 +534,7 @@ export interface ApiCookLogListRequest { export interface ApiCookLogPartialUpdateRequest { id: number; - patchedCookLog?: Omit; + patchedCookLog?: Omit; } export interface ApiCookLogRetrieveRequest { @@ -543,11 +543,11 @@ export interface ApiCookLogRetrieveRequest { export interface ApiCookLogUpdateRequest { id: number; - cookLog: Omit; + cookLog: Omit; } export interface ApiCustomFilterCreateRequest { - customFilter: Omit; + customFilter: Omit; } export interface ApiCustomFilterDestroyRequest { @@ -566,7 +566,7 @@ export interface ApiCustomFilterListRequest { export interface ApiCustomFilterPartialUpdateRequest { id: number; - patchedCustomFilter?: Omit; + patchedCustomFilter?: Omit; } export interface ApiCustomFilterRetrieveRequest { @@ -575,7 +575,7 @@ export interface ApiCustomFilterRetrieveRequest { export interface ApiCustomFilterUpdateRequest { id: number; - customFilter: Omit; + customFilter: Omit; } export interface ApiDownloadFileRetrieveRequest { @@ -583,7 +583,7 @@ export interface ApiDownloadFileRetrieveRequest { } export interface ApiExportLogCreateRequest { - exportLog: Omit; + exportLog: Omit; } export interface ApiExportLogDestroyRequest { @@ -597,7 +597,7 @@ export interface ApiExportLogListRequest { export interface ApiExportLogPartialUpdateRequest { id: number; - patchedExportLog?: Omit; + patchedExportLog?: Omit; } export interface ApiExportLogRetrieveRequest { @@ -606,11 +606,11 @@ export interface ApiExportLogRetrieveRequest { export interface ApiExportLogUpdateRequest { id: number; - exportLog: Omit; + exportLog: Omit; } export interface ApiFoodCreateRequest { - food: Omit; + food: Omit; } export interface ApiFoodDestroyRequest { @@ -619,7 +619,7 @@ export interface ApiFoodDestroyRequest { export interface ApiFoodFdcCreateRequest { id: number; - food: Omit; + food: Omit; } export interface ApiFoodInheritFieldRetrieveRequest { @@ -640,18 +640,18 @@ export interface ApiFoodListRequest { export interface ApiFoodMergeUpdateRequest { id: number; target: number; - food: Omit; + food: Omit; } export interface ApiFoodMoveUpdateRequest { id: number; parent: number; - food: Omit; + food: Omit; } export interface ApiFoodPartialUpdateRequest { id: number; - patchedFood?: Omit; + patchedFood?: Omit; } export interface ApiFoodRetrieveRequest { @@ -665,7 +665,7 @@ export interface ApiFoodShoppingUpdateRequest { export interface ApiFoodUpdateRequest { id: number; - food: Omit; + food: Omit; } export interface ApiGetExternalFileLinkRetrieveRequest { @@ -689,7 +689,7 @@ export interface ApiImageToRecipeCreate2Request { } export interface ApiImportLogCreateRequest { - importLog: Omit; + importLog: Omit; } export interface ApiImportLogDestroyRequest { @@ -703,7 +703,7 @@ export interface ApiImportLogListRequest { export interface ApiImportLogPartialUpdateRequest { id: number; - patchedImportLog?: Omit; + patchedImportLog?: Omit; } export interface ApiImportLogRetrieveRequest { @@ -712,11 +712,11 @@ export interface ApiImportLogRetrieveRequest { export interface ApiImportLogUpdateRequest { id: number; - importLog: Omit; + importLog: Omit; } export interface ApiIngredientCreateRequest { - ingredient: Omit; + ingredient: Omit; } export interface ApiIngredientDestroyRequest { @@ -736,7 +736,7 @@ export interface ApiIngredientListRequest { export interface ApiIngredientPartialUpdateRequest { id: number; - patchedIngredient?: Omit; + patchedIngredient?: Omit; } export interface ApiIngredientRetrieveRequest { @@ -745,11 +745,11 @@ export interface ApiIngredientRetrieveRequest { export interface ApiIngredientUpdateRequest { id: number; - ingredient: Omit; + ingredient: Omit; } export interface ApiInviteLinkCreateRequest { - inviteLink: Omit; + inviteLink: Omit; } export interface ApiInviteLinkDestroyRequest { @@ -768,7 +768,7 @@ export interface ApiInviteLinkListRequest { export interface ApiInviteLinkPartialUpdateRequest { id: number; - patchedInviteLink?: Omit; + patchedInviteLink?: Omit; } export interface ApiInviteLinkRetrieveRequest { @@ -777,11 +777,11 @@ export interface ApiInviteLinkRetrieveRequest { export interface ApiInviteLinkUpdateRequest { id: number; - inviteLink: Omit; + inviteLink: Omit; } export interface ApiKeywordCreateRequest { - keyword: Omit; + keyword: Omit; } export interface ApiKeywordDestroyRequest { @@ -802,18 +802,18 @@ export interface ApiKeywordListRequest { export interface ApiKeywordMergeUpdateRequest { id: number; target: number; - keyword: Omit; + keyword: Omit; } export interface ApiKeywordMoveUpdateRequest { id: number; parent: number; - keyword: Omit; + keyword: Omit; } export interface ApiKeywordPartialUpdateRequest { id: number; - patchedKeyword?: Omit; + patchedKeyword?: Omit; } export interface ApiKeywordRetrieveRequest { @@ -822,11 +822,11 @@ export interface ApiKeywordRetrieveRequest { export interface ApiKeywordUpdateRequest { id: number; - keyword: Omit; + keyword: Omit; } export interface ApiMealPlanCreateRequest { - mealPlan: Omit; + mealPlan: Omit; } export interface ApiMealPlanDestroyRequest { @@ -849,7 +849,7 @@ export interface ApiMealPlanListRequest { export interface ApiMealPlanPartialUpdateRequest { id: number; - patchedMealPlan?: Omit; + patchedMealPlan?: Omit; } export interface ApiMealPlanRetrieveRequest { @@ -858,11 +858,11 @@ export interface ApiMealPlanRetrieveRequest { export interface ApiMealPlanUpdateRequest { id: number; - mealPlan: Omit; + mealPlan: Omit; } export interface ApiMealTypeCreateRequest { - mealType: Omit; + mealType: Omit; } export interface ApiMealTypeDestroyRequest { @@ -876,7 +876,7 @@ export interface ApiMealTypeListRequest { export interface ApiMealTypePartialUpdateRequest { id: number; - patchedMealType?: Omit; + patchedMealType?: Omit; } export interface ApiMealTypeRetrieveRequest { @@ -885,11 +885,11 @@ export interface ApiMealTypeRetrieveRequest { export interface ApiMealTypeUpdateRequest { id: number; - mealType: Omit; + mealType: Omit; } export interface ApiOpenDataCategoryCreateRequest { - openDataCategory: Omit; + openDataCategory: Omit; } export interface ApiOpenDataCategoryDestroyRequest { @@ -898,7 +898,7 @@ export interface ApiOpenDataCategoryDestroyRequest { export interface ApiOpenDataCategoryPartialUpdateRequest { id: number; - patchedOpenDataCategory?: Omit; + patchedOpenDataCategory?: Omit; } export interface ApiOpenDataCategoryRetrieveRequest { @@ -907,11 +907,11 @@ export interface ApiOpenDataCategoryRetrieveRequest { export interface ApiOpenDataCategoryUpdateRequest { id: number; - openDataCategory: Omit; + openDataCategory: Omit; } export interface ApiOpenDataConversionCreateRequest { - openDataConversion: Omit; + openDataConversion: Omit; } export interface ApiOpenDataConversionDestroyRequest { @@ -920,7 +920,7 @@ export interface ApiOpenDataConversionDestroyRequest { export interface ApiOpenDataConversionPartialUpdateRequest { id: number; - patchedOpenDataConversion?: Omit; + patchedOpenDataConversion?: Omit; } export interface ApiOpenDataConversionRetrieveRequest { @@ -929,7 +929,7 @@ export interface ApiOpenDataConversionRetrieveRequest { export interface ApiOpenDataConversionUpdateRequest { id: number; - openDataConversion: Omit; + openDataConversion: Omit; } export interface ApiOpenDataFDCRetrieveRequest { @@ -937,7 +937,7 @@ export interface ApiOpenDataFDCRetrieveRequest { } export interface ApiOpenDataFoodCreateRequest { - openDataFood: Omit; + openDataFood: Omit; } export interface ApiOpenDataFoodDestroyRequest { @@ -946,7 +946,7 @@ export interface ApiOpenDataFoodDestroyRequest { export interface ApiOpenDataFoodPartialUpdateRequest { id: number; - patchedOpenDataFood?: Omit; + patchedOpenDataFood?: Omit; } export interface ApiOpenDataFoodRetrieveRequest { @@ -955,11 +955,11 @@ export interface ApiOpenDataFoodRetrieveRequest { export interface ApiOpenDataFoodUpdateRequest { id: number; - openDataFood: Omit; + openDataFood: Omit; } export interface ApiOpenDataPropertyCreateRequest { - openDataProperty: Omit; + openDataProperty: Omit; } export interface ApiOpenDataPropertyDestroyRequest { @@ -968,7 +968,7 @@ export interface ApiOpenDataPropertyDestroyRequest { export interface ApiOpenDataPropertyPartialUpdateRequest { id: number; - patchedOpenDataProperty?: Omit; + patchedOpenDataProperty?: Omit; } export interface ApiOpenDataPropertyRetrieveRequest { @@ -977,11 +977,11 @@ export interface ApiOpenDataPropertyRetrieveRequest { export interface ApiOpenDataPropertyUpdateRequest { id: number; - openDataProperty: Omit; + openDataProperty: Omit; } export interface ApiOpenDataStoreCreateRequest { - openDataStore: Omit; + openDataStore: Omit; } export interface ApiOpenDataStoreDestroyRequest { @@ -990,7 +990,7 @@ export interface ApiOpenDataStoreDestroyRequest { export interface ApiOpenDataStorePartialUpdateRequest { id: number; - patchedOpenDataStore?: Omit; + patchedOpenDataStore?: Omit; } export interface ApiOpenDataStoreRetrieveRequest { @@ -999,11 +999,11 @@ export interface ApiOpenDataStoreRetrieveRequest { export interface ApiOpenDataStoreUpdateRequest { id: number; - openDataStore: Omit; + openDataStore: Omit; } export interface ApiOpenDataUnitCreateRequest { - openDataUnit: Omit; + openDataUnit: Omit; } export interface ApiOpenDataUnitDestroyRequest { @@ -1012,7 +1012,7 @@ export interface ApiOpenDataUnitDestroyRequest { export interface ApiOpenDataUnitPartialUpdateRequest { id: number; - patchedOpenDataUnit?: Omit; + patchedOpenDataUnit?: Omit; } export interface ApiOpenDataUnitRetrieveRequest { @@ -1021,7 +1021,7 @@ export interface ApiOpenDataUnitRetrieveRequest { export interface ApiOpenDataUnitUpdateRequest { id: number; - openDataUnit: Omit; + openDataUnit: Omit; } export interface ApiOpenDataVersionCreateRequest { @@ -1102,7 +1102,7 @@ export interface ApiPropertyUpdateRequest { } export interface ApiRecipeBookCreateRequest { - recipeBook: Omit; + recipeBook: Omit; } export interface ApiRecipeBookDestroyRequest { @@ -1110,7 +1110,7 @@ export interface ApiRecipeBookDestroyRequest { } export interface ApiRecipeBookEntryCreateRequest { - recipeBookEntry: Omit; + recipeBookEntry: Omit; } export interface ApiRecipeBookEntryDestroyRequest { @@ -1126,7 +1126,7 @@ export interface ApiRecipeBookEntryListRequest { export interface ApiRecipeBookEntryPartialUpdateRequest { id: number; - patchedRecipeBookEntry?: Omit; + patchedRecipeBookEntry?: Omit; } export interface ApiRecipeBookEntryRetrieveRequest { @@ -1135,7 +1135,7 @@ export interface ApiRecipeBookEntryRetrieveRequest { export interface ApiRecipeBookEntryUpdateRequest { id: number; - recipeBookEntry: Omit; + recipeBookEntry: Omit; } export interface ApiRecipeBookListRequest { @@ -1151,7 +1151,7 @@ export interface ApiRecipeBookListRequest { export interface ApiRecipeBookPartialUpdateRequest { id: number; - patchedRecipeBook?: Omit; + patchedRecipeBook?: Omit; } export interface ApiRecipeBookRetrieveRequest { @@ -1160,11 +1160,11 @@ export interface ApiRecipeBookRetrieveRequest { export interface ApiRecipeBookUpdateRequest { id: number; - recipeBook: Omit; + recipeBook: Omit; } export interface ApiRecipeCreateRequest { - recipe: Omit; + recipe: Omit; } export interface ApiRecipeDestroyRequest { @@ -1177,8 +1177,8 @@ export interface ApiRecipeFromSourceCreateRequest { export interface ApiRecipeImageUpdateRequest { id: number; - image?: string | null; - imageUrl?: string | null; + image?: string; + imageUrl?: string; } export interface ApiRecipeListRequest { @@ -1217,7 +1217,7 @@ export interface ApiRecipeListRequest { export interface ApiRecipePartialUpdateRequest { id: number; - patchedRecipe?: Omit; + patchedRecipe?: Omit; } export interface ApiRecipeRelatedListRequest { @@ -1236,7 +1236,7 @@ export interface ApiRecipeShoppingUpdateRequest { export interface ApiRecipeUpdateRequest { id: number; - recipe: Omit; + recipe: Omit; } export interface ApiShareLinkRetrieveRequest { @@ -1248,7 +1248,7 @@ export interface ApiShoppingListEntryBulkCreateRequest { } export interface ApiShoppingListEntryCreateRequest { - shoppingListEntry: Omit; + shoppingListEntry: Omit; } export interface ApiShoppingListEntryDestroyRequest { @@ -1264,7 +1264,7 @@ export interface ApiShoppingListEntryListRequest { export interface ApiShoppingListEntryPartialUpdateRequest { id: number; - patchedShoppingListEntry?: Omit; + patchedShoppingListEntry?: Omit; } export interface ApiShoppingListEntryRetrieveRequest { @@ -1273,7 +1273,7 @@ export interface ApiShoppingListEntryRetrieveRequest { export interface ApiShoppingListEntryUpdateRequest { id: number; - shoppingListEntry: Omit; + shoppingListEntry: Omit; } export interface ApiShoppingListRecipeBulkCreateEntriesCreateRequest { @@ -1282,7 +1282,7 @@ export interface ApiShoppingListRecipeBulkCreateEntriesCreateRequest { } export interface ApiShoppingListRecipeCreateRequest { - shoppingListRecipe: Omit; + shoppingListRecipe: Omit; } export interface ApiShoppingListRecipeDestroyRequest { @@ -1297,7 +1297,7 @@ export interface ApiShoppingListRecipeListRequest { export interface ApiShoppingListRecipePartialUpdateRequest { id: number; - patchedShoppingListRecipe?: Omit; + patchedShoppingListRecipe?: Omit; } export interface ApiShoppingListRecipeRetrieveRequest { @@ -1306,7 +1306,7 @@ export interface ApiShoppingListRecipeRetrieveRequest { export interface ApiShoppingListRecipeUpdateRequest { id: number; - shoppingListRecipe: Omit; + shoppingListRecipe: Omit; } export interface ApiSpaceListRequest { @@ -1316,7 +1316,7 @@ export interface ApiSpaceListRequest { export interface ApiSpacePartialUpdateRequest { id: number; - patchedSpace?: Omit; + patchedSpace?: Omit; } export interface ApiSpaceRetrieveRequest { @@ -1324,7 +1324,7 @@ export interface ApiSpaceRetrieveRequest { } export interface ApiStepCreateRequest { - step: Omit; + step: Omit; } export interface ApiStepDestroyRequest { @@ -1340,7 +1340,7 @@ export interface ApiStepListRequest { export interface ApiStepPartialUpdateRequest { id: number; - patchedStep?: Omit; + patchedStep?: Omit; } export interface ApiStepRetrieveRequest { @@ -1349,11 +1349,11 @@ export interface ApiStepRetrieveRequest { export interface ApiStepUpdateRequest { id: number; - step: Omit; + step: Omit; } export interface ApiStorageCreateRequest { - storage: Omit; + storage: Omit; } export interface ApiStorageDestroyRequest { @@ -1362,7 +1362,7 @@ export interface ApiStorageDestroyRequest { export interface ApiStoragePartialUpdateRequest { id: number; - patchedStorage?: Omit; + patchedStorage?: Omit; } export interface ApiStorageRetrieveRequest { @@ -1371,7 +1371,7 @@ export interface ApiStorageRetrieveRequest { export interface ApiStorageUpdateRequest { id: number; - storage: Omit; + storage: Omit; } export interface ApiSupermarketCategoryCreateRequest { @@ -1443,7 +1443,7 @@ export interface ApiSupermarketCategoryUpdateRequest { } export interface ApiSupermarketCreateRequest { - supermarket: Omit; + supermarket: Omit; } export interface ApiSupermarketDestroyRequest { @@ -1461,7 +1461,7 @@ export interface ApiSupermarketListRequest { export interface ApiSupermarketPartialUpdateRequest { id: number; - patchedSupermarket?: Omit; + patchedSupermarket?: Omit; } export interface ApiSupermarketRetrieveRequest { @@ -1470,7 +1470,7 @@ export interface ApiSupermarketRetrieveRequest { export interface ApiSupermarketUpdateRequest { id: number; - supermarket: Omit; + supermarket: Omit; } export interface ApiSwitchActiveSpaceRetrieveRequest { @@ -1478,7 +1478,7 @@ export interface ApiSwitchActiveSpaceRetrieveRequest { } export interface ApiSyncCreateRequest { - sync: Omit; + sync: Omit; } export interface ApiSyncDestroyRequest { @@ -1501,7 +1501,7 @@ export interface ApiSyncLogRetrieveRequest { export interface ApiSyncPartialUpdateRequest { id: number; - patchedSync?: Omit; + patchedSync?: Omit; } export interface ApiSyncRetrieveRequest { @@ -1510,7 +1510,7 @@ export interface ApiSyncRetrieveRequest { export interface ApiSyncUpdateRequest { id: number; - sync: Omit; + sync: Omit; } export interface ApiUnitConversionCreateRequest { @@ -1636,12 +1636,12 @@ export interface ApiUserListRequest { export interface ApiUserPartialUpdateRequest { id: number; - patchedUser?: Omit; + patchedUser?: Omit; } export interface ApiUserPreferencePartialUpdateRequest { user: number; - patchedUserPreference?: Omit; + patchedUserPreference?: Omit; } export interface ApiUserPreferenceRetrieveRequest { @@ -1664,7 +1664,7 @@ export interface ApiUserSpaceListRequest { export interface ApiUserSpacePartialUpdateRequest { id: number; - patchedUserSpace?: Omit; + patchedUserSpace?: Omit; } export interface ApiUserSpaceRetrieveRequest { @@ -1673,11 +1673,11 @@ export interface ApiUserSpaceRetrieveRequest { export interface ApiUserSpaceUpdateRequest { id: number; - userSpace: Omit; + userSpace: Omit; } export interface ApiViewLogCreateRequest { - viewLog: Omit; + viewLog: Omit; } export interface ApiViewLogDestroyRequest { @@ -1691,7 +1691,7 @@ export interface ApiViewLogListRequest { export interface ApiViewLogPartialUpdateRequest { id: number; - patchedViewLog?: Omit; + patchedViewLog?: Omit; } export interface ApiViewLogRetrieveRequest { @@ -1700,7 +1700,7 @@ export interface ApiViewLogRetrieveRequest { export interface ApiViewLogUpdateRequest { id: number; - viewLog: Omit; + viewLog: Omit; } /** @@ -12217,7 +12217,7 @@ export class ApiApi extends runtime.BaseAPI { } if (requestParameters['createdAt'] != null) { - formParams.append('created_at', (requestParameters['createdAt'] as any).toISOString()); + formParams.append('created_at', requestParameters['createdAt'] as any); } const response = await this.request({ @@ -12391,7 +12391,7 @@ export class ApiApi extends runtime.BaseAPI { } if (requestParameters['createdAt'] != null) { - formParams.append('created_at', (requestParameters['createdAt'] as any).toISOString()); + formParams.append('created_at', requestParameters['createdAt'] as any); } const response = await this.request({ @@ -12554,7 +12554,7 @@ export class ApiApi extends runtime.BaseAPI { } if (requestParameters['createdAt'] != null) { - formParams.append('created_at', (requestParameters['createdAt'] as any).toISOString()); + formParams.append('created_at', requestParameters['createdAt'] as any); } const response = await this.request({ diff --git a/vue3/src/openapi/models/AccessToken.ts b/vue3/src/openapi/models/AccessToken.ts index 5de40a500..75f2e6767 100644 --- a/vue3/src/openapi/models/AccessToken.ts +++ b/vue3/src/openapi/models/AccessToken.ts @@ -87,15 +87,10 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function AccessTokenToJSON(json: any): AccessToken { - return AccessTokenToJSONTyped(json, false); -} - -export function AccessTokenToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function AccessTokenToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/AuthToken.ts b/vue3/src/openapi/models/AuthToken.ts index 27a3b3eee..7d494d711 100644 --- a/vue3/src/openapi/models/AuthToken.ts +++ b/vue3/src/openapi/models/AuthToken.ts @@ -65,15 +65,10 @@ export function AuthTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function AuthTokenToJSON(json: any): AuthToken { - return AuthTokenToJSONTyped(json, false); -} - -export function AuthTokenToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function AuthTokenToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'username': value['username'], diff --git a/vue3/src/openapi/models/AutoMealPlan.ts b/vue3/src/openapi/models/AutoMealPlan.ts index 3a953f50d..b5864bcc3 100644 --- a/vue3/src/openapi/models/AutoMealPlan.ts +++ b/vue3/src/openapi/models/AutoMealPlan.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -62,7 +61,7 @@ export interface AutoMealPlan { * @type {Array} * @memberof AutoMealPlan */ - shared?: Array | null; + shared?: Array; /** * * @type {boolean} @@ -104,15 +103,10 @@ export function AutoMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function AutoMealPlanToJSON(json: any): AutoMealPlan { - return AutoMealPlanToJSONTyped(json, false); -} - -export function AutoMealPlanToJSONTyped(value?: AutoMealPlan | null, ignoreDiscriminator: boolean = false): any { +export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any { if (value == null) { return value; } - return { 'start_date': ((value['startDate']).toISOString().substring(0,10)), diff --git a/vue3/src/openapi/models/Automation.ts b/vue3/src/openapi/models/Automation.ts index 019419723..6e1bde52b 100644 --- a/vue3/src/openapi/models/Automation.ts +++ b/vue3/src/openapi/models/Automation.ts @@ -18,7 +18,6 @@ import { AutomationTypeEnumFromJSON, AutomationTypeEnumFromJSONTyped, AutomationTypeEnumToJSON, - AutomationTypeEnumToJSONTyped, } from './AutomationTypeEnum'; /** @@ -50,25 +49,25 @@ export interface Automation { * @type {string} * @memberof Automation */ - description?: string | null; + description?: string; /** * * @type {string} * @memberof Automation */ - param1?: string | null; + param1?: string; /** * * @type {string} * @memberof Automation */ - param2?: string | null; + param2?: string; /** * * @type {string} * @memberof Automation */ - param3?: string | null; + param3?: string; /** * * @type {number} @@ -89,8 +88,6 @@ export interface Automation { readonly createdBy: number; } - - /** * Check if a given object implements the Automation interface. */ @@ -123,15 +120,10 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function AutomationToJSON(json: any): Automation { - return AutomationToJSONTyped(json, false); -} - -export function AutomationToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function AutomationToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/AutomationTypeEnum.ts b/vue3/src/openapi/models/AutomationTypeEnum.ts index 06cfd4219..1ac734277 100644 --- a/vue3/src/openapi/models/AutomationTypeEnum.ts +++ b/vue3/src/openapi/models/AutomationTypeEnum.ts @@ -44,7 +44,7 @@ export type AutomationTypeEnum = typeof AutomationTypeEnum[keyof typeof Automati export function instanceOfAutomationTypeEnum(value: any): boolean { for (const key in AutomationTypeEnum) { if (Object.prototype.hasOwnProperty.call(AutomationTypeEnum, key)) { - if (AutomationTypeEnum[key as keyof typeof AutomationTypeEnum] === value) { + if (AutomationTypeEnum[key] === value) { return true; } } @@ -64,7 +64,3 @@ export function AutomationTypeEnumToJSON(value?: AutomationTypeEnum | null): any return value as any; } -export function AutomationTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationTypeEnum { - return value as AutomationTypeEnum; -} - diff --git a/vue3/src/openapi/models/BaseUnitEnum.ts b/vue3/src/openapi/models/BaseUnitEnum.ts index 5651c3b72..6688a9bfc 100644 --- a/vue3/src/openapi/models/BaseUnitEnum.ts +++ b/vue3/src/openapi/models/BaseUnitEnum.ts @@ -58,7 +58,7 @@ export type BaseUnitEnum = typeof BaseUnitEnum[keyof typeof BaseUnitEnum]; export function instanceOfBaseUnitEnum(value: any): boolean { for (const key in BaseUnitEnum) { if (Object.prototype.hasOwnProperty.call(BaseUnitEnum, key)) { - if (BaseUnitEnum[key as keyof typeof BaseUnitEnum] === value) { + if (BaseUnitEnum[key] === value) { return true; } } @@ -78,7 +78,3 @@ export function BaseUnitEnumToJSON(value?: BaseUnitEnum | null): any { return value as any; } -export function BaseUnitEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BaseUnitEnum { - return value as BaseUnitEnum; -} - diff --git a/vue3/src/openapi/models/BookmarkletImport.ts b/vue3/src/openapi/models/BookmarkletImport.ts index 5453478cd..7ee8a9cf5 100644 --- a/vue3/src/openapi/models/BookmarkletImport.ts +++ b/vue3/src/openapi/models/BookmarkletImport.ts @@ -30,7 +30,7 @@ export interface BookmarkletImport { * @type {string} * @memberof BookmarkletImport */ - url?: string | null; + url?: string; /** * * @type {string} @@ -79,15 +79,10 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function BookmarkletImportToJSON(json: any): BookmarkletImport { - return BookmarkletImportToJSONTyped(json, false); -} - -export function BookmarkletImportToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function BookmarkletImportToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/BookmarkletImportList.ts b/vue3/src/openapi/models/BookmarkletImportList.ts index b4d968c2e..96c696cff 100644 --- a/vue3/src/openapi/models/BookmarkletImportList.ts +++ b/vue3/src/openapi/models/BookmarkletImportList.ts @@ -30,7 +30,7 @@ export interface BookmarkletImportList { * @type {string} * @memberof BookmarkletImportList */ - url?: string | null; + url?: string; /** * * @type {number} @@ -71,15 +71,10 @@ export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminato }; } -export function BookmarkletImportListToJSON(json: any): BookmarkletImportList { - return BookmarkletImportListToJSONTyped(json, false); -} - -export function BookmarkletImportListToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function BookmarkletImportListToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/ConnectorConfigConfig.ts b/vue3/src/openapi/models/ConnectorConfigConfig.ts index c0ecb9f9e..7ca053a98 100644 --- a/vue3/src/openapi/models/ConnectorConfigConfig.ts +++ b/vue3/src/openapi/models/ConnectorConfigConfig.ts @@ -36,19 +36,19 @@ export interface ConnectorConfigConfig { * @type {string} * @memberof ConnectorConfigConfig */ - url?: string | null; + url?: string; /** * * @type {string} * @memberof ConnectorConfigConfig */ - token?: string | null; + token?: string; /** * * @type {string} * @memberof ConnectorConfigConfig */ - todoEntity?: string | null; + todoEntity?: string; /** * Is Connector Enabled * @type {boolean} @@ -120,15 +120,10 @@ export function ConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscriminato }; } -export function ConnectorConfigConfigToJSON(json: any): ConnectorConfigConfig { - return ConnectorConfigConfigToJSONTyped(json, false); -} - -export function ConnectorConfigConfigToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ConnectorConfigConfigToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/CookLog.ts b/vue3/src/openapi/models/CookLog.ts index 3c562ef51..1263c0074 100644 --- a/vue3/src/openapi/models/CookLog.ts +++ b/vue3/src/openapi/models/CookLog.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -44,19 +43,19 @@ export interface CookLog { * @type {number} * @memberof CookLog */ - servings?: number | null; + servings?: number; /** * * @type {number} * @memberof CookLog */ - rating?: number | null; + rating?: number; /** * * @type {string} * @memberof CookLog */ - comment?: string | null; + comment?: string; /** * * @type {User} @@ -108,15 +107,10 @@ export function CookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): C }; } -export function CookLogToJSON(json: any): CookLog { - return CookLogToJSONTyped(json, false); -} - -export function CookLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function CookLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/CustomFilter.ts b/vue3/src/openapi/models/CustomFilter.ts index fd48218a8..5dd950c6e 100644 --- a/vue3/src/openapi/models/CustomFilter.ts +++ b/vue3/src/openapi/models/CustomFilter.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -87,15 +86,10 @@ export function CustomFilterFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function CustomFilterToJSON(json: any): CustomFilter { - return CustomFilterToJSONTyped(json, false); -} - -export function CustomFilterToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function CustomFilterToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/DefaultPageEnum.ts b/vue3/src/openapi/models/DefaultPageEnum.ts index 95185b544..16be0b8f8 100644 --- a/vue3/src/openapi/models/DefaultPageEnum.ts +++ b/vue3/src/openapi/models/DefaultPageEnum.ts @@ -32,7 +32,7 @@ export type DefaultPageEnum = typeof DefaultPageEnum[keyof typeof DefaultPageEnu export function instanceOfDefaultPageEnum(value: any): boolean { for (const key in DefaultPageEnum) { if (Object.prototype.hasOwnProperty.call(DefaultPageEnum, key)) { - if (DefaultPageEnum[key as keyof typeof DefaultPageEnum] === value) { + if (DefaultPageEnum[key] === value) { return true; } } @@ -52,7 +52,3 @@ export function DefaultPageEnumToJSON(value?: DefaultPageEnum | null): any { return value as any; } -export function DefaultPageEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DefaultPageEnum { - return value as DefaultPageEnum; -} - diff --git a/vue3/src/openapi/models/DeleteEnum.ts b/vue3/src/openapi/models/DeleteEnum.ts index 820df5bf7..9bccaa1aa 100644 --- a/vue3/src/openapi/models/DeleteEnum.ts +++ b/vue3/src/openapi/models/DeleteEnum.ts @@ -26,7 +26,7 @@ export type DeleteEnum = typeof DeleteEnum[keyof typeof DeleteEnum]; export function instanceOfDeleteEnum(value: any): boolean { for (const key in DeleteEnum) { if (Object.prototype.hasOwnProperty.call(DeleteEnum, key)) { - if (DeleteEnum[key as keyof typeof DeleteEnum] === value) { + if (DeleteEnum[key] === value) { return true; } } @@ -46,7 +46,3 @@ export function DeleteEnumToJSON(value?: DeleteEnum | null): any { return value as any; } -export function DeleteEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DeleteEnum { - return value as DeleteEnum; -} - diff --git a/vue3/src/openapi/models/ExportLog.ts b/vue3/src/openapi/models/ExportLog.ts index c996651f2..a939fe737 100644 --- a/vue3/src/openapi/models/ExportLog.ts +++ b/vue3/src/openapi/models/ExportLog.ts @@ -114,15 +114,10 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function ExportLogToJSON(json: any): ExportLog { - return ExportLogToJSONTyped(json, false); -} - -export function ExportLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ExportLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Food.ts b/vue3/src/openapi/models/Food.ts index 665d9af9f..16aef7523 100644 --- a/vue3/src/openapi/models/Food.ts +++ b/vue3/src/openapi/models/Food.ts @@ -18,42 +18,36 @@ import { SupermarketCategoryFromJSON, SupermarketCategoryFromJSONTyped, SupermarketCategoryToJSON, - SupermarketCategoryToJSONTyped, } from './SupermarketCategory'; import type { Unit } from './Unit'; import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Property } from './Property'; import { PropertyFromJSON, PropertyFromJSONTyped, PropertyToJSON, - PropertyToJSONTyped, } from './Property'; import type { FoodInheritField } from './FoodInheritField'; import { FoodInheritFieldFromJSON, FoodInheritFieldFromJSONTyped, FoodInheritFieldToJSON, - FoodInheritFieldToJSONTyped, } from './FoodInheritField'; import type { FoodSimple } from './FoodSimple'; import { FoodSimpleFromJSON, FoodSimpleFromJSONTyped, FoodSimpleToJSON, - FoodSimpleToJSONTyped, } from './FoodSimple'; import type { RecipeSimple } from './RecipeSimple'; import { RecipeSimpleFromJSON, RecipeSimpleFromJSONTyped, RecipeSimpleToJSON, - RecipeSimpleToJSONTyped, } from './RecipeSimple'; /** @@ -113,7 +107,7 @@ export interface Food { * @type {string} * @memberof Food */ - pluralName?: string | null; + pluralName?: string; /** * * @type {string} @@ -131,19 +125,19 @@ export interface Food { * @type {RecipeSimple} * @memberof Food */ - recipe?: RecipeSimple | null; + recipe?: RecipeSimple; /** * * @type {string} * @memberof Food */ - url?: string | null; + url?: string; /** * * @type {Array} * @memberof Food */ - properties?: Array | null; + properties?: Array; /** * * @type {number} @@ -155,25 +149,25 @@ export interface Food { * @type {Unit} * @memberof Food */ - propertiesFoodUnit?: Unit | null; + propertiesFoodUnit?: Unit; /** * * @type {number} * @memberof Food */ - fdcId?: number | null; + fdcId?: number; /** * * @type {boolean} * @memberof Food */ - foodOnhand?: boolean | null; + foodOnhand?: boolean; /** * * @type {SupermarketCategory} * @memberof Food */ - supermarketCategory?: SupermarketCategory | null; + supermarketCategory?: SupermarketCategory; /** * * @type {number} @@ -191,7 +185,7 @@ export interface Food { * @type {Array} * @memberof Food */ - inheritFields?: Array | null; + inheritFields?: Array; /** * Returns a string representation of a tree node and it's ancestors, * e.g. 'Cuisine > Asian > Chinese > Catonese'. @@ -210,7 +204,7 @@ export interface Food { * @type {Array} * @memberof Food */ - substitute?: Array | null; + substitute?: Array; /** * * @type {boolean} @@ -234,13 +228,13 @@ export interface Food { * @type {Array} * @memberof Food */ - childInheritFields?: Array | null; + childInheritFields?: Array; /** * * @type {string} * @memberof Food */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -293,15 +287,10 @@ export function FoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Food }; } -export function FoodToJSON(json: any): Food { - return FoodToJSONTyped(json, false); -} - -export function FoodToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function FoodToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/FoodInheritField.ts b/vue3/src/openapi/models/FoodInheritField.ts index 7a9280861..de189bb1b 100644 --- a/vue3/src/openapi/models/FoodInheritField.ts +++ b/vue3/src/openapi/models/FoodInheritField.ts @@ -64,13 +64,13 @@ export interface FoodInheritField { * @type {string} * @memberof FoodInheritField */ - name?: string | null; + name?: string; /** * * @type {string} * @memberof FoodInheritField */ - field?: string | null; + field?: string; } /** @@ -96,15 +96,10 @@ export function FoodInheritFieldFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function FoodInheritFieldToJSON(json: any): FoodInheritField { - return FoodInheritFieldToJSONTyped(json, false); -} - -export function FoodInheritFieldToJSONTyped(value?: FoodInheritField | null, ignoreDiscriminator: boolean = false): any { +export function FoodInheritFieldToJSON(value?: FoodInheritField | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/FoodShoppingUpdate.ts b/vue3/src/openapi/models/FoodShoppingUpdate.ts index 32c1f9382..e06e505f6 100644 --- a/vue3/src/openapi/models/FoodShoppingUpdate.ts +++ b/vue3/src/openapi/models/FoodShoppingUpdate.ts @@ -18,7 +18,6 @@ import { DeleteEnumFromJSON, DeleteEnumFromJSONTyped, DeleteEnumToJSON, - DeleteEnumToJSONTyped, } from './DeleteEnum'; /** @@ -38,13 +37,13 @@ export interface FoodShoppingUpdate { * @type {number} * @memberof FoodShoppingUpdate */ - amount?: number | null; + amount?: number; /** * ID of unit to use for the shopping list * @type {number} * @memberof FoodShoppingUpdate */ - unit?: number | null; + unit?: number; /** * When set to true will delete all food from active shopping lists. * @@ -55,8 +54,6 @@ export interface FoodShoppingUpdate { _delete: DeleteEnum | null; } - - /** * Check if a given object implements the FoodShoppingUpdate interface. */ @@ -82,15 +79,10 @@ export function FoodShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function FoodShoppingUpdateToJSON(json: any): FoodShoppingUpdate { - return FoodShoppingUpdateToJSONTyped(json, false); -} - -export function FoodShoppingUpdateToJSONTyped(value?: FoodShoppingUpdate | null, ignoreDiscriminator: boolean = false): any { +export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/FoodSimple.ts b/vue3/src/openapi/models/FoodSimple.ts index c25ab4055..7ec2c24c1 100644 --- a/vue3/src/openapi/models/FoodSimple.ts +++ b/vue3/src/openapi/models/FoodSimple.ts @@ -36,7 +36,7 @@ export interface FoodSimple { * @type {string} * @memberof FoodSimple */ - pluralName?: string | null; + pluralName?: string; } /** @@ -63,15 +63,10 @@ export function FoodSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function FoodSimpleToJSON(json: any): FoodSimple { - return FoodSimpleToJSONTyped(json, false); -} - -export function FoodSimpleToJSONTyped(value?: FoodSimple | null, ignoreDiscriminator: boolean = false): any { +export function FoodSimpleToJSON(value?: FoodSimple | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Group.ts b/vue3/src/openapi/models/Group.ts index 73a0e7af3..7185c5675 100644 --- a/vue3/src/openapi/models/Group.ts +++ b/vue3/src/openapi/models/Group.ts @@ -90,15 +90,10 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro }; } -export function GroupToJSON(json: any): Group { - return GroupToJSONTyped(json, false); -} - -export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: boolean = false): any { +export function GroupToJSON(value?: Group | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/ImportLog.ts b/vue3/src/openapi/models/ImportLog.ts index 65f083364..2fcd98667 100644 --- a/vue3/src/openapi/models/ImportLog.ts +++ b/vue3/src/openapi/models/ImportLog.ts @@ -18,7 +18,6 @@ import { KeywordFromJSON, KeywordFromJSONTyped, KeywordToJSON, - KeywordToJSONTyped, } from './Keyword'; /** @@ -116,15 +115,10 @@ export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function ImportLogToJSON(json: any): ImportLog { - return ImportLogToJSONTyped(json, false); -} - -export function ImportLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ImportLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Ingredient.ts b/vue3/src/openapi/models/Ingredient.ts index 40994230f..b0ffcf4bc 100644 --- a/vue3/src/openapi/models/Ingredient.ts +++ b/vue3/src/openapi/models/Ingredient.ts @@ -18,14 +18,12 @@ import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -69,7 +67,7 @@ export interface Ingredient { * @type {string} * @memberof Ingredient */ - note?: string | null; + note?: string; /** * * @type {number} @@ -93,7 +91,7 @@ export interface Ingredient { * @type {string} * @memberof Ingredient */ - originalText?: string | null; + originalText?: string; /** * * @type {Array} @@ -152,15 +150,10 @@ export function IngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function IngredientToJSON(json: any): Ingredient { - return IngredientToJSONTyped(json, false); -} - -export function IngredientToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function IngredientToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/IngredientString.ts b/vue3/src/openapi/models/IngredientString.ts index 3e4a3c2e0..9eddf0a4f 100644 --- a/vue3/src/openapi/models/IngredientString.ts +++ b/vue3/src/openapi/models/IngredientString.ts @@ -49,15 +49,10 @@ export function IngredientStringFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function IngredientStringToJSON(json: any): IngredientString { - return IngredientStringToJSONTyped(json, false); -} - -export function IngredientStringToJSONTyped(value?: IngredientString | null, ignoreDiscriminator: boolean = false): any { +export function IngredientStringToJSON(value?: IngredientString | null): any { if (value == null) { return value; } - return { 'text': value['text'], diff --git a/vue3/src/openapi/models/InviteLink.ts b/vue3/src/openapi/models/InviteLink.ts index 894fe2bb9..aebc2a689 100644 --- a/vue3/src/openapi/models/InviteLink.ts +++ b/vue3/src/openapi/models/InviteLink.ts @@ -18,7 +18,6 @@ import { GroupFromJSON, GroupFromJSONTyped, GroupToJSON, - GroupToJSONTyped, } from './Group'; /** @@ -62,7 +61,7 @@ export interface InviteLink { * @type {number} * @memberof InviteLink */ - usedBy?: number | null; + usedBy?: number; /** * * @type {boolean} @@ -74,7 +73,7 @@ export interface InviteLink { * @type {string} * @memberof InviteLink */ - internalNote?: string | null; + internalNote?: string; /** * * @type {number} @@ -123,15 +122,10 @@ export function InviteLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function InviteLinkToJSON(json: any): InviteLink { - return InviteLinkToJSONTyped(json, false); -} - -export function InviteLinkToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function InviteLinkToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Keyword.ts b/vue3/src/openapi/models/Keyword.ts index d4336b2d0..0472b35f3 100644 --- a/vue3/src/openapi/models/Keyword.ts +++ b/vue3/src/openapi/models/Keyword.ts @@ -146,15 +146,10 @@ export function KeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): K }; } -export function KeywordToJSON(json: any): Keyword { - return KeywordToJSONTyped(json, false); -} - -export function KeywordToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function KeywordToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/KeywordLabel.ts b/vue3/src/openapi/models/KeywordLabel.ts index cbde934b2..4ff1386ca 100644 --- a/vue3/src/openapi/models/KeywordLabel.ts +++ b/vue3/src/openapi/models/KeywordLabel.ts @@ -56,15 +56,10 @@ export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function KeywordLabelToJSON(json: any): KeywordLabel { - return KeywordLabelToJSONTyped(json, false); -} - -export function KeywordLabelToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function KeywordLabelToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Localization.ts b/vue3/src/openapi/models/Localization.ts index 128b8a36d..478dcad34 100644 --- a/vue3/src/openapi/models/Localization.ts +++ b/vue3/src/openapi/models/Localization.ts @@ -57,15 +57,10 @@ export function LocalizationFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function LocalizationToJSON(json: any): Localization { - return LocalizationToJSONTyped(json, false); -} - -export function LocalizationToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function LocalizationToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { }; diff --git a/vue3/src/openapi/models/MealPlan.ts b/vue3/src/openapi/models/MealPlan.ts index a1e1cc68f..b6842cad2 100644 --- a/vue3/src/openapi/models/MealPlan.ts +++ b/vue3/src/openapi/models/MealPlan.ts @@ -18,21 +18,18 @@ import { MealTypeFromJSON, MealTypeFromJSONTyped, MealTypeToJSON, - MealTypeToJSONTyped, } from './MealType'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { RecipeOverview } from './RecipeOverview'; import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -58,7 +55,7 @@ export interface MealPlan { * @type {RecipeOverview} * @memberof MealPlan */ - recipe?: RecipeOverview | null; + recipe?: RecipeOverview; /** * * @type {number} @@ -106,7 +103,7 @@ export interface MealPlan { * @type {Array} * @memberof MealPlan */ - shared?: Array | null; + shared?: Array; /** * * @type {string} @@ -176,15 +173,10 @@ export function MealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function MealPlanToJSON(json: any): MealPlan { - return MealPlanToJSONTyped(json, false); -} - -export function MealPlanToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function MealPlanToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/MealType.ts b/vue3/src/openapi/models/MealType.ts index b44f1a9a9..edb404453 100644 --- a/vue3/src/openapi/models/MealType.ts +++ b/vue3/src/openapi/models/MealType.ts @@ -42,13 +42,13 @@ export interface MealType { * @type {string} * @memberof MealType */ - time?: string | null; + time?: string; /** * * @type {string} * @memberof MealType */ - color?: string | null; + color?: string; /** * * @type {boolean} @@ -92,15 +92,10 @@ export function MealTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function MealTypeToJSON(json: any): MealType { - return MealTypeToJSONTyped(json, false); -} - -export function MealTypeToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function MealTypeToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/MethodEnum.ts b/vue3/src/openapi/models/MethodEnum.ts index 7274174e1..46148325a 100644 --- a/vue3/src/openapi/models/MethodEnum.ts +++ b/vue3/src/openapi/models/MethodEnum.ts @@ -30,7 +30,7 @@ export type MethodEnum = typeof MethodEnum[keyof typeof MethodEnum]; export function instanceOfMethodEnum(value: any): boolean { for (const key in MethodEnum) { if (Object.prototype.hasOwnProperty.call(MethodEnum, key)) { - if (MethodEnum[key as keyof typeof MethodEnum] === value) { + if (MethodEnum[key] === value) { return true; } } @@ -50,7 +50,3 @@ export function MethodEnumToJSON(value?: MethodEnum | null): any { return value as any; } -export function MethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): MethodEnum { - return value as MethodEnum; -} - diff --git a/vue3/src/openapi/models/NutritionInformation.ts b/vue3/src/openapi/models/NutritionInformation.ts index abaa2e40c..b41b7e643 100644 --- a/vue3/src/openapi/models/NutritionInformation.ts +++ b/vue3/src/openapi/models/NutritionInformation.ts @@ -54,7 +54,7 @@ export interface NutritionInformation { * @type {string} * @memberof NutritionInformation */ - source?: string | null; + source?: string; } /** @@ -87,15 +87,10 @@ export function NutritionInformationFromJSONTyped(json: any, ignoreDiscriminator }; } -export function NutritionInformationToJSON(json: any): NutritionInformation { - return NutritionInformationToJSONTyped(json, false); -} - -export function NutritionInformationToJSONTyped(value?: NutritionInformation | null, ignoreDiscriminator: boolean = false): any { +export function NutritionInformationToJSON(value?: NutritionInformation | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataCategory.ts b/vue3/src/openapi/models/OpenDataCategory.ts index a46f3cfba..02a16e001 100644 --- a/vue3/src/openapi/models/OpenDataCategory.ts +++ b/vue3/src/openapi/models/OpenDataCategory.ts @@ -18,7 +18,6 @@ import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -136,15 +135,10 @@ export function OpenDataCategoryFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function OpenDataCategoryToJSON(json: any): OpenDataCategory { - return OpenDataCategoryToJSONTyped(json, false); -} - -export function OpenDataCategoryToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataCategoryToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataConversion.ts b/vue3/src/openapi/models/OpenDataConversion.ts index 22f4dc89e..75395472d 100644 --- a/vue3/src/openapi/models/OpenDataConversion.ts +++ b/vue3/src/openapi/models/OpenDataConversion.ts @@ -18,21 +18,18 @@ import { OpenDataUnitFromJSON, OpenDataUnitFromJSONTyped, OpenDataUnitToJSON, - OpenDataUnitToJSONTyped, } from './OpenDataUnit'; import type { OpenDataFood } from './OpenDataFood'; import { OpenDataFoodFromJSON, OpenDataFoodFromJSONTyped, OpenDataFoodToJSON, - OpenDataFoodToJSONTyped, } from './OpenDataFood'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -149,15 +146,10 @@ export function OpenDataConversionFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function OpenDataConversionToJSON(json: any): OpenDataConversion { - return OpenDataConversionToJSONTyped(json, false); -} - -export function OpenDataConversionToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataConversionToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataFood.ts b/vue3/src/openapi/models/OpenDataFood.ts index 5c46f1619..d11a147e9 100644 --- a/vue3/src/openapi/models/OpenDataFood.ts +++ b/vue3/src/openapi/models/OpenDataFood.ts @@ -18,28 +18,24 @@ import { OpenDataFoodPropertyFromJSON, OpenDataFoodPropertyFromJSONTyped, OpenDataFoodPropertyToJSON, - OpenDataFoodPropertyToJSONTyped, } from './OpenDataFoodProperty'; import type { OpenDataUnit } from './OpenDataUnit'; import { OpenDataUnitFromJSON, OpenDataUnitFromJSONTyped, OpenDataUnitToJSON, - OpenDataUnitToJSONTyped, } from './OpenDataUnit'; import type { OpenDataCategory } from './OpenDataCategory'; import { OpenDataCategoryFromJSON, OpenDataCategoryFromJSONTyped, OpenDataCategoryToJSON, - OpenDataCategoryToJSONTyped, } from './OpenDataCategory'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -123,25 +119,25 @@ export interface OpenDataFood { * @type {OpenDataUnit} * @memberof OpenDataFood */ - preferredUnitMetric?: OpenDataUnit | null; + preferredUnitMetric?: OpenDataUnit; /** * * @type {OpenDataUnit} * @memberof OpenDataFood */ - preferredShoppingUnitMetric?: OpenDataUnit | null; + preferredShoppingUnitMetric?: OpenDataUnit; /** * * @type {OpenDataUnit} * @memberof OpenDataFood */ - preferredUnitImperial?: OpenDataUnit | null; + preferredUnitImperial?: OpenDataUnit; /** * * @type {OpenDataUnit} * @memberof OpenDataFood */ - preferredShoppingUnitImperial?: OpenDataUnit | null; + preferredShoppingUnitImperial?: OpenDataUnit; /** * * @type {Array} @@ -232,15 +228,10 @@ export function OpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function OpenDataFoodToJSON(json: any): OpenDataFood { - return OpenDataFoodToJSONTyped(json, false); -} - -export function OpenDataFoodToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataFoodToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataFoodProperty.ts b/vue3/src/openapi/models/OpenDataFoodProperty.ts index 271d0f745..139d38e30 100644 --- a/vue3/src/openapi/models/OpenDataFoodProperty.ts +++ b/vue3/src/openapi/models/OpenDataFoodProperty.ts @@ -18,7 +18,6 @@ import { OpenDataPropertyFromJSON, OpenDataPropertyFromJSONTyped, OpenDataPropertyToJSON, - OpenDataPropertyToJSONTyped, } from './OpenDataProperty'; /** @@ -72,15 +71,10 @@ export function OpenDataFoodPropertyFromJSONTyped(json: any, ignoreDiscriminator }; } -export function OpenDataFoodPropertyToJSON(json: any): OpenDataFoodProperty { - return OpenDataFoodPropertyToJSONTyped(json, false); -} - -export function OpenDataFoodPropertyToJSONTyped(value?: OpenDataFoodProperty | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataProperty.ts b/vue3/src/openapi/models/OpenDataProperty.ts index 610757eef..78d5adb86 100644 --- a/vue3/src/openapi/models/OpenDataProperty.ts +++ b/vue3/src/openapi/models/OpenDataProperty.ts @@ -18,7 +18,6 @@ import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -96,7 +95,7 @@ export interface OpenDataProperty { * @type {number} * @memberof OpenDataProperty */ - fdcId?: number | null; + fdcId?: number; /** * * @type {string} @@ -143,15 +142,10 @@ export function OpenDataPropertyFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function OpenDataPropertyToJSON(json: any): OpenDataProperty { - return OpenDataPropertyToJSONTyped(json, false); -} - -export function OpenDataPropertyToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataPropertyToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataStore.ts b/vue3/src/openapi/models/OpenDataStore.ts index 93a37d8c1..3b8da9fe6 100644 --- a/vue3/src/openapi/models/OpenDataStore.ts +++ b/vue3/src/openapi/models/OpenDataStore.ts @@ -18,14 +18,12 @@ import { OpenDataStoreCategoryFromJSON, OpenDataStoreCategoryFromJSONTyped, OpenDataStoreCategoryToJSON, - OpenDataStoreCategoryToJSONTyped, } from './OpenDataStoreCategory'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -110,15 +108,10 @@ export function OpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function OpenDataStoreToJSON(json: any): OpenDataStore { - return OpenDataStoreToJSONTyped(json, false); -} - -export function OpenDataStoreToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataStoreToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataStoreCategory.ts b/vue3/src/openapi/models/OpenDataStoreCategory.ts index ce97df853..79436d739 100644 --- a/vue3/src/openapi/models/OpenDataStoreCategory.ts +++ b/vue3/src/openapi/models/OpenDataStoreCategory.ts @@ -18,7 +18,6 @@ import { OpenDataCategoryFromJSON, OpenDataCategoryFromJSONTyped, OpenDataCategoryToJSON, - OpenDataCategoryToJSONTyped, } from './OpenDataCategory'; /** @@ -79,15 +78,10 @@ export function OpenDataStoreCategoryFromJSONTyped(json: any, ignoreDiscriminato }; } -export function OpenDataStoreCategoryToJSON(json: any): OpenDataStoreCategory { - return OpenDataStoreCategoryToJSONTyped(json, false); -} - -export function OpenDataStoreCategoryToJSONTyped(value?: OpenDataStoreCategory | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataStoreCategoryToJSON(value?: OpenDataStoreCategory | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataUnit.ts b/vue3/src/openapi/models/OpenDataUnit.ts index 07533ff2a..6796f60b1 100644 --- a/vue3/src/openapi/models/OpenDataUnit.ts +++ b/vue3/src/openapi/models/OpenDataUnit.ts @@ -18,21 +18,18 @@ import { BaseUnitEnumFromJSON, BaseUnitEnumFromJSONTyped, BaseUnitEnumToJSON, - BaseUnitEnumToJSONTyped, } from './BaseUnitEnum'; import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum'; import { OpenDataUnitTypeEnumFromJSON, OpenDataUnitTypeEnumFromJSONTyped, OpenDataUnitTypeEnumToJSON, - OpenDataUnitTypeEnumToJSONTyped, } from './OpenDataUnitTypeEnum'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -131,8 +128,6 @@ export interface OpenDataUnit { readonly createdBy: string; } - - /** * Check if a given object implements the OpenDataUnit interface. */ @@ -167,15 +162,10 @@ export function OpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function OpenDataUnitToJSON(json: any): OpenDataUnit { - return OpenDataUnitToJSONTyped(json, false); -} - -export function OpenDataUnitToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataUnitToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/OpenDataUnitTypeEnum.ts b/vue3/src/openapi/models/OpenDataUnitTypeEnum.ts index 9653dc022..6fc9df2d1 100644 --- a/vue3/src/openapi/models/OpenDataUnitTypeEnum.ts +++ b/vue3/src/openapi/models/OpenDataUnitTypeEnum.ts @@ -30,7 +30,7 @@ export type OpenDataUnitTypeEnum = typeof OpenDataUnitTypeEnum[keyof typeof Open export function instanceOfOpenDataUnitTypeEnum(value: any): boolean { for (const key in OpenDataUnitTypeEnum) { if (Object.prototype.hasOwnProperty.call(OpenDataUnitTypeEnum, key)) { - if (OpenDataUnitTypeEnum[key as keyof typeof OpenDataUnitTypeEnum] === value) { + if (OpenDataUnitTypeEnum[key] === value) { return true; } } @@ -50,7 +50,3 @@ export function OpenDataUnitTypeEnumToJSON(value?: OpenDataUnitTypeEnum | null): return value as any; } -export function OpenDataUnitTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): OpenDataUnitTypeEnum { - return value as OpenDataUnitTypeEnum; -} - diff --git a/vue3/src/openapi/models/OpenDataVersion.ts b/vue3/src/openapi/models/OpenDataVersion.ts index 5bff7bd14..fb5fcc77d 100644 --- a/vue3/src/openapi/models/OpenDataVersion.ts +++ b/vue3/src/openapi/models/OpenDataVersion.ts @@ -105,15 +105,10 @@ export function OpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function OpenDataVersionToJSON(json: any): OpenDataVersion { - return OpenDataVersionToJSONTyped(json, false); -} - -export function OpenDataVersionToJSONTyped(value?: OpenDataVersion | null, ignoreDiscriminator: boolean = false): any { +export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PaginatedAutomationList.ts b/vue3/src/openapi/models/PaginatedAutomationList.ts index 59b5ffd7a..45d342f37 100644 --- a/vue3/src/openapi/models/PaginatedAutomationList.ts +++ b/vue3/src/openapi/models/PaginatedAutomationList.ts @@ -18,7 +18,6 @@ import { AutomationFromJSON, AutomationFromJSONTyped, AutomationToJSON, - AutomationToJSONTyped, } from './Automation'; /** @@ -38,13 +37,13 @@ export interface PaginatedAutomationList { * @type {string} * @memberof PaginatedAutomationList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedAutomationList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedAutomationListFromJSONTyped(json: any, ignoreDiscrimina }; } -export function PaginatedAutomationListToJSON(json: any): PaginatedAutomationList { - return PaginatedAutomationListToJSONTyped(json, false); -} - -export function PaginatedAutomationListToJSONTyped(value?: PaginatedAutomationList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts b/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts index a86f45808..8c438bd80 100644 --- a/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts +++ b/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts @@ -18,7 +18,6 @@ import { BookmarkletImportListFromJSON, BookmarkletImportListFromJSONTyped, BookmarkletImportListToJSON, - BookmarkletImportListToJSONTyped, } from './BookmarkletImportList'; /** @@ -38,13 +37,13 @@ export interface PaginatedBookmarkletImportListList { * @type {string} * @memberof PaginatedBookmarkletImportListList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedBookmarkletImportListList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignor }; } -export function PaginatedBookmarkletImportListListToJSON(json: any): PaginatedBookmarkletImportListList { - return PaginatedBookmarkletImportListListToJSONTyped(json, false); -} - -export function PaginatedBookmarkletImportListListToJSONTyped(value?: PaginatedBookmarkletImportListList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookmarkletImportListList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedCookLogList.ts b/vue3/src/openapi/models/PaginatedCookLogList.ts index e2380f6cc..cb54f0cde 100644 --- a/vue3/src/openapi/models/PaginatedCookLogList.ts +++ b/vue3/src/openapi/models/PaginatedCookLogList.ts @@ -18,7 +18,6 @@ import { CookLogFromJSON, CookLogFromJSONTyped, CookLogToJSON, - CookLogToJSONTyped, } from './CookLog'; /** @@ -38,13 +37,13 @@ export interface PaginatedCookLogList { * @type {string} * @memberof PaginatedCookLogList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedCookLogList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedCookLogListFromJSONTyped(json: any, ignoreDiscriminator }; } -export function PaginatedCookLogListToJSON(json: any): PaginatedCookLogList { - return PaginatedCookLogListToJSONTyped(json, false); -} - -export function PaginatedCookLogListToJSONTyped(value?: PaginatedCookLogList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedCookLogListToJSON(value?: PaginatedCookLogList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedCustomFilterList.ts b/vue3/src/openapi/models/PaginatedCustomFilterList.ts index 6a197d482..63ba570f1 100644 --- a/vue3/src/openapi/models/PaginatedCustomFilterList.ts +++ b/vue3/src/openapi/models/PaginatedCustomFilterList.ts @@ -18,7 +18,6 @@ import { CustomFilterFromJSON, CustomFilterFromJSONTyped, CustomFilterToJSON, - CustomFilterToJSONTyped, } from './CustomFilter'; /** @@ -38,13 +37,13 @@ export interface PaginatedCustomFilterList { * @type {string} * @memberof PaginatedCustomFilterList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedCustomFilterList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedCustomFilterListFromJSONTyped(json: any, ignoreDiscrimi }; } -export function PaginatedCustomFilterListToJSON(json: any): PaginatedCustomFilterList { - return PaginatedCustomFilterListToJSONTyped(json, false); -} - -export function PaginatedCustomFilterListToJSONTyped(value?: PaginatedCustomFilterList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedCustomFilterListToJSON(value?: PaginatedCustomFilterList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedExportLogList.ts b/vue3/src/openapi/models/PaginatedExportLogList.ts index e9a9f75b6..a7487f570 100644 --- a/vue3/src/openapi/models/PaginatedExportLogList.ts +++ b/vue3/src/openapi/models/PaginatedExportLogList.ts @@ -18,7 +18,6 @@ import { ExportLogFromJSON, ExportLogFromJSONTyped, ExportLogToJSON, - ExportLogToJSONTyped, } from './ExportLog'; /** @@ -38,13 +37,13 @@ export interface PaginatedExportLogList { * @type {string} * @memberof PaginatedExportLogList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedExportLogList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedExportLogListFromJSONTyped(json: any, ignoreDiscriminat }; } -export function PaginatedExportLogListToJSON(json: any): PaginatedExportLogList { - return PaginatedExportLogListToJSONTyped(json, false); -} - -export function PaginatedExportLogListToJSONTyped(value?: PaginatedExportLogList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedFoodList.ts b/vue3/src/openapi/models/PaginatedFoodList.ts index 264bdcb76..ac04caf8d 100644 --- a/vue3/src/openapi/models/PaginatedFoodList.ts +++ b/vue3/src/openapi/models/PaginatedFoodList.ts @@ -18,7 +18,6 @@ import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -38,13 +37,13 @@ export interface PaginatedFoodList { * @type {string} * @memberof PaginatedFoodList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedFoodList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedFoodListFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PaginatedFoodListToJSON(json: any): PaginatedFoodList { - return PaginatedFoodListToJSONTyped(json, false); -} - -export function PaginatedFoodListToJSONTyped(value?: PaginatedFoodList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedFoodListToJSON(value?: PaginatedFoodList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedImportLogList.ts b/vue3/src/openapi/models/PaginatedImportLogList.ts index 153c1382d..80f5646e1 100644 --- a/vue3/src/openapi/models/PaginatedImportLogList.ts +++ b/vue3/src/openapi/models/PaginatedImportLogList.ts @@ -18,7 +18,6 @@ import { ImportLogFromJSON, ImportLogFromJSONTyped, ImportLogToJSON, - ImportLogToJSONTyped, } from './ImportLog'; /** @@ -38,13 +37,13 @@ export interface PaginatedImportLogList { * @type {string} * @memberof PaginatedImportLogList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedImportLogList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedImportLogListFromJSONTyped(json: any, ignoreDiscriminat }; } -export function PaginatedImportLogListToJSON(json: any): PaginatedImportLogList { - return PaginatedImportLogListToJSONTyped(json, false); -} - -export function PaginatedImportLogListToJSONTyped(value?: PaginatedImportLogList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedIngredientList.ts b/vue3/src/openapi/models/PaginatedIngredientList.ts index d4329fd58..8a353b9df 100644 --- a/vue3/src/openapi/models/PaginatedIngredientList.ts +++ b/vue3/src/openapi/models/PaginatedIngredientList.ts @@ -18,7 +18,6 @@ import { IngredientFromJSON, IngredientFromJSONTyped, IngredientToJSON, - IngredientToJSONTyped, } from './Ingredient'; /** @@ -38,13 +37,13 @@ export interface PaginatedIngredientList { * @type {string} * @memberof PaginatedIngredientList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedIngredientList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedIngredientListFromJSONTyped(json: any, ignoreDiscrimina }; } -export function PaginatedIngredientListToJSON(json: any): PaginatedIngredientList { - return PaginatedIngredientListToJSONTyped(json, false); -} - -export function PaginatedIngredientListToJSONTyped(value?: PaginatedIngredientList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedInviteLinkList.ts b/vue3/src/openapi/models/PaginatedInviteLinkList.ts index 92a8ab666..b0c0948bd 100644 --- a/vue3/src/openapi/models/PaginatedInviteLinkList.ts +++ b/vue3/src/openapi/models/PaginatedInviteLinkList.ts @@ -18,7 +18,6 @@ import { InviteLinkFromJSON, InviteLinkFromJSONTyped, InviteLinkToJSON, - InviteLinkToJSONTyped, } from './InviteLink'; /** @@ -38,13 +37,13 @@ export interface PaginatedInviteLinkList { * @type {string} * @memberof PaginatedInviteLinkList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedInviteLinkList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedInviteLinkListFromJSONTyped(json: any, ignoreDiscrimina }; } -export function PaginatedInviteLinkListToJSON(json: any): PaginatedInviteLinkList { - return PaginatedInviteLinkListToJSONTyped(json, false); -} - -export function PaginatedInviteLinkListToJSONTyped(value?: PaginatedInviteLinkList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedKeywordList.ts b/vue3/src/openapi/models/PaginatedKeywordList.ts index bd6ed2bac..29849e5aa 100644 --- a/vue3/src/openapi/models/PaginatedKeywordList.ts +++ b/vue3/src/openapi/models/PaginatedKeywordList.ts @@ -18,7 +18,6 @@ import { KeywordFromJSON, KeywordFromJSONTyped, KeywordToJSON, - KeywordToJSONTyped, } from './Keyword'; /** @@ -38,13 +37,13 @@ export interface PaginatedKeywordList { * @type {string} * @memberof PaginatedKeywordList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedKeywordList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedKeywordListFromJSONTyped(json: any, ignoreDiscriminator }; } -export function PaginatedKeywordListToJSON(json: any): PaginatedKeywordList { - return PaginatedKeywordListToJSONTyped(json, false); -} - -export function PaginatedKeywordListToJSONTyped(value?: PaginatedKeywordList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedMealPlanList.ts b/vue3/src/openapi/models/PaginatedMealPlanList.ts index a9d9157e8..bf7ec12ef 100644 --- a/vue3/src/openapi/models/PaginatedMealPlanList.ts +++ b/vue3/src/openapi/models/PaginatedMealPlanList.ts @@ -18,7 +18,6 @@ import { MealPlanFromJSON, MealPlanFromJSONTyped, MealPlanToJSON, - MealPlanToJSONTyped, } from './MealPlan'; /** @@ -38,13 +37,13 @@ export interface PaginatedMealPlanList { * @type {string} * @memberof PaginatedMealPlanList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedMealPlanList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedMealPlanListFromJSONTyped(json: any, ignoreDiscriminato }; } -export function PaginatedMealPlanListToJSON(json: any): PaginatedMealPlanList { - return PaginatedMealPlanListToJSONTyped(json, false); -} - -export function PaginatedMealPlanListToJSONTyped(value?: PaginatedMealPlanList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedMealTypeList.ts b/vue3/src/openapi/models/PaginatedMealTypeList.ts index bce883ac1..ba69ff3f6 100644 --- a/vue3/src/openapi/models/PaginatedMealTypeList.ts +++ b/vue3/src/openapi/models/PaginatedMealTypeList.ts @@ -18,7 +18,6 @@ import { MealTypeFromJSON, MealTypeFromJSONTyped, MealTypeToJSON, - MealTypeToJSONTyped, } from './MealType'; /** @@ -38,13 +37,13 @@ export interface PaginatedMealTypeList { * @type {string} * @memberof PaginatedMealTypeList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedMealTypeList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedMealTypeListFromJSONTyped(json: any, ignoreDiscriminato }; } -export function PaginatedMealTypeListToJSON(json: any): PaginatedMealTypeList { - return PaginatedMealTypeListToJSONTyped(json, false); -} - -export function PaginatedMealTypeListToJSONTyped(value?: PaginatedMealTypeList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedPropertyList.ts b/vue3/src/openapi/models/PaginatedPropertyList.ts index 88ca5aea7..3f484c8a5 100644 --- a/vue3/src/openapi/models/PaginatedPropertyList.ts +++ b/vue3/src/openapi/models/PaginatedPropertyList.ts @@ -18,7 +18,6 @@ import { PropertyFromJSON, PropertyFromJSONTyped, PropertyToJSON, - PropertyToJSONTyped, } from './Property'; /** @@ -38,13 +37,13 @@ export interface PaginatedPropertyList { * @type {string} * @memberof PaginatedPropertyList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedPropertyList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminato }; } -export function PaginatedPropertyListToJSON(json: any): PaginatedPropertyList { - return PaginatedPropertyListToJSONTyped(json, false); -} - -export function PaginatedPropertyListToJSONTyped(value?: PaginatedPropertyList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedPropertyTypeList.ts b/vue3/src/openapi/models/PaginatedPropertyTypeList.ts index 99bd75bcc..96071b6ac 100644 --- a/vue3/src/openapi/models/PaginatedPropertyTypeList.ts +++ b/vue3/src/openapi/models/PaginatedPropertyTypeList.ts @@ -18,7 +18,6 @@ import { PropertyTypeFromJSON, PropertyTypeFromJSONTyped, PropertyTypeToJSON, - PropertyTypeToJSONTyped, } from './PropertyType'; /** @@ -38,13 +37,13 @@ export interface PaginatedPropertyTypeList { * @type {string} * @memberof PaginatedPropertyTypeList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedPropertyTypeList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedPropertyTypeListFromJSONTyped(json: any, ignoreDiscrimi }; } -export function PaginatedPropertyTypeListToJSON(json: any): PaginatedPropertyTypeList { - return PaginatedPropertyTypeListToJSONTyped(json, false); -} - -export function PaginatedPropertyTypeListToJSONTyped(value?: PaginatedPropertyTypeList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts b/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts index b357f0194..1b7782709 100644 --- a/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts +++ b/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts @@ -18,7 +18,6 @@ import { RecipeBookEntryFromJSON, RecipeBookEntryFromJSONTyped, RecipeBookEntryToJSON, - RecipeBookEntryToJSONTyped, } from './RecipeBookEntry'; /** @@ -38,13 +37,13 @@ export interface PaginatedRecipeBookEntryList { * @type {string} * @memberof PaginatedRecipeBookEntryList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedRecipeBookEntryList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedRecipeBookEntryListFromJSONTyped(json: any, ignoreDiscr }; } -export function PaginatedRecipeBookEntryListToJSON(json: any): PaginatedRecipeBookEntryList { - return PaginatedRecipeBookEntryListToJSONTyped(json, false); -} - -export function PaginatedRecipeBookEntryListToJSONTyped(value?: PaginatedRecipeBookEntryList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEntryList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedRecipeBookList.ts b/vue3/src/openapi/models/PaginatedRecipeBookList.ts index a8e6cc000..0eba79601 100644 --- a/vue3/src/openapi/models/PaginatedRecipeBookList.ts +++ b/vue3/src/openapi/models/PaginatedRecipeBookList.ts @@ -18,7 +18,6 @@ import { RecipeBookFromJSON, RecipeBookFromJSONTyped, RecipeBookToJSON, - RecipeBookToJSONTyped, } from './RecipeBook'; /** @@ -38,13 +37,13 @@ export interface PaginatedRecipeBookList { * @type {string} * @memberof PaginatedRecipeBookList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedRecipeBookList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedRecipeBookListFromJSONTyped(json: any, ignoreDiscrimina }; } -export function PaginatedRecipeBookListToJSON(json: any): PaginatedRecipeBookList { - return PaginatedRecipeBookListToJSONTyped(json, false); -} - -export function PaginatedRecipeBookListToJSONTyped(value?: PaginatedRecipeBookList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedRecipeOverviewList.ts b/vue3/src/openapi/models/PaginatedRecipeOverviewList.ts index 19a8e3169..9b377abf3 100644 --- a/vue3/src/openapi/models/PaginatedRecipeOverviewList.ts +++ b/vue3/src/openapi/models/PaginatedRecipeOverviewList.ts @@ -18,7 +18,6 @@ import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -38,13 +37,13 @@ export interface PaginatedRecipeOverviewList { * @type {string} * @memberof PaginatedRecipeOverviewList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedRecipeOverviewList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -79,15 +78,10 @@ export function PaginatedRecipeOverviewListFromJSONTyped(json: any, ignoreDiscri }; } -export function PaginatedRecipeOverviewListToJSON(json: any): PaginatedRecipeOverviewList { - return PaginatedRecipeOverviewListToJSONTyped(json, false); -} - -export function PaginatedRecipeOverviewListToJSONTyped(value?: PaginatedRecipeOverviewList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedRecipeOverviewListToJSON(value?: PaginatedRecipeOverviewList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts b/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts index fa412d919..7b55fdac9 100644 --- a/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts +++ b/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts @@ -18,7 +18,6 @@ import { ShoppingListEntryFromJSON, ShoppingListEntryFromJSONTyped, ShoppingListEntryToJSON, - ShoppingListEntryToJSONTyped, } from './ShoppingListEntry'; /** @@ -38,13 +37,13 @@ export interface PaginatedShoppingListEntryList { * @type {string} * @memberof PaginatedShoppingListEntryList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedShoppingListEntryList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedShoppingListEntryListFromJSONTyped(json: any, ignoreDis }; } -export function PaginatedShoppingListEntryListToJSON(json: any): PaginatedShoppingListEntryList { - return PaginatedShoppingListEntryListToJSONTyped(json, false); -} - -export function PaginatedShoppingListEntryListToJSONTyped(value?: PaginatedShoppingListEntryList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingListEntryList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts b/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts index b88404d19..fb0585c94 100644 --- a/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts +++ b/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts @@ -18,7 +18,6 @@ import { ShoppingListRecipeFromJSON, ShoppingListRecipeFromJSONTyped, ShoppingListRecipeToJSON, - ShoppingListRecipeToJSONTyped, } from './ShoppingListRecipe'; /** @@ -38,13 +37,13 @@ export interface PaginatedShoppingListRecipeList { * @type {string} * @memberof PaginatedShoppingListRecipeList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedShoppingListRecipeList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedShoppingListRecipeListFromJSONTyped(json: any, ignoreDi }; } -export function PaginatedShoppingListRecipeListToJSON(json: any): PaginatedShoppingListRecipeList { - return PaginatedShoppingListRecipeListToJSONTyped(json, false); -} - -export function PaginatedShoppingListRecipeListToJSONTyped(value?: PaginatedShoppingListRecipeList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingListRecipeList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedSpaceList.ts b/vue3/src/openapi/models/PaginatedSpaceList.ts index ab62b794d..4a7ba281a 100644 --- a/vue3/src/openapi/models/PaginatedSpaceList.ts +++ b/vue3/src/openapi/models/PaginatedSpaceList.ts @@ -18,7 +18,6 @@ import { SpaceFromJSON, SpaceFromJSONTyped, SpaceToJSON, - SpaceToJSONTyped, } from './Space'; /** @@ -38,13 +37,13 @@ export interface PaginatedSpaceList { * @type {string} * @memberof PaginatedSpaceList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedSpaceList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedSpaceListFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PaginatedSpaceListToJSON(json: any): PaginatedSpaceList { - return PaginatedSpaceListToJSONTyped(json, false); -} - -export function PaginatedSpaceListToJSONTyped(value?: PaginatedSpaceList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedSpaceListToJSON(value?: PaginatedSpaceList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedStepList.ts b/vue3/src/openapi/models/PaginatedStepList.ts index 0e8d2e86c..60cf8b01b 100644 --- a/vue3/src/openapi/models/PaginatedStepList.ts +++ b/vue3/src/openapi/models/PaginatedStepList.ts @@ -18,7 +18,6 @@ import { StepFromJSON, StepFromJSONTyped, StepToJSON, - StepToJSONTyped, } from './Step'; /** @@ -38,13 +37,13 @@ export interface PaginatedStepList { * @type {string} * @memberof PaginatedStepList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedStepList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedStepListFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PaginatedStepListToJSON(json: any): PaginatedStepList { - return PaginatedStepListToJSONTyped(json, false); -} - -export function PaginatedStepListToJSONTyped(value?: PaginatedStepList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedStepListToJSON(value?: PaginatedStepList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts b/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts index 9c25989c7..3910929b8 100644 --- a/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts +++ b/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts @@ -18,7 +18,6 @@ import { SupermarketCategoryFromJSON, SupermarketCategoryFromJSONTyped, SupermarketCategoryToJSON, - SupermarketCategoryToJSONTyped, } from './SupermarketCategory'; /** @@ -38,13 +37,13 @@ export interface PaginatedSupermarketCategoryList { * @type {string} * @memberof PaginatedSupermarketCategoryList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedSupermarketCategoryList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedSupermarketCategoryListFromJSONTyped(json: any, ignoreD }; } -export function PaginatedSupermarketCategoryListToJSON(json: any): PaginatedSupermarketCategoryList { - return PaginatedSupermarketCategoryListToJSONTyped(json, false); -} - -export function PaginatedSupermarketCategoryListToJSONTyped(value?: PaginatedSupermarketCategoryList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermarketCategoryList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedSupermarketCategoryRelationList.ts b/vue3/src/openapi/models/PaginatedSupermarketCategoryRelationList.ts index 2629b84db..eb43b00d2 100644 --- a/vue3/src/openapi/models/PaginatedSupermarketCategoryRelationList.ts +++ b/vue3/src/openapi/models/PaginatedSupermarketCategoryRelationList.ts @@ -18,7 +18,6 @@ import { SupermarketCategoryRelationFromJSON, SupermarketCategoryRelationFromJSONTyped, SupermarketCategoryRelationToJSON, - SupermarketCategoryRelationToJSONTyped, } from './SupermarketCategoryRelation'; /** @@ -38,13 +37,13 @@ export interface PaginatedSupermarketCategoryRelationList { * @type {string} * @memberof PaginatedSupermarketCategoryRelationList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedSupermarketCategoryRelationList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedSupermarketCategoryRelationListFromJSONTyped(json: any, }; } -export function PaginatedSupermarketCategoryRelationListToJSON(json: any): PaginatedSupermarketCategoryRelationList { - return PaginatedSupermarketCategoryRelationListToJSONTyped(json, false); -} - -export function PaginatedSupermarketCategoryRelationListToJSONTyped(value?: PaginatedSupermarketCategoryRelationList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedSupermarketCategoryRelationListToJSON(value?: PaginatedSupermarketCategoryRelationList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedSupermarketList.ts b/vue3/src/openapi/models/PaginatedSupermarketList.ts index 6e02a7209..20dd43866 100644 --- a/vue3/src/openapi/models/PaginatedSupermarketList.ts +++ b/vue3/src/openapi/models/PaginatedSupermarketList.ts @@ -18,7 +18,6 @@ import { SupermarketFromJSON, SupermarketFromJSONTyped, SupermarketToJSON, - SupermarketToJSONTyped, } from './Supermarket'; /** @@ -38,13 +37,13 @@ export interface PaginatedSupermarketList { * @type {string} * @memberof PaginatedSupermarketList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedSupermarketList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedSupermarketListFromJSONTyped(json: any, ignoreDiscrimin }; } -export function PaginatedSupermarketListToJSON(json: any): PaginatedSupermarketList { - return PaginatedSupermarketListToJSONTyped(json, false); -} - -export function PaginatedSupermarketListToJSONTyped(value?: PaginatedSupermarketList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedSyncList.ts b/vue3/src/openapi/models/PaginatedSyncList.ts index f54e968c2..1239d80e4 100644 --- a/vue3/src/openapi/models/PaginatedSyncList.ts +++ b/vue3/src/openapi/models/PaginatedSyncList.ts @@ -18,7 +18,6 @@ import { SyncFromJSON, SyncFromJSONTyped, SyncToJSON, - SyncToJSONTyped, } from './Sync'; /** @@ -38,13 +37,13 @@ export interface PaginatedSyncList { * @type {string} * @memberof PaginatedSyncList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedSyncList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedSyncListFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PaginatedSyncListToJSON(json: any): PaginatedSyncList { - return PaginatedSyncListToJSONTyped(json, false); -} - -export function PaginatedSyncListToJSONTyped(value?: PaginatedSyncList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedSyncListToJSON(value?: PaginatedSyncList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedSyncLogList.ts b/vue3/src/openapi/models/PaginatedSyncLogList.ts index 4f161d989..5cc68b712 100644 --- a/vue3/src/openapi/models/PaginatedSyncLogList.ts +++ b/vue3/src/openapi/models/PaginatedSyncLogList.ts @@ -18,7 +18,6 @@ import { SyncLogFromJSON, SyncLogFromJSONTyped, SyncLogToJSON, - SyncLogToJSONTyped, } from './SyncLog'; /** @@ -38,13 +37,13 @@ export interface PaginatedSyncLogList { * @type {string} * @memberof PaginatedSyncLogList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedSyncLogList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedSyncLogListFromJSONTyped(json: any, ignoreDiscriminator }; } -export function PaginatedSyncLogListToJSON(json: any): PaginatedSyncLogList { - return PaginatedSyncLogListToJSONTyped(json, false); -} - -export function PaginatedSyncLogListToJSONTyped(value?: PaginatedSyncLogList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedSyncLogListToJSON(value?: PaginatedSyncLogList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedUnitConversionList.ts b/vue3/src/openapi/models/PaginatedUnitConversionList.ts index e2f8b7679..abb2c23b5 100644 --- a/vue3/src/openapi/models/PaginatedUnitConversionList.ts +++ b/vue3/src/openapi/models/PaginatedUnitConversionList.ts @@ -18,7 +18,6 @@ import { UnitConversionFromJSON, UnitConversionFromJSONTyped, UnitConversionToJSON, - UnitConversionToJSONTyped, } from './UnitConversion'; /** @@ -38,13 +37,13 @@ export interface PaginatedUnitConversionList { * @type {string} * @memberof PaginatedUnitConversionList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedUnitConversionList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedUnitConversionListFromJSONTyped(json: any, ignoreDiscri }; } -export function PaginatedUnitConversionListToJSON(json: any): PaginatedUnitConversionList { - return PaginatedUnitConversionListToJSONTyped(json, false); -} - -export function PaginatedUnitConversionListToJSONTyped(value?: PaginatedUnitConversionList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedUnitConversionListToJSON(value?: PaginatedUnitConversionList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedUnitList.ts b/vue3/src/openapi/models/PaginatedUnitList.ts index 71b9c8b8a..19a7a8a9d 100644 --- a/vue3/src/openapi/models/PaginatedUnitList.ts +++ b/vue3/src/openapi/models/PaginatedUnitList.ts @@ -18,7 +18,6 @@ import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; /** @@ -38,13 +37,13 @@ export interface PaginatedUnitList { * @type {string} * @memberof PaginatedUnitList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedUnitList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedUnitListFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PaginatedUnitListToJSON(json: any): PaginatedUnitList { - return PaginatedUnitListToJSONTyped(json, false); -} - -export function PaginatedUnitListToJSONTyped(value?: PaginatedUnitList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedUnitListToJSON(value?: PaginatedUnitList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedUserFileList.ts b/vue3/src/openapi/models/PaginatedUserFileList.ts index 7d91cfbdf..d7511af04 100644 --- a/vue3/src/openapi/models/PaginatedUserFileList.ts +++ b/vue3/src/openapi/models/PaginatedUserFileList.ts @@ -18,7 +18,6 @@ import { UserFileFromJSON, UserFileFromJSONTyped, UserFileToJSON, - UserFileToJSONTyped, } from './UserFile'; /** @@ -38,13 +37,13 @@ export interface PaginatedUserFileList { * @type {string} * @memberof PaginatedUserFileList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedUserFileList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedUserFileListFromJSONTyped(json: any, ignoreDiscriminato }; } -export function PaginatedUserFileListToJSON(json: any): PaginatedUserFileList { - return PaginatedUserFileListToJSONTyped(json, false); -} - -export function PaginatedUserFileListToJSONTyped(value?: PaginatedUserFileList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedUserFileListToJSON(value?: PaginatedUserFileList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedUserSpaceList.ts b/vue3/src/openapi/models/PaginatedUserSpaceList.ts index 7a6582806..941999e58 100644 --- a/vue3/src/openapi/models/PaginatedUserSpaceList.ts +++ b/vue3/src/openapi/models/PaginatedUserSpaceList.ts @@ -18,7 +18,6 @@ import { UserSpaceFromJSON, UserSpaceFromJSONTyped, UserSpaceToJSON, - UserSpaceToJSONTyped, } from './UserSpace'; /** @@ -38,13 +37,13 @@ export interface PaginatedUserSpaceList { * @type {string} * @memberof PaginatedUserSpaceList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedUserSpaceList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedUserSpaceListFromJSONTyped(json: any, ignoreDiscriminat }; } -export function PaginatedUserSpaceListToJSON(json: any): PaginatedUserSpaceList { - return PaginatedUserSpaceListToJSONTyped(json, false); -} - -export function PaginatedUserSpaceListToJSONTyped(value?: PaginatedUserSpaceList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedUserSpaceListToJSON(value?: PaginatedUserSpaceList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/PaginatedViewLogList.ts b/vue3/src/openapi/models/PaginatedViewLogList.ts index 8f3e3217a..9058b1f94 100644 --- a/vue3/src/openapi/models/PaginatedViewLogList.ts +++ b/vue3/src/openapi/models/PaginatedViewLogList.ts @@ -18,7 +18,6 @@ import { ViewLogFromJSON, ViewLogFromJSONTyped, ViewLogToJSON, - ViewLogToJSONTyped, } from './ViewLog'; /** @@ -38,13 +37,13 @@ export interface PaginatedViewLogList { * @type {string} * @memberof PaginatedViewLogList */ - next?: string | null; + next?: string; /** * * @type {string} * @memberof PaginatedViewLogList */ - previous?: string | null; + previous?: string; /** * * @type {Array} @@ -86,15 +85,10 @@ export function PaginatedViewLogListFromJSONTyped(json: any, ignoreDiscriminator }; } -export function PaginatedViewLogListToJSON(json: any): PaginatedViewLogList { - return PaginatedViewLogListToJSONTyped(json, false); -} - -export function PaginatedViewLogListToJSONTyped(value?: PaginatedViewLogList | null, ignoreDiscriminator: boolean = false): any { +export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null): any { if (value == null) { return value; } - return { 'count': value['count'], diff --git a/vue3/src/openapi/models/ParsedIngredient.ts b/vue3/src/openapi/models/ParsedIngredient.ts index a794fc244..e8f8110ad 100644 --- a/vue3/src/openapi/models/ParsedIngredient.ts +++ b/vue3/src/openapi/models/ParsedIngredient.ts @@ -73,15 +73,10 @@ export function ParsedIngredientFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function ParsedIngredientToJSON(json: any): ParsedIngredient { - return ParsedIngredientToJSONTyped(json, false); -} - -export function ParsedIngredientToJSONTyped(value?: ParsedIngredient | null, ignoreDiscriminator: boolean = false): any { +export function ParsedIngredientToJSON(value?: ParsedIngredient | null): any { if (value == null) { return value; } - return { 'amount': value['amount'], diff --git a/vue3/src/openapi/models/PatchedAccessToken.ts b/vue3/src/openapi/models/PatchedAccessToken.ts index ab268d5e7..b9af38fcc 100644 --- a/vue3/src/openapi/models/PatchedAccessToken.ts +++ b/vue3/src/openapi/models/PatchedAccessToken.ts @@ -83,15 +83,10 @@ export function PatchedAccessTokenFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PatchedAccessTokenToJSON(json: any): PatchedAccessToken { - return PatchedAccessTokenToJSONTyped(json, false); -} - -export function PatchedAccessTokenToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedAccessTokenToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedAutomation.ts b/vue3/src/openapi/models/PatchedAutomation.ts index d91854c63..e6d687125 100644 --- a/vue3/src/openapi/models/PatchedAutomation.ts +++ b/vue3/src/openapi/models/PatchedAutomation.ts @@ -18,7 +18,6 @@ import { AutomationTypeEnumFromJSON, AutomationTypeEnumFromJSONTyped, AutomationTypeEnumToJSON, - AutomationTypeEnumToJSONTyped, } from './AutomationTypeEnum'; /** @@ -50,25 +49,25 @@ export interface PatchedAutomation { * @type {string} * @memberof PatchedAutomation */ - description?: string | null; + description?: string; /** * * @type {string} * @memberof PatchedAutomation */ - param1?: string | null; + param1?: string; /** * * @type {string} * @memberof PatchedAutomation */ - param2?: string | null; + param2?: string; /** * * @type {string} * @memberof PatchedAutomation */ - param3?: string | null; + param3?: string; /** * * @type {number} @@ -89,8 +88,6 @@ export interface PatchedAutomation { readonly createdBy?: number; } - - /** * Check if a given object implements the PatchedAutomation interface. */ @@ -121,15 +118,10 @@ export function PatchedAutomationFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PatchedAutomationToJSON(json: any): PatchedAutomation { - return PatchedAutomationToJSONTyped(json, false); -} - -export function PatchedAutomationToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedAutomationToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedBookmarkletImport.ts b/vue3/src/openapi/models/PatchedBookmarkletImport.ts index a78a0606e..411e8fec4 100644 --- a/vue3/src/openapi/models/PatchedBookmarkletImport.ts +++ b/vue3/src/openapi/models/PatchedBookmarkletImport.ts @@ -30,7 +30,7 @@ export interface PatchedBookmarkletImport { * @type {string} * @memberof PatchedBookmarkletImport */ - url?: string | null; + url?: string; /** * * @type {string} @@ -76,15 +76,10 @@ export function PatchedBookmarkletImportFromJSONTyped(json: any, ignoreDiscrimin }; } -export function PatchedBookmarkletImportToJSON(json: any): PatchedBookmarkletImport { - return PatchedBookmarkletImportToJSONTyped(json, false); -} - -export function PatchedBookmarkletImportToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedBookmarkletImportToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedConnectorConfigConfig.ts b/vue3/src/openapi/models/PatchedConnectorConfigConfig.ts index ef5a632a7..a550fdbba 100644 --- a/vue3/src/openapi/models/PatchedConnectorConfigConfig.ts +++ b/vue3/src/openapi/models/PatchedConnectorConfigConfig.ts @@ -36,19 +36,19 @@ export interface PatchedConnectorConfigConfig { * @type {string} * @memberof PatchedConnectorConfigConfig */ - url?: string | null; + url?: string; /** * * @type {string} * @memberof PatchedConnectorConfigConfig */ - token?: string | null; + token?: string; /** * * @type {string} * @memberof PatchedConnectorConfigConfig */ - todoEntity?: string | null; + todoEntity?: string; /** * Is Connector Enabled * @type {boolean} @@ -118,15 +118,10 @@ export function PatchedConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscr }; } -export function PatchedConnectorConfigConfigToJSON(json: any): PatchedConnectorConfigConfig { - return PatchedConnectorConfigConfigToJSONTyped(json, false); -} - -export function PatchedConnectorConfigConfigToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedConnectorConfigConfigToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedCookLog.ts b/vue3/src/openapi/models/PatchedCookLog.ts index 51cbbec15..6e449c98c 100644 --- a/vue3/src/openapi/models/PatchedCookLog.ts +++ b/vue3/src/openapi/models/PatchedCookLog.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -44,19 +43,19 @@ export interface PatchedCookLog { * @type {number} * @memberof PatchedCookLog */ - servings?: number | null; + servings?: number; /** * * @type {number} * @memberof PatchedCookLog */ - rating?: number | null; + rating?: number; /** * * @type {string} * @memberof PatchedCookLog */ - comment?: string | null; + comment?: string; /** * * @type {User} @@ -105,15 +104,10 @@ export function PatchedCookLogFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function PatchedCookLogToJSON(json: any): PatchedCookLog { - return PatchedCookLogToJSONTyped(json, false); -} - -export function PatchedCookLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedCookLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedCustomFilter.ts b/vue3/src/openapi/models/PatchedCustomFilter.ts index 165b95992..a68ad6e5b 100644 --- a/vue3/src/openapi/models/PatchedCustomFilter.ts +++ b/vue3/src/openapi/models/PatchedCustomFilter.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -84,15 +83,10 @@ export function PatchedCustomFilterFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PatchedCustomFilterToJSON(json: any): PatchedCustomFilter { - return PatchedCustomFilterToJSONTyped(json, false); -} - -export function PatchedCustomFilterToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedCustomFilterToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedExportLog.ts b/vue3/src/openapi/models/PatchedExportLog.ts index ade8a44a6..a47e5707f 100644 --- a/vue3/src/openapi/models/PatchedExportLog.ts +++ b/vue3/src/openapi/models/PatchedExportLog.ts @@ -111,15 +111,10 @@ export function PatchedExportLogFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function PatchedExportLogToJSON(json: any): PatchedExportLog { - return PatchedExportLogToJSONTyped(json, false); -} - -export function PatchedExportLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedExportLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedFood.ts b/vue3/src/openapi/models/PatchedFood.ts index d437bb1e3..f6794dcf3 100644 --- a/vue3/src/openapi/models/PatchedFood.ts +++ b/vue3/src/openapi/models/PatchedFood.ts @@ -18,42 +18,36 @@ import { SupermarketCategoryFromJSON, SupermarketCategoryFromJSONTyped, SupermarketCategoryToJSON, - SupermarketCategoryToJSONTyped, } from './SupermarketCategory'; import type { Unit } from './Unit'; import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Property } from './Property'; import { PropertyFromJSON, PropertyFromJSONTyped, PropertyToJSON, - PropertyToJSONTyped, } from './Property'; import type { FoodInheritField } from './FoodInheritField'; import { FoodInheritFieldFromJSON, FoodInheritFieldFromJSONTyped, FoodInheritFieldToJSON, - FoodInheritFieldToJSONTyped, } from './FoodInheritField'; import type { FoodSimple } from './FoodSimple'; import { FoodSimpleFromJSON, FoodSimpleFromJSONTyped, FoodSimpleToJSON, - FoodSimpleToJSONTyped, } from './FoodSimple'; import type { RecipeSimple } from './RecipeSimple'; import { RecipeSimpleFromJSON, RecipeSimpleFromJSONTyped, RecipeSimpleToJSON, - RecipeSimpleToJSONTyped, } from './RecipeSimple'; /** @@ -113,7 +107,7 @@ export interface PatchedFood { * @type {string} * @memberof PatchedFood */ - pluralName?: string | null; + pluralName?: string; /** * * @type {string} @@ -131,19 +125,19 @@ export interface PatchedFood { * @type {RecipeSimple} * @memberof PatchedFood */ - recipe?: RecipeSimple | null; + recipe?: RecipeSimple; /** * * @type {string} * @memberof PatchedFood */ - url?: string | null; + url?: string; /** * * @type {Array} * @memberof PatchedFood */ - properties?: Array | null; + properties?: Array; /** * * @type {number} @@ -155,25 +149,25 @@ export interface PatchedFood { * @type {Unit} * @memberof PatchedFood */ - propertiesFoodUnit?: Unit | null; + propertiesFoodUnit?: Unit; /** * * @type {number} * @memberof PatchedFood */ - fdcId?: number | null; + fdcId?: number; /** * * @type {boolean} * @memberof PatchedFood */ - foodOnhand?: boolean | null; + foodOnhand?: boolean; /** * * @type {SupermarketCategory} * @memberof PatchedFood */ - supermarketCategory?: SupermarketCategory | null; + supermarketCategory?: SupermarketCategory; /** * * @type {number} @@ -191,7 +185,7 @@ export interface PatchedFood { * @type {Array} * @memberof PatchedFood */ - inheritFields?: Array | null; + inheritFields?: Array; /** * Returns a string representation of a tree node and it's ancestors, * e.g. 'Cuisine > Asian > Chinese > Catonese'. @@ -210,7 +204,7 @@ export interface PatchedFood { * @type {Array} * @memberof PatchedFood */ - substitute?: Array | null; + substitute?: Array; /** * * @type {boolean} @@ -234,13 +228,13 @@ export interface PatchedFood { * @type {Array} * @memberof PatchedFood */ - childInheritFields?: Array | null; + childInheritFields?: Array; /** * * @type {string} * @memberof PatchedFood */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -287,15 +281,10 @@ export function PatchedFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function PatchedFoodToJSON(json: any): PatchedFood { - return PatchedFoodToJSONTyped(json, false); -} - -export function PatchedFoodToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedFoodToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedImportLog.ts b/vue3/src/openapi/models/PatchedImportLog.ts index 85da2a7b9..863ebe88d 100644 --- a/vue3/src/openapi/models/PatchedImportLog.ts +++ b/vue3/src/openapi/models/PatchedImportLog.ts @@ -18,7 +18,6 @@ import { KeywordFromJSON, KeywordFromJSONTyped, KeywordToJSON, - KeywordToJSONTyped, } from './Keyword'; /** @@ -112,15 +111,10 @@ export function PatchedImportLogFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function PatchedImportLogToJSON(json: any): PatchedImportLog { - return PatchedImportLogToJSONTyped(json, false); -} - -export function PatchedImportLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedImportLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedIngredient.ts b/vue3/src/openapi/models/PatchedIngredient.ts index 6269b5421..a297a6c37 100644 --- a/vue3/src/openapi/models/PatchedIngredient.ts +++ b/vue3/src/openapi/models/PatchedIngredient.ts @@ -18,14 +18,12 @@ import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -45,13 +43,13 @@ export interface PatchedIngredient { * @type {Food} * @memberof PatchedIngredient */ - food?: Food | null; + food?: Food; /** * * @type {Unit} * @memberof PatchedIngredient */ - unit?: Unit | null; + unit?: Unit; /** * * @type {number} @@ -69,7 +67,7 @@ export interface PatchedIngredient { * @type {string} * @memberof PatchedIngredient */ - note?: string | null; + note?: string; /** * * @type {number} @@ -93,7 +91,7 @@ export interface PatchedIngredient { * @type {string} * @memberof PatchedIngredient */ - originalText?: string | null; + originalText?: string; /** * * @type {Array} @@ -147,15 +145,10 @@ export function PatchedIngredientFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PatchedIngredientToJSON(json: any): PatchedIngredient { - return PatchedIngredientToJSONTyped(json, false); -} - -export function PatchedIngredientToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedIngredientToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedInviteLink.ts b/vue3/src/openapi/models/PatchedInviteLink.ts index 785811f37..42b7466c6 100644 --- a/vue3/src/openapi/models/PatchedInviteLink.ts +++ b/vue3/src/openapi/models/PatchedInviteLink.ts @@ -18,7 +18,6 @@ import { GroupFromJSON, GroupFromJSONTyped, GroupToJSON, - GroupToJSONTyped, } from './Group'; /** @@ -62,7 +61,7 @@ export interface PatchedInviteLink { * @type {number} * @memberof PatchedInviteLink */ - usedBy?: number | null; + usedBy?: number; /** * * @type {boolean} @@ -74,7 +73,7 @@ export interface PatchedInviteLink { * @type {string} * @memberof PatchedInviteLink */ - internalNote?: string | null; + internalNote?: string; /** * * @type {number} @@ -119,15 +118,10 @@ export function PatchedInviteLinkFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PatchedInviteLinkToJSON(json: any): PatchedInviteLink { - return PatchedInviteLinkToJSONTyped(json, false); -} - -export function PatchedInviteLinkToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedInviteLinkToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedKeyword.ts b/vue3/src/openapi/models/PatchedKeyword.ts index 0df1f9ce2..4d535fbc3 100644 --- a/vue3/src/openapi/models/PatchedKeyword.ts +++ b/vue3/src/openapi/models/PatchedKeyword.ts @@ -139,15 +139,10 @@ export function PatchedKeywordFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function PatchedKeywordToJSON(json: any): PatchedKeyword { - return PatchedKeywordToJSONTyped(json, false); -} - -export function PatchedKeywordToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedKeywordToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedMealPlan.ts b/vue3/src/openapi/models/PatchedMealPlan.ts index 6f24c87a3..bb34a9909 100644 --- a/vue3/src/openapi/models/PatchedMealPlan.ts +++ b/vue3/src/openapi/models/PatchedMealPlan.ts @@ -18,21 +18,18 @@ import { MealTypeFromJSON, MealTypeFromJSONTyped, MealTypeToJSON, - MealTypeToJSONTyped, } from './MealType'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { RecipeOverview } from './RecipeOverview'; import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -58,7 +55,7 @@ export interface PatchedMealPlan { * @type {RecipeOverview} * @memberof PatchedMealPlan */ - recipe?: RecipeOverview | null; + recipe?: RecipeOverview; /** * * @type {number} @@ -106,7 +103,7 @@ export interface PatchedMealPlan { * @type {Array} * @memberof PatchedMealPlan */ - shared?: Array | null; + shared?: Array; /** * * @type {string} @@ -168,15 +165,10 @@ export function PatchedMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function PatchedMealPlanToJSON(json: any): PatchedMealPlan { - return PatchedMealPlanToJSONTyped(json, false); -} - -export function PatchedMealPlanToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedMealPlanToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedMealType.ts b/vue3/src/openapi/models/PatchedMealType.ts index 5e525fad7..f0e162859 100644 --- a/vue3/src/openapi/models/PatchedMealType.ts +++ b/vue3/src/openapi/models/PatchedMealType.ts @@ -42,13 +42,13 @@ export interface PatchedMealType { * @type {string} * @memberof PatchedMealType */ - time?: string | null; + time?: string; /** * * @type {string} * @memberof PatchedMealType */ - color?: string | null; + color?: string; /** * * @type {boolean} @@ -90,15 +90,10 @@ export function PatchedMealTypeFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function PatchedMealTypeToJSON(json: any): PatchedMealType { - return PatchedMealTypeToJSONTyped(json, false); -} - -export function PatchedMealTypeToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedMealTypeToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataCategory.ts b/vue3/src/openapi/models/PatchedOpenDataCategory.ts index 61956a1af..d2a0cd12d 100644 --- a/vue3/src/openapi/models/PatchedOpenDataCategory.ts +++ b/vue3/src/openapi/models/PatchedOpenDataCategory.ts @@ -18,7 +18,6 @@ import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -132,15 +131,10 @@ export function PatchedOpenDataCategoryFromJSONTyped(json: any, ignoreDiscrimina }; } -export function PatchedOpenDataCategoryToJSON(json: any): PatchedOpenDataCategory { - return PatchedOpenDataCategoryToJSONTyped(json, false); -} - -export function PatchedOpenDataCategoryToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataCategoryToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataConversion.ts b/vue3/src/openapi/models/PatchedOpenDataConversion.ts index 38f2670a5..d8ddb6267 100644 --- a/vue3/src/openapi/models/PatchedOpenDataConversion.ts +++ b/vue3/src/openapi/models/PatchedOpenDataConversion.ts @@ -18,21 +18,18 @@ import { OpenDataUnitFromJSON, OpenDataUnitFromJSONTyped, OpenDataUnitToJSON, - OpenDataUnitToJSONTyped, } from './OpenDataUnit'; import type { OpenDataFood } from './OpenDataFood'; import { OpenDataFoodFromJSON, OpenDataFoodFromJSONTyped, OpenDataFoodToJSON, - OpenDataFoodToJSONTyped, } from './OpenDataFood'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -140,15 +137,10 @@ export function PatchedOpenDataConversionFromJSONTyped(json: any, ignoreDiscrimi }; } -export function PatchedOpenDataConversionToJSON(json: any): PatchedOpenDataConversion { - return PatchedOpenDataConversionToJSONTyped(json, false); -} - -export function PatchedOpenDataConversionToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataConversionToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataFood.ts b/vue3/src/openapi/models/PatchedOpenDataFood.ts index 73bb60cdb..127bf5a05 100644 --- a/vue3/src/openapi/models/PatchedOpenDataFood.ts +++ b/vue3/src/openapi/models/PatchedOpenDataFood.ts @@ -18,28 +18,24 @@ import { OpenDataFoodPropertyFromJSON, OpenDataFoodPropertyFromJSONTyped, OpenDataFoodPropertyToJSON, - OpenDataFoodPropertyToJSONTyped, } from './OpenDataFoodProperty'; import type { OpenDataUnit } from './OpenDataUnit'; import { OpenDataUnitFromJSON, OpenDataUnitFromJSONTyped, OpenDataUnitToJSON, - OpenDataUnitToJSONTyped, } from './OpenDataUnit'; import type { OpenDataCategory } from './OpenDataCategory'; import { OpenDataCategoryFromJSON, OpenDataCategoryFromJSONTyped, OpenDataCategoryToJSON, - OpenDataCategoryToJSONTyped, } from './OpenDataCategory'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -123,31 +119,31 @@ export interface PatchedOpenDataFood { * @type {OpenDataUnit} * @memberof PatchedOpenDataFood */ - preferredUnitMetric?: OpenDataUnit | null; + preferredUnitMetric?: OpenDataUnit; /** * * @type {OpenDataUnit} * @memberof PatchedOpenDataFood */ - preferredShoppingUnitMetric?: OpenDataUnit | null; + preferredShoppingUnitMetric?: OpenDataUnit; /** * * @type {OpenDataUnit} * @memberof PatchedOpenDataFood */ - preferredUnitImperial?: OpenDataUnit | null; + preferredUnitImperial?: OpenDataUnit; /** * * @type {OpenDataUnit} * @memberof PatchedOpenDataFood */ - preferredShoppingUnitImperial?: OpenDataUnit | null; + preferredShoppingUnitImperial?: OpenDataUnit; /** * * @type {Array} * @memberof PatchedOpenDataFood */ - properties?: Array | null; + properties?: Array; /** * * @type {number} @@ -223,15 +219,10 @@ export function PatchedOpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PatchedOpenDataFoodToJSON(json: any): PatchedOpenDataFood { - return PatchedOpenDataFoodToJSONTyped(json, false); -} - -export function PatchedOpenDataFoodToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataFoodToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataProperty.ts b/vue3/src/openapi/models/PatchedOpenDataProperty.ts index 30782e34f..3c08c7d86 100644 --- a/vue3/src/openapi/models/PatchedOpenDataProperty.ts +++ b/vue3/src/openapi/models/PatchedOpenDataProperty.ts @@ -18,7 +18,6 @@ import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -96,7 +95,7 @@ export interface PatchedOpenDataProperty { * @type {number} * @memberof PatchedOpenDataProperty */ - fdcId?: number | null; + fdcId?: number; /** * * @type {string} @@ -139,15 +138,10 @@ export function PatchedOpenDataPropertyFromJSONTyped(json: any, ignoreDiscrimina }; } -export function PatchedOpenDataPropertyToJSON(json: any): PatchedOpenDataProperty { - return PatchedOpenDataPropertyToJSONTyped(json, false); -} - -export function PatchedOpenDataPropertyToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataPropertyToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataStore.ts b/vue3/src/openapi/models/PatchedOpenDataStore.ts index f256aec26..aafc2de6a 100644 --- a/vue3/src/openapi/models/PatchedOpenDataStore.ts +++ b/vue3/src/openapi/models/PatchedOpenDataStore.ts @@ -18,14 +18,12 @@ import { OpenDataStoreCategoryFromJSON, OpenDataStoreCategoryFromJSONTyped, OpenDataStoreCategoryToJSON, - OpenDataStoreCategoryToJSONTyped, } from './OpenDataStoreCategory'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -63,7 +61,7 @@ export interface PatchedOpenDataStore { * @type {Array} * @memberof PatchedOpenDataStore */ - categoryToStore?: Array | null; + categoryToStore?: Array; /** * * @type {string} @@ -105,15 +103,10 @@ export function PatchedOpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator }; } -export function PatchedOpenDataStoreToJSON(json: any): PatchedOpenDataStore { - return PatchedOpenDataStoreToJSONTyped(json, false); -} - -export function PatchedOpenDataStoreToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataStoreToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataUnit.ts b/vue3/src/openapi/models/PatchedOpenDataUnit.ts index 3a68b9637..e2ea19025 100644 --- a/vue3/src/openapi/models/PatchedOpenDataUnit.ts +++ b/vue3/src/openapi/models/PatchedOpenDataUnit.ts @@ -18,21 +18,18 @@ import { BaseUnitEnumFromJSON, BaseUnitEnumFromJSONTyped, BaseUnitEnumToJSON, - BaseUnitEnumToJSONTyped, } from './BaseUnitEnum'; import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum'; import { OpenDataUnitTypeEnumFromJSON, OpenDataUnitTypeEnumFromJSONTyped, OpenDataUnitTypeEnumToJSON, - OpenDataUnitTypeEnumToJSONTyped, } from './OpenDataUnitTypeEnum'; import type { OpenDataVersion } from './OpenDataVersion'; import { OpenDataVersionFromJSON, OpenDataVersionFromJSONTyped, OpenDataVersionToJSON, - OpenDataVersionToJSONTyped, } from './OpenDataVersion'; /** @@ -131,8 +128,6 @@ export interface PatchedOpenDataUnit { readonly createdBy?: string; } - - /** * Check if a given object implements the PatchedOpenDataUnit interface. */ @@ -162,15 +157,10 @@ export function PatchedOpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PatchedOpenDataUnitToJSON(json: any): PatchedOpenDataUnit { - return PatchedOpenDataUnitToJSONTyped(json, false); -} - -export function PatchedOpenDataUnitToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataUnitToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedOpenDataVersion.ts b/vue3/src/openapi/models/PatchedOpenDataVersion.ts index 038ae566c..673ec91c5 100644 --- a/vue3/src/openapi/models/PatchedOpenDataVersion.ts +++ b/vue3/src/openapi/models/PatchedOpenDataVersion.ts @@ -103,15 +103,10 @@ export function PatchedOpenDataVersionFromJSONTyped(json: any, ignoreDiscriminat }; } -export function PatchedOpenDataVersionToJSON(json: any): PatchedOpenDataVersion { - return PatchedOpenDataVersionToJSONTyped(json, false); -} - -export function PatchedOpenDataVersionToJSONTyped(value?: PatchedOpenDataVersion | null, ignoreDiscriminator: boolean = false): any { +export function PatchedOpenDataVersionToJSON(value?: PatchedOpenDataVersion | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedProperty.ts b/vue3/src/openapi/models/PatchedProperty.ts index 42225374d..b460a6a60 100644 --- a/vue3/src/openapi/models/PatchedProperty.ts +++ b/vue3/src/openapi/models/PatchedProperty.ts @@ -18,7 +18,6 @@ import { PropertyTypeFromJSON, PropertyTypeFromJSONTyped, PropertyTypeToJSON, - PropertyTypeToJSONTyped, } from './PropertyType'; /** @@ -72,7 +71,7 @@ export interface PatchedProperty { * @type {number} * @memberof PatchedProperty */ - propertyAmount?: number | null; + propertyAmount?: number; /** * * @type {PropertyType} @@ -104,15 +103,10 @@ export function PatchedPropertyFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function PatchedPropertyToJSON(json: any): PatchedProperty { - return PatchedPropertyToJSONTyped(json, false); -} - -export function PatchedPropertyToJSONTyped(value?: PatchedProperty | null, ignoreDiscriminator: boolean = false): any { +export function PatchedPropertyToJSON(value?: PatchedProperty | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedPropertyType.ts b/vue3/src/openapi/models/PatchedPropertyType.ts index 813393633..0d56c1f31 100644 --- a/vue3/src/openapi/models/PatchedPropertyType.ts +++ b/vue3/src/openapi/models/PatchedPropertyType.ts @@ -36,13 +36,13 @@ export interface PatchedPropertyType { * @type {string} * @memberof PatchedPropertyType */ - unit?: string | null; + unit?: string; /** * * @type {string} * @memberof PatchedPropertyType */ - description?: string | null; + description?: string; /** * * @type {number} @@ -54,13 +54,13 @@ export interface PatchedPropertyType { * @type {string} * @memberof PatchedPropertyType */ - openDataSlug?: string | null; + openDataSlug?: string; /** * * @type {number} * @memberof PatchedPropertyType */ - fdcId?: number | null; + fdcId?: number; } /** @@ -90,15 +90,10 @@ export function PatchedPropertyTypeFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PatchedPropertyTypeToJSON(json: any): PatchedPropertyType { - return PatchedPropertyTypeToJSONTyped(json, false); -} - -export function PatchedPropertyTypeToJSONTyped(value?: PatchedPropertyType | null, ignoreDiscriminator: boolean = false): any { +export function PatchedPropertyTypeToJSON(value?: PatchedPropertyType | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedRecipe.ts b/vue3/src/openapi/models/PatchedRecipe.ts index cf9dd9f37..180f7507f 100644 --- a/vue3/src/openapi/models/PatchedRecipe.ts +++ b/vue3/src/openapi/models/PatchedRecipe.ts @@ -18,35 +18,30 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { Keyword } from './Keyword'; import { KeywordFromJSON, KeywordFromJSONTyped, KeywordToJSON, - KeywordToJSONTyped, } from './Keyword'; import type { Step } from './Step'; import { StepFromJSON, StepFromJSONTyped, StepToJSON, - StepToJSONTyped, } from './Step'; import type { Property } from './Property'; import { PropertyFromJSON, PropertyFromJSONTyped, PropertyToJSON, - PropertyToJSONTyped, } from './Property'; import type { NutritionInformation } from './NutritionInformation'; import { NutritionInformationFromJSON, NutritionInformationFromJSONTyped, NutritionInformationToJSON, - NutritionInformationToJSONTyped, } from './NutritionInformation'; /** @@ -72,13 +67,13 @@ export interface PatchedRecipe { * @type {string} * @memberof PatchedRecipe */ - description?: string | null; + description?: string; /** * * @type {string} * @memberof PatchedRecipe */ - readonly image?: string | null; + readonly image?: string; /** * * @type {Array} @@ -126,7 +121,7 @@ export interface PatchedRecipe { * @type {string} * @memberof PatchedRecipe */ - sourceUrl?: string | null; + sourceUrl?: string; /** * * @type {boolean} @@ -144,7 +139,7 @@ export interface PatchedRecipe { * @type {NutritionInformation} * @memberof PatchedRecipe */ - nutrition?: NutritionInformation | null; + nutrition?: NutritionInformation; /** * * @type {Array} @@ -156,7 +151,7 @@ export interface PatchedRecipe { * @type {any} * @memberof PatchedRecipe */ - readonly foodProperties?: any | null; + readonly foodProperties?: any; /** * * @type {number} @@ -180,13 +175,13 @@ export interface PatchedRecipe { * @type {number} * @memberof PatchedRecipe */ - readonly rating?: number | null; + readonly rating?: number; /** * * @type {Date} * @memberof PatchedRecipe */ - readonly lastCooked?: Date | null; + readonly lastCooked?: Date; /** * * @type {boolean} @@ -245,15 +240,10 @@ export function PatchedRecipeFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function PatchedRecipeToJSON(json: any): PatchedRecipe { - return PatchedRecipeToJSONTyped(json, false); -} - -export function PatchedRecipeToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedRecipeToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedRecipeBook.ts b/vue3/src/openapi/models/PatchedRecipeBook.ts index 628ce5ef5..2b281c6de 100644 --- a/vue3/src/openapi/models/PatchedRecipeBook.ts +++ b/vue3/src/openapi/models/PatchedRecipeBook.ts @@ -18,14 +18,12 @@ import { CustomFilterFromJSON, CustomFilterFromJSONTyped, CustomFilterToJSON, - CustomFilterToJSONTyped, } from './CustomFilter'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -69,7 +67,7 @@ export interface PatchedRecipeBook { * @type {CustomFilter} * @memberof PatchedRecipeBook */ - filter?: CustomFilter | null; + filter?: CustomFilter; /** * * @type {number} @@ -105,15 +103,10 @@ export function PatchedRecipeBookFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function PatchedRecipeBookToJSON(json: any): PatchedRecipeBook { - return PatchedRecipeBookToJSONTyped(json, false); -} - -export function PatchedRecipeBookToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedRecipeBookToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedRecipeBookEntry.ts b/vue3/src/openapi/models/PatchedRecipeBookEntry.ts index 462690216..44d1f9b38 100644 --- a/vue3/src/openapi/models/PatchedRecipeBookEntry.ts +++ b/vue3/src/openapi/models/PatchedRecipeBookEntry.ts @@ -18,14 +18,12 @@ import { RecipeBookFromJSON, RecipeBookFromJSONTyped, RecipeBookToJSON, - RecipeBookToJSONTyped, } from './RecipeBook'; import type { RecipeOverview } from './RecipeOverview'; import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -91,15 +89,10 @@ export function PatchedRecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminat }; } -export function PatchedRecipeBookEntryToJSON(json: any): PatchedRecipeBookEntry { - return PatchedRecipeBookEntryToJSONTyped(json, false); -} - -export function PatchedRecipeBookEntryToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedRecipeBookEntryToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedShoppingListEntry.ts b/vue3/src/openapi/models/PatchedShoppingListEntry.ts index a437707c1..648da5661 100644 --- a/vue3/src/openapi/models/PatchedShoppingListEntry.ts +++ b/vue3/src/openapi/models/PatchedShoppingListEntry.ts @@ -18,28 +18,24 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { ShoppingListRecipe } from './ShoppingListRecipe'; import { ShoppingListRecipeFromJSON, ShoppingListRecipeFromJSONTyped, ShoppingListRecipeToJSON, - ShoppingListRecipeToJSONTyped, } from './ShoppingListRecipe'; import type { Unit } from './Unit'; import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -59,19 +55,19 @@ export interface PatchedShoppingListEntry { * @type {number} * @memberof PatchedShoppingListEntry */ - listRecipe?: number | null; + listRecipe?: number; /** * * @type {Food} * @memberof PatchedShoppingListEntry */ - food?: Food | null; + food?: Food; /** * * @type {Unit} * @memberof PatchedShoppingListEntry */ - unit?: Unit | null; + unit?: Unit; /** * * @type {number} @@ -95,7 +91,7 @@ export interface PatchedShoppingListEntry { * @type {number} * @memberof PatchedShoppingListEntry */ - ingredient?: number | null; + ingredient?: number; /** * * @type {ShoppingListRecipe} @@ -125,13 +121,13 @@ export interface PatchedShoppingListEntry { * @type {Date} * @memberof PatchedShoppingListEntry */ - completedAt?: Date | null; + completedAt?: Date; /** * * @type {Date} * @memberof PatchedShoppingListEntry */ - delayUntil?: Date | null; + delayUntil?: Date; /** * If a mealplan id is given try to find existing or create new ShoppingListRecipe with that meal plan and link entry to it * @type {number} @@ -175,15 +171,10 @@ export function PatchedShoppingListEntryFromJSONTyped(json: any, ignoreDiscrimin }; } -export function PatchedShoppingListEntryToJSON(json: any): PatchedShoppingListEntry { - return PatchedShoppingListEntryToJSONTyped(json, false); -} - -export function PatchedShoppingListEntryToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedShoppingListEntryToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedShoppingListRecipe.ts b/vue3/src/openapi/models/PatchedShoppingListRecipe.ts index d5e9eca12..d3a7b4904 100644 --- a/vue3/src/openapi/models/PatchedShoppingListRecipe.ts +++ b/vue3/src/openapi/models/PatchedShoppingListRecipe.ts @@ -18,21 +18,18 @@ import { MealPlanFromJSON, MealPlanFromJSONTyped, MealPlanToJSON, - MealPlanToJSONTyped, } from './MealPlan'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { RecipeOverview } from './RecipeOverview'; import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -58,7 +55,7 @@ export interface PatchedShoppingListRecipe { * @type {number} * @memberof PatchedShoppingListRecipe */ - recipe?: number | null; + recipe?: number; /** * * @type {RecipeOverview} @@ -70,7 +67,7 @@ export interface PatchedShoppingListRecipe { * @type {number} * @memberof PatchedShoppingListRecipe */ - mealplan?: number | null; + mealplan?: number; /** * * @type {MealPlan} @@ -119,15 +116,10 @@ export function PatchedShoppingListRecipeFromJSONTyped(json: any, ignoreDiscrimi }; } -export function PatchedShoppingListRecipeToJSON(json: any): PatchedShoppingListRecipe { - return PatchedShoppingListRecipeToJSONTyped(json, false); -} - -export function PatchedShoppingListRecipeToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedShoppingListRecipeToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedSpace.ts b/vue3/src/openapi/models/PatchedSpace.ts index 935e0da40..36bb0952d 100644 --- a/vue3/src/openapi/models/PatchedSpace.ts +++ b/vue3/src/openapi/models/PatchedSpace.ts @@ -18,35 +18,30 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { UserFileView } from './UserFileView'; import { UserFileViewFromJSON, UserFileViewFromJSONTyped, UserFileViewToJSON, - UserFileViewToJSONTyped, } from './UserFileView'; import type { SpaceNavTextColorEnum } from './SpaceNavTextColorEnum'; import { SpaceNavTextColorEnumFromJSON, SpaceNavTextColorEnumFromJSONTyped, SpaceNavTextColorEnumToJSON, - SpaceNavTextColorEnumToJSONTyped, } from './SpaceNavTextColorEnum'; import type { FoodInheritField } from './FoodInheritField'; import { FoodInheritFieldFromJSON, FoodInheritFieldFromJSONTyped, FoodInheritFieldToJSON, - FoodInheritFieldToJSONTyped, } from './FoodInheritField'; import type { SpaceThemeEnum } from './SpaceThemeEnum'; import { SpaceThemeEnumFromJSON, SpaceThemeEnumFromJSONTyped, SpaceThemeEnumToJSON, - SpaceThemeEnumToJSONTyped, } from './SpaceThemeEnum'; /** @@ -144,13 +139,13 @@ export interface PatchedSpace { * @type {UserFileView} * @memberof PatchedSpace */ - image?: UserFileView | null; + image?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - navLogo?: UserFileView | null; + navLogo?: UserFileView; /** * * @type {SpaceThemeEnum} @@ -162,7 +157,7 @@ export interface PatchedSpace { * @type {UserFileView} * @memberof PatchedSpace */ - customSpaceTheme?: UserFileView | null; + customSpaceTheme?: UserFileView; /** * * @type {string} @@ -180,47 +175,45 @@ export interface PatchedSpace { * @type {UserFileView} * @memberof PatchedSpace */ - logoColor32?: UserFileView | null; + logoColor32?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - logoColor128?: UserFileView | null; + logoColor128?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - logoColor144?: UserFileView | null; + logoColor144?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - logoColor180?: UserFileView | null; + logoColor180?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - logoColor192?: UserFileView | null; + logoColor192?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - logoColor512?: UserFileView | null; + logoColor512?: UserFileView; /** * * @type {UserFileView} * @memberof PatchedSpace */ - logoColorSvg?: UserFileView | null; + logoColorSvg?: UserFileView; } - - /** * Check if a given object implements the PatchedSpace interface. */ @@ -268,15 +261,10 @@ export function PatchedSpaceFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function PatchedSpaceToJSON(json: any): PatchedSpace { - return PatchedSpaceToJSONTyped(json, false); -} - -export function PatchedSpaceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedSpaceToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedStep.ts b/vue3/src/openapi/models/PatchedStep.ts index 0245cbda2..ab0e8703e 100644 --- a/vue3/src/openapi/models/PatchedStep.ts +++ b/vue3/src/openapi/models/PatchedStep.ts @@ -18,14 +18,12 @@ import { UserFileViewFromJSON, UserFileViewFromJSONTyped, UserFileViewToJSON, - UserFileViewToJSONTyped, } from './UserFileView'; import type { Ingredient } from './Ingredient'; import { IngredientFromJSON, IngredientFromJSONTyped, IngredientToJSON, - IngredientToJSONTyped, } from './Ingredient'; /** @@ -87,19 +85,19 @@ export interface PatchedStep { * @type {UserFileView} * @memberof PatchedStep */ - file?: UserFileView | null; + file?: UserFileView; /** * * @type {number} * @memberof PatchedStep */ - stepRecipe?: number | null; + stepRecipe?: number; /** * * @type {any} * @memberof PatchedStep */ - readonly stepRecipeData?: any | null; + readonly stepRecipeData?: any; /** * * @type {number} @@ -147,15 +145,10 @@ export function PatchedStepFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function PatchedStepToJSON(json: any): PatchedStep { - return PatchedStepToJSONTyped(json, false); -} - -export function PatchedStepToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedStepToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedStorage.ts b/vue3/src/openapi/models/PatchedStorage.ts index bf7019f23..3d4c6a68a 100644 --- a/vue3/src/openapi/models/PatchedStorage.ts +++ b/vue3/src/openapi/models/PatchedStorage.ts @@ -18,7 +18,6 @@ import { MethodEnumFromJSON, MethodEnumFromJSONTyped, MethodEnumToJSON, - MethodEnumToJSONTyped, } from './MethodEnum'; /** @@ -50,19 +49,19 @@ export interface PatchedStorage { * @type {string} * @memberof PatchedStorage */ - username?: string | null; + username?: string; /** * * @type {string} * @memberof PatchedStorage */ - password?: string | null; + password?: string; /** * * @type {string} * @memberof PatchedStorage */ - token?: string | null; + token?: string; /** * * @type {number} @@ -71,8 +70,6 @@ export interface PatchedStorage { readonly createdBy?: number; } - - /** * Check if a given object implements the PatchedStorage interface. */ @@ -100,15 +97,10 @@ export function PatchedStorageFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function PatchedStorageToJSON(json: any): PatchedStorage { - return PatchedStorageToJSONTyped(json, false); -} - -export function PatchedStorageToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedStorageToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedSupermarket.ts b/vue3/src/openapi/models/PatchedSupermarket.ts index 62ffa63d9..0d3bb9f1a 100644 --- a/vue3/src/openapi/models/PatchedSupermarket.ts +++ b/vue3/src/openapi/models/PatchedSupermarket.ts @@ -18,7 +18,6 @@ import { SupermarketCategoryRelationFromJSON, SupermarketCategoryRelationFromJSONTyped, SupermarketCategoryRelationToJSON, - SupermarketCategoryRelationToJSONTyped, } from './SupermarketCategoryRelation'; /** @@ -78,7 +77,7 @@ export interface PatchedSupermarket { * @type {string} * @memberof PatchedSupermarket */ - description?: string | null; + description?: string; /** * * @type {Array} @@ -90,7 +89,7 @@ export interface PatchedSupermarket { * @type {string} * @memberof PatchedSupermarket */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -118,15 +117,10 @@ export function PatchedSupermarketFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function PatchedSupermarketToJSON(json: any): PatchedSupermarket { - return PatchedSupermarketToJSONTyped(json, false); -} - -export function PatchedSupermarketToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedSupermarketToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedSupermarketCategory.ts b/vue3/src/openapi/models/PatchedSupermarketCategory.ts index 77aa0d2e6..713e5344f 100644 --- a/vue3/src/openapi/models/PatchedSupermarketCategory.ts +++ b/vue3/src/openapi/models/PatchedSupermarketCategory.ts @@ -70,7 +70,7 @@ export interface PatchedSupermarketCategory { * @type {string} * @memberof PatchedSupermarketCategory */ - description?: string | null; + description?: string; } /** @@ -96,15 +96,10 @@ export function PatchedSupermarketCategoryFromJSONTyped(json: any, ignoreDiscrim }; } -export function PatchedSupermarketCategoryToJSON(json: any): PatchedSupermarketCategory { - return PatchedSupermarketCategoryToJSONTyped(json, false); -} - -export function PatchedSupermarketCategoryToJSONTyped(value?: PatchedSupermarketCategory | null, ignoreDiscriminator: boolean = false): any { +export function PatchedSupermarketCategoryToJSON(value?: PatchedSupermarketCategory | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedSupermarketCategoryRelation.ts b/vue3/src/openapi/models/PatchedSupermarketCategoryRelation.ts index 1b117a7a9..f0bb7f621 100644 --- a/vue3/src/openapi/models/PatchedSupermarketCategoryRelation.ts +++ b/vue3/src/openapi/models/PatchedSupermarketCategoryRelation.ts @@ -18,7 +18,6 @@ import { SupermarketCategoryFromJSON, SupermarketCategoryFromJSONTyped, SupermarketCategoryToJSON, - SupermarketCategoryToJSONTyped, } from './SupermarketCategory'; /** @@ -77,15 +76,10 @@ export function PatchedSupermarketCategoryRelationFromJSONTyped(json: any, ignor }; } -export function PatchedSupermarketCategoryRelationToJSON(json: any): PatchedSupermarketCategoryRelation { - return PatchedSupermarketCategoryRelationToJSONTyped(json, false); -} - -export function PatchedSupermarketCategoryRelationToJSONTyped(value?: PatchedSupermarketCategoryRelation | null, ignoreDiscriminator: boolean = false): any { +export function PatchedSupermarketCategoryRelationToJSON(value?: PatchedSupermarketCategoryRelation | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedSync.ts b/vue3/src/openapi/models/PatchedSync.ts index 3dd6840bd..810b34292 100644 --- a/vue3/src/openapi/models/PatchedSync.ts +++ b/vue3/src/openapi/models/PatchedSync.ts @@ -48,7 +48,7 @@ export interface PatchedSync { * @type {Date} * @memberof PatchedSync */ - lastChecked?: Date | null; + lastChecked?: Date; /** * * @type {Date} @@ -90,15 +90,10 @@ export function PatchedSyncFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function PatchedSyncToJSON(json: any): PatchedSync { - return PatchedSyncToJSONTyped(json, false); -} - -export function PatchedSyncToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedSyncToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedUnit.ts b/vue3/src/openapi/models/PatchedUnit.ts index e50ebc3fa..176c0e561 100644 --- a/vue3/src/openapi/models/PatchedUnit.ts +++ b/vue3/src/openapi/models/PatchedUnit.ts @@ -70,25 +70,25 @@ export interface PatchedUnit { * @type {string} * @memberof PatchedUnit */ - pluralName?: string | null; + pluralName?: string; /** * * @type {string} * @memberof PatchedUnit */ - description?: string | null; + description?: string; /** * * @type {string} * @memberof PatchedUnit */ - baseUnit?: string | null; + baseUnit?: string; /** * * @type {string} * @memberof PatchedUnit */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -117,15 +117,10 @@ export function PatchedUnitFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function PatchedUnitToJSON(json: any): PatchedUnit { - return PatchedUnitToJSONTyped(json, false); -} - -export function PatchedUnitToJSONTyped(value?: PatchedUnit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedUnitToJSON(value?: PatchedUnit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedUnitConversion.ts b/vue3/src/openapi/models/PatchedUnitConversion.ts index 9d4f682e1..091ab7c65 100644 --- a/vue3/src/openapi/models/PatchedUnitConversion.ts +++ b/vue3/src/openapi/models/PatchedUnitConversion.ts @@ -18,14 +18,12 @@ import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -75,13 +73,13 @@ export interface PatchedUnitConversion { * @type {Food} * @memberof PatchedUnitConversion */ - food?: Food | null; + food?: Food; /** * * @type {string} * @memberof PatchedUnitConversion */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -112,15 +110,10 @@ export function PatchedUnitConversionFromJSONTyped(json: any, ignoreDiscriminato }; } -export function PatchedUnitConversionToJSON(json: any): PatchedUnitConversion { - return PatchedUnitConversionToJSONTyped(json, false); -} - -export function PatchedUnitConversionToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedUnitConversionToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedUser.ts b/vue3/src/openapi/models/PatchedUser.ts index 934633e26..f581e20b1 100644 --- a/vue3/src/openapi/models/PatchedUser.ts +++ b/vue3/src/openapi/models/PatchedUser.ts @@ -97,15 +97,10 @@ export function PatchedUserFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function PatchedUserToJSON(json: any): PatchedUser { - return PatchedUserToJSONTyped(json, false); -} - -export function PatchedUserToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedUserToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedUserPreference.ts b/vue3/src/openapi/models/PatchedUserPreference.ts index f58696c4a..fbb8673e4 100644 --- a/vue3/src/openapi/models/PatchedUserPreference.ts +++ b/vue3/src/openapi/models/PatchedUserPreference.ts @@ -18,42 +18,36 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { UserFileView } from './UserFileView'; import { UserFileViewFromJSON, UserFileViewFromJSONTyped, UserFileViewToJSON, - UserFileViewToJSONTyped, } from './UserFileView'; import type { UserPreferenceNavTextColorEnum } from './UserPreferenceNavTextColorEnum'; import { UserPreferenceNavTextColorEnumFromJSON, UserPreferenceNavTextColorEnumFromJSONTyped, UserPreferenceNavTextColorEnumToJSON, - UserPreferenceNavTextColorEnumToJSONTyped, } from './UserPreferenceNavTextColorEnum'; import type { FoodInheritField } from './FoodInheritField'; import { FoodInheritFieldFromJSON, FoodInheritFieldFromJSONTyped, FoodInheritFieldToJSON, - FoodInheritFieldToJSONTyped, } from './FoodInheritField'; import type { ThemeEnum } from './ThemeEnum'; import { ThemeEnumFromJSON, ThemeEnumFromJSONTyped, ThemeEnumToJSON, - ThemeEnumToJSONTyped, } from './ThemeEnum'; import type { DefaultPageEnum } from './DefaultPageEnum'; import { DefaultPageEnumFromJSON, DefaultPageEnumFromJSONTyped, DefaultPageEnumToJSON, - DefaultPageEnumToJSONTyped, } from './DefaultPageEnum'; /** @@ -73,7 +67,7 @@ export interface PatchedUserPreference { * @type {UserFileView} * @memberof PatchedUserPreference */ - image?: UserFileView | null; + image?: UserFileView; /** * * @type {ThemeEnum} @@ -127,7 +121,7 @@ export interface PatchedUserPreference { * @type {Array} * @memberof PatchedUserPreference */ - planShare?: Array | null; + planShare?: Array; /** * * @type {boolean} @@ -187,7 +181,7 @@ export interface PatchedUserPreference { * @type {Array} * @memberof PatchedUserPreference */ - shoppingShare?: Array | null; + shoppingShare?: Array; /** * * @type {number} @@ -238,8 +232,6 @@ export interface PatchedUserPreference { readonly foodChildrenExist?: boolean; } - - /** * Check if a given object implements the PatchedUserPreference interface. */ @@ -289,15 +281,10 @@ export function PatchedUserPreferenceFromJSONTyped(json: any, ignoreDiscriminato }; } -export function PatchedUserPreferenceToJSON(json: any): PatchedUserPreference { - return PatchedUserPreferenceToJSONTyped(json, false); -} - -export function PatchedUserPreferenceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedUserPreferenceToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'image': UserFileViewToJSON(value['image']), diff --git a/vue3/src/openapi/models/PatchedUserSpace.ts b/vue3/src/openapi/models/PatchedUserSpace.ts index 641b2ca91..efb848a46 100644 --- a/vue3/src/openapi/models/PatchedUserSpace.ts +++ b/vue3/src/openapi/models/PatchedUserSpace.ts @@ -18,14 +18,12 @@ import { GroupFromJSON, GroupFromJSONTyped, GroupToJSON, - GroupToJSONTyped, } from './Group'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -69,13 +67,13 @@ export interface PatchedUserSpace { * @type {string} * @memberof PatchedUserSpace */ - internalNote?: string | null; + internalNote?: string; /** * * @type {number} * @memberof PatchedUserSpace */ - readonly inviteLink?: number | null; + readonly inviteLink?: number; /** * * @type {Date} @@ -119,15 +117,10 @@ export function PatchedUserSpaceFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function PatchedUserSpaceToJSON(json: any): PatchedUserSpace { - return PatchedUserSpaceToJSONTyped(json, false); -} - -export function PatchedUserSpaceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedUserSpaceToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PatchedViewLog.ts b/vue3/src/openapi/models/PatchedViewLog.ts index f634bd621..e4f4fe9ac 100644 --- a/vue3/src/openapi/models/PatchedViewLog.ts +++ b/vue3/src/openapi/models/PatchedViewLog.ts @@ -69,15 +69,10 @@ export function PatchedViewLogFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function PatchedViewLogToJSON(json: any): PatchedViewLog { - return PatchedViewLogToJSONTyped(json, false); -} - -export function PatchedViewLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function PatchedViewLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Property.ts b/vue3/src/openapi/models/Property.ts index 23097d8f1..87d3f0635 100644 --- a/vue3/src/openapi/models/Property.ts +++ b/vue3/src/openapi/models/Property.ts @@ -18,7 +18,6 @@ import { PropertyTypeFromJSON, PropertyTypeFromJSONTyped, PropertyTypeToJSON, - PropertyTypeToJSONTyped, } from './PropertyType'; /** @@ -106,15 +105,10 @@ export function PropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function PropertyToJSON(json: any): Property { - return PropertyToJSONTyped(json, false); -} - -export function PropertyToJSONTyped(value?: Property | null, ignoreDiscriminator: boolean = false): any { +export function PropertyToJSON(value?: Property | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/PropertyType.ts b/vue3/src/openapi/models/PropertyType.ts index aed86b364..8de05ee5f 100644 --- a/vue3/src/openapi/models/PropertyType.ts +++ b/vue3/src/openapi/models/PropertyType.ts @@ -36,13 +36,13 @@ export interface PropertyType { * @type {string} * @memberof PropertyType */ - unit?: string | null; + unit?: string; /** * * @type {string} * @memberof PropertyType */ - description?: string | null; + description?: string; /** * * @type {number} @@ -54,13 +54,13 @@ export interface PropertyType { * @type {string} * @memberof PropertyType */ - openDataSlug?: string | null; + openDataSlug?: string; /** * * @type {number} * @memberof PropertyType */ - fdcId?: number | null; + fdcId?: number; } /** @@ -91,15 +91,10 @@ export function PropertyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function PropertyTypeToJSON(json: any): PropertyType { - return PropertyTypeToJSONTyped(json, false); -} - -export function PropertyTypeToJSONTyped(value?: PropertyType | null, ignoreDiscriminator: boolean = false): any { +export function PropertyTypeToJSON(value?: PropertyType | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Recipe.ts b/vue3/src/openapi/models/Recipe.ts index e4859756a..cfe02dae3 100644 --- a/vue3/src/openapi/models/Recipe.ts +++ b/vue3/src/openapi/models/Recipe.ts @@ -18,35 +18,30 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { Keyword } from './Keyword'; import { KeywordFromJSON, KeywordFromJSONTyped, KeywordToJSON, - KeywordToJSONTyped, } from './Keyword'; import type { Step } from './Step'; import { StepFromJSON, StepFromJSONTyped, StepToJSON, - StepToJSONTyped, } from './Step'; import type { Property } from './Property'; import { PropertyFromJSON, PropertyFromJSONTyped, PropertyToJSON, - PropertyToJSONTyped, } from './Property'; import type { NutritionInformation } from './NutritionInformation'; import { NutritionInformationFromJSON, NutritionInformationFromJSONTyped, NutritionInformationToJSON, - NutritionInformationToJSONTyped, } from './NutritionInformation'; /** @@ -72,7 +67,7 @@ export interface Recipe { * @type {string} * @memberof Recipe */ - description?: string | null; + description?: string; /** * * @type {string} @@ -126,7 +121,7 @@ export interface Recipe { * @type {string} * @memberof Recipe */ - sourceUrl?: string | null; + sourceUrl?: string; /** * * @type {boolean} @@ -144,7 +139,7 @@ export interface Recipe { * @type {NutritionInformation} * @memberof Recipe */ - nutrition?: NutritionInformation | null; + nutrition?: NutritionInformation; /** * * @type {Array} @@ -254,15 +249,10 @@ export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re }; } -export function RecipeToJSON(json: any): Recipe { - return RecipeToJSONTyped(json, false); -} - -export function RecipeToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function RecipeToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/RecipeBook.ts b/vue3/src/openapi/models/RecipeBook.ts index abea5a7f2..ed2d42cb4 100644 --- a/vue3/src/openapi/models/RecipeBook.ts +++ b/vue3/src/openapi/models/RecipeBook.ts @@ -18,14 +18,12 @@ import { CustomFilterFromJSON, CustomFilterFromJSONTyped, CustomFilterToJSON, - CustomFilterToJSONTyped, } from './CustomFilter'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -69,7 +67,7 @@ export interface RecipeBook { * @type {CustomFilter} * @memberof RecipeBook */ - filter?: CustomFilter | null; + filter?: CustomFilter; /** * * @type {number} @@ -108,15 +106,10 @@ export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function RecipeBookToJSON(json: any): RecipeBook { - return RecipeBookToJSONTyped(json, false); -} - -export function RecipeBookToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function RecipeBookToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/RecipeBookEntry.ts b/vue3/src/openapi/models/RecipeBookEntry.ts index 8ceb65fc3..bcc3ca925 100644 --- a/vue3/src/openapi/models/RecipeBookEntry.ts +++ b/vue3/src/openapi/models/RecipeBookEntry.ts @@ -18,14 +18,12 @@ import { RecipeBookFromJSON, RecipeBookFromJSONTyped, RecipeBookToJSON, - RecipeBookToJSONTyped, } from './RecipeBook'; import type { RecipeOverview } from './RecipeOverview'; import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -95,15 +93,10 @@ export function RecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boo }; } -export function RecipeBookEntryToJSON(json: any): RecipeBookEntry { - return RecipeBookEntryToJSONTyped(json, false); -} - -export function RecipeBookEntryToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function RecipeBookEntryToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/RecipeFlat.ts b/vue3/src/openapi/models/RecipeFlat.ts index 247e2aa4b..9070a858e 100644 --- a/vue3/src/openapi/models/RecipeFlat.ts +++ b/vue3/src/openapi/models/RecipeFlat.ts @@ -36,7 +36,7 @@ export interface RecipeFlat { * @type {string} * @memberof RecipeFlat */ - image?: string | null; + image?: string; } /** @@ -63,15 +63,10 @@ export function RecipeFlatFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function RecipeFlatToJSON(json: any): RecipeFlat { - return RecipeFlatToJSONTyped(json, false); -} - -export function RecipeFlatToJSONTyped(value?: RecipeFlat | null, ignoreDiscriminator: boolean = false): any { +export function RecipeFlatToJSON(value?: RecipeFlat | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/RecipeFromSource.ts b/vue3/src/openapi/models/RecipeFromSource.ts index 74872c513..702e3f3c7 100644 --- a/vue3/src/openapi/models/RecipeFromSource.ts +++ b/vue3/src/openapi/models/RecipeFromSource.ts @@ -24,19 +24,19 @@ export interface RecipeFromSource { * @type {string} * @memberof RecipeFromSource */ - url?: string | null; + url?: string; /** * * @type {string} * @memberof RecipeFromSource */ - data?: string | null; + data?: string; /** * * @type {number} * @memberof RecipeFromSource */ - bookmarklet?: number | null; + bookmarklet?: number; } /** @@ -62,15 +62,10 @@ export function RecipeFromSourceFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function RecipeFromSourceToJSON(json: any): RecipeFromSource { - return RecipeFromSourceToJSONTyped(json, false); -} - -export function RecipeFromSourceToJSONTyped(value?: RecipeFromSource | null, ignoreDiscriminator: boolean = false): any { +export function RecipeFromSourceToJSON(value?: RecipeFromSource | null): any { if (value == null) { return value; } - return { 'url': value['url'], diff --git a/vue3/src/openapi/models/RecipeFromSourceResponse.ts b/vue3/src/openapi/models/RecipeFromSourceResponse.ts index 35435fab3..5e6842a8c 100644 --- a/vue3/src/openapi/models/RecipeFromSourceResponse.ts +++ b/vue3/src/openapi/models/RecipeFromSourceResponse.ts @@ -18,14 +18,12 @@ import { SourceImportDuplicateFromJSON, SourceImportDuplicateFromJSONTyped, SourceImportDuplicateToJSON, - SourceImportDuplicateToJSONTyped, } from './SourceImportDuplicate'; import type { SourceImportRecipe } from './SourceImportRecipe'; import { SourceImportRecipeFromJSON, SourceImportRecipeFromJSONTyped, SourceImportRecipeToJSON, - SourceImportRecipeToJSONTyped, } from './SourceImportRecipe'; /** @@ -91,15 +89,10 @@ export function RecipeFromSourceResponseFromJSONTyped(json: any, ignoreDiscrimin }; } -export function RecipeFromSourceResponseToJSON(json: any): RecipeFromSourceResponse { - return RecipeFromSourceResponseToJSONTyped(json, false); -} - -export function RecipeFromSourceResponseToJSONTyped(value?: RecipeFromSourceResponse | null, ignoreDiscriminator: boolean = false): any { +export function RecipeFromSourceResponseToJSON(value?: RecipeFromSourceResponse | null): any { if (value == null) { return value; } - return { 'recipe': SourceImportRecipeToJSON(value['recipe']), diff --git a/vue3/src/openapi/models/RecipeImage.ts b/vue3/src/openapi/models/RecipeImage.ts index 68912115f..a70e19bb9 100644 --- a/vue3/src/openapi/models/RecipeImage.ts +++ b/vue3/src/openapi/models/RecipeImage.ts @@ -24,13 +24,13 @@ export interface RecipeImage { * @type {string} * @memberof RecipeImage */ - image?: string | null; + image?: string; /** * * @type {string} * @memberof RecipeImage */ - imageUrl?: string | null; + imageUrl?: string; } /** @@ -55,15 +55,10 @@ export function RecipeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function RecipeImageToJSON(json: any): RecipeImage { - return RecipeImageToJSONTyped(json, false); -} - -export function RecipeImageToJSONTyped(value?: RecipeImage | null, ignoreDiscriminator: boolean = false): any { +export function RecipeImageToJSON(value?: RecipeImage | null): any { if (value == null) { return value; } - return { 'image': value['image'], diff --git a/vue3/src/openapi/models/RecipeOverview.ts b/vue3/src/openapi/models/RecipeOverview.ts index 50a1c1f68..9fd72cf06 100644 --- a/vue3/src/openapi/models/RecipeOverview.ts +++ b/vue3/src/openapi/models/RecipeOverview.ts @@ -18,14 +18,12 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { KeywordLabel } from './KeywordLabel'; import { KeywordLabelFromJSON, KeywordLabelFromJSONTyped, KeywordLabelToJSON, - KeywordLabelToJSONTyped, } from './KeywordLabel'; /** @@ -51,7 +49,7 @@ export interface RecipeOverview { * @type {string} * @memberof RecipeOverview */ - description?: string | null; + description?: string; /** * * @type {string} @@ -190,15 +188,10 @@ export function RecipeOverviewFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function RecipeOverviewToJSON(json: any): RecipeOverview { - return RecipeOverviewToJSONTyped(json, false); -} - -export function RecipeOverviewToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function RecipeOverviewToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/RecipeShoppingUpdate.ts b/vue3/src/openapi/models/RecipeShoppingUpdate.ts index ef5b944ef..67728cd70 100644 --- a/vue3/src/openapi/models/RecipeShoppingUpdate.ts +++ b/vue3/src/openapi/models/RecipeShoppingUpdate.ts @@ -30,19 +30,19 @@ export interface RecipeShoppingUpdate { * @type {number} * @memberof RecipeShoppingUpdate */ - listRecipe?: number | null; + listRecipe?: number; /** * - * @type {Array} + * @type {Array} * @memberof RecipeShoppingUpdate */ - ingredients: Array; + ingredients: Array; /** * Providing a list_recipe ID and servings of 0 will delete that shopping list. * @type {number} * @memberof RecipeShoppingUpdate */ - servings?: number | null; + servings?: number; } /** @@ -70,15 +70,10 @@ export function RecipeShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator }; } -export function RecipeShoppingUpdateToJSON(json: any): RecipeShoppingUpdate { - return RecipeShoppingUpdateToJSONTyped(json, false); -} - -export function RecipeShoppingUpdateToJSONTyped(value?: RecipeShoppingUpdate | null, ignoreDiscriminator: boolean = false): any { +export function RecipeShoppingUpdateToJSON(value?: RecipeShoppingUpdate | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/RecipeSimple.ts b/vue3/src/openapi/models/RecipeSimple.ts index 0df794ed1..36e324e4c 100644 --- a/vue3/src/openapi/models/RecipeSimple.ts +++ b/vue3/src/openapi/models/RecipeSimple.ts @@ -64,15 +64,10 @@ export function RecipeSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function RecipeSimpleToJSON(json: any): RecipeSimple { - return RecipeSimpleToJSONTyped(json, false); -} - -export function RecipeSimpleToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function RecipeSimpleToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/ServerSettings.ts b/vue3/src/openapi/models/ServerSettings.ts index d56c1cc3e..82925d7bd 100644 --- a/vue3/src/openapi/models/ServerSettings.ts +++ b/vue3/src/openapi/models/ServerSettings.ts @@ -113,15 +113,10 @@ export function ServerSettingsFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function ServerSettingsToJSON(json: any): ServerSettings { - return ServerSettingsToJSONTyped(json, false); -} - -export function ServerSettingsToJSONTyped(value?: ServerSettings | null, ignoreDiscriminator: boolean = false): any { +export function ServerSettingsToJSON(value?: ServerSettings | null): any { if (value == null) { return value; } - return { 'shopping_min_autosync_interval': value['shoppingMinAutosyncInterval'], diff --git a/vue3/src/openapi/models/ShareLink.ts b/vue3/src/openapi/models/ShareLink.ts index c9529995f..a37ebe340 100644 --- a/vue3/src/openapi/models/ShareLink.ts +++ b/vue3/src/openapi/models/ShareLink.ts @@ -65,15 +65,10 @@ export function ShareLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function ShareLinkToJSON(json: any): ShareLink { - return ShareLinkToJSONTyped(json, false); -} - -export function ShareLinkToJSONTyped(value?: ShareLink | null, ignoreDiscriminator: boolean = false): any { +export function ShareLinkToJSON(value?: ShareLink | null): any { if (value == null) { return value; } - return { 'pk': value['pk'], diff --git a/vue3/src/openapi/models/ShoppingListEntry.ts b/vue3/src/openapi/models/ShoppingListEntry.ts index 559636424..cd8c85ef6 100644 --- a/vue3/src/openapi/models/ShoppingListEntry.ts +++ b/vue3/src/openapi/models/ShoppingListEntry.ts @@ -18,28 +18,24 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { ShoppingListRecipe } from './ShoppingListRecipe'; import { ShoppingListRecipeFromJSON, ShoppingListRecipeFromJSONTyped, ShoppingListRecipeToJSON, - ShoppingListRecipeToJSONTyped, } from './ShoppingListRecipe'; import type { Unit } from './Unit'; import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -59,7 +55,7 @@ export interface ShoppingListEntry { * @type {number} * @memberof ShoppingListEntry */ - listRecipe?: number | null; + listRecipe?: number; /** * * @type {Food} @@ -71,7 +67,7 @@ export interface ShoppingListEntry { * @type {Unit} * @memberof ShoppingListEntry */ - unit?: Unit | null; + unit?: Unit; /** * * @type {number} @@ -95,7 +91,7 @@ export interface ShoppingListEntry { * @type {number} * @memberof ShoppingListEntry */ - ingredient?: number | null; + ingredient?: number; /** * * @type {ShoppingListRecipe} @@ -125,13 +121,13 @@ export interface ShoppingListEntry { * @type {Date} * @memberof ShoppingListEntry */ - completedAt?: Date | null; + completedAt?: Date; /** * * @type {Date} * @memberof ShoppingListEntry */ - delayUntil?: Date | null; + delayUntil?: Date; /** * If a mealplan id is given try to find existing or create new ShoppingListRecipe with that meal plan and link entry to it * @type {number} @@ -181,15 +177,10 @@ export function ShoppingListEntryFromJSONTyped(json: any, ignoreDiscriminator: b }; } -export function ShoppingListEntryToJSON(json: any): ShoppingListEntry { - return ShoppingListEntryToJSONTyped(json, false); -} - -export function ShoppingListEntryToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ShoppingListEntryToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/ShoppingListEntryBulk.ts b/vue3/src/openapi/models/ShoppingListEntryBulk.ts index c22829cad..aecdf5a3b 100644 --- a/vue3/src/openapi/models/ShoppingListEntryBulk.ts +++ b/vue3/src/openapi/models/ShoppingListEntryBulk.ts @@ -65,15 +65,10 @@ export function ShoppingListEntryBulkFromJSONTyped(json: any, ignoreDiscriminato }; } -export function ShoppingListEntryBulkToJSON(json: any): ShoppingListEntryBulk { - return ShoppingListEntryBulkToJSONTyped(json, false); -} - -export function ShoppingListEntryBulkToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ShoppingListEntryBulkToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'ids': value['ids'], diff --git a/vue3/src/openapi/models/ShoppingListEntryBulkCreate.ts b/vue3/src/openapi/models/ShoppingListEntryBulkCreate.ts index aae542b6d..36bc8c4d7 100644 --- a/vue3/src/openapi/models/ShoppingListEntryBulkCreate.ts +++ b/vue3/src/openapi/models/ShoppingListEntryBulkCreate.ts @@ -18,7 +18,6 @@ import { ShoppingListEntrySimpleCreateFromJSON, ShoppingListEntrySimpleCreateFromJSONTyped, ShoppingListEntrySimpleCreateToJSON, - ShoppingListEntrySimpleCreateToJSONTyped, } from './ShoppingListEntrySimpleCreate'; /** @@ -57,15 +56,10 @@ export function ShoppingListEntryBulkCreateFromJSONTyped(json: any, ignoreDiscri }; } -export function ShoppingListEntryBulkCreateToJSON(json: any): ShoppingListEntryBulkCreate { - return ShoppingListEntryBulkCreateToJSONTyped(json, false); -} - -export function ShoppingListEntryBulkCreateToJSONTyped(value?: ShoppingListEntryBulkCreate | null, ignoreDiscriminator: boolean = false): any { +export function ShoppingListEntryBulkCreateToJSON(value?: ShoppingListEntryBulkCreate | null): any { if (value == null) { return value; } - return { 'entries': ((value['entries'] as Array).map(ShoppingListEntrySimpleCreateToJSON)), diff --git a/vue3/src/openapi/models/ShoppingListEntrySimpleCreate.ts b/vue3/src/openapi/models/ShoppingListEntrySimpleCreate.ts index b52739497..b41b145f6 100644 --- a/vue3/src/openapi/models/ShoppingListEntrySimpleCreate.ts +++ b/vue3/src/openapi/models/ShoppingListEntrySimpleCreate.ts @@ -73,15 +73,10 @@ export function ShoppingListEntrySimpleCreateFromJSONTyped(json: any, ignoreDisc }; } -export function ShoppingListEntrySimpleCreateToJSON(json: any): ShoppingListEntrySimpleCreate { - return ShoppingListEntrySimpleCreateToJSONTyped(json, false); -} - -export function ShoppingListEntrySimpleCreateToJSONTyped(value?: ShoppingListEntrySimpleCreate | null, ignoreDiscriminator: boolean = false): any { +export function ShoppingListEntrySimpleCreateToJSON(value?: ShoppingListEntrySimpleCreate | null): any { if (value == null) { return value; } - return { 'amount': value['amount'], diff --git a/vue3/src/openapi/models/ShoppingListRecipe.ts b/vue3/src/openapi/models/ShoppingListRecipe.ts index ca2a79549..f60445aae 100644 --- a/vue3/src/openapi/models/ShoppingListRecipe.ts +++ b/vue3/src/openapi/models/ShoppingListRecipe.ts @@ -18,21 +18,18 @@ import { MealPlanFromJSON, MealPlanFromJSONTyped, MealPlanToJSON, - MealPlanToJSONTyped, } from './MealPlan'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { RecipeOverview } from './RecipeOverview'; import { RecipeOverviewFromJSON, RecipeOverviewFromJSONTyped, RecipeOverviewToJSON, - RecipeOverviewToJSONTyped, } from './RecipeOverview'; /** @@ -58,7 +55,7 @@ export interface ShoppingListRecipe { * @type {number} * @memberof ShoppingListRecipe */ - recipe?: number | null; + recipe?: number; /** * * @type {RecipeOverview} @@ -70,7 +67,7 @@ export interface ShoppingListRecipe { * @type {number} * @memberof ShoppingListRecipe */ - mealplan?: number | null; + mealplan?: number; /** * * @type {MealPlan} @@ -123,15 +120,10 @@ export function ShoppingListRecipeFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function ShoppingListRecipeToJSON(json: any): ShoppingListRecipe { - return ShoppingListRecipeToJSONTyped(json, false); -} - -export function ShoppingListRecipeToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ShoppingListRecipeToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SourceImportDuplicate.ts b/vue3/src/openapi/models/SourceImportDuplicate.ts index fb1cebab5..894e982e0 100644 --- a/vue3/src/openapi/models/SourceImportDuplicate.ts +++ b/vue3/src/openapi/models/SourceImportDuplicate.ts @@ -56,15 +56,10 @@ export function SourceImportDuplicateFromJSONTyped(json: any, ignoreDiscriminato }; } -export function SourceImportDuplicateToJSON(json: any): SourceImportDuplicate { - return SourceImportDuplicateToJSONTyped(json, false); -} - -export function SourceImportDuplicateToJSONTyped(value?: SourceImportDuplicate | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportDuplicateToJSON(value?: SourceImportDuplicate | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SourceImportFood.ts b/vue3/src/openapi/models/SourceImportFood.ts index 5a8968b2d..2c3e08dd5 100644 --- a/vue3/src/openapi/models/SourceImportFood.ts +++ b/vue3/src/openapi/models/SourceImportFood.ts @@ -49,15 +49,10 @@ export function SourceImportFoodFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function SourceImportFoodToJSON(json: any): SourceImportFood { - return SourceImportFoodToJSONTyped(json, false); -} - -export function SourceImportFoodToJSONTyped(value?: SourceImportFood | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportFoodToJSON(value?: SourceImportFood | null): any { if (value == null) { return value; } - return { 'name': value['name'], diff --git a/vue3/src/openapi/models/SourceImportIngredient.ts b/vue3/src/openapi/models/SourceImportIngredient.ts index 89db0ff3e..b8e667636 100644 --- a/vue3/src/openapi/models/SourceImportIngredient.ts +++ b/vue3/src/openapi/models/SourceImportIngredient.ts @@ -18,14 +18,12 @@ import { SourceImportUnitFromJSON, SourceImportUnitFromJSONTyped, SourceImportUnitToJSON, - SourceImportUnitToJSONTyped, } from './SourceImportUnit'; import type { SourceImportFood } from './SourceImportFood'; import { SourceImportFoodFromJSON, SourceImportFoodFromJSONTyped, SourceImportFoodToJSON, - SourceImportFoodToJSONTyped, } from './SourceImportFood'; /** @@ -95,15 +93,10 @@ export function SourceImportIngredientFromJSONTyped(json: any, ignoreDiscriminat }; } -export function SourceImportIngredientToJSON(json: any): SourceImportIngredient { - return SourceImportIngredientToJSONTyped(json, false); -} - -export function SourceImportIngredientToJSONTyped(value?: SourceImportIngredient | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportIngredientToJSON(value?: SourceImportIngredient | null): any { if (value == null) { return value; } - return { 'amount': value['amount'], diff --git a/vue3/src/openapi/models/SourceImportKeyword.ts b/vue3/src/openapi/models/SourceImportKeyword.ts index 80c9579b3..665b539da 100644 --- a/vue3/src/openapi/models/SourceImportKeyword.ts +++ b/vue3/src/openapi/models/SourceImportKeyword.ts @@ -24,7 +24,7 @@ export interface SourceImportKeyword { * @type {number} * @memberof SourceImportKeyword */ - id?: number | null; + id?: number; /** * * @type {string} @@ -72,15 +72,10 @@ export function SourceImportKeywordFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function SourceImportKeywordToJSON(json: any): SourceImportKeyword { - return SourceImportKeywordToJSONTyped(json, false); -} - -export function SourceImportKeywordToJSONTyped(value?: SourceImportKeyword | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportKeywordToJSON(value?: SourceImportKeyword | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SourceImportProperty.ts b/vue3/src/openapi/models/SourceImportProperty.ts index 80ec65c4f..ea5a9ed7a 100644 --- a/vue3/src/openapi/models/SourceImportProperty.ts +++ b/vue3/src/openapi/models/SourceImportProperty.ts @@ -18,7 +18,6 @@ import { SourceImportPropertyTypeFromJSON, SourceImportPropertyTypeFromJSONTyped, SourceImportPropertyTypeToJSON, - SourceImportPropertyTypeToJSONTyped, } from './SourceImportPropertyType'; /** @@ -65,15 +64,10 @@ export function SourceImportPropertyFromJSONTyped(json: any, ignoreDiscriminator }; } -export function SourceImportPropertyToJSON(json: any): SourceImportProperty { - return SourceImportPropertyToJSONTyped(json, false); -} - -export function SourceImportPropertyToJSONTyped(value?: SourceImportProperty | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportPropertyToJSON(value?: SourceImportProperty | null): any { if (value == null) { return value; } - return { 'property_type': SourceImportPropertyTypeToJSON(value['propertyType']), diff --git a/vue3/src/openapi/models/SourceImportPropertyType.ts b/vue3/src/openapi/models/SourceImportPropertyType.ts index 017916a09..86fe46fe8 100644 --- a/vue3/src/openapi/models/SourceImportPropertyType.ts +++ b/vue3/src/openapi/models/SourceImportPropertyType.ts @@ -56,15 +56,10 @@ export function SourceImportPropertyTypeFromJSONTyped(json: any, ignoreDiscrimin }; } -export function SourceImportPropertyTypeToJSON(json: any): SourceImportPropertyType { - return SourceImportPropertyTypeToJSONTyped(json, false); -} - -export function SourceImportPropertyTypeToJSONTyped(value?: SourceImportPropertyType | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportPropertyTypeToJSON(value?: SourceImportPropertyType | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SourceImportRecipe.ts b/vue3/src/openapi/models/SourceImportRecipe.ts index 927bffbec..8e4acf068 100644 --- a/vue3/src/openapi/models/SourceImportRecipe.ts +++ b/vue3/src/openapi/models/SourceImportRecipe.ts @@ -18,21 +18,18 @@ import { SourceImportStepFromJSON, SourceImportStepFromJSONTyped, SourceImportStepToJSON, - SourceImportStepToJSONTyped, } from './SourceImportStep'; import type { SourceImportProperty } from './SourceImportProperty'; import { SourceImportPropertyFromJSON, SourceImportPropertyFromJSONTyped, SourceImportPropertyToJSON, - SourceImportPropertyToJSONTyped, } from './SourceImportProperty'; import type { SourceImportKeyword } from './SourceImportKeyword'; import { SourceImportKeywordFromJSON, SourceImportKeywordFromJSONTyped, SourceImportKeywordToJSON, - SourceImportKeywordToJSONTyped, } from './SourceImportKeyword'; /** @@ -159,15 +156,10 @@ export function SourceImportRecipeFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function SourceImportRecipeToJSON(json: any): SourceImportRecipe { - return SourceImportRecipeToJSONTyped(json, false); -} - -export function SourceImportRecipeToJSONTyped(value?: SourceImportRecipe | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportRecipeToJSON(value?: SourceImportRecipe | null): any { if (value == null) { return value; } - return { 'steps': ((value['steps'] as Array).map(SourceImportStepToJSON)), diff --git a/vue3/src/openapi/models/SourceImportStep.ts b/vue3/src/openapi/models/SourceImportStep.ts index facf5407b..39f034343 100644 --- a/vue3/src/openapi/models/SourceImportStep.ts +++ b/vue3/src/openapi/models/SourceImportStep.ts @@ -18,7 +18,6 @@ import { SourceImportIngredientFromJSON, SourceImportIngredientFromJSONTyped, SourceImportIngredientToJSON, - SourceImportIngredientToJSONTyped, } from './SourceImportIngredient'; /** @@ -73,15 +72,10 @@ export function SourceImportStepFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function SourceImportStepToJSON(json: any): SourceImportStep { - return SourceImportStepToJSONTyped(json, false); -} - -export function SourceImportStepToJSONTyped(value?: SourceImportStep | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportStepToJSON(value?: SourceImportStep | null): any { if (value == null) { return value; } - return { 'instruction': value['instruction'], diff --git a/vue3/src/openapi/models/SourceImportUnit.ts b/vue3/src/openapi/models/SourceImportUnit.ts index 973e2b5d0..69280a523 100644 --- a/vue3/src/openapi/models/SourceImportUnit.ts +++ b/vue3/src/openapi/models/SourceImportUnit.ts @@ -49,15 +49,10 @@ export function SourceImportUnitFromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function SourceImportUnitToJSON(json: any): SourceImportUnit { - return SourceImportUnitToJSONTyped(json, false); -} - -export function SourceImportUnitToJSONTyped(value?: SourceImportUnit | null, ignoreDiscriminator: boolean = false): any { +export function SourceImportUnitToJSON(value?: SourceImportUnit | null): any { if (value == null) { return value; } - return { 'name': value['name'], diff --git a/vue3/src/openapi/models/Space.ts b/vue3/src/openapi/models/Space.ts index f409d2c41..fe7a259b5 100644 --- a/vue3/src/openapi/models/Space.ts +++ b/vue3/src/openapi/models/Space.ts @@ -18,35 +18,30 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { UserFileView } from './UserFileView'; import { UserFileViewFromJSON, UserFileViewFromJSONTyped, UserFileViewToJSON, - UserFileViewToJSONTyped, } from './UserFileView'; import type { SpaceNavTextColorEnum } from './SpaceNavTextColorEnum'; import { SpaceNavTextColorEnumFromJSON, SpaceNavTextColorEnumFromJSONTyped, SpaceNavTextColorEnumToJSON, - SpaceNavTextColorEnumToJSONTyped, } from './SpaceNavTextColorEnum'; import type { FoodInheritField } from './FoodInheritField'; import { FoodInheritFieldFromJSON, FoodInheritFieldFromJSONTyped, FoodInheritFieldToJSON, - FoodInheritFieldToJSONTyped, } from './FoodInheritField'; import type { SpaceThemeEnum } from './SpaceThemeEnum'; import { SpaceThemeEnumFromJSON, SpaceThemeEnumFromJSONTyped, SpaceThemeEnumToJSON, - SpaceThemeEnumToJSONTyped, } from './SpaceThemeEnum'; /** @@ -144,13 +139,13 @@ export interface Space { * @type {UserFileView} * @memberof Space */ - image?: UserFileView | null; + image?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - navLogo?: UserFileView | null; + navLogo?: UserFileView; /** * * @type {SpaceThemeEnum} @@ -162,7 +157,7 @@ export interface Space { * @type {UserFileView} * @memberof Space */ - customSpaceTheme?: UserFileView | null; + customSpaceTheme?: UserFileView; /** * * @type {string} @@ -180,47 +175,45 @@ export interface Space { * @type {UserFileView} * @memberof Space */ - logoColor32?: UserFileView | null; + logoColor32?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - logoColor128?: UserFileView | null; + logoColor128?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - logoColor144?: UserFileView | null; + logoColor144?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - logoColor180?: UserFileView | null; + logoColor180?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - logoColor192?: UserFileView | null; + logoColor192?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - logoColor512?: UserFileView | null; + logoColor512?: UserFileView; /** * * @type {UserFileView} * @memberof Space */ - logoColorSvg?: UserFileView | null; + logoColorSvg?: UserFileView; } - - /** * Check if a given object implements the Space interface. */ @@ -279,15 +272,10 @@ export function SpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Spa }; } -export function SpaceToJSON(json: any): Space { - return SpaceToJSONTyped(json, false); -} - -export function SpaceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function SpaceToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SpaceNavTextColorEnum.ts b/vue3/src/openapi/models/SpaceNavTextColorEnum.ts index 4d0f37d5f..c8e6f9c67 100644 --- a/vue3/src/openapi/models/SpaceNavTextColorEnum.ts +++ b/vue3/src/openapi/models/SpaceNavTextColorEnum.ts @@ -30,7 +30,7 @@ export type SpaceNavTextColorEnum = typeof SpaceNavTextColorEnum[keyof typeof Sp export function instanceOfSpaceNavTextColorEnum(value: any): boolean { for (const key in SpaceNavTextColorEnum) { if (Object.prototype.hasOwnProperty.call(SpaceNavTextColorEnum, key)) { - if (SpaceNavTextColorEnum[key as keyof typeof SpaceNavTextColorEnum] === value) { + if (SpaceNavTextColorEnum[key] === value) { return true; } } @@ -50,7 +50,3 @@ export function SpaceNavTextColorEnumToJSON(value?: SpaceNavTextColorEnum | null return value as any; } -export function SpaceNavTextColorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): SpaceNavTextColorEnum { - return value as SpaceNavTextColorEnum; -} - diff --git a/vue3/src/openapi/models/SpaceThemeEnum.ts b/vue3/src/openapi/models/SpaceThemeEnum.ts index f2cc2c9a6..32125961a 100644 --- a/vue3/src/openapi/models/SpaceThemeEnum.ts +++ b/vue3/src/openapi/models/SpaceThemeEnum.ts @@ -38,7 +38,7 @@ export type SpaceThemeEnum = typeof SpaceThemeEnum[keyof typeof SpaceThemeEnum]; export function instanceOfSpaceThemeEnum(value: any): boolean { for (const key in SpaceThemeEnum) { if (Object.prototype.hasOwnProperty.call(SpaceThemeEnum, key)) { - if (SpaceThemeEnum[key as keyof typeof SpaceThemeEnum] === value) { + if (SpaceThemeEnum[key] === value) { return true; } } @@ -58,7 +58,3 @@ export function SpaceThemeEnumToJSON(value?: SpaceThemeEnum | null): any { return value as any; } -export function SpaceThemeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): SpaceThemeEnum { - return value as SpaceThemeEnum; -} - diff --git a/vue3/src/openapi/models/Step.ts b/vue3/src/openapi/models/Step.ts index bf8c5069a..6edc19c5a 100644 --- a/vue3/src/openapi/models/Step.ts +++ b/vue3/src/openapi/models/Step.ts @@ -18,14 +18,12 @@ import { UserFileViewFromJSON, UserFileViewFromJSONTyped, UserFileViewToJSON, - UserFileViewToJSONTyped, } from './UserFileView'; import type { Ingredient } from './Ingredient'; import { IngredientFromJSON, IngredientFromJSONTyped, IngredientToJSON, - IngredientToJSONTyped, } from './Ingredient'; /** @@ -87,13 +85,13 @@ export interface Step { * @type {UserFileView} * @memberof Step */ - file?: UserFileView | null; + file?: UserFileView; /** * * @type {number} * @memberof Step */ - stepRecipe?: number | null; + stepRecipe?: number; /** * * @type {any} @@ -151,15 +149,10 @@ export function StepFromJSONTyped(json: any, ignoreDiscriminator: boolean): Step }; } -export function StepToJSON(json: any): Step { - return StepToJSONTyped(json, false); -} - -export function StepToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function StepToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Storage.ts b/vue3/src/openapi/models/Storage.ts index e579995a0..5424ccdff 100644 --- a/vue3/src/openapi/models/Storage.ts +++ b/vue3/src/openapi/models/Storage.ts @@ -18,7 +18,6 @@ import { MethodEnumFromJSON, MethodEnumFromJSONTyped, MethodEnumToJSON, - MethodEnumToJSONTyped, } from './MethodEnum'; /** @@ -50,19 +49,19 @@ export interface Storage { * @type {string} * @memberof Storage */ - username?: string | null; + username?: string; /** * * @type {string} * @memberof Storage */ - password?: string | null; + password?: string; /** * * @type {string} * @memberof Storage */ - token?: string | null; + token?: string; /** * * @type {number} @@ -71,8 +70,6 @@ export interface Storage { readonly createdBy: number; } - - /** * Check if a given object implements the Storage interface. */ @@ -102,15 +99,10 @@ export function StorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): S }; } -export function StorageToJSON(json: any): Storage { - return StorageToJSONTyped(json, false); -} - -export function StorageToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function StorageToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Supermarket.ts b/vue3/src/openapi/models/Supermarket.ts index 57ad4eac8..5e7c185ce 100644 --- a/vue3/src/openapi/models/Supermarket.ts +++ b/vue3/src/openapi/models/Supermarket.ts @@ -18,7 +18,6 @@ import { SupermarketCategoryRelationFromJSON, SupermarketCategoryRelationFromJSONTyped, SupermarketCategoryRelationToJSON, - SupermarketCategoryRelationToJSONTyped, } from './SupermarketCategoryRelation'; /** @@ -78,7 +77,7 @@ export interface Supermarket { * @type {string} * @memberof Supermarket */ - description?: string | null; + description?: string; /** * * @type {Array} @@ -90,7 +89,7 @@ export interface Supermarket { * @type {string} * @memberof Supermarket */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -120,15 +119,10 @@ export function SupermarketFromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function SupermarketToJSON(json: any): Supermarket { - return SupermarketToJSONTyped(json, false); -} - -export function SupermarketToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function SupermarketToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SupermarketCategory.ts b/vue3/src/openapi/models/SupermarketCategory.ts index 44a5d0981..fa32c2183 100644 --- a/vue3/src/openapi/models/SupermarketCategory.ts +++ b/vue3/src/openapi/models/SupermarketCategory.ts @@ -70,7 +70,7 @@ export interface SupermarketCategory { * @type {string} * @memberof SupermarketCategory */ - description?: string | null; + description?: string; } /** @@ -97,15 +97,10 @@ export function SupermarketCategoryFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function SupermarketCategoryToJSON(json: any): SupermarketCategory { - return SupermarketCategoryToJSONTyped(json, false); -} - -export function SupermarketCategoryToJSONTyped(value?: SupermarketCategory | null, ignoreDiscriminator: boolean = false): any { +export function SupermarketCategoryToJSON(value?: SupermarketCategory | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SupermarketCategoryRelation.ts b/vue3/src/openapi/models/SupermarketCategoryRelation.ts index 050876a99..564236119 100644 --- a/vue3/src/openapi/models/SupermarketCategoryRelation.ts +++ b/vue3/src/openapi/models/SupermarketCategoryRelation.ts @@ -18,7 +18,6 @@ import { SupermarketCategoryFromJSON, SupermarketCategoryFromJSONTyped, SupermarketCategoryToJSON, - SupermarketCategoryToJSONTyped, } from './SupermarketCategory'; /** @@ -79,15 +78,10 @@ export function SupermarketCategoryRelationFromJSONTyped(json: any, ignoreDiscri }; } -export function SupermarketCategoryRelationToJSON(json: any): SupermarketCategoryRelation { - return SupermarketCategoryRelationToJSONTyped(json, false); -} - -export function SupermarketCategoryRelationToJSONTyped(value?: SupermarketCategoryRelation | null, ignoreDiscriminator: boolean = false): any { +export function SupermarketCategoryRelationToJSON(value?: SupermarketCategoryRelation | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/Sync.ts b/vue3/src/openapi/models/Sync.ts index 217d1fed6..fc6d26f77 100644 --- a/vue3/src/openapi/models/Sync.ts +++ b/vue3/src/openapi/models/Sync.ts @@ -48,7 +48,7 @@ export interface Sync { * @type {Date} * @memberof Sync */ - lastChecked?: Date | null; + lastChecked?: Date; /** * * @type {Date} @@ -93,15 +93,10 @@ export function SyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sync }; } -export function SyncToJSON(json: any): Sync { - return SyncToJSONTyped(json, false); -} - -export function SyncToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function SyncToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/SyncLog.ts b/vue3/src/openapi/models/SyncLog.ts index 6c040a3bc..5c5e4c4da 100644 --- a/vue3/src/openapi/models/SyncLog.ts +++ b/vue3/src/openapi/models/SyncLog.ts @@ -79,15 +79,10 @@ export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): S }; } -export function SyncLogToJSON(json: any): SyncLog { - return SyncLogToJSONTyped(json, false); -} - -export function SyncLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function SyncLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/ThemeEnum.ts b/vue3/src/openapi/models/ThemeEnum.ts index 64df9eb2f..33b195391 100644 --- a/vue3/src/openapi/models/ThemeEnum.ts +++ b/vue3/src/openapi/models/ThemeEnum.ts @@ -36,7 +36,7 @@ export type ThemeEnum = typeof ThemeEnum[keyof typeof ThemeEnum]; export function instanceOfThemeEnum(value: any): boolean { for (const key in ThemeEnum) { if (Object.prototype.hasOwnProperty.call(ThemeEnum, key)) { - if (ThemeEnum[key as keyof typeof ThemeEnum] === value) { + if (ThemeEnum[key] === value) { return true; } } @@ -56,7 +56,3 @@ export function ThemeEnumToJSON(value?: ThemeEnum | null): any { return value as any; } -export function ThemeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): ThemeEnum { - return value as ThemeEnum; -} - diff --git a/vue3/src/openapi/models/Unit.ts b/vue3/src/openapi/models/Unit.ts index d6bed34c2..6f89e6ce9 100644 --- a/vue3/src/openapi/models/Unit.ts +++ b/vue3/src/openapi/models/Unit.ts @@ -70,25 +70,25 @@ export interface Unit { * @type {string} * @memberof Unit */ - pluralName?: string | null; + pluralName?: string; /** * * @type {string} * @memberof Unit */ - description?: string | null; + description?: string; /** * * @type {string} * @memberof Unit */ - baseUnit?: string | null; + baseUnit?: string; /** * * @type {string} * @memberof Unit */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -118,15 +118,10 @@ export function UnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): Unit }; } -export function UnitToJSON(json: any): Unit { - return UnitToJSONTyped(json, false); -} - -export function UnitToJSONTyped(value?: Unit | null, ignoreDiscriminator: boolean = false): any { +export function UnitToJSON(value?: Unit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/UnitConversion.ts b/vue3/src/openapi/models/UnitConversion.ts index 1bfe40673..fadda2cca 100644 --- a/vue3/src/openapi/models/UnitConversion.ts +++ b/vue3/src/openapi/models/UnitConversion.ts @@ -18,14 +18,12 @@ import { UnitFromJSON, UnitFromJSONTyped, UnitToJSON, - UnitToJSONTyped, } from './Unit'; import type { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, - FoodToJSONTyped, } from './Food'; /** @@ -75,13 +73,13 @@ export interface UnitConversion { * @type {Food} * @memberof UnitConversion */ - food?: Food | null; + food?: Food; /** * * @type {string} * @memberof UnitConversion */ - openDataSlug?: string | null; + openDataSlug?: string; } /** @@ -117,15 +115,10 @@ export function UnitConversionFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function UnitConversionToJSON(json: any): UnitConversion { - return UnitConversionToJSONTyped(json, false); -} - -export function UnitConversionToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function UnitConversionToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/User.ts b/vue3/src/openapi/models/User.ts index 631074178..22ce799d5 100644 --- a/vue3/src/openapi/models/User.ts +++ b/vue3/src/openapi/models/User.ts @@ -99,15 +99,10 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User }; } -export function UserToJSON(json: any): User { - return UserToJSONTyped(json, false); -} - -export function UserToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function UserToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/UserFile.ts b/vue3/src/openapi/models/UserFile.ts index 57b41416a..a0a1d17d3 100644 --- a/vue3/src/openapi/models/UserFile.ts +++ b/vue3/src/openapi/models/UserFile.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -111,15 +110,10 @@ export function UserFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function UserFileToJSON(json: any): UserFile { - return UserFileToJSONTyped(json, false); -} - -export function UserFileToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function UserFileToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/UserFileView.ts b/vue3/src/openapi/models/UserFileView.ts index 35be1405b..34158b1e5 100644 --- a/vue3/src/openapi/models/UserFileView.ts +++ b/vue3/src/openapi/models/UserFileView.ts @@ -18,7 +18,6 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -104,15 +103,10 @@ export function UserFileViewFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function UserFileViewToJSON(json: any): UserFileView { - return UserFileViewToJSONTyped(json, false); -} - -export function UserFileViewToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function UserFileViewToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/UserPreference.ts b/vue3/src/openapi/models/UserPreference.ts index 3e371ae31..2725f0683 100644 --- a/vue3/src/openapi/models/UserPreference.ts +++ b/vue3/src/openapi/models/UserPreference.ts @@ -18,42 +18,36 @@ import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; import type { UserFileView } from './UserFileView'; import { UserFileViewFromJSON, UserFileViewFromJSONTyped, UserFileViewToJSON, - UserFileViewToJSONTyped, } from './UserFileView'; import type { UserPreferenceNavTextColorEnum } from './UserPreferenceNavTextColorEnum'; import { UserPreferenceNavTextColorEnumFromJSON, UserPreferenceNavTextColorEnumFromJSONTyped, UserPreferenceNavTextColorEnumToJSON, - UserPreferenceNavTextColorEnumToJSONTyped, } from './UserPreferenceNavTextColorEnum'; import type { FoodInheritField } from './FoodInheritField'; import { FoodInheritFieldFromJSON, FoodInheritFieldFromJSONTyped, FoodInheritFieldToJSON, - FoodInheritFieldToJSONTyped, } from './FoodInheritField'; import type { ThemeEnum } from './ThemeEnum'; import { ThemeEnumFromJSON, ThemeEnumFromJSONTyped, ThemeEnumToJSON, - ThemeEnumToJSONTyped, } from './ThemeEnum'; import type { DefaultPageEnum } from './DefaultPageEnum'; import { DefaultPageEnumFromJSON, DefaultPageEnumFromJSONTyped, DefaultPageEnumToJSON, - DefaultPageEnumToJSONTyped, } from './DefaultPageEnum'; /** @@ -73,7 +67,7 @@ export interface UserPreference { * @type {UserFileView} * @memberof UserPreference */ - image?: UserFileView | null; + image?: UserFileView; /** * * @type {ThemeEnum} @@ -127,7 +121,7 @@ export interface UserPreference { * @type {Array} * @memberof UserPreference */ - planShare?: Array | null; + planShare?: Array; /** * * @type {boolean} @@ -187,7 +181,7 @@ export interface UserPreference { * @type {Array} * @memberof UserPreference */ - shoppingShare?: Array | null; + shoppingShare?: Array; /** * * @type {number} @@ -238,8 +232,6 @@ export interface UserPreference { readonly foodChildrenExist: boolean; } - - /** * Check if a given object implements the UserPreference interface. */ @@ -292,15 +284,10 @@ export function UserPreferenceFromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function UserPreferenceToJSON(json: any): UserPreference { - return UserPreferenceToJSONTyped(json, false); -} - -export function UserPreferenceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function UserPreferenceToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'image': UserFileViewToJSON(value['image']), diff --git a/vue3/src/openapi/models/UserPreferenceNavTextColorEnum.ts b/vue3/src/openapi/models/UserPreferenceNavTextColorEnum.ts index acd1ef2e8..e82652a3b 100644 --- a/vue3/src/openapi/models/UserPreferenceNavTextColorEnum.ts +++ b/vue3/src/openapi/models/UserPreferenceNavTextColorEnum.ts @@ -28,7 +28,7 @@ export type UserPreferenceNavTextColorEnum = typeof UserPreferenceNavTextColorEn export function instanceOfUserPreferenceNavTextColorEnum(value: any): boolean { for (const key in UserPreferenceNavTextColorEnum) { if (Object.prototype.hasOwnProperty.call(UserPreferenceNavTextColorEnum, key)) { - if (UserPreferenceNavTextColorEnum[key as keyof typeof UserPreferenceNavTextColorEnum] === value) { + if (UserPreferenceNavTextColorEnum[key] === value) { return true; } } @@ -48,7 +48,3 @@ export function UserPreferenceNavTextColorEnumToJSON(value?: UserPreferenceNavTe return value as any; } -export function UserPreferenceNavTextColorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UserPreferenceNavTextColorEnum { - return value as UserPreferenceNavTextColorEnum; -} - diff --git a/vue3/src/openapi/models/UserSpace.ts b/vue3/src/openapi/models/UserSpace.ts index 0300cd927..94791d124 100644 --- a/vue3/src/openapi/models/UserSpace.ts +++ b/vue3/src/openapi/models/UserSpace.ts @@ -18,14 +18,12 @@ import { GroupFromJSON, GroupFromJSONTyped, GroupToJSON, - GroupToJSONTyped, } from './Group'; import type { User } from './User'; import { UserFromJSON, UserFromJSONTyped, UserToJSON, - UserToJSONTyped, } from './User'; /** @@ -69,7 +67,7 @@ export interface UserSpace { * @type {string} * @memberof UserSpace */ - internalNote?: string | null; + internalNote?: string; /** * * @type {number} @@ -125,15 +123,10 @@ export function UserSpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function UserSpaceToJSON(json: any): UserSpace { - return UserSpaceToJSONTyped(json, false); -} - -export function UserSpaceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function UserSpaceToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/models/ViewLog.ts b/vue3/src/openapi/models/ViewLog.ts index 3cf739133..6ac71f885 100644 --- a/vue3/src/openapi/models/ViewLog.ts +++ b/vue3/src/openapi/models/ViewLog.ts @@ -72,15 +72,10 @@ export function ViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): V }; } -export function ViewLogToJSON(json: any): ViewLog { - return ViewLogToJSONTyped(json, false); -} - -export function ViewLogToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ViewLogToJSON(value?: Omit | null): any { if (value == null) { return value; } - return { 'id': value['id'], diff --git a/vue3/src/openapi/openapitools.json b/vue3/src/openapi/openapitools.json index f8d07ce1d..5c50d6a26 100644 --- a/vue3/src/openapi/openapitools.json +++ b/vue3/src/openapi/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.10.0" + "version": "7.6.0" } } diff --git a/vue3/src/openapi/templates/apis.mustache b/vue3/src/openapi/templates/apis.mustache new file mode 100644 index 000000000..d77a0829e --- /dev/null +++ b/vue3/src/openapi/templates/apis.mustache @@ -0,0 +1,446 @@ +/* tslint:disable */ +/* eslint-disable */ +{{>licenseInfo}} + +import * as runtime from '../runtime{{importFileExtension}}'; +{{#imports.0}} +import type { + {{#imports}} + {{className}}, + {{/imports}} +} from '../models/index{{importFileExtension}}'; +{{^withoutRuntimeChecks}} +import { + {{#imports}} + {{className}}FromJSON, + {{className}}ToJSON, + {{/imports}} +} from '../models/index{{importFileExtension}}'; +{{/withoutRuntimeChecks}} +{{/imports.0}} + +{{#operations}} +{{#operation}} +{{#allParams.0}} +export interface {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request { +{{#allParams}} + {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{#lambda.camelcase}}{{baseName}}{{/lambda.camelcase}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}}{{#required}} | null{{/required}}{{/isNullable}}{{/isEnum}}; +{{/allParams}} +} + +{{/allParams.0}} +{{/operation}} +{{/operations}} +{{#withInterfaces}} +{{#operations}} +/** + * {{classname}} - interface + * {{#lambda.indented_1}}{{{unescapedDescription}}}{{/lambda.indented_1}} + * @export + * @interface {{classname}}Interface + */ +export interface {{classname}}Interface { +{{#operation}} + /** + * {{¬es}} + {{#summary}} + * @summary {{&summary}} + {{/summary}} + {{#allParams}} + * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}} + {{/allParams}} + * @param {*} [options] Override http request option. + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + * @throws {RequiredError} + * @memberof {{classname}}Interface + */ + {{nickname}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + {{#notes}} + * {{¬es}} + {{/notes}} + {{#summary}} + * {{&summary}} + {{/summary}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{^useSingleRequestParameter}} + {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}}{{#required}} | null{{/required}}{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{/useSingleRequestParameter}} + {{#useSingleRequestParameter}} + {{nickname}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; + {{/useSingleRequestParameter}} + +{{/operation}} +} + +{{/operations}} +{{/withInterfaces}} +{{#operations}} +/** + * {{#lambda.indented_star_1}}{{{unescapedDescription}}}{{/lambda.indented_star_1}} + */ +{{#withInterfaces}} +export class {{classname}} extends runtime.BaseAPI implements {{classname}}Interface { +{{/withInterfaces}} +{{^withInterfaces}} +export class {{classname}} extends runtime.BaseAPI { +{{/withInterfaces}} + + {{#operation}} + /** + {{#notes}} + * {{¬es}} + {{/notes}} + {{#summary}} + * {{&summary}} + {{/summary}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + async {{nickname}}Raw({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + {{#allParams}} + {{#required}} + if (requestParameters['{{paramName}}'] == null) { + throw new runtime.RequiredError( + '{{paramName}}', + 'Required parameter "{{paramName}}" was null or undefined when calling {{nickname}}().' + ); + } + + {{/required}} + {{/allParams}} + const queryParameters: any = {}; + + {{#queryParams}} + {{#isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isCollectionFormatMulti}} + queryParameters['{{baseName}}'] = requestParameters['{{paramName}}']; + {{/isCollectionFormatMulti}} + {{^isCollectionFormatMulti}} + queryParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + {{/isCollectionFormatMulti}} + } + + {{/isArray}} + {{^isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isDateTimeType}} + queryParameters['{{baseName}}'] = (requestParameters['{{paramName}}'] as any).toISOString(); + {{/isDateTimeType}} + {{^isDateTimeType}} + {{#isDateType}} + queryParameters['{{baseName}}'] = (requestParameters['{{paramName}}'] as any).toISOString().substring(0,10); + {{/isDateType}} + {{^isDateType}} + queryParameters['{{baseName}}'] = requestParameters['{{paramName}}']; + {{/isDateType}} + {{/isDateTimeType}} + } + + {{/isArray}} + {{/queryParams}} + const headerParameters: runtime.HTTPHeaders = {}; + + {{#bodyParam}} + {{^consumes}} + headerParameters['Content-Type'] = 'application/json'; + + {{/consumes}} + {{#consumes.0}} + headerParameters['Content-Type'] = '{{{mediaType}}}'; + + {{/consumes.0}} + {{/bodyParam}} + {{#headerParams}} + {{#isArray}} + if (requestParameters['{{paramName}}'] != null) { + headerParameters['{{baseName}}'] = {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"]); + } + + {{/isArray}} + {{^isArray}} + if (requestParameters['{{paramName}}'] != null) { + headerParameters['{{baseName}}'] = String(requestParameters['{{paramName}}']); + } + + {{/isArray}} + {{/headerParams}} + {{#authMethods}} + {{#isBasic}} + {{#isBasicBasic}} + if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) { + headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password); + } + {{/isBasicBasic}} + {{#isBasicBearer}} + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}]); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + {{/isBasicBearer}} + {{/isBasic}} + {{#isApiKey}} + {{#isKeyInHeader}} + if (this.configuration && this.configuration.apiKey) { + headerParameters["{{keyParamName}}"] = await this.configuration.apiKey("{{keyParamName}}"); // {{name}} authentication + } + + {{/isKeyInHeader}} + {{#isKeyInQuery}} + if (this.configuration && this.configuration.apiKey) { + queryParameters["{{keyParamName}}"] = await this.configuration.apiKey("{{keyParamName}}"); // {{name}} authentication + } + + {{/isKeyInQuery}} + {{/isApiKey}} + {{#isOAuth}} + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}]); + } + + {{/isOAuth}} + {{/authMethods}} + {{#hasFormParams}} + const consumes: runtime.Consume[] = [ + {{#consumes}} + { contentType: '{{{mediaType}}}' }, + {{/consumes}} + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + {{#formParams}} + {{#isFile}} + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + {{/isFile}} + {{/formParams}} + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + {{#formParams}} + {{#isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isCollectionFormatMulti}} + requestParameters['{{paramName}}'].forEach((element) => { + formParams.append('{{baseName}}', element as any); + }) + {{/isCollectionFormatMulti}} + {{^isCollectionFormatMulti}} + formParams.append('{{baseName}}', {{#uniqueItems}}Array.from({{/uniqueItems}}requestParameters['{{paramName}}']{{#uniqueItems}}){{/uniqueItems}}!.join(runtime.COLLECTION_FORMATS["{{collectionFormat}}"])); + {{/isCollectionFormatMulti}} + } + + {{/isArray}} + {{^isArray}} + if (requestParameters['{{paramName}}'] != null) { + {{#isPrimitiveType}} + formParams.append('{{baseName}}', requestParameters['{{paramName}}'] as any); + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{^withoutRuntimeChecks}} + formParams.append('{{baseName}}', new Blob([JSON.stringify({{{dataType}}}ToJSON(requestParameters['{{paramName}}']))], { type: "application/json", })); + {{/withoutRuntimeChecks}}{{#withoutRuntimeChecks}} + formParams.append('{{baseName}}', new Blob([JSON.stringify(requestParameters['{{paramName}}'])], { type: "application/json", })); + {{/withoutRuntimeChecks}} + {{/isPrimitiveType}} + } + + {{/isArray}} + {{/formParams}} + {{/hasFormParams}} + const response = await this.request({ + path: `{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(requestParameters['{{paramName}}']))){{/pathParams}}, + method: '{{httpMethod}}', + headers: headerParameters, + query: queryParameters, + {{#hasBodyParam}} + {{#bodyParam}} + {{#isContainer}} + {{^withoutRuntimeChecks}} + body: requestParameters['{{paramName}}']{{#isArray}}{{#items}}{{^isPrimitiveType}}!.map({{datatype}}ToJSON){{/isPrimitiveType}}{{/items}}{{/isArray}}, + {{/withoutRuntimeChecks}} + {{#withoutRuntimeChecks}} + body: requestParameters['{{paramName}}'], + {{/withoutRuntimeChecks}} + {{/isContainer}} + {{^isContainer}} + {{^isPrimitiveType}} + {{^withoutRuntimeChecks}} + body: {{dataType}}ToJSON(requestParameters['{{paramName}}']), + {{/withoutRuntimeChecks}} + {{#withoutRuntimeChecks}} + body: requestParameters['{{paramName}}'], + {{/withoutRuntimeChecks}} + {{/isPrimitiveType}} + {{#isPrimitiveType}} + body: requestParameters['{{paramName}}'] as any, + {{/isPrimitiveType}} + {{/isContainer}} + {{/bodyParam}} + {{/hasBodyParam}} + {{#hasFormParams}} + body: formParams, + {{/hasFormParams}} + }, initOverrides); + + {{#returnType}} + {{#isResponseFile}} + return new runtime.BlobApiResponse(response); + {{/isResponseFile}} + {{^isResponseFile}} + {{#returnTypeIsPrimitive}} + {{#isMap}} + return new runtime.JSONApiResponse(response); + {{/isMap}} + {{#isArray}} + return new runtime.JSONApiResponse(response); + {{/isArray}} + {{#returnSimpleType}} + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse<{{returnType}}>(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + {{/returnSimpleType}} + {{/returnTypeIsPrimitive}} + {{^returnTypeIsPrimitive}} + {{#isArray}} + return new runtime.JSONApiResponse(response{{^withoutRuntimeChecks}}, (jsonValue) => {{#uniqueItems}}new Set({{/uniqueItems}}jsonValue.map({{returnBaseType}}FromJSON){{/withoutRuntimeChecks}}){{#uniqueItems}}){{/uniqueItems}}; + {{/isArray}} + {{^isArray}} + {{#isMap}} + return new runtime.JSONApiResponse(response{{^withoutRuntimeChecks}}, (jsonValue) => runtime.mapValues(jsonValue, {{returnBaseType}}FromJSON){{/withoutRuntimeChecks}}); + {{/isMap}} + {{^isMap}} + return new runtime.JSONApiResponse(response{{^withoutRuntimeChecks}}, (jsonValue) => {{returnBaseType}}FromJSON(jsonValue){{/withoutRuntimeChecks}}); + {{/isMap}} + {{/isArray}} + {{/returnTypeIsPrimitive}} + {{/isResponseFile}} + {{/returnType}} + {{^returnType}} + return new runtime.VoidApiResponse(response); + {{/returnType}} + } + + /** + {{#notes}} + * {{¬es}} + {{/notes}} + {{#summary}} + * {{&summary}} + {{/summary}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{^useSingleRequestParameter}} + async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}}{{#required}} | null{{/required}}{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + {{#returnType}} + const response = await this.{{nickname}}Raw({{#allParams.0}}{ {{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }, {{/allParams.0}}initOverrides); + {{#isResponseOptional}} + switch (response.raw.status) { + {{#responses}} + {{#is2xx}} + case {{code}}: + return {{#dataType}}await response.value(){{/dataType}}{{^dataType}}null{{/dataType}}; + {{/is2xx}} + {{/responses}} + default: + return await response.value(); + } + {{/isResponseOptional}} + {{^isResponseOptional}} + return await response.value(); + {{/isResponseOptional}} + {{/returnType}} + {{^returnType}} + await this.{{nickname}}Raw({{#allParams.0}}{ {{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }, {{/allParams.0}}initOverrides); + {{/returnType}} + } + {{/useSingleRequestParameter}} + {{#useSingleRequestParameter}} + async {{nickname}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{{{returnType}}}{{#returnType}}{{#isResponseOptional}} | null | undefined {{/isResponseOptional}}{{/returnType}}{{^returnType}}void{{/returnType}}> { + {{#returnType}} + const response = await this.{{nickname}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + {{#isResponseOptional}} + switch (response.raw.status) { + {{#responses}} + {{#is2xx}} + case {{code}}: + return {{#dataType}}await response.value(){{/dataType}}{{^dataType}}null{{/dataType}}; + {{/is2xx}} + {{/responses}} + default: + return await response.value(); + } + {{/isResponseOptional}} + {{^isResponseOptional}} + return await response.value(); + {{/isResponseOptional}} + {{/returnType}} + {{^returnType}} + await this.{{nickname}}Raw({{#allParams.0}}requestParameters, {{/allParams.0}}initOverrides); + {{/returnType}} + } + {{/useSingleRequestParameter}} + + {{/operation}} +} +{{/operations}} +{{#hasEnums}} + +{{#operations}} +{{#operation}} +{{#allParams}} +{{#isEnum}} +{{#stringEnums}} +/** + * @export + * @enum {string} + */ +export enum {{operationIdCamelCase}}{{enumName}} { +{{#allowableValues}} + {{#enumVars}} + {{{name}}} = {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} +{{/allowableValues}} +} +{{/stringEnums}} +{{^stringEnums}} +/** + * @export + */ +export const {{operationIdCamelCase}}{{enumName}} = { +{{#allowableValues}} + {{#enumVars}} + {{{name}}}: {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} +{{/allowableValues}} +} as const; +export type {{operationIdCamelCase}}{{enumName}} = typeof {{operationIdCamelCase}}{{enumName}}[keyof typeof {{operationIdCamelCase}}{{enumName}}]; +{{/stringEnums}} +{{/isEnum}} +{{/allParams}} +{{/operation}} +{{/operations}} +{{/hasEnums}} diff --git a/vue3/src/openapi/templates/modelGeneric.mustache b/vue3/src/openapi/templates/modelGeneric.mustache new file mode 100644 index 000000000..77df68a1b --- /dev/null +++ b/vue3/src/openapi/templates/modelGeneric.mustache @@ -0,0 +1,160 @@ +import { mapValues } from '../runtime{{importFileExtension}}'; +{{#hasImports}} +{{#tsImports}} +import type { {{{classname}}} } from './{{filename}}{{importFileExtension}}'; +import { + {{classname}}FromJSON, + {{classname}}FromJSONTyped, + {{classname}}ToJSON, +} from './{{filename}}{{importFileExtension}}'; +{{/tsImports}} + +{{/hasImports}} +{{#discriminator}} +{{#discriminator.mappedModels}} +import { {{modelName}}FromJSONTyped } from './{{modelName}}{{importFileExtension}}'; +{{/discriminator.mappedModels}} +{{/discriminator}} +{{>modelGenericInterfaces}} + +/** + * Check if a given object implements the {{classname}} interface. + */ +export function instanceOf{{classname}}(value: object): value is {{classname}} { + {{#vars}} + {{#required}} + if (!('{{name}}' in value) || value['{{name}}'] === undefined) return false; + {{/required}} + {{/vars}} + return true; +} + +export function {{classname}}FromJSON(json: any): {{classname}} { + return {{classname}}FromJSONTyped(json, false); +} + +export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boolean): {{classname}} { + {{#hasVars}} + if (json == null) { + return json; + } +{{#discriminator}} + if (!ignoreDiscriminator) { +{{#discriminator.mappedModels}} + if (json['{{discriminator.propertyBaseName}}'] === '{{mappingName}}') { + return {{modelName}}FromJSONTyped(json, true); + } +{{/discriminator.mappedModels}} + } +{{/discriminator}} + return { + {{#parent}}...{{{.}}}FromJSONTyped(json, ignoreDiscriminator),{{/parent}} + {{#additionalPropertiesType}} + ...json, + {{/additionalPropertiesType}} + {{#vars}} + {{#isPrimitiveType}} + {{#isDateType}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}new Date(json['{{baseName}}'])), + {{/isDateType}} + {{#isDateTimeType}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}new Date(json['{{baseName}}'])), + {{/isDateTimeType}} + {{^isDateType}} + {{^isDateTimeType}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}json['{{baseName}}'], + {{/isDateTimeType}} + {{/isDateType}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isArray}} + {{#uniqueItems}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}new Set((json['{{baseName}}'] as Array).map({{#items}}{{datatype}}{{/items}}FromJSON))), + {{/uniqueItems}} + {{^uniqueItems}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}(json['{{baseName}}'] as Array).map({{#items}}{{datatype}}{{/items}}FromJSON)), + {{/uniqueItems}} + {{/isArray}} + {{#isMap}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}json['{{baseName}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(json['{{baseName}}'], {{#items}}{{datatype}}{{/items}}FromJSON)), + {{/isMap}} + {{^isArray}} + {{^isMap}} + {{^isFreeFormObject}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}{{datatype}}FromJSON(json['{{baseName}}']), + {{/isFreeFormObject}} + {{#isFreeFormObject}} + '{{name}}': {{^required}}json['{{baseName}}'] == null ? undefined : {{/required}}json['{{baseName}}'], + {{/isFreeFormObject}} + {{/isMap}} + {{/isArray}} + {{/isPrimitiveType}} + {{/vars}} + }; + {{/hasVars}} + {{^hasVars}} + return json; + {{/hasVars}} +} + +export function {{classname}}ToJSON(value?: {{#hasReadOnly}}Omit<{{classname}}, {{#readOnlyVars}}'{{#lambda.camelcase}}{{baseName}}{{/lambda.camelcase}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{classname}}{{/hasReadOnly}} | null): any { + {{#hasVars}} + if (value == null) { + return value; + } + return { + {{#parent}}...{{{.}}}ToJSON(value),{{/parent}} + {{#additionalPropertiesType}} + ...value, + {{/additionalPropertiesType}} + {{#vars}} + {{^isReadOnly}} + {{#isPrimitiveType}} + {{#isDateType}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}']{{#isNullable}} as any{{/isNullable}}).toISOString().substring(0,10)), + {{/isDateType}} + {{#isDateTimeType}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}']{{#isNullable}} as any{{/isNullable}}).toISOString()), + {{/isDateTimeType}} + {{#isArray}} + '{{baseName}}': {{#uniqueItems}}{{^required}}value['{{name}}'] == null ? undefined : {{/required}}{{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set){{/uniqueItems}}{{^uniqueItems}}value['{{name}}']{{/uniqueItems}}, + {{/isArray}} + {{^isDateType}} + {{^isDateTimeType}} + {{^isArray}} + '{{baseName}}': value['{{name}}'], + {{/isArray}} + {{/isDateTimeType}} + {{/isDateType}} + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isArray}} + {{#uniqueItems}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}Array.from(value['{{name}}'] as Set).map({{#items}}{{datatype}}{{/items}}ToJSON)), + {{/uniqueItems}} + {{^uniqueItems}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}(value['{{name}}'] as Array).map({{#items}}{{datatype}}{{/items}}ToJSON)), + {{/uniqueItems}} + {{/isArray}} + {{#isMap}} + '{{baseName}}': {{^required}}value['{{name}}'] == null ? undefined : {{/required}}({{#required}}{{#isNullable}}value['{{name}}'] == null ? null : {{/isNullable}}{{/required}}mapValues(value['{{name}}'], {{#items}}{{datatype}}{{/items}}ToJSON)), + {{/isMap}} + {{^isArray}} + {{^isMap}} + {{^isFreeFormObject}} + '{{baseName}}': {{datatype}}ToJSON(value['{{name}}']), + {{/isFreeFormObject}} + {{#isFreeFormObject}} + '{{baseName}}': value['{{name}}'], + {{/isFreeFormObject}} + {{/isMap}} + {{/isArray}} + {{/isPrimitiveType}} + {{/isReadOnly}} + {{/vars}} + }; + {{/hasVars}} + {{^hasVars}} + return value; + {{/hasVars}} +}