mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-10 08:38:34 -05:00
applied custom openapi generator fix for omit generation
This commit is contained in:
@@ -1 +1 @@
|
|||||||
7.10.0
|
7.6.0
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ export interface ApiAutoPlanCreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutomationCreateRequest {
|
export interface ApiAutomationCreateRequest {
|
||||||
automation: Omit<Automation, 'created_by'>;
|
automation: Omit<Automation, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutomationDestroyRequest {
|
export interface ApiAutomationDestroyRequest {
|
||||||
@@ -457,7 +457,7 @@ export interface ApiAutomationListRequest {
|
|||||||
|
|
||||||
export interface ApiAutomationPartialUpdateRequest {
|
export interface ApiAutomationPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedAutomation?: Omit<PatchedAutomation, 'created_by'>;
|
patchedAutomation?: Omit<PatchedAutomation, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutomationRetrieveRequest {
|
export interface ApiAutomationRetrieveRequest {
|
||||||
@@ -466,11 +466,11 @@ export interface ApiAutomationRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiAutomationUpdateRequest {
|
export interface ApiAutomationUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
automation: Omit<Automation, 'created_by'>;
|
automation: Omit<Automation, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiBookmarkletImportCreateRequest {
|
export interface ApiBookmarkletImportCreateRequest {
|
||||||
bookmarkletImport: Omit<BookmarkletImport, 'created_by'|'created_at'>;
|
bookmarkletImport: Omit<BookmarkletImport, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiBookmarkletImportDestroyRequest {
|
export interface ApiBookmarkletImportDestroyRequest {
|
||||||
@@ -484,7 +484,7 @@ export interface ApiBookmarkletImportListRequest {
|
|||||||
|
|
||||||
export interface ApiBookmarkletImportPartialUpdateRequest {
|
export interface ApiBookmarkletImportPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedBookmarkletImport?: Omit<PatchedBookmarkletImport, 'created_by'|'created_at'>;
|
patchedBookmarkletImport?: Omit<PatchedBookmarkletImport, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiBookmarkletImportRetrieveRequest {
|
export interface ApiBookmarkletImportRetrieveRequest {
|
||||||
@@ -493,11 +493,11 @@ export interface ApiBookmarkletImportRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiBookmarkletImportUpdateRequest {
|
export interface ApiBookmarkletImportUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
bookmarkletImport: Omit<BookmarkletImport, 'created_by'|'created_at'>;
|
bookmarkletImport: Omit<BookmarkletImport, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiConnectorConfigCreateRequest {
|
export interface ApiConnectorConfigCreateRequest {
|
||||||
connectorConfigConfig: Omit<ConnectorConfigConfig, 'created_by'>;
|
connectorConfigConfig: Omit<ConnectorConfigConfig, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiConnectorConfigDestroyRequest {
|
export interface ApiConnectorConfigDestroyRequest {
|
||||||
@@ -506,7 +506,7 @@ export interface ApiConnectorConfigDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiConnectorConfigPartialUpdateRequest {
|
export interface ApiConnectorConfigPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedConnectorConfigConfig?: Omit<PatchedConnectorConfigConfig, 'created_by'>;
|
patchedConnectorConfigConfig?: Omit<PatchedConnectorConfigConfig, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiConnectorConfigRetrieveRequest {
|
export interface ApiConnectorConfigRetrieveRequest {
|
||||||
@@ -515,11 +515,11 @@ export interface ApiConnectorConfigRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiConnectorConfigUpdateRequest {
|
export interface ApiConnectorConfigUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
connectorConfigConfig: Omit<ConnectorConfigConfig, 'created_by'>;
|
connectorConfigConfig: Omit<ConnectorConfigConfig, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCookLogCreateRequest {
|
export interface ApiCookLogCreateRequest {
|
||||||
cookLog: Omit<CookLog, 'created_by'|'updated_at'>;
|
cookLog: Omit<CookLog, 'createdBy'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCookLogDestroyRequest {
|
export interface ApiCookLogDestroyRequest {
|
||||||
@@ -534,7 +534,7 @@ export interface ApiCookLogListRequest {
|
|||||||
|
|
||||||
export interface ApiCookLogPartialUpdateRequest {
|
export interface ApiCookLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedCookLog?: Omit<PatchedCookLog, 'created_by'|'updated_at'>;
|
patchedCookLog?: Omit<PatchedCookLog, 'createdBy'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCookLogRetrieveRequest {
|
export interface ApiCookLogRetrieveRequest {
|
||||||
@@ -543,11 +543,11 @@ export interface ApiCookLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiCookLogUpdateRequest {
|
export interface ApiCookLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
cookLog: Omit<CookLog, 'created_by'|'updated_at'>;
|
cookLog: Omit<CookLog, 'createdBy'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCustomFilterCreateRequest {
|
export interface ApiCustomFilterCreateRequest {
|
||||||
customFilter: Omit<CustomFilter, 'created_by'>;
|
customFilter: Omit<CustomFilter, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCustomFilterDestroyRequest {
|
export interface ApiCustomFilterDestroyRequest {
|
||||||
@@ -566,7 +566,7 @@ export interface ApiCustomFilterListRequest {
|
|||||||
|
|
||||||
export interface ApiCustomFilterPartialUpdateRequest {
|
export interface ApiCustomFilterPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedCustomFilter?: Omit<PatchedCustomFilter, 'created_by'>;
|
patchedCustomFilter?: Omit<PatchedCustomFilter, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCustomFilterRetrieveRequest {
|
export interface ApiCustomFilterRetrieveRequest {
|
||||||
@@ -575,7 +575,7 @@ export interface ApiCustomFilterRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiCustomFilterUpdateRequest {
|
export interface ApiCustomFilterUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
customFilter: Omit<CustomFilter, 'created_by'>;
|
customFilter: Omit<CustomFilter, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiDownloadFileRetrieveRequest {
|
export interface ApiDownloadFileRetrieveRequest {
|
||||||
@@ -583,7 +583,7 @@ export interface ApiDownloadFileRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiExportLogCreateRequest {
|
export interface ApiExportLogCreateRequest {
|
||||||
exportLog: Omit<ExportLog, 'created_by'|'created_at'>;
|
exportLog: Omit<ExportLog, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiExportLogDestroyRequest {
|
export interface ApiExportLogDestroyRequest {
|
||||||
@@ -597,7 +597,7 @@ export interface ApiExportLogListRequest {
|
|||||||
|
|
||||||
export interface ApiExportLogPartialUpdateRequest {
|
export interface ApiExportLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedExportLog?: Omit<PatchedExportLog, 'created_by'|'created_at'>;
|
patchedExportLog?: Omit<PatchedExportLog, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiExportLogRetrieveRequest {
|
export interface ApiExportLogRetrieveRequest {
|
||||||
@@ -606,11 +606,11 @@ export interface ApiExportLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiExportLogUpdateRequest {
|
export interface ApiExportLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
exportLog: Omit<ExportLog, 'created_by'|'created_at'>;
|
exportLog: Omit<ExportLog, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodCreateRequest {
|
export interface ApiFoodCreateRequest {
|
||||||
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodDestroyRequest {
|
export interface ApiFoodDestroyRequest {
|
||||||
@@ -619,7 +619,7 @@ export interface ApiFoodDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiFoodFdcCreateRequest {
|
export interface ApiFoodFdcCreateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodInheritFieldRetrieveRequest {
|
export interface ApiFoodInheritFieldRetrieveRequest {
|
||||||
@@ -640,18 +640,18 @@ export interface ApiFoodListRequest {
|
|||||||
export interface ApiFoodMergeUpdateRequest {
|
export interface ApiFoodMergeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
target: number;
|
target: number;
|
||||||
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodMoveUpdateRequest {
|
export interface ApiFoodMoveUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
parent: number;
|
parent: number;
|
||||||
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodPartialUpdateRequest {
|
export interface ApiFoodPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedFood?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
patchedFood?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodRetrieveRequest {
|
export interface ApiFoodRetrieveRequest {
|
||||||
@@ -665,7 +665,7 @@ export interface ApiFoodShoppingUpdateRequest {
|
|||||||
|
|
||||||
export interface ApiFoodUpdateRequest {
|
export interface ApiFoodUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiGetExternalFileLinkRetrieveRequest {
|
export interface ApiGetExternalFileLinkRetrieveRequest {
|
||||||
@@ -689,7 +689,7 @@ export interface ApiImageToRecipeCreate2Request {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiImportLogCreateRequest {
|
export interface ApiImportLogCreateRequest {
|
||||||
importLog: Omit<ImportLog, 'keyword'|'created_by'|'created_at'>;
|
importLog: Omit<ImportLog, 'keyword'|'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiImportLogDestroyRequest {
|
export interface ApiImportLogDestroyRequest {
|
||||||
@@ -703,7 +703,7 @@ export interface ApiImportLogListRequest {
|
|||||||
|
|
||||||
export interface ApiImportLogPartialUpdateRequest {
|
export interface ApiImportLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedImportLog?: Omit<PatchedImportLog, 'keyword'|'created_by'|'created_at'>;
|
patchedImportLog?: Omit<PatchedImportLog, 'keyword'|'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiImportLogRetrieveRequest {
|
export interface ApiImportLogRetrieveRequest {
|
||||||
@@ -712,11 +712,11 @@ export interface ApiImportLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiImportLogUpdateRequest {
|
export interface ApiImportLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
importLog: Omit<ImportLog, 'keyword'|'created_by'|'created_at'>;
|
importLog: Omit<ImportLog, 'keyword'|'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiIngredientCreateRequest {
|
export interface ApiIngredientCreateRequest {
|
||||||
ingredient: Omit<Ingredient, 'conversions'|'used_in_recipes'>;
|
ingredient: Omit<Ingredient, 'conversions'|'usedInRecipes'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiIngredientDestroyRequest {
|
export interface ApiIngredientDestroyRequest {
|
||||||
@@ -736,7 +736,7 @@ export interface ApiIngredientListRequest {
|
|||||||
|
|
||||||
export interface ApiIngredientPartialUpdateRequest {
|
export interface ApiIngredientPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedIngredient?: Omit<PatchedIngredient, 'conversions'|'used_in_recipes'>;
|
patchedIngredient?: Omit<PatchedIngredient, 'conversions'|'usedInRecipes'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiIngredientRetrieveRequest {
|
export interface ApiIngredientRetrieveRequest {
|
||||||
@@ -745,11 +745,11 @@ export interface ApiIngredientRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiIngredientUpdateRequest {
|
export interface ApiIngredientUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
ingredient: Omit<Ingredient, 'conversions'|'used_in_recipes'>;
|
ingredient: Omit<Ingredient, 'conversions'|'usedInRecipes'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiInviteLinkCreateRequest {
|
export interface ApiInviteLinkCreateRequest {
|
||||||
inviteLink: Omit<InviteLink, 'uuid'|'created_by'|'created_at'>;
|
inviteLink: Omit<InviteLink, 'uuid'|'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiInviteLinkDestroyRequest {
|
export interface ApiInviteLinkDestroyRequest {
|
||||||
@@ -768,7 +768,7 @@ export interface ApiInviteLinkListRequest {
|
|||||||
|
|
||||||
export interface ApiInviteLinkPartialUpdateRequest {
|
export interface ApiInviteLinkPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedInviteLink?: Omit<PatchedInviteLink, 'uuid'|'created_by'|'created_at'>;
|
patchedInviteLink?: Omit<PatchedInviteLink, 'uuid'|'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiInviteLinkRetrieveRequest {
|
export interface ApiInviteLinkRetrieveRequest {
|
||||||
@@ -777,11 +777,11 @@ export interface ApiInviteLinkRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiInviteLinkUpdateRequest {
|
export interface ApiInviteLinkUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
inviteLink: Omit<InviteLink, 'uuid'|'created_by'|'created_at'>;
|
inviteLink: Omit<InviteLink, 'uuid'|'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordCreateRequest {
|
export interface ApiKeywordCreateRequest {
|
||||||
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordDestroyRequest {
|
export interface ApiKeywordDestroyRequest {
|
||||||
@@ -802,18 +802,18 @@ export interface ApiKeywordListRequest {
|
|||||||
export interface ApiKeywordMergeUpdateRequest {
|
export interface ApiKeywordMergeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
target: number;
|
target: number;
|
||||||
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordMoveUpdateRequest {
|
export interface ApiKeywordMoveUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
parent: number;
|
parent: number;
|
||||||
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordPartialUpdateRequest {
|
export interface ApiKeywordPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedKeyword?: Omit<PatchedKeyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
patchedKeyword?: Omit<PatchedKeyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordRetrieveRequest {
|
export interface ApiKeywordRetrieveRequest {
|
||||||
@@ -822,11 +822,11 @@ export interface ApiKeywordRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiKeywordUpdateRequest {
|
export interface ApiKeywordUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealPlanCreateRequest {
|
export interface ApiMealPlanCreateRequest {
|
||||||
mealPlan: Omit<MealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'>;
|
mealPlan: Omit<MealPlan, 'noteMarkdown'|'createdBy'|'recipeName'|'mealTypeName'|'shopping'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealPlanDestroyRequest {
|
export interface ApiMealPlanDestroyRequest {
|
||||||
@@ -849,7 +849,7 @@ export interface ApiMealPlanListRequest {
|
|||||||
|
|
||||||
export interface ApiMealPlanPartialUpdateRequest {
|
export interface ApiMealPlanPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedMealPlan?: Omit<PatchedMealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'>;
|
patchedMealPlan?: Omit<PatchedMealPlan, 'noteMarkdown'|'createdBy'|'recipeName'|'mealTypeName'|'shopping'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealPlanRetrieveRequest {
|
export interface ApiMealPlanRetrieveRequest {
|
||||||
@@ -858,11 +858,11 @@ export interface ApiMealPlanRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiMealPlanUpdateRequest {
|
export interface ApiMealPlanUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
mealPlan: Omit<MealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'>;
|
mealPlan: Omit<MealPlan, 'noteMarkdown'|'createdBy'|'recipeName'|'mealTypeName'|'shopping'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealTypeCreateRequest {
|
export interface ApiMealTypeCreateRequest {
|
||||||
mealType: Omit<MealType, 'created_by'>;
|
mealType: Omit<MealType, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealTypeDestroyRequest {
|
export interface ApiMealTypeDestroyRequest {
|
||||||
@@ -876,7 +876,7 @@ export interface ApiMealTypeListRequest {
|
|||||||
|
|
||||||
export interface ApiMealTypePartialUpdateRequest {
|
export interface ApiMealTypePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedMealType?: Omit<PatchedMealType, 'created_by'>;
|
patchedMealType?: Omit<PatchedMealType, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealTypeRetrieveRequest {
|
export interface ApiMealTypeRetrieveRequest {
|
||||||
@@ -885,11 +885,11 @@ export interface ApiMealTypeRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiMealTypeUpdateRequest {
|
export interface ApiMealTypeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
mealType: Omit<MealType, 'created_by'>;
|
mealType: Omit<MealType, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataCategoryCreateRequest {
|
export interface ApiOpenDataCategoryCreateRequest {
|
||||||
openDataCategory: Omit<OpenDataCategory, 'created_by'>;
|
openDataCategory: Omit<OpenDataCategory, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataCategoryDestroyRequest {
|
export interface ApiOpenDataCategoryDestroyRequest {
|
||||||
@@ -898,7 +898,7 @@ export interface ApiOpenDataCategoryDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataCategoryPartialUpdateRequest {
|
export interface ApiOpenDataCategoryPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataCategory?: Omit<PatchedOpenDataCategory, 'created_by'>;
|
patchedOpenDataCategory?: Omit<PatchedOpenDataCategory, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataCategoryRetrieveRequest {
|
export interface ApiOpenDataCategoryRetrieveRequest {
|
||||||
@@ -907,11 +907,11 @@ export interface ApiOpenDataCategoryRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataCategoryUpdateRequest {
|
export interface ApiOpenDataCategoryUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataCategory: Omit<OpenDataCategory, 'created_by'>;
|
openDataCategory: Omit<OpenDataCategory, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataConversionCreateRequest {
|
export interface ApiOpenDataConversionCreateRequest {
|
||||||
openDataConversion: Omit<OpenDataConversion, 'created_by'>;
|
openDataConversion: Omit<OpenDataConversion, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataConversionDestroyRequest {
|
export interface ApiOpenDataConversionDestroyRequest {
|
||||||
@@ -920,7 +920,7 @@ export interface ApiOpenDataConversionDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataConversionPartialUpdateRequest {
|
export interface ApiOpenDataConversionPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataConversion?: Omit<PatchedOpenDataConversion, 'created_by'>;
|
patchedOpenDataConversion?: Omit<PatchedOpenDataConversion, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataConversionRetrieveRequest {
|
export interface ApiOpenDataConversionRetrieveRequest {
|
||||||
@@ -929,7 +929,7 @@ export interface ApiOpenDataConversionRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataConversionUpdateRequest {
|
export interface ApiOpenDataConversionUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataConversion: Omit<OpenDataConversion, 'created_by'>;
|
openDataConversion: Omit<OpenDataConversion, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFDCRetrieveRequest {
|
export interface ApiOpenDataFDCRetrieveRequest {
|
||||||
@@ -937,7 +937,7 @@ export interface ApiOpenDataFDCRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFoodCreateRequest {
|
export interface ApiOpenDataFoodCreateRequest {
|
||||||
openDataFood: Omit<OpenDataFood, 'created_by'>;
|
openDataFood: Omit<OpenDataFood, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFoodDestroyRequest {
|
export interface ApiOpenDataFoodDestroyRequest {
|
||||||
@@ -946,7 +946,7 @@ export interface ApiOpenDataFoodDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataFoodPartialUpdateRequest {
|
export interface ApiOpenDataFoodPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataFood?: Omit<PatchedOpenDataFood, 'created_by'>;
|
patchedOpenDataFood?: Omit<PatchedOpenDataFood, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFoodRetrieveRequest {
|
export interface ApiOpenDataFoodRetrieveRequest {
|
||||||
@@ -955,11 +955,11 @@ export interface ApiOpenDataFoodRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataFoodUpdateRequest {
|
export interface ApiOpenDataFoodUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataFood: Omit<OpenDataFood, 'created_by'>;
|
openDataFood: Omit<OpenDataFood, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataPropertyCreateRequest {
|
export interface ApiOpenDataPropertyCreateRequest {
|
||||||
openDataProperty: Omit<OpenDataProperty, 'created_by'>;
|
openDataProperty: Omit<OpenDataProperty, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataPropertyDestroyRequest {
|
export interface ApiOpenDataPropertyDestroyRequest {
|
||||||
@@ -968,7 +968,7 @@ export interface ApiOpenDataPropertyDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataPropertyPartialUpdateRequest {
|
export interface ApiOpenDataPropertyPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataProperty?: Omit<PatchedOpenDataProperty, 'created_by'>;
|
patchedOpenDataProperty?: Omit<PatchedOpenDataProperty, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataPropertyRetrieveRequest {
|
export interface ApiOpenDataPropertyRetrieveRequest {
|
||||||
@@ -977,11 +977,11 @@ export interface ApiOpenDataPropertyRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataPropertyUpdateRequest {
|
export interface ApiOpenDataPropertyUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataProperty: Omit<OpenDataProperty, 'created_by'>;
|
openDataProperty: Omit<OpenDataProperty, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataStoreCreateRequest {
|
export interface ApiOpenDataStoreCreateRequest {
|
||||||
openDataStore: Omit<OpenDataStore, 'created_by'>;
|
openDataStore: Omit<OpenDataStore, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataStoreDestroyRequest {
|
export interface ApiOpenDataStoreDestroyRequest {
|
||||||
@@ -990,7 +990,7 @@ export interface ApiOpenDataStoreDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataStorePartialUpdateRequest {
|
export interface ApiOpenDataStorePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataStore?: Omit<PatchedOpenDataStore, 'created_by'>;
|
patchedOpenDataStore?: Omit<PatchedOpenDataStore, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataStoreRetrieveRequest {
|
export interface ApiOpenDataStoreRetrieveRequest {
|
||||||
@@ -999,11 +999,11 @@ export interface ApiOpenDataStoreRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataStoreUpdateRequest {
|
export interface ApiOpenDataStoreUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataStore: Omit<OpenDataStore, 'created_by'>;
|
openDataStore: Omit<OpenDataStore, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataUnitCreateRequest {
|
export interface ApiOpenDataUnitCreateRequest {
|
||||||
openDataUnit: Omit<OpenDataUnit, 'created_by'>;
|
openDataUnit: Omit<OpenDataUnit, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataUnitDestroyRequest {
|
export interface ApiOpenDataUnitDestroyRequest {
|
||||||
@@ -1012,7 +1012,7 @@ export interface ApiOpenDataUnitDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataUnitPartialUpdateRequest {
|
export interface ApiOpenDataUnitPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataUnit?: Omit<PatchedOpenDataUnit, 'created_by'>;
|
patchedOpenDataUnit?: Omit<PatchedOpenDataUnit, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataUnitRetrieveRequest {
|
export interface ApiOpenDataUnitRetrieveRequest {
|
||||||
@@ -1021,7 +1021,7 @@ export interface ApiOpenDataUnitRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataUnitUpdateRequest {
|
export interface ApiOpenDataUnitUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataUnit: Omit<OpenDataUnit, 'created_by'>;
|
openDataUnit: Omit<OpenDataUnit, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataVersionCreateRequest {
|
export interface ApiOpenDataVersionCreateRequest {
|
||||||
@@ -1102,7 +1102,7 @@ export interface ApiPropertyUpdateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookCreateRequest {
|
export interface ApiRecipeBookCreateRequest {
|
||||||
recipeBook: Omit<RecipeBook, 'created_by'>;
|
recipeBook: Omit<RecipeBook, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookDestroyRequest {
|
export interface ApiRecipeBookDestroyRequest {
|
||||||
@@ -1110,7 +1110,7 @@ export interface ApiRecipeBookDestroyRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookEntryCreateRequest {
|
export interface ApiRecipeBookEntryCreateRequest {
|
||||||
recipeBookEntry: Omit<RecipeBookEntry, 'book_content'|'recipe_content'>;
|
recipeBookEntry: Omit<RecipeBookEntry, 'bookContent'|'recipeContent'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookEntryDestroyRequest {
|
export interface ApiRecipeBookEntryDestroyRequest {
|
||||||
@@ -1126,7 +1126,7 @@ export interface ApiRecipeBookEntryListRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookEntryPartialUpdateRequest {
|
export interface ApiRecipeBookEntryPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedRecipeBookEntry?: Omit<PatchedRecipeBookEntry, 'book_content'|'recipe_content'>;
|
patchedRecipeBookEntry?: Omit<PatchedRecipeBookEntry, 'bookContent'|'recipeContent'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookEntryRetrieveRequest {
|
export interface ApiRecipeBookEntryRetrieveRequest {
|
||||||
@@ -1135,7 +1135,7 @@ export interface ApiRecipeBookEntryRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookEntryUpdateRequest {
|
export interface ApiRecipeBookEntryUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
recipeBookEntry: Omit<RecipeBookEntry, 'book_content'|'recipe_content'>;
|
recipeBookEntry: Omit<RecipeBookEntry, 'bookContent'|'recipeContent'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookListRequest {
|
export interface ApiRecipeBookListRequest {
|
||||||
@@ -1151,7 +1151,7 @@ export interface ApiRecipeBookListRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookPartialUpdateRequest {
|
export interface ApiRecipeBookPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedRecipeBook?: Omit<PatchedRecipeBook, 'created_by'>;
|
patchedRecipeBook?: Omit<PatchedRecipeBook, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookRetrieveRequest {
|
export interface ApiRecipeBookRetrieveRequest {
|
||||||
@@ -1160,11 +1160,11 @@ export interface ApiRecipeBookRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookUpdateRequest {
|
export interface ApiRecipeBookUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
recipeBook: Omit<RecipeBook, 'created_by'>;
|
recipeBook: Omit<RecipeBook, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeCreateRequest {
|
export interface ApiRecipeCreateRequest {
|
||||||
recipe: Omit<Recipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'>;
|
recipe: Omit<Recipe, 'image'|'createdBy'|'createdAt'|'updatedAt'|'foodProperties'|'rating'|'lastCooked'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeDestroyRequest {
|
export interface ApiRecipeDestroyRequest {
|
||||||
@@ -1177,8 +1177,8 @@ export interface ApiRecipeFromSourceCreateRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeImageUpdateRequest {
|
export interface ApiRecipeImageUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
image?: string | null;
|
image?: string;
|
||||||
imageUrl?: string | null;
|
imageUrl?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeListRequest {
|
export interface ApiRecipeListRequest {
|
||||||
@@ -1217,7 +1217,7 @@ export interface ApiRecipeListRequest {
|
|||||||
|
|
||||||
export interface ApiRecipePartialUpdateRequest {
|
export interface ApiRecipePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedRecipe?: Omit<PatchedRecipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'>;
|
patchedRecipe?: Omit<PatchedRecipe, 'image'|'createdBy'|'createdAt'|'updatedAt'|'foodProperties'|'rating'|'lastCooked'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeRelatedListRequest {
|
export interface ApiRecipeRelatedListRequest {
|
||||||
@@ -1236,7 +1236,7 @@ export interface ApiRecipeShoppingUpdateRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeUpdateRequest {
|
export interface ApiRecipeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
recipe: Omit<Recipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'>;
|
recipe: Omit<Recipe, 'image'|'createdBy'|'createdAt'|'updatedAt'|'foodProperties'|'rating'|'lastCooked'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShareLinkRetrieveRequest {
|
export interface ApiShareLinkRetrieveRequest {
|
||||||
@@ -1248,7 +1248,7 @@ export interface ApiShoppingListEntryBulkCreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListEntryCreateRequest {
|
export interface ApiShoppingListEntryCreateRequest {
|
||||||
shoppingListEntry: Omit<ShoppingListEntry, 'list_recipe_data'|'created_by'|'created_at'|'updated_at'>;
|
shoppingListEntry: Omit<ShoppingListEntry, 'listRecipeData'|'createdBy'|'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListEntryDestroyRequest {
|
export interface ApiShoppingListEntryDestroyRequest {
|
||||||
@@ -1264,7 +1264,7 @@ export interface ApiShoppingListEntryListRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListEntryPartialUpdateRequest {
|
export interface ApiShoppingListEntryPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedShoppingListEntry?: Omit<PatchedShoppingListEntry, 'list_recipe_data'|'created_by'|'created_at'|'updated_at'>;
|
patchedShoppingListEntry?: Omit<PatchedShoppingListEntry, 'listRecipeData'|'createdBy'|'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListEntryRetrieveRequest {
|
export interface ApiShoppingListEntryRetrieveRequest {
|
||||||
@@ -1273,7 +1273,7 @@ export interface ApiShoppingListEntryRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListEntryUpdateRequest {
|
export interface ApiShoppingListEntryUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
shoppingListEntry: Omit<ShoppingListEntry, 'list_recipe_data'|'created_by'|'created_at'|'updated_at'>;
|
shoppingListEntry: Omit<ShoppingListEntry, 'listRecipeData'|'createdBy'|'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeBulkCreateEntriesCreateRequest {
|
export interface ApiShoppingListRecipeBulkCreateEntriesCreateRequest {
|
||||||
@@ -1282,7 +1282,7 @@ export interface ApiShoppingListRecipeBulkCreateEntriesCreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeCreateRequest {
|
export interface ApiShoppingListRecipeCreateRequest {
|
||||||
shoppingListRecipe: Omit<ShoppingListRecipe, 'recipe_data'|'meal_plan_data'|'created_by'>;
|
shoppingListRecipe: Omit<ShoppingListRecipe, 'recipeData'|'mealPlanData'|'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeDestroyRequest {
|
export interface ApiShoppingListRecipeDestroyRequest {
|
||||||
@@ -1297,7 +1297,7 @@ export interface ApiShoppingListRecipeListRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListRecipePartialUpdateRequest {
|
export interface ApiShoppingListRecipePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedShoppingListRecipe?: Omit<PatchedShoppingListRecipe, 'recipe_data'|'meal_plan_data'|'created_by'>;
|
patchedShoppingListRecipe?: Omit<PatchedShoppingListRecipe, 'recipeData'|'mealPlanData'|'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeRetrieveRequest {
|
export interface ApiShoppingListRecipeRetrieveRequest {
|
||||||
@@ -1306,7 +1306,7 @@ export interface ApiShoppingListRecipeRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListRecipeUpdateRequest {
|
export interface ApiShoppingListRecipeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
shoppingListRecipe: Omit<ShoppingListRecipe, 'recipe_data'|'meal_plan_data'|'created_by'>;
|
shoppingListRecipe: Omit<ShoppingListRecipe, 'recipeData'|'mealPlanData'|'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSpaceListRequest {
|
export interface ApiSpaceListRequest {
|
||||||
@@ -1316,7 +1316,7 @@ export interface ApiSpaceListRequest {
|
|||||||
|
|
||||||
export interface ApiSpacePartialUpdateRequest {
|
export interface ApiSpacePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedSpace?: Omit<PatchedSpace, 'created_by'|'created_at'|'max_recipes'|'max_file_storage_mb'|'max_users'|'allow_sharing'|'demo'|'user_count'|'recipe_count'|'file_size_mb'>;
|
patchedSpace?: Omit<PatchedSpace, 'createdBy'|'createdAt'|'maxRecipes'|'maxFileStorageMb'|'maxUsers'|'allowSharing'|'demo'|'userCount'|'recipeCount'|'fileSizeMb'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSpaceRetrieveRequest {
|
export interface ApiSpaceRetrieveRequest {
|
||||||
@@ -1324,7 +1324,7 @@ export interface ApiSpaceRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStepCreateRequest {
|
export interface ApiStepCreateRequest {
|
||||||
step: Omit<Step, 'instructions_markdown'|'step_recipe_data'|'numrecipe'>;
|
step: Omit<Step, 'instructionsMarkdown'|'stepRecipeData'|'numrecipe'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStepDestroyRequest {
|
export interface ApiStepDestroyRequest {
|
||||||
@@ -1340,7 +1340,7 @@ export interface ApiStepListRequest {
|
|||||||
|
|
||||||
export interface ApiStepPartialUpdateRequest {
|
export interface ApiStepPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedStep?: Omit<PatchedStep, 'instructions_markdown'|'step_recipe_data'|'numrecipe'>;
|
patchedStep?: Omit<PatchedStep, 'instructionsMarkdown'|'stepRecipeData'|'numrecipe'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStepRetrieveRequest {
|
export interface ApiStepRetrieveRequest {
|
||||||
@@ -1349,11 +1349,11 @@ export interface ApiStepRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiStepUpdateRequest {
|
export interface ApiStepUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
step: Omit<Step, 'instructions_markdown'|'step_recipe_data'|'numrecipe'>;
|
step: Omit<Step, 'instructionsMarkdown'|'stepRecipeData'|'numrecipe'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStorageCreateRequest {
|
export interface ApiStorageCreateRequest {
|
||||||
storage: Omit<Storage, 'created_by'>;
|
storage: Omit<Storage, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStorageDestroyRequest {
|
export interface ApiStorageDestroyRequest {
|
||||||
@@ -1362,7 +1362,7 @@ export interface ApiStorageDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiStoragePartialUpdateRequest {
|
export interface ApiStoragePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedStorage?: Omit<PatchedStorage, 'created_by'>;
|
patchedStorage?: Omit<PatchedStorage, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStorageRetrieveRequest {
|
export interface ApiStorageRetrieveRequest {
|
||||||
@@ -1371,7 +1371,7 @@ export interface ApiStorageRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiStorageUpdateRequest {
|
export interface ApiStorageUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
storage: Omit<Storage, 'created_by'>;
|
storage: Omit<Storage, 'createdBy'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketCategoryCreateRequest {
|
export interface ApiSupermarketCategoryCreateRequest {
|
||||||
@@ -1443,7 +1443,7 @@ export interface ApiSupermarketCategoryUpdateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketCreateRequest {
|
export interface ApiSupermarketCreateRequest {
|
||||||
supermarket: Omit<Supermarket, 'category_to_supermarket'>;
|
supermarket: Omit<Supermarket, 'categoryToSupermarket'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketDestroyRequest {
|
export interface ApiSupermarketDestroyRequest {
|
||||||
@@ -1461,7 +1461,7 @@ export interface ApiSupermarketListRequest {
|
|||||||
|
|
||||||
export interface ApiSupermarketPartialUpdateRequest {
|
export interface ApiSupermarketPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedSupermarket?: Omit<PatchedSupermarket, 'category_to_supermarket'>;
|
patchedSupermarket?: Omit<PatchedSupermarket, 'categoryToSupermarket'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketRetrieveRequest {
|
export interface ApiSupermarketRetrieveRequest {
|
||||||
@@ -1470,7 +1470,7 @@ export interface ApiSupermarketRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiSupermarketUpdateRequest {
|
export interface ApiSupermarketUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
supermarket: Omit<Supermarket, 'category_to_supermarket'>;
|
supermarket: Omit<Supermarket, 'categoryToSupermarket'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSwitchActiveSpaceRetrieveRequest {
|
export interface ApiSwitchActiveSpaceRetrieveRequest {
|
||||||
@@ -1478,7 +1478,7 @@ export interface ApiSwitchActiveSpaceRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSyncCreateRequest {
|
export interface ApiSyncCreateRequest {
|
||||||
sync: Omit<Sync, 'created_at'|'updated_at'>;
|
sync: Omit<Sync, 'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSyncDestroyRequest {
|
export interface ApiSyncDestroyRequest {
|
||||||
@@ -1501,7 +1501,7 @@ export interface ApiSyncLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiSyncPartialUpdateRequest {
|
export interface ApiSyncPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedSync?: Omit<PatchedSync, 'created_at'|'updated_at'>;
|
patchedSync?: Omit<PatchedSync, 'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSyncRetrieveRequest {
|
export interface ApiSyncRetrieveRequest {
|
||||||
@@ -1510,7 +1510,7 @@ export interface ApiSyncRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiSyncUpdateRequest {
|
export interface ApiSyncUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
sync: Omit<Sync, 'created_at'|'updated_at'>;
|
sync: Omit<Sync, 'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUnitConversionCreateRequest {
|
export interface ApiUnitConversionCreateRequest {
|
||||||
@@ -1636,12 +1636,12 @@ export interface ApiUserListRequest {
|
|||||||
|
|
||||||
export interface ApiUserPartialUpdateRequest {
|
export interface ApiUserPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedUser?: Omit<PatchedUser, 'username'|'display_name'>;
|
patchedUser?: Omit<PatchedUser, 'username'|'displayName'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUserPreferencePartialUpdateRequest {
|
export interface ApiUserPreferencePartialUpdateRequest {
|
||||||
user: number;
|
user: number;
|
||||||
patchedUserPreference?: Omit<PatchedUserPreference, 'user'|'food_inherit_default'|'food_children_exist'>;
|
patchedUserPreference?: Omit<PatchedUserPreference, 'user'|'foodInheritDefault'|'foodChildrenExist'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUserPreferenceRetrieveRequest {
|
export interface ApiUserPreferenceRetrieveRequest {
|
||||||
@@ -1664,7 +1664,7 @@ export interface ApiUserSpaceListRequest {
|
|||||||
|
|
||||||
export interface ApiUserSpacePartialUpdateRequest {
|
export interface ApiUserSpacePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedUserSpace?: Omit<PatchedUserSpace, 'user'|'space'|'invite_link'|'created_at'|'updated_at'>;
|
patchedUserSpace?: Omit<PatchedUserSpace, 'user'|'space'|'inviteLink'|'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUserSpaceRetrieveRequest {
|
export interface ApiUserSpaceRetrieveRequest {
|
||||||
@@ -1673,11 +1673,11 @@ export interface ApiUserSpaceRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiUserSpaceUpdateRequest {
|
export interface ApiUserSpaceUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
userSpace: Omit<UserSpace, 'user'|'space'|'invite_link'|'created_at'|'updated_at'>;
|
userSpace: Omit<UserSpace, 'user'|'space'|'inviteLink'|'createdAt'|'updatedAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiViewLogCreateRequest {
|
export interface ApiViewLogCreateRequest {
|
||||||
viewLog: Omit<ViewLog, 'created_by'|'created_at'>;
|
viewLog: Omit<ViewLog, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiViewLogDestroyRequest {
|
export interface ApiViewLogDestroyRequest {
|
||||||
@@ -1691,7 +1691,7 @@ export interface ApiViewLogListRequest {
|
|||||||
|
|
||||||
export interface ApiViewLogPartialUpdateRequest {
|
export interface ApiViewLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedViewLog?: Omit<PatchedViewLog, 'created_by'|'created_at'>;
|
patchedViewLog?: Omit<PatchedViewLog, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiViewLogRetrieveRequest {
|
export interface ApiViewLogRetrieveRequest {
|
||||||
@@ -1700,7 +1700,7 @@ export interface ApiViewLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiViewLogUpdateRequest {
|
export interface ApiViewLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
viewLog: Omit<ViewLog, 'created_by'|'created_at'>;
|
viewLog: Omit<ViewLog, 'createdBy'|'createdAt'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -12217,7 +12217,7 @@ export class ApiApi extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requestParameters['createdAt'] != null) {
|
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({
|
const response = await this.request({
|
||||||
@@ -12391,7 +12391,7 @@ export class ApiApi extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requestParameters['createdAt'] != null) {
|
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({
|
const response = await this.request({
|
||||||
@@ -12554,7 +12554,7 @@ export class ApiApi extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requestParameters['createdAt'] != null) {
|
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({
|
const response = await this.request({
|
||||||
|
|||||||
@@ -87,15 +87,10 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AccessTokenToJSON(json: any): AccessToken {
|
export function AccessTokenToJSON(value?: Omit<AccessToken, 'token'|'created'|'updated'> | null): any {
|
||||||
return AccessTokenToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AccessTokenToJSONTyped(value?: Omit<AccessToken, 'token'|'created'|'updated'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -65,15 +65,10 @@ export function AuthTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AuthTokenToJSON(json: any): AuthToken {
|
export function AuthTokenToJSON(value?: Omit<AuthToken, 'token'> | null): any {
|
||||||
return AuthTokenToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AuthTokenToJSONTyped(value?: Omit<AuthToken, 'token'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'username': value['username'],
|
'username': value['username'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,7 +61,7 @@ export interface AutoMealPlan {
|
|||||||
* @type {Array<User>}
|
* @type {Array<User>}
|
||||||
* @memberof AutoMealPlan
|
* @memberof AutoMealPlan
|
||||||
*/
|
*/
|
||||||
shared?: Array<User> | null;
|
shared?: Array<User>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -104,15 +103,10 @@ export function AutoMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AutoMealPlanToJSON(json: any): AutoMealPlan {
|
export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any {
|
||||||
return AutoMealPlanToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AutoMealPlanToJSONTyped(value?: AutoMealPlan | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'start_date': ((value['startDate']).toISOString().substring(0,10)),
|
'start_date': ((value['startDate']).toISOString().substring(0,10)),
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
AutomationTypeEnumFromJSON,
|
AutomationTypeEnumFromJSON,
|
||||||
AutomationTypeEnumFromJSONTyped,
|
AutomationTypeEnumFromJSONTyped,
|
||||||
AutomationTypeEnumToJSON,
|
AutomationTypeEnumToJSON,
|
||||||
AutomationTypeEnumToJSONTyped,
|
|
||||||
} from './AutomationTypeEnum';
|
} from './AutomationTypeEnum';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -50,25 +49,25 @@ export interface Automation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
description?: string | null;
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
param1?: string | null;
|
param1?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
param2?: string | null;
|
param2?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
param3?: string | null;
|
param3?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -89,8 +88,6 @@ export interface Automation {
|
|||||||
readonly createdBy: number;
|
readonly createdBy: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the Automation interface.
|
* 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 {
|
export function AutomationToJSON(value?: Omit<Automation, 'createdBy'> | null): any {
|
||||||
return AutomationToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AutomationToJSONTyped(value?: Omit<Automation, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export type AutomationTypeEnum = typeof AutomationTypeEnum[keyof typeof Automati
|
|||||||
export function instanceOfAutomationTypeEnum(value: any): boolean {
|
export function instanceOfAutomationTypeEnum(value: any): boolean {
|
||||||
for (const key in AutomationTypeEnum) {
|
for (const key in AutomationTypeEnum) {
|
||||||
if (Object.prototype.hasOwnProperty.call(AutomationTypeEnum, key)) {
|
if (Object.prototype.hasOwnProperty.call(AutomationTypeEnum, key)) {
|
||||||
if (AutomationTypeEnum[key as keyof typeof AutomationTypeEnum] === value) {
|
if (AutomationTypeEnum[key] === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,3 @@ export function AutomationTypeEnumToJSON(value?: AutomationTypeEnum | null): any
|
|||||||
return value as any;
|
return value as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AutomationTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationTypeEnum {
|
|
||||||
return value as AutomationTypeEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export type BaseUnitEnum = typeof BaseUnitEnum[keyof typeof BaseUnitEnum];
|
|||||||
export function instanceOfBaseUnitEnum(value: any): boolean {
|
export function instanceOfBaseUnitEnum(value: any): boolean {
|
||||||
for (const key in BaseUnitEnum) {
|
for (const key in BaseUnitEnum) {
|
||||||
if (Object.prototype.hasOwnProperty.call(BaseUnitEnum, key)) {
|
if (Object.prototype.hasOwnProperty.call(BaseUnitEnum, key)) {
|
||||||
if (BaseUnitEnum[key as keyof typeof BaseUnitEnum] === value) {
|
if (BaseUnitEnum[key] === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,3 @@ export function BaseUnitEnumToJSON(value?: BaseUnitEnum | null): any {
|
|||||||
return value as any;
|
return value as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BaseUnitEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BaseUnitEnum {
|
|
||||||
return value as BaseUnitEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export interface BookmarkletImport {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof BookmarkletImport
|
* @memberof BookmarkletImport
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -79,15 +79,10 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BookmarkletImportToJSON(json: any): BookmarkletImport {
|
export function BookmarkletImportToJSON(value?: Omit<BookmarkletImport, 'createdBy'|'createdAt'> | null): any {
|
||||||
return BookmarkletImportToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportToJSONTyped(value?: Omit<BookmarkletImport, 'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export interface BookmarkletImportList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof BookmarkletImportList
|
* @memberof BookmarkletImportList
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -71,15 +71,10 @@ export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BookmarkletImportListToJSON(json: any): BookmarkletImportList {
|
export function BookmarkletImportListToJSON(value?: Omit<BookmarkletImportList, 'createdBy'|'createdAt'> | null): any {
|
||||||
return BookmarkletImportListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportListToJSONTyped(value?: Omit<BookmarkletImportList, 'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -36,19 +36,19 @@ export interface ConnectorConfigConfig {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ConnectorConfigConfig
|
* @memberof ConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ConnectorConfigConfig
|
* @memberof ConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
token?: string | null;
|
token?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ConnectorConfigConfig
|
* @memberof ConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
todoEntity?: string | null;
|
todoEntity?: string;
|
||||||
/**
|
/**
|
||||||
* Is Connector Enabled
|
* Is Connector Enabled
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -120,15 +120,10 @@ export function ConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ConnectorConfigConfigToJSON(json: any): ConnectorConfigConfig {
|
export function ConnectorConfigConfigToJSON(value?: Omit<ConnectorConfigConfig, 'createdBy'> | null): any {
|
||||||
return ConnectorConfigConfigToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ConnectorConfigConfigToJSONTyped(value?: Omit<ConnectorConfigConfig, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,19 +43,19 @@ export interface CookLog {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof CookLog
|
* @memberof CookLog
|
||||||
*/
|
*/
|
||||||
servings?: number | null;
|
servings?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof CookLog
|
* @memberof CookLog
|
||||||
*/
|
*/
|
||||||
rating?: number | null;
|
rating?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof CookLog
|
* @memberof CookLog
|
||||||
*/
|
*/
|
||||||
comment?: string | null;
|
comment?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {User}
|
* @type {User}
|
||||||
@@ -108,15 +107,10 @@ export function CookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): C
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CookLogToJSON(json: any): CookLog {
|
export function CookLogToJSON(value?: Omit<CookLog, 'createdBy'|'updatedAt'> | null): any {
|
||||||
return CookLogToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CookLogToJSONTyped(value?: Omit<CookLog, 'created_by'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -87,15 +86,10 @@ export function CustomFilterFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CustomFilterToJSON(json: any): CustomFilter {
|
export function CustomFilterToJSON(value?: Omit<CustomFilter, 'createdBy'> | null): any {
|
||||||
return CustomFilterToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterToJSONTyped(value?: Omit<CustomFilter, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export type DefaultPageEnum = typeof DefaultPageEnum[keyof typeof DefaultPageEnu
|
|||||||
export function instanceOfDefaultPageEnum(value: any): boolean {
|
export function instanceOfDefaultPageEnum(value: any): boolean {
|
||||||
for (const key in DefaultPageEnum) {
|
for (const key in DefaultPageEnum) {
|
||||||
if (Object.prototype.hasOwnProperty.call(DefaultPageEnum, key)) {
|
if (Object.prototype.hasOwnProperty.call(DefaultPageEnum, key)) {
|
||||||
if (DefaultPageEnum[key as keyof typeof DefaultPageEnum] === value) {
|
if (DefaultPageEnum[key] === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,3 @@ export function DefaultPageEnumToJSON(value?: DefaultPageEnum | null): any {
|
|||||||
return value as any;
|
return value as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DefaultPageEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DefaultPageEnum {
|
|
||||||
return value as DefaultPageEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export type DeleteEnum = typeof DeleteEnum[keyof typeof DeleteEnum];
|
|||||||
export function instanceOfDeleteEnum(value: any): boolean {
|
export function instanceOfDeleteEnum(value: any): boolean {
|
||||||
for (const key in DeleteEnum) {
|
for (const key in DeleteEnum) {
|
||||||
if (Object.prototype.hasOwnProperty.call(DeleteEnum, key)) {
|
if (Object.prototype.hasOwnProperty.call(DeleteEnum, key)) {
|
||||||
if (DeleteEnum[key as keyof typeof DeleteEnum] === value) {
|
if (DeleteEnum[key] === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -46,7 +46,3 @@ export function DeleteEnumToJSON(value?: DeleteEnum | null): any {
|
|||||||
return value as any;
|
return value as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DeleteEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DeleteEnum {
|
|
||||||
return value as DeleteEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -114,15 +114,10 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ExportLogToJSON(json: any): ExportLog {
|
export function ExportLogToJSON(value?: Omit<ExportLog, 'createdBy'|'createdAt'> | null): any {
|
||||||
return ExportLogToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ExportLogToJSONTyped(value?: Omit<ExportLog, 'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,42 +18,36 @@ import {
|
|||||||
SupermarketCategoryFromJSON,
|
SupermarketCategoryFromJSON,
|
||||||
SupermarketCategoryFromJSONTyped,
|
SupermarketCategoryFromJSONTyped,
|
||||||
SupermarketCategoryToJSON,
|
SupermarketCategoryToJSON,
|
||||||
SupermarketCategoryToJSONTyped,
|
|
||||||
} from './SupermarketCategory';
|
} from './SupermarketCategory';
|
||||||
import type { Unit } from './Unit';
|
import type { Unit } from './Unit';
|
||||||
import {
|
import {
|
||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
UnitToJSONTyped,
|
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
import type { Property } from './Property';
|
import type { Property } from './Property';
|
||||||
import {
|
import {
|
||||||
PropertyFromJSON,
|
PropertyFromJSON,
|
||||||
PropertyFromJSONTyped,
|
PropertyFromJSONTyped,
|
||||||
PropertyToJSON,
|
PropertyToJSON,
|
||||||
PropertyToJSONTyped,
|
|
||||||
} from './Property';
|
} from './Property';
|
||||||
import type { FoodInheritField } from './FoodInheritField';
|
import type { FoodInheritField } from './FoodInheritField';
|
||||||
import {
|
import {
|
||||||
FoodInheritFieldFromJSON,
|
FoodInheritFieldFromJSON,
|
||||||
FoodInheritFieldFromJSONTyped,
|
FoodInheritFieldFromJSONTyped,
|
||||||
FoodInheritFieldToJSON,
|
FoodInheritFieldToJSON,
|
||||||
FoodInheritFieldToJSONTyped,
|
|
||||||
} from './FoodInheritField';
|
} from './FoodInheritField';
|
||||||
import type { FoodSimple } from './FoodSimple';
|
import type { FoodSimple } from './FoodSimple';
|
||||||
import {
|
import {
|
||||||
FoodSimpleFromJSON,
|
FoodSimpleFromJSON,
|
||||||
FoodSimpleFromJSONTyped,
|
FoodSimpleFromJSONTyped,
|
||||||
FoodSimpleToJSON,
|
FoodSimpleToJSON,
|
||||||
FoodSimpleToJSONTyped,
|
|
||||||
} from './FoodSimple';
|
} from './FoodSimple';
|
||||||
import type { RecipeSimple } from './RecipeSimple';
|
import type { RecipeSimple } from './RecipeSimple';
|
||||||
import {
|
import {
|
||||||
RecipeSimpleFromJSON,
|
RecipeSimpleFromJSON,
|
||||||
RecipeSimpleFromJSONTyped,
|
RecipeSimpleFromJSONTyped,
|
||||||
RecipeSimpleToJSON,
|
RecipeSimpleToJSON,
|
||||||
RecipeSimpleToJSONTyped,
|
|
||||||
} from './RecipeSimple';
|
} from './RecipeSimple';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -113,7 +107,7 @@ export interface Food {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
pluralName?: string | null;
|
pluralName?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -131,19 +125,19 @@ export interface Food {
|
|||||||
* @type {RecipeSimple}
|
* @type {RecipeSimple}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeSimple | null;
|
recipe?: RecipeSimple;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
properties?: Array<Property> | null;
|
properties?: Array<Property>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -155,25 +149,25 @@ export interface Food {
|
|||||||
* @type {Unit}
|
* @type {Unit}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
propertiesFoodUnit?: Unit | null;
|
propertiesFoodUnit?: Unit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
fdcId?: number | null;
|
fdcId?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
foodOnhand?: boolean | null;
|
foodOnhand?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {SupermarketCategory}
|
* @type {SupermarketCategory}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
supermarketCategory?: SupermarketCategory | null;
|
supermarketCategory?: SupermarketCategory;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -191,7 +185,7 @@ export interface Food {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
inheritFields?: Array<FoodInheritField> | null;
|
inheritFields?: Array<FoodInheritField>;
|
||||||
/**
|
/**
|
||||||
* Returns a string representation of a tree node and it's ancestors,
|
* Returns a string representation of a tree node and it's ancestors,
|
||||||
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
|
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
|
||||||
@@ -210,7 +204,7 @@ export interface Food {
|
|||||||
* @type {Array<FoodSimple>}
|
* @type {Array<FoodSimple>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
substitute?: Array<FoodSimple> | null;
|
substitute?: Array<FoodSimple>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -234,13 +228,13 @@ export interface Food {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
childInheritFields?: Array<FoodInheritField> | null;
|
childInheritFields?: Array<FoodInheritField>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Food
|
* @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 {
|
export function FoodToJSON(value?: Omit<Food, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'> | null): any {
|
||||||
return FoodToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodToJSONTyped(value?: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -64,13 +64,13 @@ export interface FoodInheritField {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof FoodInheritField
|
* @memberof FoodInheritField
|
||||||
*/
|
*/
|
||||||
name?: string | null;
|
name?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof FoodInheritField
|
* @memberof FoodInheritField
|
||||||
*/
|
*/
|
||||||
field?: string | null;
|
field?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,15 +96,10 @@ export function FoodInheritFieldFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FoodInheritFieldToJSON(json: any): FoodInheritField {
|
export function FoodInheritFieldToJSON(value?: FoodInheritField | null): any {
|
||||||
return FoodInheritFieldToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldToJSONTyped(value?: FoodInheritField | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
DeleteEnumFromJSON,
|
DeleteEnumFromJSON,
|
||||||
DeleteEnumFromJSONTyped,
|
DeleteEnumFromJSONTyped,
|
||||||
DeleteEnumToJSON,
|
DeleteEnumToJSON,
|
||||||
DeleteEnumToJSONTyped,
|
|
||||||
} from './DeleteEnum';
|
} from './DeleteEnum';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface FoodShoppingUpdate {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof FoodShoppingUpdate
|
* @memberof FoodShoppingUpdate
|
||||||
*/
|
*/
|
||||||
amount?: number | null;
|
amount?: number;
|
||||||
/**
|
/**
|
||||||
* ID of unit to use for the shopping list
|
* ID of unit to use for the shopping list
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof FoodShoppingUpdate
|
* @memberof FoodShoppingUpdate
|
||||||
*/
|
*/
|
||||||
unit?: number | null;
|
unit?: number;
|
||||||
/**
|
/**
|
||||||
* When set to true will delete all food from active shopping lists.
|
* When set to true will delete all food from active shopping lists.
|
||||||
*
|
*
|
||||||
@@ -55,8 +54,6 @@ export interface FoodShoppingUpdate {
|
|||||||
_delete: DeleteEnum | null;
|
_delete: DeleteEnum | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the FoodShoppingUpdate interface.
|
* 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 {
|
export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any {
|
||||||
return FoodShoppingUpdateToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodShoppingUpdateToJSONTyped(value?: FoodShoppingUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export interface FoodSimple {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof FoodSimple
|
* @memberof FoodSimple
|
||||||
*/
|
*/
|
||||||
pluralName?: string | null;
|
pluralName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -63,15 +63,10 @@ export function FoodSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FoodSimpleToJSON(json: any): FoodSimple {
|
export function FoodSimpleToJSON(value?: FoodSimple | null): any {
|
||||||
return FoodSimpleToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSimpleToJSONTyped(value?: FoodSimple | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -90,15 +90,10 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GroupToJSON(json: any): Group {
|
export function GroupToJSON(value?: Group | null): any {
|
||||||
return GroupToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
KeywordFromJSON,
|
KeywordFromJSON,
|
||||||
KeywordFromJSONTyped,
|
KeywordFromJSONTyped,
|
||||||
KeywordToJSON,
|
KeywordToJSON,
|
||||||
KeywordToJSONTyped,
|
|
||||||
} from './Keyword';
|
} from './Keyword';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -116,15 +115,10 @@ export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ImportLogToJSON(json: any): ImportLog {
|
export function ImportLogToJSON(value?: Omit<ImportLog, 'keyword'|'createdBy'|'createdAt'> | null): any {
|
||||||
return ImportLogToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogToJSONTyped(value?: Omit<ImportLog, 'keyword'|'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ import {
|
|||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
UnitToJSONTyped,
|
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
import type { Food } from './Food';
|
import type { Food } from './Food';
|
||||||
import {
|
import {
|
||||||
FoodFromJSON,
|
FoodFromJSON,
|
||||||
FoodFromJSONTyped,
|
FoodFromJSONTyped,
|
||||||
FoodToJSON,
|
FoodToJSON,
|
||||||
FoodToJSONTyped,
|
|
||||||
} from './Food';
|
} from './Food';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -69,7 +67,7 @@ export interface Ingredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Ingredient
|
* @memberof Ingredient
|
||||||
*/
|
*/
|
||||||
note?: string | null;
|
note?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -93,7 +91,7 @@ export interface Ingredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Ingredient
|
* @memberof Ingredient
|
||||||
*/
|
*/
|
||||||
originalText?: string | null;
|
originalText?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<any>}
|
* @type {Array<any>}
|
||||||
@@ -152,15 +150,10 @@ export function IngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function IngredientToJSON(json: any): Ingredient {
|
export function IngredientToJSON(value?: Omit<Ingredient, 'conversions'|'usedInRecipes'> | null): any {
|
||||||
return IngredientToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientToJSONTyped(value?: Omit<Ingredient, 'conversions'|'used_in_recipes'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -49,15 +49,10 @@ export function IngredientStringFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function IngredientStringToJSON(json: any): IngredientString {
|
export function IngredientStringToJSON(value?: IngredientString | null): any {
|
||||||
return IngredientStringToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientStringToJSONTyped(value?: IngredientString | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'text': value['text'],
|
'text': value['text'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
GroupFromJSON,
|
GroupFromJSON,
|
||||||
GroupFromJSONTyped,
|
GroupFromJSONTyped,
|
||||||
GroupToJSON,
|
GroupToJSON,
|
||||||
GroupToJSONTyped,
|
|
||||||
} from './Group';
|
} from './Group';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,7 +61,7 @@ export interface InviteLink {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof InviteLink
|
* @memberof InviteLink
|
||||||
*/
|
*/
|
||||||
usedBy?: number | null;
|
usedBy?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -74,7 +73,7 @@ export interface InviteLink {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof InviteLink
|
* @memberof InviteLink
|
||||||
*/
|
*/
|
||||||
internalNote?: string | null;
|
internalNote?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -123,15 +122,10 @@ export function InviteLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function InviteLinkToJSON(json: any): InviteLink {
|
export function InviteLinkToJSON(value?: Omit<InviteLink, 'uuid'|'createdBy'|'createdAt'> | null): any {
|
||||||
return InviteLinkToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkToJSONTyped(value?: Omit<InviteLink, 'uuid'|'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -146,15 +146,10 @@ export function KeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): K
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function KeywordToJSON(json: any): Keyword {
|
export function KeywordToJSON(value?: Omit<Keyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'> | null): any {
|
||||||
return KeywordToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function KeywordToJSONTyped(value?: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -56,15 +56,10 @@ export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function KeywordLabelToJSON(json: any): KeywordLabel {
|
export function KeywordLabelToJSON(value?: Omit<KeywordLabel, 'label'> | null): any {
|
||||||
return KeywordLabelToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function KeywordLabelToJSONTyped(value?: Omit<KeywordLabel, 'label'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -57,15 +57,10 @@ export function LocalizationFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function LocalizationToJSON(json: any): Localization {
|
export function LocalizationToJSON(value?: Omit<Localization, 'code'|'language'> | null): any {
|
||||||
return LocalizationToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function LocalizationToJSONTyped(value?: Omit<Localization, 'code'|'language'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,21 +18,18 @@ import {
|
|||||||
MealTypeFromJSON,
|
MealTypeFromJSON,
|
||||||
MealTypeFromJSONTyped,
|
MealTypeFromJSONTyped,
|
||||||
MealTypeToJSON,
|
MealTypeToJSON,
|
||||||
MealTypeToJSONTyped,
|
|
||||||
} from './MealType';
|
} from './MealType';
|
||||||
import type { User } from './User';
|
import type { User } from './User';
|
||||||
import {
|
import {
|
||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
import type { RecipeOverview } from './RecipeOverview';
|
import type { RecipeOverview } from './RecipeOverview';
|
||||||
import {
|
import {
|
||||||
RecipeOverviewFromJSON,
|
RecipeOverviewFromJSON,
|
||||||
RecipeOverviewFromJSONTyped,
|
RecipeOverviewFromJSONTyped,
|
||||||
RecipeOverviewToJSON,
|
RecipeOverviewToJSON,
|
||||||
RecipeOverviewToJSONTyped,
|
|
||||||
} from './RecipeOverview';
|
} from './RecipeOverview';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,7 +55,7 @@ export interface MealPlan {
|
|||||||
* @type {RecipeOverview}
|
* @type {RecipeOverview}
|
||||||
* @memberof MealPlan
|
* @memberof MealPlan
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeOverview | null;
|
recipe?: RecipeOverview;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -106,7 +103,7 @@ export interface MealPlan {
|
|||||||
* @type {Array<User>}
|
* @type {Array<User>}
|
||||||
* @memberof MealPlan
|
* @memberof MealPlan
|
||||||
*/
|
*/
|
||||||
shared?: Array<User> | null;
|
shared?: Array<User>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -176,15 +173,10 @@ export function MealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MealPlanToJSON(json: any): MealPlan {
|
export function MealPlanToJSON(value?: Omit<MealPlan, 'noteMarkdown'|'createdBy'|'recipeName'|'mealTypeName'|'shopping'> | null): any {
|
||||||
return MealPlanToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanToJSONTyped(value?: Omit<MealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -42,13 +42,13 @@ export interface MealType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof MealType
|
* @memberof MealType
|
||||||
*/
|
*/
|
||||||
time?: string | null;
|
time?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof MealType
|
* @memberof MealType
|
||||||
*/
|
*/
|
||||||
color?: string | null;
|
color?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -92,15 +92,10 @@ export function MealTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MealTypeToJSON(json: any): MealType {
|
export function MealTypeToJSON(value?: Omit<MealType, 'createdBy'> | null): any {
|
||||||
return MealTypeToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealTypeToJSONTyped(value?: Omit<MealType, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export type MethodEnum = typeof MethodEnum[keyof typeof MethodEnum];
|
|||||||
export function instanceOfMethodEnum(value: any): boolean {
|
export function instanceOfMethodEnum(value: any): boolean {
|
||||||
for (const key in MethodEnum) {
|
for (const key in MethodEnum) {
|
||||||
if (Object.prototype.hasOwnProperty.call(MethodEnum, key)) {
|
if (Object.prototype.hasOwnProperty.call(MethodEnum, key)) {
|
||||||
if (MethodEnum[key as keyof typeof MethodEnum] === value) {
|
if (MethodEnum[key] === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,3 @@ export function MethodEnumToJSON(value?: MethodEnum | null): any {
|
|||||||
return value as any;
|
return value as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): MethodEnum {
|
|
||||||
return value as MethodEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export interface NutritionInformation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof NutritionInformation
|
* @memberof NutritionInformation
|
||||||
*/
|
*/
|
||||||
source?: string | null;
|
source?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -87,15 +87,10 @@ export function NutritionInformationFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NutritionInformationToJSON(json: any): NutritionInformation {
|
export function NutritionInformationToJSON(value?: NutritionInformation | null): any {
|
||||||
return NutritionInformationToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function NutritionInformationToJSONTyped(value?: NutritionInformation | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -136,15 +135,10 @@ export function OpenDataCategoryFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataCategoryToJSON(json: any): OpenDataCategory {
|
export function OpenDataCategoryToJSON(value?: Omit<OpenDataCategory, 'createdBy'> | null): any {
|
||||||
return OpenDataCategoryToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataCategoryToJSONTyped(value?: Omit<OpenDataCategory, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,21 +18,18 @@ import {
|
|||||||
OpenDataUnitFromJSON,
|
OpenDataUnitFromJSON,
|
||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
OpenDataUnitToJSONTyped,
|
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
import type { OpenDataFood } from './OpenDataFood';
|
import type { OpenDataFood } from './OpenDataFood';
|
||||||
import {
|
import {
|
||||||
OpenDataFoodFromJSON,
|
OpenDataFoodFromJSON,
|
||||||
OpenDataFoodFromJSONTyped,
|
OpenDataFoodFromJSONTyped,
|
||||||
OpenDataFoodToJSON,
|
OpenDataFoodToJSON,
|
||||||
OpenDataFoodToJSONTyped,
|
|
||||||
} from './OpenDataFood';
|
} from './OpenDataFood';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -149,15 +146,10 @@ export function OpenDataConversionFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataConversionToJSON(json: any): OpenDataConversion {
|
export function OpenDataConversionToJSON(value?: Omit<OpenDataConversion, 'createdBy'> | null): any {
|
||||||
return OpenDataConversionToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionToJSONTyped(value?: Omit<OpenDataConversion, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,28 +18,24 @@ import {
|
|||||||
OpenDataFoodPropertyFromJSON,
|
OpenDataFoodPropertyFromJSON,
|
||||||
OpenDataFoodPropertyFromJSONTyped,
|
OpenDataFoodPropertyFromJSONTyped,
|
||||||
OpenDataFoodPropertyToJSON,
|
OpenDataFoodPropertyToJSON,
|
||||||
OpenDataFoodPropertyToJSONTyped,
|
|
||||||
} from './OpenDataFoodProperty';
|
} from './OpenDataFoodProperty';
|
||||||
import type { OpenDataUnit } from './OpenDataUnit';
|
import type { OpenDataUnit } from './OpenDataUnit';
|
||||||
import {
|
import {
|
||||||
OpenDataUnitFromJSON,
|
OpenDataUnitFromJSON,
|
||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
OpenDataUnitToJSONTyped,
|
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
import type { OpenDataCategory } from './OpenDataCategory';
|
import type { OpenDataCategory } from './OpenDataCategory';
|
||||||
import {
|
import {
|
||||||
OpenDataCategoryFromJSON,
|
OpenDataCategoryFromJSON,
|
||||||
OpenDataCategoryFromJSONTyped,
|
OpenDataCategoryFromJSONTyped,
|
||||||
OpenDataCategoryToJSON,
|
OpenDataCategoryToJSON,
|
||||||
OpenDataCategoryToJSONTyped,
|
|
||||||
} from './OpenDataCategory';
|
} from './OpenDataCategory';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -123,25 +119,25 @@ export interface OpenDataFood {
|
|||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitMetric?: OpenDataUnit | null;
|
preferredUnitMetric?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitMetric?: OpenDataUnit | null;
|
preferredShoppingUnitMetric?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitImperial?: OpenDataUnit | null;
|
preferredUnitImperial?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitImperial?: OpenDataUnit | null;
|
preferredShoppingUnitImperial?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<OpenDataFoodProperty>}
|
* @type {Array<OpenDataFoodProperty>}
|
||||||
@@ -232,15 +228,10 @@ export function OpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataFoodToJSON(json: any): OpenDataFood {
|
export function OpenDataFoodToJSON(value?: Omit<OpenDataFood, 'createdBy'> | null): any {
|
||||||
return OpenDataFoodToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataFoodToJSONTyped(value?: Omit<OpenDataFood, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
OpenDataPropertyFromJSON,
|
OpenDataPropertyFromJSON,
|
||||||
OpenDataPropertyFromJSONTyped,
|
OpenDataPropertyFromJSONTyped,
|
||||||
OpenDataPropertyToJSON,
|
OpenDataPropertyToJSON,
|
||||||
OpenDataPropertyToJSONTyped,
|
|
||||||
} from './OpenDataProperty';
|
} from './OpenDataProperty';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -72,15 +71,10 @@ export function OpenDataFoodPropertyFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataFoodPropertyToJSON(json: any): OpenDataFoodProperty {
|
export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null): any {
|
||||||
return OpenDataFoodPropertyToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataFoodPropertyToJSONTyped(value?: OpenDataFoodProperty | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,7 +95,7 @@ export interface OpenDataProperty {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof OpenDataProperty
|
* @memberof OpenDataProperty
|
||||||
*/
|
*/
|
||||||
fdcId?: number | null;
|
fdcId?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -143,15 +142,10 @@ export function OpenDataPropertyFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataPropertyToJSON(json: any): OpenDataProperty {
|
export function OpenDataPropertyToJSON(value?: Omit<OpenDataProperty, 'createdBy'> | null): any {
|
||||||
return OpenDataPropertyToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataPropertyToJSONTyped(value?: Omit<OpenDataProperty, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ import {
|
|||||||
OpenDataStoreCategoryFromJSON,
|
OpenDataStoreCategoryFromJSON,
|
||||||
OpenDataStoreCategoryFromJSONTyped,
|
OpenDataStoreCategoryFromJSONTyped,
|
||||||
OpenDataStoreCategoryToJSON,
|
OpenDataStoreCategoryToJSON,
|
||||||
OpenDataStoreCategoryToJSONTyped,
|
|
||||||
} from './OpenDataStoreCategory';
|
} from './OpenDataStoreCategory';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -110,15 +108,10 @@ export function OpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataStoreToJSON(json: any): OpenDataStore {
|
export function OpenDataStoreToJSON(value?: Omit<OpenDataStore, 'createdBy'> | null): any {
|
||||||
return OpenDataStoreToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreToJSONTyped(value?: Omit<OpenDataStore, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
OpenDataCategoryFromJSON,
|
OpenDataCategoryFromJSON,
|
||||||
OpenDataCategoryFromJSONTyped,
|
OpenDataCategoryFromJSONTyped,
|
||||||
OpenDataCategoryToJSON,
|
OpenDataCategoryToJSON,
|
||||||
OpenDataCategoryToJSONTyped,
|
|
||||||
} from './OpenDataCategory';
|
} from './OpenDataCategory';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -79,15 +78,10 @@ export function OpenDataStoreCategoryFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToJSON(json: any): OpenDataStoreCategory {
|
export function OpenDataStoreCategoryToJSON(value?: OpenDataStoreCategory | null): any {
|
||||||
return OpenDataStoreCategoryToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToJSONTyped(value?: OpenDataStoreCategory | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,21 +18,18 @@ import {
|
|||||||
BaseUnitEnumFromJSON,
|
BaseUnitEnumFromJSON,
|
||||||
BaseUnitEnumFromJSONTyped,
|
BaseUnitEnumFromJSONTyped,
|
||||||
BaseUnitEnumToJSON,
|
BaseUnitEnumToJSON,
|
||||||
BaseUnitEnumToJSONTyped,
|
|
||||||
} from './BaseUnitEnum';
|
} from './BaseUnitEnum';
|
||||||
import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum';
|
import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum';
|
||||||
import {
|
import {
|
||||||
OpenDataUnitTypeEnumFromJSON,
|
OpenDataUnitTypeEnumFromJSON,
|
||||||
OpenDataUnitTypeEnumFromJSONTyped,
|
OpenDataUnitTypeEnumFromJSONTyped,
|
||||||
OpenDataUnitTypeEnumToJSON,
|
OpenDataUnitTypeEnumToJSON,
|
||||||
OpenDataUnitTypeEnumToJSONTyped,
|
|
||||||
} from './OpenDataUnitTypeEnum';
|
} from './OpenDataUnitTypeEnum';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -131,8 +128,6 @@ export interface OpenDataUnit {
|
|||||||
readonly createdBy: string;
|
readonly createdBy: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataUnit interface.
|
* 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 {
|
export function OpenDataUnitToJSON(value?: Omit<OpenDataUnit, 'createdBy'> | null): any {
|
||||||
return OpenDataUnitToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitToJSONTyped(value?: Omit<OpenDataUnit, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export type OpenDataUnitTypeEnum = typeof OpenDataUnitTypeEnum[keyof typeof Open
|
|||||||
export function instanceOfOpenDataUnitTypeEnum(value: any): boolean {
|
export function instanceOfOpenDataUnitTypeEnum(value: any): boolean {
|
||||||
for (const key in OpenDataUnitTypeEnum) {
|
for (const key in OpenDataUnitTypeEnum) {
|
||||||
if (Object.prototype.hasOwnProperty.call(OpenDataUnitTypeEnum, key)) {
|
if (Object.prototype.hasOwnProperty.call(OpenDataUnitTypeEnum, key)) {
|
||||||
if (OpenDataUnitTypeEnum[key as keyof typeof OpenDataUnitTypeEnum] === value) {
|
if (OpenDataUnitTypeEnum[key] === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,3 @@ export function OpenDataUnitTypeEnumToJSON(value?: OpenDataUnitTypeEnum | null):
|
|||||||
return value as any;
|
return value as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataUnitTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): OpenDataUnitTypeEnum {
|
|
||||||
return value as OpenDataUnitTypeEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -105,15 +105,10 @@ export function OpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataVersionToJSON(json: any): OpenDataVersion {
|
export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any {
|
||||||
return OpenDataVersionToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataVersionToJSONTyped(value?: OpenDataVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
AutomationFromJSON,
|
AutomationFromJSON,
|
||||||
AutomationFromJSONTyped,
|
AutomationFromJSONTyped,
|
||||||
AutomationToJSON,
|
AutomationToJSON,
|
||||||
AutomationToJSONTyped,
|
|
||||||
} from './Automation';
|
} from './Automation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedAutomationList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedAutomationList
|
* @memberof PaginatedAutomationList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedAutomationList
|
* @memberof PaginatedAutomationList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Automation>}
|
* @type {Array<Automation>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedAutomationListFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedAutomationListToJSON(json: any): PaginatedAutomationList {
|
export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList | null): any {
|
||||||
return PaginatedAutomationListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedAutomationListToJSONTyped(value?: PaginatedAutomationList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
BookmarkletImportListFromJSON,
|
BookmarkletImportListFromJSON,
|
||||||
BookmarkletImportListFromJSONTyped,
|
BookmarkletImportListFromJSONTyped,
|
||||||
BookmarkletImportListToJSON,
|
BookmarkletImportListToJSON,
|
||||||
BookmarkletImportListToJSONTyped,
|
|
||||||
} from './BookmarkletImportList';
|
} from './BookmarkletImportList';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedBookmarkletImportListList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedBookmarkletImportListList
|
* @memberof PaginatedBookmarkletImportListList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedBookmarkletImportListList
|
* @memberof PaginatedBookmarkletImportListList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<BookmarkletImportList>}
|
* @type {Array<BookmarkletImportList>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignor
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedBookmarkletImportListListToJSON(json: any): PaginatedBookmarkletImportListList {
|
export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookmarkletImportListList | null): any {
|
||||||
return PaginatedBookmarkletImportListListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedBookmarkletImportListListToJSONTyped(value?: PaginatedBookmarkletImportListList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
CookLogFromJSON,
|
CookLogFromJSON,
|
||||||
CookLogFromJSONTyped,
|
CookLogFromJSONTyped,
|
||||||
CookLogToJSON,
|
CookLogToJSON,
|
||||||
CookLogToJSONTyped,
|
|
||||||
} from './CookLog';
|
} from './CookLog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedCookLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCookLogList
|
* @memberof PaginatedCookLogList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCookLogList
|
* @memberof PaginatedCookLogList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<CookLog>}
|
* @type {Array<CookLog>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedCookLogListFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedCookLogListToJSON(json: any): PaginatedCookLogList {
|
export function PaginatedCookLogListToJSON(value?: PaginatedCookLogList | null): any {
|
||||||
return PaginatedCookLogListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedCookLogListToJSONTyped(value?: PaginatedCookLogList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
CustomFilterFromJSON,
|
CustomFilterFromJSON,
|
||||||
CustomFilterFromJSONTyped,
|
CustomFilterFromJSONTyped,
|
||||||
CustomFilterToJSON,
|
CustomFilterToJSON,
|
||||||
CustomFilterToJSONTyped,
|
|
||||||
} from './CustomFilter';
|
} from './CustomFilter';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedCustomFilterList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCustomFilterList
|
* @memberof PaginatedCustomFilterList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCustomFilterList
|
* @memberof PaginatedCustomFilterList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<CustomFilter>}
|
* @type {Array<CustomFilter>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedCustomFilterListFromJSONTyped(json: any, ignoreDiscrimi
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedCustomFilterListToJSON(json: any): PaginatedCustomFilterList {
|
export function PaginatedCustomFilterListToJSON(value?: PaginatedCustomFilterList | null): any {
|
||||||
return PaginatedCustomFilterListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedCustomFilterListToJSONTyped(value?: PaginatedCustomFilterList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
ExportLogFromJSON,
|
ExportLogFromJSON,
|
||||||
ExportLogFromJSONTyped,
|
ExportLogFromJSONTyped,
|
||||||
ExportLogToJSON,
|
ExportLogToJSON,
|
||||||
ExportLogToJSONTyped,
|
|
||||||
} from './ExportLog';
|
} from './ExportLog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedExportLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedExportLogList
|
* @memberof PaginatedExportLogList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedExportLogList
|
* @memberof PaginatedExportLogList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ExportLog>}
|
* @type {Array<ExportLog>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedExportLogListFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedExportLogListToJSON(json: any): PaginatedExportLogList {
|
export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | null): any {
|
||||||
return PaginatedExportLogListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedExportLogListToJSONTyped(value?: PaginatedExportLogList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
FoodFromJSON,
|
FoodFromJSON,
|
||||||
FoodFromJSONTyped,
|
FoodFromJSONTyped,
|
||||||
FoodToJSON,
|
FoodToJSON,
|
||||||
FoodToJSONTyped,
|
|
||||||
} from './Food';
|
} from './Food';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedFoodList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedFoodList
|
* @memberof PaginatedFoodList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedFoodList
|
* @memberof PaginatedFoodList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Food>}
|
* @type {Array<Food>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedFoodListFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedFoodListToJSON(json: any): PaginatedFoodList {
|
export function PaginatedFoodListToJSON(value?: PaginatedFoodList | null): any {
|
||||||
return PaginatedFoodListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedFoodListToJSONTyped(value?: PaginatedFoodList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
ImportLogFromJSON,
|
ImportLogFromJSON,
|
||||||
ImportLogFromJSONTyped,
|
ImportLogFromJSONTyped,
|
||||||
ImportLogToJSON,
|
ImportLogToJSON,
|
||||||
ImportLogToJSONTyped,
|
|
||||||
} from './ImportLog';
|
} from './ImportLog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedImportLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedImportLogList
|
* @memberof PaginatedImportLogList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedImportLogList
|
* @memberof PaginatedImportLogList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ImportLog>}
|
* @type {Array<ImportLog>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedImportLogListFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedImportLogListToJSON(json: any): PaginatedImportLogList {
|
export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | null): any {
|
||||||
return PaginatedImportLogListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedImportLogListToJSONTyped(value?: PaginatedImportLogList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
IngredientFromJSON,
|
IngredientFromJSON,
|
||||||
IngredientFromJSONTyped,
|
IngredientFromJSONTyped,
|
||||||
IngredientToJSON,
|
IngredientToJSON,
|
||||||
IngredientToJSONTyped,
|
|
||||||
} from './Ingredient';
|
} from './Ingredient';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedIngredientList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedIngredientList
|
* @memberof PaginatedIngredientList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedIngredientList
|
* @memberof PaginatedIngredientList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Ingredient>}
|
* @type {Array<Ingredient>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedIngredientListFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedIngredientListToJSON(json: any): PaginatedIngredientList {
|
export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList | null): any {
|
||||||
return PaginatedIngredientListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedIngredientListToJSONTyped(value?: PaginatedIngredientList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
InviteLinkFromJSON,
|
InviteLinkFromJSON,
|
||||||
InviteLinkFromJSONTyped,
|
InviteLinkFromJSONTyped,
|
||||||
InviteLinkToJSON,
|
InviteLinkToJSON,
|
||||||
InviteLinkToJSONTyped,
|
|
||||||
} from './InviteLink';
|
} from './InviteLink';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedInviteLinkList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedInviteLinkList
|
* @memberof PaginatedInviteLinkList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedInviteLinkList
|
* @memberof PaginatedInviteLinkList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<InviteLink>}
|
* @type {Array<InviteLink>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedInviteLinkListFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedInviteLinkListToJSON(json: any): PaginatedInviteLinkList {
|
export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList | null): any {
|
||||||
return PaginatedInviteLinkListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedInviteLinkListToJSONTyped(value?: PaginatedInviteLinkList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
KeywordFromJSON,
|
KeywordFromJSON,
|
||||||
KeywordFromJSONTyped,
|
KeywordFromJSONTyped,
|
||||||
KeywordToJSON,
|
KeywordToJSON,
|
||||||
KeywordToJSONTyped,
|
|
||||||
} from './Keyword';
|
} from './Keyword';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedKeywordList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedKeywordList
|
* @memberof PaginatedKeywordList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedKeywordList
|
* @memberof PaginatedKeywordList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Keyword>}
|
* @type {Array<Keyword>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedKeywordListFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedKeywordListToJSON(json: any): PaginatedKeywordList {
|
export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null): any {
|
||||||
return PaginatedKeywordListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedKeywordListToJSONTyped(value?: PaginatedKeywordList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
MealPlanFromJSON,
|
MealPlanFromJSON,
|
||||||
MealPlanFromJSONTyped,
|
MealPlanFromJSONTyped,
|
||||||
MealPlanToJSON,
|
MealPlanToJSON,
|
||||||
MealPlanToJSONTyped,
|
|
||||||
} from './MealPlan';
|
} from './MealPlan';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedMealPlanList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealPlanList
|
* @memberof PaginatedMealPlanList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealPlanList
|
* @memberof PaginatedMealPlanList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<MealPlan>}
|
* @type {Array<MealPlan>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedMealPlanListFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedMealPlanListToJSON(json: any): PaginatedMealPlanList {
|
export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null): any {
|
||||||
return PaginatedMealPlanListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedMealPlanListToJSONTyped(value?: PaginatedMealPlanList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
MealTypeFromJSON,
|
MealTypeFromJSON,
|
||||||
MealTypeFromJSONTyped,
|
MealTypeFromJSONTyped,
|
||||||
MealTypeToJSON,
|
MealTypeToJSON,
|
||||||
MealTypeToJSONTyped,
|
|
||||||
} from './MealType';
|
} from './MealType';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedMealTypeList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealTypeList
|
* @memberof PaginatedMealTypeList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealTypeList
|
* @memberof PaginatedMealTypeList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<MealType>}
|
* @type {Array<MealType>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedMealTypeListFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedMealTypeListToJSON(json: any): PaginatedMealTypeList {
|
export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null): any {
|
||||||
return PaginatedMealTypeListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedMealTypeListToJSONTyped(value?: PaginatedMealTypeList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
PropertyFromJSON,
|
PropertyFromJSON,
|
||||||
PropertyFromJSONTyped,
|
PropertyFromJSONTyped,
|
||||||
PropertyToJSON,
|
PropertyToJSON,
|
||||||
PropertyToJSONTyped,
|
|
||||||
} from './Property';
|
} from './Property';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedPropertyList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyList
|
* @memberof PaginatedPropertyList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyList
|
* @memberof PaginatedPropertyList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedPropertyListToJSON(json: any): PaginatedPropertyList {
|
export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null): any {
|
||||||
return PaginatedPropertyListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedPropertyListToJSONTyped(value?: PaginatedPropertyList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
PropertyTypeFromJSON,
|
PropertyTypeFromJSON,
|
||||||
PropertyTypeFromJSONTyped,
|
PropertyTypeFromJSONTyped,
|
||||||
PropertyTypeToJSON,
|
PropertyTypeToJSON,
|
||||||
PropertyTypeToJSONTyped,
|
|
||||||
} from './PropertyType';
|
} from './PropertyType';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedPropertyTypeList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyTypeList
|
* @memberof PaginatedPropertyTypeList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyTypeList
|
* @memberof PaginatedPropertyTypeList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<PropertyType>}
|
* @type {Array<PropertyType>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedPropertyTypeListFromJSONTyped(json: any, ignoreDiscrimi
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedPropertyTypeListToJSON(json: any): PaginatedPropertyTypeList {
|
export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeList | null): any {
|
||||||
return PaginatedPropertyTypeListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedPropertyTypeListToJSONTyped(value?: PaginatedPropertyTypeList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
RecipeBookEntryFromJSON,
|
RecipeBookEntryFromJSON,
|
||||||
RecipeBookEntryFromJSONTyped,
|
RecipeBookEntryFromJSONTyped,
|
||||||
RecipeBookEntryToJSON,
|
RecipeBookEntryToJSON,
|
||||||
RecipeBookEntryToJSONTyped,
|
|
||||||
} from './RecipeBookEntry';
|
} from './RecipeBookEntry';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedRecipeBookEntryList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookEntryList
|
* @memberof PaginatedRecipeBookEntryList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookEntryList
|
* @memberof PaginatedRecipeBookEntryList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<RecipeBookEntry>}
|
* @type {Array<RecipeBookEntry>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedRecipeBookEntryListFromJSONTyped(json: any, ignoreDiscr
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedRecipeBookEntryListToJSON(json: any): PaginatedRecipeBookEntryList {
|
export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEntryList | null): any {
|
||||||
return PaginatedRecipeBookEntryListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedRecipeBookEntryListToJSONTyped(value?: PaginatedRecipeBookEntryList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
RecipeBookFromJSON,
|
RecipeBookFromJSON,
|
||||||
RecipeBookFromJSONTyped,
|
RecipeBookFromJSONTyped,
|
||||||
RecipeBookToJSON,
|
RecipeBookToJSON,
|
||||||
RecipeBookToJSONTyped,
|
|
||||||
} from './RecipeBook';
|
} from './RecipeBook';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedRecipeBookList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookList
|
* @memberof PaginatedRecipeBookList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookList
|
* @memberof PaginatedRecipeBookList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<RecipeBook>}
|
* @type {Array<RecipeBook>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedRecipeBookListFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedRecipeBookListToJSON(json: any): PaginatedRecipeBookList {
|
export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList | null): any {
|
||||||
return PaginatedRecipeBookListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedRecipeBookListToJSONTyped(value?: PaginatedRecipeBookList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
RecipeOverviewFromJSON,
|
RecipeOverviewFromJSON,
|
||||||
RecipeOverviewFromJSONTyped,
|
RecipeOverviewFromJSONTyped,
|
||||||
RecipeOverviewToJSON,
|
RecipeOverviewToJSON,
|
||||||
RecipeOverviewToJSONTyped,
|
|
||||||
} from './RecipeOverview';
|
} from './RecipeOverview';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedRecipeOverviewList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeOverviewList
|
* @memberof PaginatedRecipeOverviewList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeOverviewList
|
* @memberof PaginatedRecipeOverviewList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<RecipeOverview>}
|
* @type {Array<RecipeOverview>}
|
||||||
@@ -79,15 +78,10 @@ export function PaginatedRecipeOverviewListFromJSONTyped(json: any, ignoreDiscri
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedRecipeOverviewListToJSON(json: any): PaginatedRecipeOverviewList {
|
export function PaginatedRecipeOverviewListToJSON(value?: PaginatedRecipeOverviewList | null): any {
|
||||||
return PaginatedRecipeOverviewListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedRecipeOverviewListToJSONTyped(value?: PaginatedRecipeOverviewList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
ShoppingListEntryFromJSON,
|
ShoppingListEntryFromJSON,
|
||||||
ShoppingListEntryFromJSONTyped,
|
ShoppingListEntryFromJSONTyped,
|
||||||
ShoppingListEntryToJSON,
|
ShoppingListEntryToJSON,
|
||||||
ShoppingListEntryToJSONTyped,
|
|
||||||
} from './ShoppingListEntry';
|
} from './ShoppingListEntry';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedShoppingListEntryList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListEntryList
|
* @memberof PaginatedShoppingListEntryList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListEntryList
|
* @memberof PaginatedShoppingListEntryList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ShoppingListEntry>}
|
* @type {Array<ShoppingListEntry>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedShoppingListEntryListFromJSONTyped(json: any, ignoreDis
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedShoppingListEntryListToJSON(json: any): PaginatedShoppingListEntryList {
|
export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingListEntryList | null): any {
|
||||||
return PaginatedShoppingListEntryListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedShoppingListEntryListToJSONTyped(value?: PaginatedShoppingListEntryList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
ShoppingListRecipeFromJSON,
|
ShoppingListRecipeFromJSON,
|
||||||
ShoppingListRecipeFromJSONTyped,
|
ShoppingListRecipeFromJSONTyped,
|
||||||
ShoppingListRecipeToJSON,
|
ShoppingListRecipeToJSON,
|
||||||
ShoppingListRecipeToJSONTyped,
|
|
||||||
} from './ShoppingListRecipe';
|
} from './ShoppingListRecipe';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedShoppingListRecipeList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListRecipeList
|
* @memberof PaginatedShoppingListRecipeList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListRecipeList
|
* @memberof PaginatedShoppingListRecipeList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ShoppingListRecipe>}
|
* @type {Array<ShoppingListRecipe>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedShoppingListRecipeListFromJSONTyped(json: any, ignoreDi
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedShoppingListRecipeListToJSON(json: any): PaginatedShoppingListRecipeList {
|
export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingListRecipeList | null): any {
|
||||||
return PaginatedShoppingListRecipeListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedShoppingListRecipeListToJSONTyped(value?: PaginatedShoppingListRecipeList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
SpaceFromJSON,
|
SpaceFromJSON,
|
||||||
SpaceFromJSONTyped,
|
SpaceFromJSONTyped,
|
||||||
SpaceToJSON,
|
SpaceToJSON,
|
||||||
SpaceToJSONTyped,
|
|
||||||
} from './Space';
|
} from './Space';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedSpaceList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSpaceList
|
* @memberof PaginatedSpaceList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSpaceList
|
* @memberof PaginatedSpaceList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Space>}
|
* @type {Array<Space>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedSpaceListFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedSpaceListToJSON(json: any): PaginatedSpaceList {
|
export function PaginatedSpaceListToJSON(value?: PaginatedSpaceList | null): any {
|
||||||
return PaginatedSpaceListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedSpaceListToJSONTyped(value?: PaginatedSpaceList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
StepFromJSON,
|
StepFromJSON,
|
||||||
StepFromJSONTyped,
|
StepFromJSONTyped,
|
||||||
StepToJSON,
|
StepToJSON,
|
||||||
StepToJSONTyped,
|
|
||||||
} from './Step';
|
} from './Step';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedStepList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedStepList
|
* @memberof PaginatedStepList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedStepList
|
* @memberof PaginatedStepList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Step>}
|
* @type {Array<Step>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedStepListFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedStepListToJSON(json: any): PaginatedStepList {
|
export function PaginatedStepListToJSON(value?: PaginatedStepList | null): any {
|
||||||
return PaginatedStepListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedStepListToJSONTyped(value?: PaginatedStepList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
SupermarketCategoryFromJSON,
|
SupermarketCategoryFromJSON,
|
||||||
SupermarketCategoryFromJSONTyped,
|
SupermarketCategoryFromJSONTyped,
|
||||||
SupermarketCategoryToJSON,
|
SupermarketCategoryToJSON,
|
||||||
SupermarketCategoryToJSONTyped,
|
|
||||||
} from './SupermarketCategory';
|
} from './SupermarketCategory';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedSupermarketCategoryList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryList
|
* @memberof PaginatedSupermarketCategoryList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryList
|
* @memberof PaginatedSupermarketCategoryList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SupermarketCategory>}
|
* @type {Array<SupermarketCategory>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedSupermarketCategoryListFromJSONTyped(json: any, ignoreD
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedSupermarketCategoryListToJSON(json: any): PaginatedSupermarketCategoryList {
|
export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermarketCategoryList | null): any {
|
||||||
return PaginatedSupermarketCategoryListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedSupermarketCategoryListToJSONTyped(value?: PaginatedSupermarketCategoryList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
SupermarketCategoryRelationFromJSON,
|
SupermarketCategoryRelationFromJSON,
|
||||||
SupermarketCategoryRelationFromJSONTyped,
|
SupermarketCategoryRelationFromJSONTyped,
|
||||||
SupermarketCategoryRelationToJSON,
|
SupermarketCategoryRelationToJSON,
|
||||||
SupermarketCategoryRelationToJSONTyped,
|
|
||||||
} from './SupermarketCategoryRelation';
|
} from './SupermarketCategoryRelation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedSupermarketCategoryRelationList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryRelationList
|
* @memberof PaginatedSupermarketCategoryRelationList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryRelationList
|
* @memberof PaginatedSupermarketCategoryRelationList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SupermarketCategoryRelation>}
|
* @type {Array<SupermarketCategoryRelation>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedSupermarketCategoryRelationListFromJSONTyped(json: any,
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedSupermarketCategoryRelationListToJSON(json: any): PaginatedSupermarketCategoryRelationList {
|
export function PaginatedSupermarketCategoryRelationListToJSON(value?: PaginatedSupermarketCategoryRelationList | null): any {
|
||||||
return PaginatedSupermarketCategoryRelationListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedSupermarketCategoryRelationListToJSONTyped(value?: PaginatedSupermarketCategoryRelationList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
SupermarketFromJSON,
|
SupermarketFromJSON,
|
||||||
SupermarketFromJSONTyped,
|
SupermarketFromJSONTyped,
|
||||||
SupermarketToJSON,
|
SupermarketToJSON,
|
||||||
SupermarketToJSONTyped,
|
|
||||||
} from './Supermarket';
|
} from './Supermarket';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedSupermarketList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketList
|
* @memberof PaginatedSupermarketList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketList
|
* @memberof PaginatedSupermarketList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Supermarket>}
|
* @type {Array<Supermarket>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedSupermarketListFromJSONTyped(json: any, ignoreDiscrimin
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedSupermarketListToJSON(json: any): PaginatedSupermarketList {
|
export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList | null): any {
|
||||||
return PaginatedSupermarketListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedSupermarketListToJSONTyped(value?: PaginatedSupermarketList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
SyncFromJSON,
|
SyncFromJSON,
|
||||||
SyncFromJSONTyped,
|
SyncFromJSONTyped,
|
||||||
SyncToJSON,
|
SyncToJSON,
|
||||||
SyncToJSONTyped,
|
|
||||||
} from './Sync';
|
} from './Sync';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedSyncList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncList
|
* @memberof PaginatedSyncList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncList
|
* @memberof PaginatedSyncList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Sync>}
|
* @type {Array<Sync>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedSyncListFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedSyncListToJSON(json: any): PaginatedSyncList {
|
export function PaginatedSyncListToJSON(value?: PaginatedSyncList | null): any {
|
||||||
return PaginatedSyncListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedSyncListToJSONTyped(value?: PaginatedSyncList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
SyncLogFromJSON,
|
SyncLogFromJSON,
|
||||||
SyncLogFromJSONTyped,
|
SyncLogFromJSONTyped,
|
||||||
SyncLogToJSON,
|
SyncLogToJSON,
|
||||||
SyncLogToJSONTyped,
|
|
||||||
} from './SyncLog';
|
} from './SyncLog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedSyncLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncLogList
|
* @memberof PaginatedSyncLogList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncLogList
|
* @memberof PaginatedSyncLogList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SyncLog>}
|
* @type {Array<SyncLog>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedSyncLogListFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedSyncLogListToJSON(json: any): PaginatedSyncLogList {
|
export function PaginatedSyncLogListToJSON(value?: PaginatedSyncLogList | null): any {
|
||||||
return PaginatedSyncLogListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedSyncLogListToJSONTyped(value?: PaginatedSyncLogList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UnitConversionFromJSON,
|
UnitConversionFromJSON,
|
||||||
UnitConversionFromJSONTyped,
|
UnitConversionFromJSONTyped,
|
||||||
UnitConversionToJSON,
|
UnitConversionToJSON,
|
||||||
UnitConversionToJSONTyped,
|
|
||||||
} from './UnitConversion';
|
} from './UnitConversion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedUnitConversionList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitConversionList
|
* @memberof PaginatedUnitConversionList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitConversionList
|
* @memberof PaginatedUnitConversionList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<UnitConversion>}
|
* @type {Array<UnitConversion>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedUnitConversionListFromJSONTyped(json: any, ignoreDiscri
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedUnitConversionListToJSON(json: any): PaginatedUnitConversionList {
|
export function PaginatedUnitConversionListToJSON(value?: PaginatedUnitConversionList | null): any {
|
||||||
return PaginatedUnitConversionListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedUnitConversionListToJSONTyped(value?: PaginatedUnitConversionList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
UnitToJSONTyped,
|
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedUnitList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitList
|
* @memberof PaginatedUnitList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitList
|
* @memberof PaginatedUnitList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Unit>}
|
* @type {Array<Unit>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedUnitListFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedUnitListToJSON(json: any): PaginatedUnitList {
|
export function PaginatedUnitListToJSON(value?: PaginatedUnitList | null): any {
|
||||||
return PaginatedUnitListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedUnitListToJSONTyped(value?: PaginatedUnitList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserFileFromJSON,
|
UserFileFromJSON,
|
||||||
UserFileFromJSONTyped,
|
UserFileFromJSONTyped,
|
||||||
UserFileToJSON,
|
UserFileToJSON,
|
||||||
UserFileToJSONTyped,
|
|
||||||
} from './UserFile';
|
} from './UserFile';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedUserFileList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserFileList
|
* @memberof PaginatedUserFileList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserFileList
|
* @memberof PaginatedUserFileList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<UserFile>}
|
* @type {Array<UserFile>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedUserFileListFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedUserFileListToJSON(json: any): PaginatedUserFileList {
|
export function PaginatedUserFileListToJSON(value?: PaginatedUserFileList | null): any {
|
||||||
return PaginatedUserFileListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedUserFileListToJSONTyped(value?: PaginatedUserFileList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserSpaceFromJSON,
|
UserSpaceFromJSON,
|
||||||
UserSpaceFromJSONTyped,
|
UserSpaceFromJSONTyped,
|
||||||
UserSpaceToJSON,
|
UserSpaceToJSON,
|
||||||
UserSpaceToJSONTyped,
|
|
||||||
} from './UserSpace';
|
} from './UserSpace';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedUserSpaceList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserSpaceList
|
* @memberof PaginatedUserSpaceList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserSpaceList
|
* @memberof PaginatedUserSpaceList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<UserSpace>}
|
* @type {Array<UserSpace>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedUserSpaceListFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedUserSpaceListToJSON(json: any): PaginatedUserSpaceList {
|
export function PaginatedUserSpaceListToJSON(value?: PaginatedUserSpaceList | null): any {
|
||||||
return PaginatedUserSpaceListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedUserSpaceListToJSONTyped(value?: PaginatedUserSpaceList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
ViewLogFromJSON,
|
ViewLogFromJSON,
|
||||||
ViewLogFromJSONTyped,
|
ViewLogFromJSONTyped,
|
||||||
ViewLogToJSON,
|
ViewLogToJSON,
|
||||||
ViewLogToJSONTyped,
|
|
||||||
} from './ViewLog';
|
} from './ViewLog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,13 +37,13 @@ export interface PaginatedViewLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedViewLogList
|
* @memberof PaginatedViewLogList
|
||||||
*/
|
*/
|
||||||
next?: string | null;
|
next?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedViewLogList
|
* @memberof PaginatedViewLogList
|
||||||
*/
|
*/
|
||||||
previous?: string | null;
|
previous?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ViewLog>}
|
* @type {Array<ViewLog>}
|
||||||
@@ -86,15 +85,10 @@ export function PaginatedViewLogListFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PaginatedViewLogListToJSON(json: any): PaginatedViewLogList {
|
export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null): any {
|
||||||
return PaginatedViewLogListToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PaginatedViewLogListToJSONTyped(value?: PaginatedViewLogList | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'count': value['count'],
|
'count': value['count'],
|
||||||
|
|||||||
@@ -73,15 +73,10 @@ export function ParsedIngredientFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ParsedIngredientToJSON(json: any): ParsedIngredient {
|
export function ParsedIngredientToJSON(value?: ParsedIngredient | null): any {
|
||||||
return ParsedIngredientToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ParsedIngredientToJSONTyped(value?: ParsedIngredient | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'amount': value['amount'],
|
'amount': value['amount'],
|
||||||
|
|||||||
@@ -83,15 +83,10 @@ export function PatchedAccessTokenFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedAccessTokenToJSON(json: any): PatchedAccessToken {
|
export function PatchedAccessTokenToJSON(value?: Omit<PatchedAccessToken, 'token'|'created'|'updated'> | null): any {
|
||||||
return PatchedAccessTokenToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedAccessTokenToJSONTyped(value?: Omit<PatchedAccessToken, 'token'|'created'|'updated'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
AutomationTypeEnumFromJSON,
|
AutomationTypeEnumFromJSON,
|
||||||
AutomationTypeEnumFromJSONTyped,
|
AutomationTypeEnumFromJSONTyped,
|
||||||
AutomationTypeEnumToJSON,
|
AutomationTypeEnumToJSON,
|
||||||
AutomationTypeEnumToJSONTyped,
|
|
||||||
} from './AutomationTypeEnum';
|
} from './AutomationTypeEnum';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -50,25 +49,25 @@ export interface PatchedAutomation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
description?: string | null;
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
param1?: string | null;
|
param1?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
param2?: string | null;
|
param2?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
param3?: string | null;
|
param3?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -89,8 +88,6 @@ export interface PatchedAutomation {
|
|||||||
readonly createdBy?: number;
|
readonly createdBy?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedAutomation interface.
|
* 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 {
|
export function PatchedAutomationToJSON(value?: Omit<PatchedAutomation, 'createdBy'> | null): any {
|
||||||
return PatchedAutomationToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedAutomationToJSONTyped(value?: Omit<PatchedAutomation, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export interface PatchedBookmarkletImport {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedBookmarkletImport
|
* @memberof PatchedBookmarkletImport
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -76,15 +76,10 @@ export function PatchedBookmarkletImportFromJSONTyped(json: any, ignoreDiscrimin
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedBookmarkletImportToJSON(json: any): PatchedBookmarkletImport {
|
export function PatchedBookmarkletImportToJSON(value?: Omit<PatchedBookmarkletImport, 'createdBy'|'createdAt'> | null): any {
|
||||||
return PatchedBookmarkletImportToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedBookmarkletImportToJSONTyped(value?: Omit<PatchedBookmarkletImport, 'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -36,19 +36,19 @@ export interface PatchedConnectorConfigConfig {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedConnectorConfigConfig
|
* @memberof PatchedConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedConnectorConfigConfig
|
* @memberof PatchedConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
token?: string | null;
|
token?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedConnectorConfigConfig
|
* @memberof PatchedConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
todoEntity?: string | null;
|
todoEntity?: string;
|
||||||
/**
|
/**
|
||||||
* Is Connector Enabled
|
* Is Connector Enabled
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -118,15 +118,10 @@ export function PatchedConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscr
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedConnectorConfigConfigToJSON(json: any): PatchedConnectorConfigConfig {
|
export function PatchedConnectorConfigConfigToJSON(value?: Omit<PatchedConnectorConfigConfig, 'createdBy'> | null): any {
|
||||||
return PatchedConnectorConfigConfigToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedConnectorConfigConfigToJSONTyped(value?: Omit<PatchedConnectorConfigConfig, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,19 +43,19 @@ export interface PatchedCookLog {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedCookLog
|
* @memberof PatchedCookLog
|
||||||
*/
|
*/
|
||||||
servings?: number | null;
|
servings?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedCookLog
|
* @memberof PatchedCookLog
|
||||||
*/
|
*/
|
||||||
rating?: number | null;
|
rating?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedCookLog
|
* @memberof PatchedCookLog
|
||||||
*/
|
*/
|
||||||
comment?: string | null;
|
comment?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {User}
|
* @type {User}
|
||||||
@@ -105,15 +104,10 @@ export function PatchedCookLogFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedCookLogToJSON(json: any): PatchedCookLog {
|
export function PatchedCookLogToJSON(value?: Omit<PatchedCookLog, 'createdBy'|'updatedAt'> | null): any {
|
||||||
return PatchedCookLogToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedCookLogToJSONTyped(value?: Omit<PatchedCookLog, 'created_by'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,15 +83,10 @@ export function PatchedCustomFilterFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedCustomFilterToJSON(json: any): PatchedCustomFilter {
|
export function PatchedCustomFilterToJSON(value?: Omit<PatchedCustomFilter, 'createdBy'> | null): any {
|
||||||
return PatchedCustomFilterToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedCustomFilterToJSONTyped(value?: Omit<PatchedCustomFilter, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -111,15 +111,10 @@ export function PatchedExportLogFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedExportLogToJSON(json: any): PatchedExportLog {
|
export function PatchedExportLogToJSON(value?: Omit<PatchedExportLog, 'createdBy'|'createdAt'> | null): any {
|
||||||
return PatchedExportLogToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedExportLogToJSONTyped(value?: Omit<PatchedExportLog, 'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,42 +18,36 @@ import {
|
|||||||
SupermarketCategoryFromJSON,
|
SupermarketCategoryFromJSON,
|
||||||
SupermarketCategoryFromJSONTyped,
|
SupermarketCategoryFromJSONTyped,
|
||||||
SupermarketCategoryToJSON,
|
SupermarketCategoryToJSON,
|
||||||
SupermarketCategoryToJSONTyped,
|
|
||||||
} from './SupermarketCategory';
|
} from './SupermarketCategory';
|
||||||
import type { Unit } from './Unit';
|
import type { Unit } from './Unit';
|
||||||
import {
|
import {
|
||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
UnitToJSONTyped,
|
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
import type { Property } from './Property';
|
import type { Property } from './Property';
|
||||||
import {
|
import {
|
||||||
PropertyFromJSON,
|
PropertyFromJSON,
|
||||||
PropertyFromJSONTyped,
|
PropertyFromJSONTyped,
|
||||||
PropertyToJSON,
|
PropertyToJSON,
|
||||||
PropertyToJSONTyped,
|
|
||||||
} from './Property';
|
} from './Property';
|
||||||
import type { FoodInheritField } from './FoodInheritField';
|
import type { FoodInheritField } from './FoodInheritField';
|
||||||
import {
|
import {
|
||||||
FoodInheritFieldFromJSON,
|
FoodInheritFieldFromJSON,
|
||||||
FoodInheritFieldFromJSONTyped,
|
FoodInheritFieldFromJSONTyped,
|
||||||
FoodInheritFieldToJSON,
|
FoodInheritFieldToJSON,
|
||||||
FoodInheritFieldToJSONTyped,
|
|
||||||
} from './FoodInheritField';
|
} from './FoodInheritField';
|
||||||
import type { FoodSimple } from './FoodSimple';
|
import type { FoodSimple } from './FoodSimple';
|
||||||
import {
|
import {
|
||||||
FoodSimpleFromJSON,
|
FoodSimpleFromJSON,
|
||||||
FoodSimpleFromJSONTyped,
|
FoodSimpleFromJSONTyped,
|
||||||
FoodSimpleToJSON,
|
FoodSimpleToJSON,
|
||||||
FoodSimpleToJSONTyped,
|
|
||||||
} from './FoodSimple';
|
} from './FoodSimple';
|
||||||
import type { RecipeSimple } from './RecipeSimple';
|
import type { RecipeSimple } from './RecipeSimple';
|
||||||
import {
|
import {
|
||||||
RecipeSimpleFromJSON,
|
RecipeSimpleFromJSON,
|
||||||
RecipeSimpleFromJSONTyped,
|
RecipeSimpleFromJSONTyped,
|
||||||
RecipeSimpleToJSON,
|
RecipeSimpleToJSON,
|
||||||
RecipeSimpleToJSONTyped,
|
|
||||||
} from './RecipeSimple';
|
} from './RecipeSimple';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -113,7 +107,7 @@ export interface PatchedFood {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
pluralName?: string | null;
|
pluralName?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -131,19 +125,19 @@ export interface PatchedFood {
|
|||||||
* @type {RecipeSimple}
|
* @type {RecipeSimple}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeSimple | null;
|
recipe?: RecipeSimple;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
url?: string | null;
|
url?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
properties?: Array<Property> | null;
|
properties?: Array<Property>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -155,25 +149,25 @@ export interface PatchedFood {
|
|||||||
* @type {Unit}
|
* @type {Unit}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
propertiesFoodUnit?: Unit | null;
|
propertiesFoodUnit?: Unit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
fdcId?: number | null;
|
fdcId?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
foodOnhand?: boolean | null;
|
foodOnhand?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {SupermarketCategory}
|
* @type {SupermarketCategory}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
supermarketCategory?: SupermarketCategory | null;
|
supermarketCategory?: SupermarketCategory;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -191,7 +185,7 @@ export interface PatchedFood {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
inheritFields?: Array<FoodInheritField> | null;
|
inheritFields?: Array<FoodInheritField>;
|
||||||
/**
|
/**
|
||||||
* Returns a string representation of a tree node and it's ancestors,
|
* Returns a string representation of a tree node and it's ancestors,
|
||||||
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
|
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
|
||||||
@@ -210,7 +204,7 @@ export interface PatchedFood {
|
|||||||
* @type {Array<FoodSimple>}
|
* @type {Array<FoodSimple>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
substitute?: Array<FoodSimple> | null;
|
substitute?: Array<FoodSimple>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -234,13 +228,13 @@ export interface PatchedFood {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
childInheritFields?: Array<FoodInheritField> | null;
|
childInheritFields?: Array<FoodInheritField>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
openDataSlug?: string | null;
|
openDataSlug?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -287,15 +281,10 @@ export function PatchedFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedFoodToJSON(json: any): PatchedFood {
|
export function PatchedFoodToJSON(value?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'fullName'|'substituteOnhand'> | null): any {
|
||||||
return PatchedFoodToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedFoodToJSONTyped(value?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
KeywordFromJSON,
|
KeywordFromJSON,
|
||||||
KeywordFromJSONTyped,
|
KeywordFromJSONTyped,
|
||||||
KeywordToJSON,
|
KeywordToJSON,
|
||||||
KeywordToJSONTyped,
|
|
||||||
} from './Keyword';
|
} from './Keyword';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -112,15 +111,10 @@ export function PatchedImportLogFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedImportLogToJSON(json: any): PatchedImportLog {
|
export function PatchedImportLogToJSON(value?: Omit<PatchedImportLog, 'keyword'|'createdBy'|'createdAt'> | null): any {
|
||||||
return PatchedImportLogToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedImportLogToJSONTyped(value?: Omit<PatchedImportLog, 'keyword'|'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ import {
|
|||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
UnitToJSONTyped,
|
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
import type { Food } from './Food';
|
import type { Food } from './Food';
|
||||||
import {
|
import {
|
||||||
FoodFromJSON,
|
FoodFromJSON,
|
||||||
FoodFromJSONTyped,
|
FoodFromJSONTyped,
|
||||||
FoodToJSON,
|
FoodToJSON,
|
||||||
FoodToJSONTyped,
|
|
||||||
} from './Food';
|
} from './Food';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -45,13 +43,13 @@ export interface PatchedIngredient {
|
|||||||
* @type {Food}
|
* @type {Food}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
food?: Food | null;
|
food?: Food;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Unit}
|
* @type {Unit}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
unit?: Unit | null;
|
unit?: Unit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -69,7 +67,7 @@ export interface PatchedIngredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
note?: string | null;
|
note?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -93,7 +91,7 @@ export interface PatchedIngredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
originalText?: string | null;
|
originalText?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<any>}
|
* @type {Array<any>}
|
||||||
@@ -147,15 +145,10 @@ export function PatchedIngredientFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedIngredientToJSON(json: any): PatchedIngredient {
|
export function PatchedIngredientToJSON(value?: Omit<PatchedIngredient, 'conversions'|'usedInRecipes'> | null): any {
|
||||||
return PatchedIngredientToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedIngredientToJSONTyped(value?: Omit<PatchedIngredient, 'conversions'|'used_in_recipes'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
GroupFromJSON,
|
GroupFromJSON,
|
||||||
GroupFromJSONTyped,
|
GroupFromJSONTyped,
|
||||||
GroupToJSON,
|
GroupToJSON,
|
||||||
GroupToJSONTyped,
|
|
||||||
} from './Group';
|
} from './Group';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,7 +61,7 @@ export interface PatchedInviteLink {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedInviteLink
|
* @memberof PatchedInviteLink
|
||||||
*/
|
*/
|
||||||
usedBy?: number | null;
|
usedBy?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -74,7 +73,7 @@ export interface PatchedInviteLink {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedInviteLink
|
* @memberof PatchedInviteLink
|
||||||
*/
|
*/
|
||||||
internalNote?: string | null;
|
internalNote?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -119,15 +118,10 @@ export function PatchedInviteLinkFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedInviteLinkToJSON(json: any): PatchedInviteLink {
|
export function PatchedInviteLinkToJSON(value?: Omit<PatchedInviteLink, 'uuid'|'createdBy'|'createdAt'> | null): any {
|
||||||
return PatchedInviteLinkToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedInviteLinkToJSONTyped(value?: Omit<PatchedInviteLink, 'uuid'|'created_by'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -139,15 +139,10 @@ export function PatchedKeywordFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedKeywordToJSON(json: any): PatchedKeyword {
|
export function PatchedKeywordToJSON(value?: Omit<PatchedKeyword, 'label'|'parent'|'numchild'|'createdAt'|'updatedAt'|'fullName'> | null): any {
|
||||||
return PatchedKeywordToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedKeywordToJSONTyped(value?: Omit<PatchedKeyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,21 +18,18 @@ import {
|
|||||||
MealTypeFromJSON,
|
MealTypeFromJSON,
|
||||||
MealTypeFromJSONTyped,
|
MealTypeFromJSONTyped,
|
||||||
MealTypeToJSON,
|
MealTypeToJSON,
|
||||||
MealTypeToJSONTyped,
|
|
||||||
} from './MealType';
|
} from './MealType';
|
||||||
import type { User } from './User';
|
import type { User } from './User';
|
||||||
import {
|
import {
|
||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
import type { RecipeOverview } from './RecipeOverview';
|
import type { RecipeOverview } from './RecipeOverview';
|
||||||
import {
|
import {
|
||||||
RecipeOverviewFromJSON,
|
RecipeOverviewFromJSON,
|
||||||
RecipeOverviewFromJSONTyped,
|
RecipeOverviewFromJSONTyped,
|
||||||
RecipeOverviewToJSON,
|
RecipeOverviewToJSON,
|
||||||
RecipeOverviewToJSONTyped,
|
|
||||||
} from './RecipeOverview';
|
} from './RecipeOverview';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,7 +55,7 @@ export interface PatchedMealPlan {
|
|||||||
* @type {RecipeOverview}
|
* @type {RecipeOverview}
|
||||||
* @memberof PatchedMealPlan
|
* @memberof PatchedMealPlan
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeOverview | null;
|
recipe?: RecipeOverview;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -106,7 +103,7 @@ export interface PatchedMealPlan {
|
|||||||
* @type {Array<User>}
|
* @type {Array<User>}
|
||||||
* @memberof PatchedMealPlan
|
* @memberof PatchedMealPlan
|
||||||
*/
|
*/
|
||||||
shared?: Array<User> | null;
|
shared?: Array<User>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -168,15 +165,10 @@ export function PatchedMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedMealPlanToJSON(json: any): PatchedMealPlan {
|
export function PatchedMealPlanToJSON(value?: Omit<PatchedMealPlan, 'noteMarkdown'|'createdBy'|'recipeName'|'mealTypeName'|'shopping'> | null): any {
|
||||||
return PatchedMealPlanToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedMealPlanToJSONTyped(value?: Omit<PatchedMealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -42,13 +42,13 @@ export interface PatchedMealType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedMealType
|
* @memberof PatchedMealType
|
||||||
*/
|
*/
|
||||||
time?: string | null;
|
time?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedMealType
|
* @memberof PatchedMealType
|
||||||
*/
|
*/
|
||||||
color?: string | null;
|
color?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -90,15 +90,10 @@ export function PatchedMealTypeFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedMealTypeToJSON(json: any): PatchedMealType {
|
export function PatchedMealTypeToJSON(value?: Omit<PatchedMealType, 'createdBy'> | null): any {
|
||||||
return PatchedMealTypeToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedMealTypeToJSONTyped(value?: Omit<PatchedMealType, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -132,15 +131,10 @@ export function PatchedOpenDataCategoryFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataCategoryToJSON(json: any): PatchedOpenDataCategory {
|
export function PatchedOpenDataCategoryToJSON(value?: Omit<PatchedOpenDataCategory, 'createdBy'> | null): any {
|
||||||
return PatchedOpenDataCategoryToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataCategoryToJSONTyped(value?: Omit<PatchedOpenDataCategory, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,21 +18,18 @@ import {
|
|||||||
OpenDataUnitFromJSON,
|
OpenDataUnitFromJSON,
|
||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
OpenDataUnitToJSONTyped,
|
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
import type { OpenDataFood } from './OpenDataFood';
|
import type { OpenDataFood } from './OpenDataFood';
|
||||||
import {
|
import {
|
||||||
OpenDataFoodFromJSON,
|
OpenDataFoodFromJSON,
|
||||||
OpenDataFoodFromJSONTyped,
|
OpenDataFoodFromJSONTyped,
|
||||||
OpenDataFoodToJSON,
|
OpenDataFoodToJSON,
|
||||||
OpenDataFoodToJSONTyped,
|
|
||||||
} from './OpenDataFood';
|
} from './OpenDataFood';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -140,15 +137,10 @@ export function PatchedOpenDataConversionFromJSONTyped(json: any, ignoreDiscrimi
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataConversionToJSON(json: any): PatchedOpenDataConversion {
|
export function PatchedOpenDataConversionToJSON(value?: Omit<PatchedOpenDataConversion, 'createdBy'> | null): any {
|
||||||
return PatchedOpenDataConversionToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataConversionToJSONTyped(value?: Omit<PatchedOpenDataConversion, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,28 +18,24 @@ import {
|
|||||||
OpenDataFoodPropertyFromJSON,
|
OpenDataFoodPropertyFromJSON,
|
||||||
OpenDataFoodPropertyFromJSONTyped,
|
OpenDataFoodPropertyFromJSONTyped,
|
||||||
OpenDataFoodPropertyToJSON,
|
OpenDataFoodPropertyToJSON,
|
||||||
OpenDataFoodPropertyToJSONTyped,
|
|
||||||
} from './OpenDataFoodProperty';
|
} from './OpenDataFoodProperty';
|
||||||
import type { OpenDataUnit } from './OpenDataUnit';
|
import type { OpenDataUnit } from './OpenDataUnit';
|
||||||
import {
|
import {
|
||||||
OpenDataUnitFromJSON,
|
OpenDataUnitFromJSON,
|
||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
OpenDataUnitToJSONTyped,
|
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
import type { OpenDataCategory } from './OpenDataCategory';
|
import type { OpenDataCategory } from './OpenDataCategory';
|
||||||
import {
|
import {
|
||||||
OpenDataCategoryFromJSON,
|
OpenDataCategoryFromJSON,
|
||||||
OpenDataCategoryFromJSONTyped,
|
OpenDataCategoryFromJSONTyped,
|
||||||
OpenDataCategoryToJSON,
|
OpenDataCategoryToJSON,
|
||||||
OpenDataCategoryToJSONTyped,
|
|
||||||
} from './OpenDataCategory';
|
} from './OpenDataCategory';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -123,31 +119,31 @@ export interface PatchedOpenDataFood {
|
|||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitMetric?: OpenDataUnit | null;
|
preferredUnitMetric?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitMetric?: OpenDataUnit | null;
|
preferredShoppingUnitMetric?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitImperial?: OpenDataUnit | null;
|
preferredUnitImperial?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitImperial?: OpenDataUnit | null;
|
preferredShoppingUnitImperial?: OpenDataUnit;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<OpenDataFoodProperty>}
|
* @type {Array<OpenDataFoodProperty>}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
properties?: Array<OpenDataFoodProperty> | null;
|
properties?: Array<OpenDataFoodProperty>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -223,15 +219,10 @@ export function PatchedOpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataFoodToJSON(json: any): PatchedOpenDataFood {
|
export function PatchedOpenDataFoodToJSON(value?: Omit<PatchedOpenDataFood, 'createdBy'> | null): any {
|
||||||
return PatchedOpenDataFoodToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataFoodToJSONTyped(value?: Omit<PatchedOpenDataFood, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,7 +95,7 @@ export interface PatchedOpenDataProperty {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedOpenDataProperty
|
* @memberof PatchedOpenDataProperty
|
||||||
*/
|
*/
|
||||||
fdcId?: number | null;
|
fdcId?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -139,15 +138,10 @@ export function PatchedOpenDataPropertyFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataPropertyToJSON(json: any): PatchedOpenDataProperty {
|
export function PatchedOpenDataPropertyToJSON(value?: Omit<PatchedOpenDataProperty, 'createdBy'> | null): any {
|
||||||
return PatchedOpenDataPropertyToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataPropertyToJSONTyped(value?: Omit<PatchedOpenDataProperty, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ import {
|
|||||||
OpenDataStoreCategoryFromJSON,
|
OpenDataStoreCategoryFromJSON,
|
||||||
OpenDataStoreCategoryFromJSONTyped,
|
OpenDataStoreCategoryFromJSONTyped,
|
||||||
OpenDataStoreCategoryToJSON,
|
OpenDataStoreCategoryToJSON,
|
||||||
OpenDataStoreCategoryToJSONTyped,
|
|
||||||
} from './OpenDataStoreCategory';
|
} from './OpenDataStoreCategory';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -63,7 +61,7 @@ export interface PatchedOpenDataStore {
|
|||||||
* @type {Array<OpenDataStoreCategory>}
|
* @type {Array<OpenDataStoreCategory>}
|
||||||
* @memberof PatchedOpenDataStore
|
* @memberof PatchedOpenDataStore
|
||||||
*/
|
*/
|
||||||
categoryToStore?: Array<OpenDataStoreCategory> | null;
|
categoryToStore?: Array<OpenDataStoreCategory>;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -105,15 +103,10 @@ export function PatchedOpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataStoreToJSON(json: any): PatchedOpenDataStore {
|
export function PatchedOpenDataStoreToJSON(value?: Omit<PatchedOpenDataStore, 'createdBy'> | null): any {
|
||||||
return PatchedOpenDataStoreToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataStoreToJSONTyped(value?: Omit<PatchedOpenDataStore, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,21 +18,18 @@ import {
|
|||||||
BaseUnitEnumFromJSON,
|
BaseUnitEnumFromJSON,
|
||||||
BaseUnitEnumFromJSONTyped,
|
BaseUnitEnumFromJSONTyped,
|
||||||
BaseUnitEnumToJSON,
|
BaseUnitEnumToJSON,
|
||||||
BaseUnitEnumToJSONTyped,
|
|
||||||
} from './BaseUnitEnum';
|
} from './BaseUnitEnum';
|
||||||
import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum';
|
import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum';
|
||||||
import {
|
import {
|
||||||
OpenDataUnitTypeEnumFromJSON,
|
OpenDataUnitTypeEnumFromJSON,
|
||||||
OpenDataUnitTypeEnumFromJSONTyped,
|
OpenDataUnitTypeEnumFromJSONTyped,
|
||||||
OpenDataUnitTypeEnumToJSON,
|
OpenDataUnitTypeEnumToJSON,
|
||||||
OpenDataUnitTypeEnumToJSONTyped,
|
|
||||||
} from './OpenDataUnitTypeEnum';
|
} from './OpenDataUnitTypeEnum';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
OpenDataVersionFromJSONTyped,
|
OpenDataVersionFromJSONTyped,
|
||||||
OpenDataVersionToJSON,
|
OpenDataVersionToJSON,
|
||||||
OpenDataVersionToJSONTyped,
|
|
||||||
} from './OpenDataVersion';
|
} from './OpenDataVersion';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -131,8 +128,6 @@ export interface PatchedOpenDataUnit {
|
|||||||
readonly createdBy?: string;
|
readonly createdBy?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataUnit interface.
|
* 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 {
|
export function PatchedOpenDataUnitToJSON(value?: Omit<PatchedOpenDataUnit, 'createdBy'> | null): any {
|
||||||
return PatchedOpenDataUnitToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataUnitToJSONTyped(value?: Omit<PatchedOpenDataUnit, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -103,15 +103,10 @@ export function PatchedOpenDataVersionFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataVersionToJSON(json: any): PatchedOpenDataVersion {
|
export function PatchedOpenDataVersionToJSON(value?: PatchedOpenDataVersion | null): any {
|
||||||
return PatchedOpenDataVersionToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedOpenDataVersionToJSONTyped(value?: PatchedOpenDataVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import {
|
|||||||
PropertyTypeFromJSON,
|
PropertyTypeFromJSON,
|
||||||
PropertyTypeFromJSONTyped,
|
PropertyTypeFromJSONTyped,
|
||||||
PropertyTypeToJSON,
|
PropertyTypeToJSON,
|
||||||
PropertyTypeToJSONTyped,
|
|
||||||
} from './PropertyType';
|
} from './PropertyType';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -72,7 +71,7 @@ export interface PatchedProperty {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedProperty
|
* @memberof PatchedProperty
|
||||||
*/
|
*/
|
||||||
propertyAmount?: number | null;
|
propertyAmount?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {PropertyType}
|
* @type {PropertyType}
|
||||||
@@ -104,15 +103,10 @@ export function PatchedPropertyFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedPropertyToJSON(json: any): PatchedProperty {
|
export function PatchedPropertyToJSON(value?: PatchedProperty | null): any {
|
||||||
return PatchedPropertyToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedPropertyToJSONTyped(value?: PatchedProperty | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -36,13 +36,13 @@ export interface PatchedPropertyType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
unit?: string | null;
|
unit?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
description?: string | null;
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -54,13 +54,13 @@ export interface PatchedPropertyType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
openDataSlug?: string | null;
|
openDataSlug?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
fdcId?: number | null;
|
fdcId?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -90,15 +90,10 @@ export function PatchedPropertyTypeFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedPropertyTypeToJSON(json: any): PatchedPropertyType {
|
export function PatchedPropertyTypeToJSON(value?: PatchedPropertyType | null): any {
|
||||||
return PatchedPropertyTypeToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedPropertyTypeToJSONTyped(value?: PatchedPropertyType | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,35 +18,30 @@ import {
|
|||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
import type { Keyword } from './Keyword';
|
import type { Keyword } from './Keyword';
|
||||||
import {
|
import {
|
||||||
KeywordFromJSON,
|
KeywordFromJSON,
|
||||||
KeywordFromJSONTyped,
|
KeywordFromJSONTyped,
|
||||||
KeywordToJSON,
|
KeywordToJSON,
|
||||||
KeywordToJSONTyped,
|
|
||||||
} from './Keyword';
|
} from './Keyword';
|
||||||
import type { Step } from './Step';
|
import type { Step } from './Step';
|
||||||
import {
|
import {
|
||||||
StepFromJSON,
|
StepFromJSON,
|
||||||
StepFromJSONTyped,
|
StepFromJSONTyped,
|
||||||
StepToJSON,
|
StepToJSON,
|
||||||
StepToJSONTyped,
|
|
||||||
} from './Step';
|
} from './Step';
|
||||||
import type { Property } from './Property';
|
import type { Property } from './Property';
|
||||||
import {
|
import {
|
||||||
PropertyFromJSON,
|
PropertyFromJSON,
|
||||||
PropertyFromJSONTyped,
|
PropertyFromJSONTyped,
|
||||||
PropertyToJSON,
|
PropertyToJSON,
|
||||||
PropertyToJSONTyped,
|
|
||||||
} from './Property';
|
} from './Property';
|
||||||
import type { NutritionInformation } from './NutritionInformation';
|
import type { NutritionInformation } from './NutritionInformation';
|
||||||
import {
|
import {
|
||||||
NutritionInformationFromJSON,
|
NutritionInformationFromJSON,
|
||||||
NutritionInformationFromJSONTyped,
|
NutritionInformationFromJSONTyped,
|
||||||
NutritionInformationToJSON,
|
NutritionInformationToJSON,
|
||||||
NutritionInformationToJSONTyped,
|
|
||||||
} from './NutritionInformation';
|
} from './NutritionInformation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -72,13 +67,13 @@ export interface PatchedRecipe {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
description?: string | null;
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly image?: string | null;
|
readonly image?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Keyword>}
|
* @type {Array<Keyword>}
|
||||||
@@ -126,7 +121,7 @@ export interface PatchedRecipe {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
sourceUrl?: string | null;
|
sourceUrl?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -144,7 +139,7 @@ export interface PatchedRecipe {
|
|||||||
* @type {NutritionInformation}
|
* @type {NutritionInformation}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
nutrition?: NutritionInformation | null;
|
nutrition?: NutritionInformation;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
@@ -156,7 +151,7 @@ export interface PatchedRecipe {
|
|||||||
* @type {any}
|
* @type {any}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly foodProperties?: any | null;
|
readonly foodProperties?: any;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -180,13 +175,13 @@ export interface PatchedRecipe {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly rating?: number | null;
|
readonly rating?: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly lastCooked?: Date | null;
|
readonly lastCooked?: Date;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -245,15 +240,10 @@ export function PatchedRecipeFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedRecipeToJSON(json: any): PatchedRecipe {
|
export function PatchedRecipeToJSON(value?: Omit<PatchedRecipe, 'image'|'createdBy'|'createdAt'|'updatedAt'|'foodProperties'|'rating'|'lastCooked'> | null): any {
|
||||||
return PatchedRecipeToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedRecipeToJSONTyped(value?: Omit<PatchedRecipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ import {
|
|||||||
CustomFilterFromJSON,
|
CustomFilterFromJSON,
|
||||||
CustomFilterFromJSONTyped,
|
CustomFilterFromJSONTyped,
|
||||||
CustomFilterToJSON,
|
CustomFilterToJSON,
|
||||||
CustomFilterToJSONTyped,
|
|
||||||
} from './CustomFilter';
|
} from './CustomFilter';
|
||||||
import type { User } from './User';
|
import type { User } from './User';
|
||||||
import {
|
import {
|
||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
UserToJSONTyped,
|
|
||||||
} from './User';
|
} from './User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -69,7 +67,7 @@ export interface PatchedRecipeBook {
|
|||||||
* @type {CustomFilter}
|
* @type {CustomFilter}
|
||||||
* @memberof PatchedRecipeBook
|
* @memberof PatchedRecipeBook
|
||||||
*/
|
*/
|
||||||
filter?: CustomFilter | null;
|
filter?: CustomFilter;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -105,15 +103,10 @@ export function PatchedRecipeBookFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedRecipeBookToJSON(json: any): PatchedRecipeBook {
|
export function PatchedRecipeBookToJSON(value?: Omit<PatchedRecipeBook, 'createdBy'> | null): any {
|
||||||
return PatchedRecipeBookToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedRecipeBookToJSONTyped(value?: Omit<PatchedRecipeBook, 'created_by'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
@@ -18,14 +18,12 @@ import {
|
|||||||
RecipeBookFromJSON,
|
RecipeBookFromJSON,
|
||||||
RecipeBookFromJSONTyped,
|
RecipeBookFromJSONTyped,
|
||||||
RecipeBookToJSON,
|
RecipeBookToJSON,
|
||||||
RecipeBookToJSONTyped,
|
|
||||||
} from './RecipeBook';
|
} from './RecipeBook';
|
||||||
import type { RecipeOverview } from './RecipeOverview';
|
import type { RecipeOverview } from './RecipeOverview';
|
||||||
import {
|
import {
|
||||||
RecipeOverviewFromJSON,
|
RecipeOverviewFromJSON,
|
||||||
RecipeOverviewFromJSONTyped,
|
RecipeOverviewFromJSONTyped,
|
||||||
RecipeOverviewToJSON,
|
RecipeOverviewToJSON,
|
||||||
RecipeOverviewToJSONTyped,
|
|
||||||
} from './RecipeOverview';
|
} from './RecipeOverview';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -91,15 +89,10 @@ export function PatchedRecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedRecipeBookEntryToJSON(json: any): PatchedRecipeBookEntry {
|
export function PatchedRecipeBookEntryToJSON(value?: Omit<PatchedRecipeBookEntry, 'bookContent'|'recipeContent'> | null): any {
|
||||||
return PatchedRecipeBookEntryToJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PatchedRecipeBookEntryToJSONTyped(value?: Omit<PatchedRecipeBookEntry, 'book_content'|'recipe_content'> | null, ignoreDiscriminator: boolean = false): any {
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user