mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
updated openapi generator
This commit is contained in:
@@ -1 +1 @@
|
|||||||
7.4.0
|
7.8.0
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ import {
|
|||||||
} from '../models/index';
|
} from '../models/index';
|
||||||
|
|
||||||
export interface ApiAccessTokenCreateRequest {
|
export interface ApiAccessTokenCreateRequest {
|
||||||
accessToken: AccessToken;
|
accessToken: Omit<AccessToken, 'token'|'created'|'updated'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAccessTokenDestroyRequest {
|
export interface ApiAccessTokenDestroyRequest {
|
||||||
@@ -419,7 +419,7 @@ export interface ApiAccessTokenDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiAccessTokenPartialUpdateRequest {
|
export interface ApiAccessTokenPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedAccessToken?: PatchedAccessToken;
|
patchedAccessToken?: Omit<PatchedAccessToken, 'token'|'created'|'updated'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAccessTokenRetrieveRequest {
|
export interface ApiAccessTokenRetrieveRequest {
|
||||||
@@ -428,7 +428,7 @@ export interface ApiAccessTokenRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiAccessTokenUpdateRequest {
|
export interface ApiAccessTokenUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
accessToken: AccessToken;
|
accessToken: Omit<AccessToken, 'token'|'created'|'updated'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutoPlanCreateRequest {
|
export interface ApiAutoPlanCreateRequest {
|
||||||
@@ -436,7 +436,7 @@ export interface ApiAutoPlanCreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutomationCreateRequest {
|
export interface ApiAutomationCreateRequest {
|
||||||
automation: Automation;
|
automation: Omit<Automation, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutomationDestroyRequest {
|
export interface ApiAutomationDestroyRequest {
|
||||||
@@ -451,7 +451,7 @@ export interface ApiAutomationListRequest {
|
|||||||
|
|
||||||
export interface ApiAutomationPartialUpdateRequest {
|
export interface ApiAutomationPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedAutomation?: PatchedAutomation;
|
patchedAutomation?: Omit<PatchedAutomation, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiAutomationRetrieveRequest {
|
export interface ApiAutomationRetrieveRequest {
|
||||||
@@ -460,11 +460,11 @@ export interface ApiAutomationRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiAutomationUpdateRequest {
|
export interface ApiAutomationUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
automation: Automation;
|
automation: Omit<Automation, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiBookmarkletImportCreateRequest {
|
export interface ApiBookmarkletImportCreateRequest {
|
||||||
bookmarkletImport: BookmarkletImport;
|
bookmarkletImport: Omit<BookmarkletImport, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiBookmarkletImportDestroyRequest {
|
export interface ApiBookmarkletImportDestroyRequest {
|
||||||
@@ -478,7 +478,7 @@ export interface ApiBookmarkletImportListRequest {
|
|||||||
|
|
||||||
export interface ApiBookmarkletImportPartialUpdateRequest {
|
export interface ApiBookmarkletImportPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedBookmarkletImport?: PatchedBookmarkletImport;
|
patchedBookmarkletImport?: Omit<PatchedBookmarkletImport, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiBookmarkletImportRetrieveRequest {
|
export interface ApiBookmarkletImportRetrieveRequest {
|
||||||
@@ -487,11 +487,11 @@ export interface ApiBookmarkletImportRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiBookmarkletImportUpdateRequest {
|
export interface ApiBookmarkletImportUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
bookmarkletImport: BookmarkletImport;
|
bookmarkletImport: Omit<BookmarkletImport, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiConnectorConfigCreateRequest {
|
export interface ApiConnectorConfigCreateRequest {
|
||||||
connectorConfigConfig: ConnectorConfigConfig;
|
connectorConfigConfig: Omit<ConnectorConfigConfig, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiConnectorConfigDestroyRequest {
|
export interface ApiConnectorConfigDestroyRequest {
|
||||||
@@ -500,7 +500,7 @@ export interface ApiConnectorConfigDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiConnectorConfigPartialUpdateRequest {
|
export interface ApiConnectorConfigPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedConnectorConfigConfig?: PatchedConnectorConfigConfig;
|
patchedConnectorConfigConfig?: Omit<PatchedConnectorConfigConfig, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiConnectorConfigRetrieveRequest {
|
export interface ApiConnectorConfigRetrieveRequest {
|
||||||
@@ -509,11 +509,11 @@ export interface ApiConnectorConfigRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiConnectorConfigUpdateRequest {
|
export interface ApiConnectorConfigUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
connectorConfigConfig: ConnectorConfigConfig;
|
connectorConfigConfig: Omit<ConnectorConfigConfig, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCookLogCreateRequest {
|
export interface ApiCookLogCreateRequest {
|
||||||
cookLog: CookLog;
|
cookLog: Omit<CookLog, 'created_by'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCookLogDestroyRequest {
|
export interface ApiCookLogDestroyRequest {
|
||||||
@@ -528,7 +528,7 @@ export interface ApiCookLogListRequest {
|
|||||||
|
|
||||||
export interface ApiCookLogPartialUpdateRequest {
|
export interface ApiCookLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedCookLog?: PatchedCookLog;
|
patchedCookLog?: Omit<PatchedCookLog, 'created_by'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCookLogRetrieveRequest {
|
export interface ApiCookLogRetrieveRequest {
|
||||||
@@ -537,11 +537,11 @@ export interface ApiCookLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiCookLogUpdateRequest {
|
export interface ApiCookLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
cookLog: CookLog;
|
cookLog: Omit<CookLog, 'created_by'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCustomFilterCreateRequest {
|
export interface ApiCustomFilterCreateRequest {
|
||||||
customFilter: CustomFilter;
|
customFilter: Omit<CustomFilter, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCustomFilterDestroyRequest {
|
export interface ApiCustomFilterDestroyRequest {
|
||||||
@@ -560,7 +560,7 @@ export interface ApiCustomFilterListRequest {
|
|||||||
|
|
||||||
export interface ApiCustomFilterPartialUpdateRequest {
|
export interface ApiCustomFilterPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedCustomFilter?: PatchedCustomFilter;
|
patchedCustomFilter?: Omit<PatchedCustomFilter, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiCustomFilterRetrieveRequest {
|
export interface ApiCustomFilterRetrieveRequest {
|
||||||
@@ -569,7 +569,7 @@ export interface ApiCustomFilterRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiCustomFilterUpdateRequest {
|
export interface ApiCustomFilterUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
customFilter: CustomFilter;
|
customFilter: Omit<CustomFilter, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiDownloadFileRetrieveRequest {
|
export interface ApiDownloadFileRetrieveRequest {
|
||||||
@@ -577,7 +577,7 @@ export interface ApiDownloadFileRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiExportLogCreateRequest {
|
export interface ApiExportLogCreateRequest {
|
||||||
exportLog: ExportLog;
|
exportLog: Omit<ExportLog, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiExportLogDestroyRequest {
|
export interface ApiExportLogDestroyRequest {
|
||||||
@@ -591,7 +591,7 @@ export interface ApiExportLogListRequest {
|
|||||||
|
|
||||||
export interface ApiExportLogPartialUpdateRequest {
|
export interface ApiExportLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedExportLog?: PatchedExportLog;
|
patchedExportLog?: Omit<PatchedExportLog, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiExportLogRetrieveRequest {
|
export interface ApiExportLogRetrieveRequest {
|
||||||
@@ -600,11 +600,11 @@ export interface ApiExportLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiExportLogUpdateRequest {
|
export interface ApiExportLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
exportLog: ExportLog;
|
exportLog: Omit<ExportLog, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodCreateRequest {
|
export interface ApiFoodCreateRequest {
|
||||||
food: Food;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodDestroyRequest {
|
export interface ApiFoodDestroyRequest {
|
||||||
@@ -613,7 +613,7 @@ export interface ApiFoodDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiFoodFdcCreateRequest {
|
export interface ApiFoodFdcCreateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
food: Food;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodInheritFieldRetrieveRequest {
|
export interface ApiFoodInheritFieldRetrieveRequest {
|
||||||
@@ -634,18 +634,18 @@ export interface ApiFoodListRequest {
|
|||||||
export interface ApiFoodMergeUpdateRequest {
|
export interface ApiFoodMergeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
target: number;
|
target: number;
|
||||||
food: Food;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodMoveUpdateRequest {
|
export interface ApiFoodMoveUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
parent: number;
|
parent: number;
|
||||||
food: Food;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodPartialUpdateRequest {
|
export interface ApiFoodPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedFood?: PatchedFood;
|
patchedFood?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiFoodRetrieveRequest {
|
export interface ApiFoodRetrieveRequest {
|
||||||
@@ -659,7 +659,7 @@ export interface ApiFoodShoppingUpdateRequest {
|
|||||||
|
|
||||||
export interface ApiFoodUpdateRequest {
|
export interface ApiFoodUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
food: Food;
|
food: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiGetExternalFileLinkRetrieveRequest {
|
export interface ApiGetExternalFileLinkRetrieveRequest {
|
||||||
@@ -679,7 +679,7 @@ export interface ApiImageToRecipeCreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiImportLogCreateRequest {
|
export interface ApiImportLogCreateRequest {
|
||||||
importLog: ImportLog;
|
importLog: Omit<ImportLog, 'keyword'|'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiImportLogDestroyRequest {
|
export interface ApiImportLogDestroyRequest {
|
||||||
@@ -693,7 +693,7 @@ export interface ApiImportLogListRequest {
|
|||||||
|
|
||||||
export interface ApiImportLogPartialUpdateRequest {
|
export interface ApiImportLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedImportLog?: PatchedImportLog;
|
patchedImportLog?: Omit<PatchedImportLog, 'keyword'|'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiImportLogRetrieveRequest {
|
export interface ApiImportLogRetrieveRequest {
|
||||||
@@ -702,11 +702,11 @@ export interface ApiImportLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiImportLogUpdateRequest {
|
export interface ApiImportLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
importLog: ImportLog;
|
importLog: Omit<ImportLog, 'keyword'|'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiIngredientCreateRequest {
|
export interface ApiIngredientCreateRequest {
|
||||||
ingredient: Ingredient;
|
ingredient: Omit<Ingredient, 'conversions'|'used_in_recipes'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiIngredientDestroyRequest {
|
export interface ApiIngredientDestroyRequest {
|
||||||
@@ -726,7 +726,7 @@ export interface ApiIngredientListRequest {
|
|||||||
|
|
||||||
export interface ApiIngredientPartialUpdateRequest {
|
export interface ApiIngredientPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedIngredient?: PatchedIngredient;
|
patchedIngredient?: Omit<PatchedIngredient, 'conversions'|'used_in_recipes'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiIngredientRetrieveRequest {
|
export interface ApiIngredientRetrieveRequest {
|
||||||
@@ -735,11 +735,11 @@ export interface ApiIngredientRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiIngredientUpdateRequest {
|
export interface ApiIngredientUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
ingredient: Ingredient;
|
ingredient: Omit<Ingredient, 'conversions'|'used_in_recipes'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiInviteLinkCreateRequest {
|
export interface ApiInviteLinkCreateRequest {
|
||||||
inviteLink: InviteLink;
|
inviteLink: Omit<InviteLink, 'uuid'|'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiInviteLinkDestroyRequest {
|
export interface ApiInviteLinkDestroyRequest {
|
||||||
@@ -758,7 +758,7 @@ export interface ApiInviteLinkListRequest {
|
|||||||
|
|
||||||
export interface ApiInviteLinkPartialUpdateRequest {
|
export interface ApiInviteLinkPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedInviteLink?: PatchedInviteLink;
|
patchedInviteLink?: Omit<PatchedInviteLink, 'uuid'|'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiInviteLinkRetrieveRequest {
|
export interface ApiInviteLinkRetrieveRequest {
|
||||||
@@ -767,11 +767,11 @@ export interface ApiInviteLinkRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiInviteLinkUpdateRequest {
|
export interface ApiInviteLinkUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
inviteLink: InviteLink;
|
inviteLink: Omit<InviteLink, 'uuid'|'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordCreateRequest {
|
export interface ApiKeywordCreateRequest {
|
||||||
keyword: Keyword;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordDestroyRequest {
|
export interface ApiKeywordDestroyRequest {
|
||||||
@@ -792,18 +792,18 @@ export interface ApiKeywordListRequest {
|
|||||||
export interface ApiKeywordMergeUpdateRequest {
|
export interface ApiKeywordMergeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
target: number;
|
target: number;
|
||||||
keyword: Keyword;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordMoveUpdateRequest {
|
export interface ApiKeywordMoveUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
parent: number;
|
parent: number;
|
||||||
keyword: Keyword;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordPartialUpdateRequest {
|
export interface ApiKeywordPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedKeyword?: PatchedKeyword;
|
patchedKeyword?: Omit<PatchedKeyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiKeywordRetrieveRequest {
|
export interface ApiKeywordRetrieveRequest {
|
||||||
@@ -812,11 +812,11 @@ export interface ApiKeywordRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiKeywordUpdateRequest {
|
export interface ApiKeywordUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
keyword: Keyword;
|
keyword: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealPlanCreateRequest {
|
export interface ApiMealPlanCreateRequest {
|
||||||
mealPlan: MealPlan;
|
mealPlan: Omit<MealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealPlanDestroyRequest {
|
export interface ApiMealPlanDestroyRequest {
|
||||||
@@ -839,7 +839,7 @@ export interface ApiMealPlanListRequest {
|
|||||||
|
|
||||||
export interface ApiMealPlanPartialUpdateRequest {
|
export interface ApiMealPlanPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedMealPlan?: PatchedMealPlan;
|
patchedMealPlan?: Omit<PatchedMealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealPlanRetrieveRequest {
|
export interface ApiMealPlanRetrieveRequest {
|
||||||
@@ -848,11 +848,11 @@ export interface ApiMealPlanRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiMealPlanUpdateRequest {
|
export interface ApiMealPlanUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
mealPlan: MealPlan;
|
mealPlan: Omit<MealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealTypeCreateRequest {
|
export interface ApiMealTypeCreateRequest {
|
||||||
mealType: MealType;
|
mealType: Omit<MealType, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealTypeDestroyRequest {
|
export interface ApiMealTypeDestroyRequest {
|
||||||
@@ -866,7 +866,7 @@ export interface ApiMealTypeListRequest {
|
|||||||
|
|
||||||
export interface ApiMealTypePartialUpdateRequest {
|
export interface ApiMealTypePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedMealType?: PatchedMealType;
|
patchedMealType?: Omit<PatchedMealType, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMealTypeRetrieveRequest {
|
export interface ApiMealTypeRetrieveRequest {
|
||||||
@@ -875,11 +875,11 @@ export interface ApiMealTypeRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiMealTypeUpdateRequest {
|
export interface ApiMealTypeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
mealType: MealType;
|
mealType: Omit<MealType, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataCategoryCreateRequest {
|
export interface ApiOpenDataCategoryCreateRequest {
|
||||||
openDataCategory: OpenDataCategory;
|
openDataCategory: Omit<OpenDataCategory, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataCategoryDestroyRequest {
|
export interface ApiOpenDataCategoryDestroyRequest {
|
||||||
@@ -888,7 +888,7 @@ export interface ApiOpenDataCategoryDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataCategoryPartialUpdateRequest {
|
export interface ApiOpenDataCategoryPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataCategory?: PatchedOpenDataCategory;
|
patchedOpenDataCategory?: Omit<PatchedOpenDataCategory, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataCategoryRetrieveRequest {
|
export interface ApiOpenDataCategoryRetrieveRequest {
|
||||||
@@ -897,11 +897,11 @@ export interface ApiOpenDataCategoryRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataCategoryUpdateRequest {
|
export interface ApiOpenDataCategoryUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataCategory: OpenDataCategory;
|
openDataCategory: Omit<OpenDataCategory, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataConversionCreateRequest {
|
export interface ApiOpenDataConversionCreateRequest {
|
||||||
openDataConversion: OpenDataConversion;
|
openDataConversion: Omit<OpenDataConversion, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataConversionDestroyRequest {
|
export interface ApiOpenDataConversionDestroyRequest {
|
||||||
@@ -910,7 +910,7 @@ export interface ApiOpenDataConversionDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataConversionPartialUpdateRequest {
|
export interface ApiOpenDataConversionPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataConversion?: PatchedOpenDataConversion;
|
patchedOpenDataConversion?: Omit<PatchedOpenDataConversion, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataConversionRetrieveRequest {
|
export interface ApiOpenDataConversionRetrieveRequest {
|
||||||
@@ -919,7 +919,7 @@ export interface ApiOpenDataConversionRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataConversionUpdateRequest {
|
export interface ApiOpenDataConversionUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataConversion: OpenDataConversion;
|
openDataConversion: Omit<OpenDataConversion, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFDCRetrieveRequest {
|
export interface ApiOpenDataFDCRetrieveRequest {
|
||||||
@@ -927,7 +927,7 @@ export interface ApiOpenDataFDCRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFoodCreateRequest {
|
export interface ApiOpenDataFoodCreateRequest {
|
||||||
openDataFood: OpenDataFood;
|
openDataFood: Omit<OpenDataFood, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFoodDestroyRequest {
|
export interface ApiOpenDataFoodDestroyRequest {
|
||||||
@@ -936,7 +936,7 @@ export interface ApiOpenDataFoodDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataFoodPartialUpdateRequest {
|
export interface ApiOpenDataFoodPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataFood?: PatchedOpenDataFood;
|
patchedOpenDataFood?: Omit<PatchedOpenDataFood, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataFoodRetrieveRequest {
|
export interface ApiOpenDataFoodRetrieveRequest {
|
||||||
@@ -945,11 +945,11 @@ export interface ApiOpenDataFoodRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataFoodUpdateRequest {
|
export interface ApiOpenDataFoodUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataFood: OpenDataFood;
|
openDataFood: Omit<OpenDataFood, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataPropertyCreateRequest {
|
export interface ApiOpenDataPropertyCreateRequest {
|
||||||
openDataProperty: OpenDataProperty;
|
openDataProperty: Omit<OpenDataProperty, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataPropertyDestroyRequest {
|
export interface ApiOpenDataPropertyDestroyRequest {
|
||||||
@@ -958,7 +958,7 @@ export interface ApiOpenDataPropertyDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataPropertyPartialUpdateRequest {
|
export interface ApiOpenDataPropertyPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataProperty?: PatchedOpenDataProperty;
|
patchedOpenDataProperty?: Omit<PatchedOpenDataProperty, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataPropertyRetrieveRequest {
|
export interface ApiOpenDataPropertyRetrieveRequest {
|
||||||
@@ -967,11 +967,11 @@ export interface ApiOpenDataPropertyRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataPropertyUpdateRequest {
|
export interface ApiOpenDataPropertyUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataProperty: OpenDataProperty;
|
openDataProperty: Omit<OpenDataProperty, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataStoreCreateRequest {
|
export interface ApiOpenDataStoreCreateRequest {
|
||||||
openDataStore: OpenDataStore;
|
openDataStore: Omit<OpenDataStore, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataStoreDestroyRequest {
|
export interface ApiOpenDataStoreDestroyRequest {
|
||||||
@@ -980,7 +980,7 @@ export interface ApiOpenDataStoreDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataStorePartialUpdateRequest {
|
export interface ApiOpenDataStorePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataStore?: PatchedOpenDataStore;
|
patchedOpenDataStore?: Omit<PatchedOpenDataStore, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataStoreRetrieveRequest {
|
export interface ApiOpenDataStoreRetrieveRequest {
|
||||||
@@ -989,11 +989,11 @@ export interface ApiOpenDataStoreRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataStoreUpdateRequest {
|
export interface ApiOpenDataStoreUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataStore: OpenDataStore;
|
openDataStore: Omit<OpenDataStore, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataUnitCreateRequest {
|
export interface ApiOpenDataUnitCreateRequest {
|
||||||
openDataUnit: OpenDataUnit;
|
openDataUnit: Omit<OpenDataUnit, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataUnitDestroyRequest {
|
export interface ApiOpenDataUnitDestroyRequest {
|
||||||
@@ -1002,7 +1002,7 @@ export interface ApiOpenDataUnitDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataUnitPartialUpdateRequest {
|
export interface ApiOpenDataUnitPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedOpenDataUnit?: PatchedOpenDataUnit;
|
patchedOpenDataUnit?: Omit<PatchedOpenDataUnit, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataUnitRetrieveRequest {
|
export interface ApiOpenDataUnitRetrieveRequest {
|
||||||
@@ -1011,7 +1011,7 @@ export interface ApiOpenDataUnitRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiOpenDataUnitUpdateRequest {
|
export interface ApiOpenDataUnitUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
openDataUnit: OpenDataUnit;
|
openDataUnit: Omit<OpenDataUnit, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiOpenDataVersionCreateRequest {
|
export interface ApiOpenDataVersionCreateRequest {
|
||||||
@@ -1092,7 +1092,7 @@ export interface ApiPropertyUpdateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookCreateRequest {
|
export interface ApiRecipeBookCreateRequest {
|
||||||
recipeBook: RecipeBook;
|
recipeBook: Omit<RecipeBook, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookDestroyRequest {
|
export interface ApiRecipeBookDestroyRequest {
|
||||||
@@ -1100,7 +1100,7 @@ export interface ApiRecipeBookDestroyRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookEntryCreateRequest {
|
export interface ApiRecipeBookEntryCreateRequest {
|
||||||
recipeBookEntry: RecipeBookEntry;
|
recipeBookEntry: Omit<RecipeBookEntry, 'book_content'|'recipe_content'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookEntryDestroyRequest {
|
export interface ApiRecipeBookEntryDestroyRequest {
|
||||||
@@ -1116,7 +1116,7 @@ export interface ApiRecipeBookEntryListRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookEntryPartialUpdateRequest {
|
export interface ApiRecipeBookEntryPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedRecipeBookEntry?: PatchedRecipeBookEntry;
|
patchedRecipeBookEntry?: Omit<PatchedRecipeBookEntry, 'book_content'|'recipe_content'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookEntryRetrieveRequest {
|
export interface ApiRecipeBookEntryRetrieveRequest {
|
||||||
@@ -1125,7 +1125,7 @@ export interface ApiRecipeBookEntryRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookEntryUpdateRequest {
|
export interface ApiRecipeBookEntryUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
recipeBookEntry: RecipeBookEntry;
|
recipeBookEntry: Omit<RecipeBookEntry, 'book_content'|'recipe_content'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookListRequest {
|
export interface ApiRecipeBookListRequest {
|
||||||
@@ -1141,7 +1141,7 @@ export interface ApiRecipeBookListRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookPartialUpdateRequest {
|
export interface ApiRecipeBookPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedRecipeBook?: PatchedRecipeBook;
|
patchedRecipeBook?: Omit<PatchedRecipeBook, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeBookRetrieveRequest {
|
export interface ApiRecipeBookRetrieveRequest {
|
||||||
@@ -1150,11 +1150,11 @@ export interface ApiRecipeBookRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeBookUpdateRequest {
|
export interface ApiRecipeBookUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
recipeBook: RecipeBook;
|
recipeBook: Omit<RecipeBook, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeCreateRequest {
|
export interface ApiRecipeCreateRequest {
|
||||||
recipe: Recipe;
|
recipe: Omit<Recipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeDestroyRequest {
|
export interface ApiRecipeDestroyRequest {
|
||||||
@@ -1163,8 +1163,8 @@ export interface ApiRecipeDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeImageUpdateRequest {
|
export interface ApiRecipeImageUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
image?: string;
|
image?: string | null;
|
||||||
imageUrl?: string;
|
imageUrl?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeListRequest {
|
export interface ApiRecipeListRequest {
|
||||||
@@ -1201,7 +1201,7 @@ export interface ApiRecipeListRequest {
|
|||||||
|
|
||||||
export interface ApiRecipePartialUpdateRequest {
|
export interface ApiRecipePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedRecipe?: PatchedRecipe;
|
patchedRecipe?: Omit<PatchedRecipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRecipeRelatedRetrieveRequest {
|
export interface ApiRecipeRelatedRetrieveRequest {
|
||||||
@@ -1219,7 +1219,7 @@ export interface ApiRecipeShoppingUpdateRequest {
|
|||||||
|
|
||||||
export interface ApiRecipeUpdateRequest {
|
export interface ApiRecipeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
recipe: Recipe;
|
recipe: Omit<Recipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShareLinkRetrieveRequest {
|
export interface ApiShareLinkRetrieveRequest {
|
||||||
@@ -1231,7 +1231,7 @@ export interface ApiShoppingListEntryBulkCreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListEntryCreateRequest {
|
export interface ApiShoppingListEntryCreateRequest {
|
||||||
shoppingListEntry: ShoppingListEntry;
|
shoppingListEntry: Omit<ShoppingListEntry, 'recipe_mealplan'|'created_by'|'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListEntryDestroyRequest {
|
export interface ApiShoppingListEntryDestroyRequest {
|
||||||
@@ -1248,7 +1248,7 @@ export interface ApiShoppingListEntryListRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListEntryPartialUpdateRequest {
|
export interface ApiShoppingListEntryPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedShoppingListEntry?: PatchedShoppingListEntry;
|
patchedShoppingListEntry?: Omit<PatchedShoppingListEntry, 'recipe_mealplan'|'created_by'|'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListEntryRetrieveRequest {
|
export interface ApiShoppingListEntryRetrieveRequest {
|
||||||
@@ -1257,11 +1257,11 @@ export interface ApiShoppingListEntryRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListEntryUpdateRequest {
|
export interface ApiShoppingListEntryUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
shoppingListEntry: ShoppingListEntry;
|
shoppingListEntry: Omit<ShoppingListEntry, 'recipe_mealplan'|'created_by'|'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeCreateRequest {
|
export interface ApiShoppingListRecipeCreateRequest {
|
||||||
shoppingListRecipe: ShoppingListRecipe;
|
shoppingListRecipe: Omit<ShoppingListRecipe, 'recipe_name'|'name'|'mealplan_note'|'mealplan_from_date'|'mealplan_type'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeDestroyRequest {
|
export interface ApiShoppingListRecipeDestroyRequest {
|
||||||
@@ -1275,7 +1275,7 @@ export interface ApiShoppingListRecipeListRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListRecipePartialUpdateRequest {
|
export interface ApiShoppingListRecipePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedShoppingListRecipe?: PatchedShoppingListRecipe;
|
patchedShoppingListRecipe?: Omit<PatchedShoppingListRecipe, 'recipe_name'|'name'|'mealplan_note'|'mealplan_from_date'|'mealplan_type'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiShoppingListRecipeRetrieveRequest {
|
export interface ApiShoppingListRecipeRetrieveRequest {
|
||||||
@@ -1284,7 +1284,7 @@ export interface ApiShoppingListRecipeRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiShoppingListRecipeUpdateRequest {
|
export interface ApiShoppingListRecipeUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
shoppingListRecipe: ShoppingListRecipe;
|
shoppingListRecipe: Omit<ShoppingListRecipe, 'recipe_name'|'name'|'mealplan_note'|'mealplan_from_date'|'mealplan_type'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSpaceListRequest {
|
export interface ApiSpaceListRequest {
|
||||||
@@ -1294,7 +1294,7 @@ export interface ApiSpaceListRequest {
|
|||||||
|
|
||||||
export interface ApiSpacePartialUpdateRequest {
|
export interface ApiSpacePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedSpace?: PatchedSpace;
|
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'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSpaceRetrieveRequest {
|
export interface ApiSpaceRetrieveRequest {
|
||||||
@@ -1302,7 +1302,7 @@ export interface ApiSpaceRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStepCreateRequest {
|
export interface ApiStepCreateRequest {
|
||||||
step: Step;
|
step: Omit<Step, 'instructions_markdown'|'step_recipe_data'|'numrecipe'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStepDestroyRequest {
|
export interface ApiStepDestroyRequest {
|
||||||
@@ -1318,7 +1318,7 @@ export interface ApiStepListRequest {
|
|||||||
|
|
||||||
export interface ApiStepPartialUpdateRequest {
|
export interface ApiStepPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedStep?: PatchedStep;
|
patchedStep?: Omit<PatchedStep, 'instructions_markdown'|'step_recipe_data'|'numrecipe'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStepRetrieveRequest {
|
export interface ApiStepRetrieveRequest {
|
||||||
@@ -1327,11 +1327,11 @@ export interface ApiStepRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiStepUpdateRequest {
|
export interface ApiStepUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
step: Step;
|
step: Omit<Step, 'instructions_markdown'|'step_recipe_data'|'numrecipe'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStorageCreateRequest {
|
export interface ApiStorageCreateRequest {
|
||||||
storage: Storage;
|
storage: Omit<Storage, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStorageDestroyRequest {
|
export interface ApiStorageDestroyRequest {
|
||||||
@@ -1340,7 +1340,7 @@ export interface ApiStorageDestroyRequest {
|
|||||||
|
|
||||||
export interface ApiStoragePartialUpdateRequest {
|
export interface ApiStoragePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedStorage?: PatchedStorage;
|
patchedStorage?: Omit<PatchedStorage, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiStorageRetrieveRequest {
|
export interface ApiStorageRetrieveRequest {
|
||||||
@@ -1349,7 +1349,7 @@ export interface ApiStorageRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiStorageUpdateRequest {
|
export interface ApiStorageUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
storage: Storage;
|
storage: Omit<Storage, 'created_by'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketCategoryCreateRequest {
|
export interface ApiSupermarketCategoryCreateRequest {
|
||||||
@@ -1421,7 +1421,7 @@ export interface ApiSupermarketCategoryUpdateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketCreateRequest {
|
export interface ApiSupermarketCreateRequest {
|
||||||
supermarket: Supermarket;
|
supermarket: Omit<Supermarket, 'category_to_supermarket'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketDestroyRequest {
|
export interface ApiSupermarketDestroyRequest {
|
||||||
@@ -1439,7 +1439,7 @@ export interface ApiSupermarketListRequest {
|
|||||||
|
|
||||||
export interface ApiSupermarketPartialUpdateRequest {
|
export interface ApiSupermarketPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedSupermarket?: PatchedSupermarket;
|
patchedSupermarket?: Omit<PatchedSupermarket, 'category_to_supermarket'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSupermarketRetrieveRequest {
|
export interface ApiSupermarketRetrieveRequest {
|
||||||
@@ -1448,7 +1448,7 @@ export interface ApiSupermarketRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiSupermarketUpdateRequest {
|
export interface ApiSupermarketUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
supermarket: Supermarket;
|
supermarket: Omit<Supermarket, 'category_to_supermarket'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSwitchActiveSpaceRetrieveRequest {
|
export interface ApiSwitchActiveSpaceRetrieveRequest {
|
||||||
@@ -1456,7 +1456,7 @@ export interface ApiSwitchActiveSpaceRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSyncCreateRequest {
|
export interface ApiSyncCreateRequest {
|
||||||
sync: Sync;
|
sync: Omit<Sync, 'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSyncDestroyRequest {
|
export interface ApiSyncDestroyRequest {
|
||||||
@@ -1479,7 +1479,7 @@ export interface ApiSyncLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiSyncPartialUpdateRequest {
|
export interface ApiSyncPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedSync?: PatchedSync;
|
patchedSync?: Omit<PatchedSync, 'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiSyncRetrieveRequest {
|
export interface ApiSyncRetrieveRequest {
|
||||||
@@ -1488,11 +1488,11 @@ export interface ApiSyncRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiSyncUpdateRequest {
|
export interface ApiSyncUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
sync: Sync;
|
sync: Omit<Sync, 'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUnitConversionCreateRequest {
|
export interface ApiUnitConversionCreateRequest {
|
||||||
unitConversion: UnitConversion;
|
unitConversion: Omit<UnitConversion, 'name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUnitConversionDestroyRequest {
|
export interface ApiUnitConversionDestroyRequest {
|
||||||
@@ -1507,7 +1507,7 @@ export interface ApiUnitConversionListRequest {
|
|||||||
|
|
||||||
export interface ApiUnitConversionPartialUpdateRequest {
|
export interface ApiUnitConversionPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedUnitConversion?: PatchedUnitConversion;
|
patchedUnitConversion?: Omit<PatchedUnitConversion, 'name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUnitConversionRetrieveRequest {
|
export interface ApiUnitConversionRetrieveRequest {
|
||||||
@@ -1516,7 +1516,7 @@ export interface ApiUnitConversionRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiUnitConversionUpdateRequest {
|
export interface ApiUnitConversionUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
unitConversion: UnitConversion;
|
unitConversion: Omit<UnitConversion, 'name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUnitCreateRequest {
|
export interface ApiUnitCreateRequest {
|
||||||
@@ -1614,12 +1614,12 @@ export interface ApiUserListRequest {
|
|||||||
|
|
||||||
export interface ApiUserPartialUpdateRequest {
|
export interface ApiUserPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedUser?: PatchedUser;
|
patchedUser?: Omit<PatchedUser, 'username'|'display_name'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUserPreferencePartialUpdateRequest {
|
export interface ApiUserPreferencePartialUpdateRequest {
|
||||||
user: number;
|
user: number;
|
||||||
patchedUserPreference?: PatchedUserPreference;
|
patchedUserPreference?: Omit<PatchedUserPreference, 'food_inherit_default'|'food_children_exist'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUserPreferenceRetrieveRequest {
|
export interface ApiUserPreferenceRetrieveRequest {
|
||||||
@@ -1642,7 +1642,7 @@ export interface ApiUserSpaceListRequest {
|
|||||||
|
|
||||||
export interface ApiUserSpacePartialUpdateRequest {
|
export interface ApiUserSpacePartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedUserSpace?: PatchedUserSpace;
|
patchedUserSpace?: Omit<PatchedUserSpace, 'user'|'space'|'invite_link'|'created_at'|'updated_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiUserSpaceRetrieveRequest {
|
export interface ApiUserSpaceRetrieveRequest {
|
||||||
@@ -1650,7 +1650,7 @@ export interface ApiUserSpaceRetrieveRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiViewLogCreateRequest {
|
export interface ApiViewLogCreateRequest {
|
||||||
viewLog: ViewLog;
|
viewLog: Omit<ViewLog, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiViewLogDestroyRequest {
|
export interface ApiViewLogDestroyRequest {
|
||||||
@@ -1664,7 +1664,7 @@ export interface ApiViewLogListRequest {
|
|||||||
|
|
||||||
export interface ApiViewLogPartialUpdateRequest {
|
export interface ApiViewLogPartialUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
patchedViewLog?: PatchedViewLog;
|
patchedViewLog?: Omit<PatchedViewLog, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiViewLogRetrieveRequest {
|
export interface ApiViewLogRetrieveRequest {
|
||||||
@@ -1673,7 +1673,7 @@ export interface ApiViewLogRetrieveRequest {
|
|||||||
|
|
||||||
export interface ApiViewLogUpdateRequest {
|
export interface ApiViewLogUpdateRequest {
|
||||||
id: number;
|
id: number;
|
||||||
viewLog: ViewLog;
|
viewLog: Omit<ViewLog, 'created_by'|'created_at'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -11672,7 +11672,7 @@ export class ApiApi extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requestParameters['createdAt'] != null) {
|
if (requestParameters['createdAt'] != null) {
|
||||||
formParams.append('created_at', requestParameters['createdAt'] as any);
|
formParams.append('created_at', (requestParameters['createdAt'] as any).toISOString());
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await this.request({
|
const response = await this.request({
|
||||||
@@ -11840,7 +11840,7 @@ export class ApiApi extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requestParameters['createdAt'] != null) {
|
if (requestParameters['createdAt'] != null) {
|
||||||
formParams.append('created_at', requestParameters['createdAt'] as any);
|
formParams.append('created_at', (requestParameters['createdAt'] as any).toISOString());
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await this.request({
|
const response = await this.request({
|
||||||
@@ -12006,7 +12006,7 @@ export class ApiApi extends runtime.BaseAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requestParameters['createdAt'] != null) {
|
if (requestParameters['createdAt'] != null) {
|
||||||
formParams.append('created_at', requestParameters['createdAt'] as any);
|
formParams.append('created_at', (requestParameters['createdAt'] as any).toISOString());
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await this.request({
|
const response = await this.request({
|
||||||
|
|||||||
@@ -60,11 +60,11 @@ export interface AccessToken {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the AccessToken interface.
|
* Check if a given object implements the AccessToken interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfAccessToken(value: object): boolean {
|
export function instanceOfAccessToken(value: object): value is AccessToken {
|
||||||
if (!('token' in value)) return false;
|
if (!('token' in value) || value['token'] === undefined) return false;
|
||||||
if (!('expires' in value)) return false;
|
if (!('expires' in value) || value['expires'] === undefined) return false;
|
||||||
if (!('created' in value)) return false;
|
if (!('created' in value) || value['created'] === undefined) return false;
|
||||||
if (!('updated' in value)) return false;
|
if (!('updated' in value) || value['updated'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AccessTokenToJSON(value?: AccessToken | null): any {
|
export function AccessTokenToJSON(value?: Omit<AccessToken, 'token'|'created'|'updated'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ export interface AuthToken {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the AuthToken interface.
|
* Check if a given object implements the AuthToken interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfAuthToken(value: object): boolean {
|
export function instanceOfAuthToken(value: object): value is AuthToken {
|
||||||
if (!('username' in value)) return false;
|
if (!('username' in value) || value['username'] === undefined) return false;
|
||||||
if (!('password' in value)) return false;
|
if (!('password' in value) || value['password'] === undefined) return false;
|
||||||
if (!('token' in value)) return false;
|
if (!('token' in value) || value['token'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ export function AuthTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AuthTokenToJSON(value?: AuthToken | null): any {
|
export function AuthTokenToJSON(value?: Omit<AuthToken, 'token'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export interface AutoMealPlan {
|
|||||||
* @type {Array<User>}
|
* @type {Array<User>}
|
||||||
* @memberof AutoMealPlan
|
* @memberof AutoMealPlan
|
||||||
*/
|
*/
|
||||||
shared?: Array<User>;
|
shared?: Array<User> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -73,13 +73,13 @@ export interface AutoMealPlan {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the AutoMealPlan interface.
|
* Check if a given object implements the AutoMealPlan interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfAutoMealPlan(value: object): boolean {
|
export function instanceOfAutoMealPlan(value: object): value is AutoMealPlan {
|
||||||
if (!('startDate' in value)) return false;
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
||||||
if (!('endDate' in value)) return false;
|
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
||||||
if (!('mealTypeId' in value)) return false;
|
if (!('mealTypeId' in value) || value['mealTypeId'] === undefined) return false;
|
||||||
if (!('keywordIds' in value)) return false;
|
if (!('keywordIds' in value) || value['keywordIds'] === undefined) return false;
|
||||||
if (!('servings' in value)) return false;
|
if (!('servings' in value) || value['servings'] === undefined) return false;
|
||||||
if (!('addshopping' in value)) return false;
|
if (!('addshopping' in value) || value['addshopping'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,25 +49,25 @@ export interface Automation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
param1?: string;
|
param1?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
param2?: string;
|
param2?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Automation
|
* @memberof Automation
|
||||||
*/
|
*/
|
||||||
param3?: string;
|
param3?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -88,12 +88,14 @@ 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.
|
||||||
*/
|
*/
|
||||||
export function instanceOfAutomation(value: object): boolean {
|
export function instanceOfAutomation(value: object): value is Automation {
|
||||||
if (!('type' in value)) return false;
|
if (!('type' in value) || value['type'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +122,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AutomationToJSON(value?: Automation | null): any {
|
export function AutomationToJSON(value?: Omit<Automation, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,17 @@ export const AutomationTypeEnum = {
|
|||||||
export type AutomationTypeEnum = typeof AutomationTypeEnum[keyof typeof AutomationTypeEnum];
|
export type AutomationTypeEnum = typeof AutomationTypeEnum[keyof typeof AutomationTypeEnum];
|
||||||
|
|
||||||
|
|
||||||
|
export function instanceOfAutomationTypeEnum(value: any): boolean {
|
||||||
|
for (const key in AutomationTypeEnum) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(AutomationTypeEnum, key)) {
|
||||||
|
if (AutomationTypeEnum[key as keyof typeof AutomationTypeEnum] === value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
export function AutomationTypeEnumFromJSON(json: any): AutomationTypeEnum {
|
export function AutomationTypeEnumFromJSON(json: any): AutomationTypeEnum {
|
||||||
return AutomationTypeEnumFromJSONTyped(json, false);
|
return AutomationTypeEnumFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,17 @@ export const BaseUnitEnum = {
|
|||||||
export type BaseUnitEnum = typeof BaseUnitEnum[keyof typeof BaseUnitEnum];
|
export type BaseUnitEnum = typeof BaseUnitEnum[keyof typeof BaseUnitEnum];
|
||||||
|
|
||||||
|
|
||||||
|
export function instanceOfBaseUnitEnum(value: any): boolean {
|
||||||
|
for (const key in BaseUnitEnum) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(BaseUnitEnum, key)) {
|
||||||
|
if (BaseUnitEnum[key as keyof typeof BaseUnitEnum] === value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
export function BaseUnitEnumFromJSON(json: any): BaseUnitEnum {
|
export function BaseUnitEnumFromJSON(json: any): BaseUnitEnum {
|
||||||
return BaseUnitEnumFromJSONTyped(json, false);
|
return BaseUnitEnumFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export interface BookmarkletImport {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof BookmarkletImport
|
* @memberof BookmarkletImport
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -54,10 +54,10 @@ export interface BookmarkletImport {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the BookmarkletImport interface.
|
* Check if a given object implements the BookmarkletImport interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfBookmarkletImport(value: object): boolean {
|
export function instanceOfBookmarkletImport(value: object): value is BookmarkletImport {
|
||||||
if (!('html' in value)) return false;
|
if (!('html' in value) || value['html'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('createdAt' in value)) return false;
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
|
export function BookmarkletImportToJSON(value?: Omit<BookmarkletImport, 'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export interface BookmarkletImportList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof BookmarkletImportList
|
* @memberof BookmarkletImportList
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -48,9 +48,9 @@ export interface BookmarkletImportList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the BookmarkletImportList interface.
|
* Check if a given object implements the BookmarkletImportList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfBookmarkletImportList(value: object): boolean {
|
export function instanceOfBookmarkletImportList(value: object): value is BookmarkletImportList {
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('createdAt' in value)) return false;
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BookmarkletImportListToJSON(value?: BookmarkletImportList | null): any {
|
export function BookmarkletImportListToJSON(value?: Omit<BookmarkletImportList, 'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,19 +36,19 @@ export interface ConnectorConfigConfig {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ConnectorConfigConfig
|
* @memberof ConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ConnectorConfigConfig
|
* @memberof ConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
token?: string;
|
token?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof ConnectorConfigConfig
|
* @memberof ConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
todoEntity?: string;
|
todoEntity?: string | null;
|
||||||
/**
|
/**
|
||||||
* Is Connector Enabled
|
* Is Connector Enabled
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -90,9 +90,9 @@ export interface ConnectorConfigConfig {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the ConnectorConfigConfig interface.
|
* Check if a given object implements the ConnectorConfigConfig interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfConnectorConfigConfig(value: object): boolean {
|
export function instanceOfConnectorConfigConfig(value: object): value is ConnectorConfigConfig {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ export function ConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ConnectorConfigConfigToJSON(value?: ConnectorConfigConfig | null): any {
|
export function ConnectorConfigConfigToJSON(value?: Omit<ConnectorConfigConfig, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,19 +43,19 @@ export interface CookLog {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof CookLog
|
* @memberof CookLog
|
||||||
*/
|
*/
|
||||||
servings?: number;
|
servings?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof CookLog
|
* @memberof CookLog
|
||||||
*/
|
*/
|
||||||
rating?: number;
|
rating?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof CookLog
|
* @memberof CookLog
|
||||||
*/
|
*/
|
||||||
comment?: string;
|
comment?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {User}
|
* @type {User}
|
||||||
@@ -79,10 +79,10 @@ export interface CookLog {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the CookLog interface.
|
* Check if a given object implements the CookLog interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfCookLog(value: object): boolean {
|
export function instanceOfCookLog(value: object): value is CookLog {
|
||||||
if (!('recipe' in value)) return false;
|
if (!('recipe' in value) || value['recipe'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('updatedAt' in value)) return false;
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ export function CookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): C
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CookLogToJSON(value?: CookLog | null): any {
|
export function CookLogToJSON(value?: Omit<CookLog, 'created_by'|'updated_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,10 +61,10 @@ export interface CustomFilter {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the CustomFilter interface.
|
* Check if a given object implements the CustomFilter interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfCustomFilter(value: object): boolean {
|
export function instanceOfCustomFilter(value: object): value is CustomFilter {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('search' in value)) return false;
|
if (!('search' in value) || value['search'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ export function CustomFilterFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CustomFilterToJSON(value?: CustomFilter | null): any {
|
export function CustomFilterToJSON(value?: Omit<CustomFilter, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,17 @@ export const DefaultPageEnum = {
|
|||||||
export type DefaultPageEnum = typeof DefaultPageEnum[keyof typeof DefaultPageEnum];
|
export type DefaultPageEnum = typeof DefaultPageEnum[keyof typeof DefaultPageEnum];
|
||||||
|
|
||||||
|
|
||||||
|
export function instanceOfDefaultPageEnum(value: any): boolean {
|
||||||
|
for (const key in DefaultPageEnum) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(DefaultPageEnum, key)) {
|
||||||
|
if (DefaultPageEnum[key as keyof typeof DefaultPageEnum] === value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
export function DefaultPageEnumFromJSON(json: any): DefaultPageEnum {
|
export function DefaultPageEnumFromJSON(json: any): DefaultPageEnum {
|
||||||
return DefaultPageEnumFromJSONTyped(json, false);
|
return DefaultPageEnumFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,17 @@ export const DeleteEnum = {
|
|||||||
export type DeleteEnum = typeof DeleteEnum[keyof typeof DeleteEnum];
|
export type DeleteEnum = typeof DeleteEnum[keyof typeof DeleteEnum];
|
||||||
|
|
||||||
|
|
||||||
|
export function instanceOfDeleteEnum(value: any): boolean {
|
||||||
|
for (const key in DeleteEnum) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(DeleteEnum, key)) {
|
||||||
|
if (DeleteEnum[key as keyof typeof DeleteEnum] === value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
export function DeleteEnumFromJSON(json: any): DeleteEnum {
|
export function DeleteEnumFromJSON(json: any): DeleteEnum {
|
||||||
return DeleteEnumFromJSONTyped(json, false);
|
return DeleteEnumFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,10 +84,10 @@ export interface ExportLog {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the ExportLog interface.
|
* Check if a given object implements the ExportLog interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfExportLog(value: object): boolean {
|
export function instanceOfExportLog(value: object): value is ExportLog {
|
||||||
if (!('type' in value)) return false;
|
if (!('type' in value) || value['type'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('createdAt' in value)) return false;
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ExportLogToJSON(value?: ExportLog | null): any {
|
export function ExportLogToJSON(value?: Omit<ExportLog, 'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,30 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { FoodInheritField } from './FoodInheritField';
|
|
||||||
import {
|
|
||||||
FoodInheritFieldFromJSON,
|
|
||||||
FoodInheritFieldFromJSONTyped,
|
|
||||||
FoodInheritFieldToJSON,
|
|
||||||
} from './FoodInheritField';
|
|
||||||
import type { FoodSimple } from './FoodSimple';
|
|
||||||
import {
|
|
||||||
FoodSimpleFromJSON,
|
|
||||||
FoodSimpleFromJSONTyped,
|
|
||||||
FoodSimpleToJSON,
|
|
||||||
} from './FoodSimple';
|
|
||||||
import type { Property } from './Property';
|
|
||||||
import {
|
|
||||||
PropertyFromJSON,
|
|
||||||
PropertyFromJSONTyped,
|
|
||||||
PropertyToJSON,
|
|
||||||
} from './Property';
|
|
||||||
import type { RecipeSimple } from './RecipeSimple';
|
|
||||||
import {
|
|
||||||
RecipeSimpleFromJSON,
|
|
||||||
RecipeSimpleFromJSONTyped,
|
|
||||||
RecipeSimpleToJSON,
|
|
||||||
} from './RecipeSimple';
|
|
||||||
import type { SupermarketCategory } from './SupermarketCategory';
|
import type { SupermarketCategory } from './SupermarketCategory';
|
||||||
import {
|
import {
|
||||||
SupermarketCategoryFromJSON,
|
SupermarketCategoryFromJSON,
|
||||||
@@ -49,6 +25,30 @@ import {
|
|||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
|
import type { Property } from './Property';
|
||||||
|
import {
|
||||||
|
PropertyFromJSON,
|
||||||
|
PropertyFromJSONTyped,
|
||||||
|
PropertyToJSON,
|
||||||
|
} from './Property';
|
||||||
|
import type { FoodInheritField } from './FoodInheritField';
|
||||||
|
import {
|
||||||
|
FoodInheritFieldFromJSON,
|
||||||
|
FoodInheritFieldFromJSONTyped,
|
||||||
|
FoodInheritFieldToJSON,
|
||||||
|
} from './FoodInheritField';
|
||||||
|
import type { FoodSimple } from './FoodSimple';
|
||||||
|
import {
|
||||||
|
FoodSimpleFromJSON,
|
||||||
|
FoodSimpleFromJSONTyped,
|
||||||
|
FoodSimpleToJSON,
|
||||||
|
} from './FoodSimple';
|
||||||
|
import type { RecipeSimple } from './RecipeSimple';
|
||||||
|
import {
|
||||||
|
RecipeSimpleFromJSON,
|
||||||
|
RecipeSimpleFromJSONTyped,
|
||||||
|
RecipeSimpleToJSON,
|
||||||
|
} from './RecipeSimple';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves `UniqueValidator`'s from the validation stage to the save stage.
|
* Moves `UniqueValidator`'s from the validation stage to the save stage.
|
||||||
@@ -107,7 +107,7 @@ export interface Food {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
pluralName?: string;
|
pluralName?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -125,19 +125,19 @@ export interface Food {
|
|||||||
* @type {RecipeSimple}
|
* @type {RecipeSimple}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeSimple;
|
recipe?: RecipeSimple | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
properties?: Array<Property>;
|
properties?: Array<Property> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -149,25 +149,25 @@ export interface Food {
|
|||||||
* @type {Unit}
|
* @type {Unit}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
propertiesFoodUnit?: Unit;
|
propertiesFoodUnit?: Unit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
fdcId?: number;
|
fdcId?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
foodOnhand?: boolean;
|
foodOnhand?: boolean | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {SupermarketCategory}
|
* @type {SupermarketCategory}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
supermarketCategory?: SupermarketCategory;
|
supermarketCategory?: SupermarketCategory | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -185,7 +185,7 @@ export interface Food {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
inheritFields?: Array<FoodInheritField>;
|
inheritFields?: Array<FoodInheritField> | null;
|
||||||
/**
|
/**
|
||||||
* 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'.
|
||||||
@@ -204,7 +204,7 @@ export interface Food {
|
|||||||
* @type {Array<FoodSimple>}
|
* @type {Array<FoodSimple>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
substitute?: Array<FoodSimple>;
|
substitute?: Array<FoodSimple> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -228,25 +228,25 @@ export interface Food {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
childInheritFields?: Array<FoodInheritField>;
|
childInheritFields?: Array<FoodInheritField> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Food
|
* @memberof Food
|
||||||
*/
|
*/
|
||||||
openDataSlug?: string;
|
openDataSlug?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the Food interface.
|
* Check if a given object implements the Food interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfFood(value: object): boolean {
|
export function instanceOfFood(value: object): value is Food {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('shopping' in value)) return false;
|
if (!('shopping' in value) || value['shopping'] === undefined) return false;
|
||||||
if (!('parent' in value)) return false;
|
if (!('parent' in value) || value['parent'] === undefined) return false;
|
||||||
if (!('numchild' in value)) return false;
|
if (!('numchild' in value) || value['numchild'] === undefined) return false;
|
||||||
if (!('fullName' in value)) return false;
|
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
||||||
if (!('substituteOnhand' in value)) return false;
|
if (!('substituteOnhand' in value) || value['substituteOnhand'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,7 +287,7 @@ export function FoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Food
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FoodToJSON(value?: Food | null): any {
|
export function FoodToJSON(value?: Omit<Food, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,19 +64,19 @@ export interface FoodInheritField {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof FoodInheritField
|
* @memberof FoodInheritField
|
||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof FoodInheritField
|
* @memberof FoodInheritField
|
||||||
*/
|
*/
|
||||||
field?: string;
|
field?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the FoodInheritField interface.
|
* Check if a given object implements the FoodInheritField interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfFoodInheritField(value: object): boolean {
|
export function instanceOfFoodInheritField(value: object): value is FoodInheritField {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface FoodShoppingUpdate {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof FoodShoppingUpdate
|
* @memberof FoodShoppingUpdate
|
||||||
*/
|
*/
|
||||||
amount?: number;
|
amount?: number | null;
|
||||||
/**
|
/**
|
||||||
* 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;
|
unit?: number | null;
|
||||||
/**
|
/**
|
||||||
* When set to true will delete all food from active shopping lists.
|
* When set to true will delete all food from active shopping lists.
|
||||||
*
|
*
|
||||||
@@ -54,11 +54,13 @@ 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.
|
||||||
*/
|
*/
|
||||||
export function instanceOfFoodShoppingUpdate(value: object): boolean {
|
export function instanceOfFoodShoppingUpdate(value: object): value is FoodShoppingUpdate {
|
||||||
if (!('_delete' in value)) return false;
|
if (!('_delete' in value) || value['_delete'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,14 +36,14 @@ export interface FoodSimple {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof FoodSimple
|
* @memberof FoodSimple
|
||||||
*/
|
*/
|
||||||
pluralName?: string;
|
pluralName?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the FoodSimple interface.
|
* Check if a given object implements the FoodSimple interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfFoodSimple(value: object): boolean {
|
export function instanceOfFoodSimple(value: object): value is FoodSimple {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ export interface Group {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the Group interface.
|
* Check if a given object implements the Group interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfGroup(value: object): boolean {
|
export function instanceOfGroup(value: object): value is Group {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ export interface ImportImage {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the ImportImage interface.
|
* Check if a given object implements the ImportImage interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfImportImage(value: object): boolean {
|
export function instanceOfImportImage(value: object): value is ImportImage {
|
||||||
if (!('image' in value)) return false;
|
if (!('image' in value) || value['image'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,11 +85,11 @@ export interface ImportLog {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the ImportLog interface.
|
* Check if a given object implements the ImportLog interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfImportLog(value: object): boolean {
|
export function instanceOfImportLog(value: object): value is ImportLog {
|
||||||
if (!('type' in value)) return false;
|
if (!('type' in value) || value['type'] === undefined) return false;
|
||||||
if (!('keyword' in value)) return false;
|
if (!('keyword' in value) || value['keyword'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('createdAt' in value)) return false;
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ImportLogToJSON(value?: ImportLog | null): any {
|
export function ImportLogToJSON(value?: Omit<ImportLog, 'keyword'|'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { Food } from './Food';
|
|
||||||
import {
|
|
||||||
FoodFromJSON,
|
|
||||||
FoodFromJSONTyped,
|
|
||||||
FoodToJSON,
|
|
||||||
} from './Food';
|
|
||||||
import type { Unit } from './Unit';
|
import type { Unit } from './Unit';
|
||||||
import {
|
import {
|
||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
|
import type { Food } from './Food';
|
||||||
|
import {
|
||||||
|
FoodFromJSON,
|
||||||
|
FoodFromJSONTyped,
|
||||||
|
FoodToJSON,
|
||||||
|
} from './Food';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds nested create feature
|
* Adds nested create feature
|
||||||
@@ -67,7 +67,7 @@ export interface Ingredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Ingredient
|
* @memberof Ingredient
|
||||||
*/
|
*/
|
||||||
note?: string;
|
note?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -91,7 +91,7 @@ export interface Ingredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof Ingredient
|
* @memberof Ingredient
|
||||||
*/
|
*/
|
||||||
originalText?: string;
|
originalText?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<any>}
|
* @type {Array<any>}
|
||||||
@@ -115,12 +115,12 @@ export interface Ingredient {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the Ingredient interface.
|
* Check if a given object implements the Ingredient interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfIngredient(value: object): boolean {
|
export function instanceOfIngredient(value: object): value is Ingredient {
|
||||||
if (!('food' in value)) return false;
|
if (!('food' in value) || value['food'] === undefined) return false;
|
||||||
if (!('unit' in value)) return false;
|
if (!('unit' in value) || value['unit'] === undefined) return false;
|
||||||
if (!('amount' in value)) return false;
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
||||||
if (!('conversions' in value)) return false;
|
if (!('conversions' in value) || value['conversions'] === undefined) return false;
|
||||||
if (!('usedInRecipes' in value)) return false;
|
if (!('usedInRecipes' in value) || value['usedInRecipes'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ export function IngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function IngredientToJSON(value?: Ingredient | null): any {
|
export function IngredientToJSON(value?: Omit<Ingredient, 'conversions'|'used_in_recipes'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ export interface IngredientString {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the IngredientString interface.
|
* Check if a given object implements the IngredientString interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfIngredientString(value: object): boolean {
|
export function instanceOfIngredientString(value: object): value is IngredientString {
|
||||||
if (!('text' in value)) return false;
|
if (!('text' in value) || value['text'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export interface InviteLink {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof InviteLink
|
* @memberof InviteLink
|
||||||
*/
|
*/
|
||||||
usedBy?: number;
|
usedBy?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -73,7 +73,7 @@ export interface InviteLink {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof InviteLink
|
* @memberof InviteLink
|
||||||
*/
|
*/
|
||||||
internalNote?: string;
|
internalNote?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -91,11 +91,11 @@ export interface InviteLink {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the InviteLink interface.
|
* Check if a given object implements the InviteLink interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfInviteLink(value: object): boolean {
|
export function instanceOfInviteLink(value: object): value is InviteLink {
|
||||||
if (!('uuid' in value)) return false;
|
if (!('uuid' in value) || value['uuid'] === undefined) return false;
|
||||||
if (!('group' in value)) return false;
|
if (!('group' in value) || value['group'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('createdAt' in value)) return false;
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ export function InviteLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function InviteLinkToJSON(value?: InviteLink | null): any {
|
export function InviteLinkToJSON(value?: Omit<InviteLink, 'uuid'|'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,14 +113,14 @@ export interface Keyword {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the Keyword interface.
|
* Check if a given object implements the Keyword interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfKeyword(value: object): boolean {
|
export function instanceOfKeyword(value: object): value is Keyword {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('label' in value)) return false;
|
if (!('label' in value) || value['label'] === undefined) return false;
|
||||||
if (!('parent' in value)) return false;
|
if (!('parent' in value) || value['parent'] === undefined) return false;
|
||||||
if (!('numchild' in value)) return false;
|
if (!('numchild' in value) || value['numchild'] === undefined) return false;
|
||||||
if (!('createdAt' in value)) return false;
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
||||||
if (!('updatedAt' in value)) return false;
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
||||||
if (!('fullName' in value)) return false;
|
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ export function KeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): K
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function KeywordToJSON(value?: Keyword | null): any {
|
export function KeywordToJSON(value?: Omit<Keyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ export interface KeywordLabel {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the KeywordLabel interface.
|
* Check if a given object implements the KeywordLabel interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfKeywordLabel(value: object): boolean {
|
export function instanceOfKeywordLabel(value: object): value is KeywordLabel {
|
||||||
if (!('label' in value)) return false;
|
if (!('label' in value) || value['label'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function KeywordLabelToJSON(value?: KeywordLabel | null): any {
|
export function KeywordLabelToJSON(value?: Omit<KeywordLabel, 'label'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ export interface Localization {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the Localization interface.
|
* Check if a given object implements the Localization interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfLocalization(value: object): boolean {
|
export function instanceOfLocalization(value: object): value is Localization {
|
||||||
if (!('code' in value)) return false;
|
if (!('code' in value) || value['code'] === undefined) return false;
|
||||||
if (!('language' in value)) return false;
|
if (!('language' in value) || value['language'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ export function LocalizationFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function LocalizationToJSON(value?: Localization | null): any {
|
export function LocalizationToJSON(value?: Omit<Localization, 'code'|'language'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,18 +19,18 @@ import {
|
|||||||
MealTypeFromJSONTyped,
|
MealTypeFromJSONTyped,
|
||||||
MealTypeToJSON,
|
MealTypeToJSON,
|
||||||
} from './MealType';
|
} from './MealType';
|
||||||
import type { RecipeOverview } from './RecipeOverview';
|
|
||||||
import {
|
|
||||||
RecipeOverviewFromJSON,
|
|
||||||
RecipeOverviewFromJSONTyped,
|
|
||||||
RecipeOverviewToJSON,
|
|
||||||
} from './RecipeOverview';
|
|
||||||
import type { User } from './User';
|
import type { User } from './User';
|
||||||
import {
|
import {
|
||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
} from './User';
|
} from './User';
|
||||||
|
import type { RecipeOverview } from './RecipeOverview';
|
||||||
|
import {
|
||||||
|
RecipeOverviewFromJSON,
|
||||||
|
RecipeOverviewFromJSONTyped,
|
||||||
|
RecipeOverviewToJSON,
|
||||||
|
} from './RecipeOverview';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds nested create feature
|
* Adds nested create feature
|
||||||
@@ -55,7 +55,7 @@ export interface MealPlan {
|
|||||||
* @type {RecipeOverview}
|
* @type {RecipeOverview}
|
||||||
* @memberof MealPlan
|
* @memberof MealPlan
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeOverview;
|
recipe?: RecipeOverview | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -103,7 +103,7 @@ export interface MealPlan {
|
|||||||
* @type {Array<User>}
|
* @type {Array<User>}
|
||||||
* @memberof MealPlan
|
* @memberof MealPlan
|
||||||
*/
|
*/
|
||||||
shared?: Array<User>;
|
shared?: Array<User> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -127,15 +127,15 @@ export interface MealPlan {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the MealPlan interface.
|
* Check if a given object implements the MealPlan interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfMealPlan(value: object): boolean {
|
export function instanceOfMealPlan(value: object): value is MealPlan {
|
||||||
if (!('servings' in value)) return false;
|
if (!('servings' in value) || value['servings'] === undefined) return false;
|
||||||
if (!('noteMarkdown' in value)) return false;
|
if (!('noteMarkdown' in value) || value['noteMarkdown'] === undefined) return false;
|
||||||
if (!('fromDate' in value)) return false;
|
if (!('fromDate' in value) || value['fromDate'] === undefined) return false;
|
||||||
if (!('mealType' in value)) return false;
|
if (!('mealType' in value) || value['mealType'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
if (!('recipeName' in value)) return false;
|
if (!('recipeName' in value) || value['recipeName'] === undefined) return false;
|
||||||
if (!('mealTypeName' in value)) return false;
|
if (!('mealTypeName' in value) || value['mealTypeName'] === undefined) return false;
|
||||||
if (!('shopping' in value)) return false;
|
if (!('shopping' in value) || value['shopping'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ export function MealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MealPlanToJSON(value?: MealPlan | null): any {
|
export function MealPlanToJSON(value?: Omit<MealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,13 +42,13 @@ export interface MealType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof MealType
|
* @memberof MealType
|
||||||
*/
|
*/
|
||||||
time?: string;
|
time?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof MealType
|
* @memberof MealType
|
||||||
*/
|
*/
|
||||||
color?: string;
|
color?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -66,9 +66,9 @@ export interface MealType {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the MealType interface.
|
* Check if a given object implements the MealType interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfMealType(value: object): boolean {
|
export function instanceOfMealType(value: object): value is MealType {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ export function MealTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MealTypeToJSON(value?: MealType | null): any {
|
export function MealTypeToJSON(value?: Omit<MealType, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ export const MethodEnum = {
|
|||||||
export type MethodEnum = typeof MethodEnum[keyof typeof MethodEnum];
|
export type MethodEnum = typeof MethodEnum[keyof typeof MethodEnum];
|
||||||
|
|
||||||
|
|
||||||
|
export function instanceOfMethodEnum(value: any): boolean {
|
||||||
|
for (const key in MethodEnum) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(MethodEnum, key)) {
|
||||||
|
if (MethodEnum[key as keyof typeof MethodEnum] === value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
export function MethodEnumFromJSON(json: any): MethodEnum {
|
export function MethodEnumFromJSON(json: any): MethodEnum {
|
||||||
return MethodEnumFromJSONTyped(json, false);
|
return MethodEnumFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,17 +54,17 @@ export interface NutritionInformation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof NutritionInformation
|
* @memberof NutritionInformation
|
||||||
*/
|
*/
|
||||||
source?: string;
|
source?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the NutritionInformation interface.
|
* Check if a given object implements the NutritionInformation interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfNutritionInformation(value: object): boolean {
|
export function instanceOfNutritionInformation(value: object): value is NutritionInformation {
|
||||||
if (!('carbohydrates' in value)) return false;
|
if (!('carbohydrates' in value) || value['carbohydrates'] === undefined) return false;
|
||||||
if (!('fats' in value)) return false;
|
if (!('fats' in value) || value['fats'] === undefined) return false;
|
||||||
if (!('proteins' in value)) return false;
|
if (!('proteins' in value) || value['proteins'] === undefined) return false;
|
||||||
if (!('calories' in value)) return false;
|
if (!('calories' in value) || value['calories'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,11 +107,11 @@ export interface OpenDataCategory {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataCategory interface.
|
* Check if a given object implements the OpenDataCategory interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataCategory(value: object): boolean {
|
export function instanceOfOpenDataCategory(value: object): value is OpenDataCategory {
|
||||||
if (!('version' in value)) return false;
|
if (!('version' in value) || value['version'] === undefined) return false;
|
||||||
if (!('slug' in value)) return false;
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ export function OpenDataCategoryFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataCategoryToJSON(value?: OpenDataCategory | null): any {
|
export function OpenDataCategoryToJSON(value?: Omit<OpenDataCategory, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { OpenDataFood } from './OpenDataFood';
|
|
||||||
import {
|
|
||||||
OpenDataFoodFromJSON,
|
|
||||||
OpenDataFoodFromJSONTyped,
|
|
||||||
OpenDataFoodToJSON,
|
|
||||||
} from './OpenDataFood';
|
|
||||||
import type { OpenDataUnit } from './OpenDataUnit';
|
import type { OpenDataUnit } from './OpenDataUnit';
|
||||||
import {
|
import {
|
||||||
OpenDataUnitFromJSON,
|
OpenDataUnitFromJSON,
|
||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
|
import type { OpenDataFood } from './OpenDataFood';
|
||||||
|
import {
|
||||||
|
OpenDataFoodFromJSON,
|
||||||
|
OpenDataFoodFromJSONTyped,
|
||||||
|
OpenDataFoodToJSON,
|
||||||
|
} from './OpenDataFood';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
@@ -109,16 +109,16 @@ export interface OpenDataConversion {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataConversion interface.
|
* Check if a given object implements the OpenDataConversion interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataConversion(value: object): boolean {
|
export function instanceOfOpenDataConversion(value: object): value is OpenDataConversion {
|
||||||
if (!('version' in value)) return false;
|
if (!('version' in value) || value['version'] === undefined) return false;
|
||||||
if (!('slug' in value)) return false;
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
||||||
if (!('food' in value)) return false;
|
if (!('food' in value) || value['food'] === undefined) return false;
|
||||||
if (!('baseAmount' in value)) return false;
|
if (!('baseAmount' in value) || value['baseAmount'] === undefined) return false;
|
||||||
if (!('baseUnit' in value)) return false;
|
if (!('baseUnit' in value) || value['baseUnit'] === undefined) return false;
|
||||||
if (!('convertedAmount' in value)) return false;
|
if (!('convertedAmount' in value) || value['convertedAmount'] === undefined) return false;
|
||||||
if (!('convertedUnit' in value)) return false;
|
if (!('convertedUnit' in value) || value['convertedUnit'] === undefined) return false;
|
||||||
if (!('source' in value)) return false;
|
if (!('source' in value) || value['source'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ export function OpenDataConversionFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataConversionToJSON(value?: OpenDataConversion | null): any {
|
export function OpenDataConversionToJSON(value?: Omit<OpenDataConversion, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,12 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { OpenDataCategory } from './OpenDataCategory';
|
|
||||||
import {
|
|
||||||
OpenDataCategoryFromJSON,
|
|
||||||
OpenDataCategoryFromJSONTyped,
|
|
||||||
OpenDataCategoryToJSON,
|
|
||||||
} from './OpenDataCategory';
|
|
||||||
import type { OpenDataFoodProperty } from './OpenDataFoodProperty';
|
import type { OpenDataFoodProperty } from './OpenDataFoodProperty';
|
||||||
import {
|
import {
|
||||||
OpenDataFoodPropertyFromJSON,
|
OpenDataFoodPropertyFromJSON,
|
||||||
@@ -31,6 +25,12 @@ import {
|
|||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
|
import type { OpenDataCategory } from './OpenDataCategory';
|
||||||
|
import {
|
||||||
|
OpenDataCategoryFromJSON,
|
||||||
|
OpenDataCategoryFromJSONTyped,
|
||||||
|
OpenDataCategoryToJSON,
|
||||||
|
} from './OpenDataCategory';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
@@ -119,25 +119,25 @@ export interface OpenDataFood {
|
|||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitMetric?: OpenDataUnit;
|
preferredUnitMetric?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitMetric?: OpenDataUnit;
|
preferredShoppingUnitMetric?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitImperial?: OpenDataUnit;
|
preferredUnitImperial?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof OpenDataFood
|
* @memberof OpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitImperial?: OpenDataUnit;
|
preferredShoppingUnitImperial?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<OpenDataFoodProperty>}
|
* @type {Array<OpenDataFoodProperty>}
|
||||||
@@ -185,16 +185,16 @@ export interface OpenDataFood {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataFood interface.
|
* Check if a given object implements the OpenDataFood interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataFood(value: object): boolean {
|
export function instanceOfOpenDataFood(value: object): value is OpenDataFood {
|
||||||
if (!('version' in value)) return false;
|
if (!('version' in value) || value['version'] === undefined) return false;
|
||||||
if (!('slug' in value)) return false;
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('pluralName' in value)) return false;
|
if (!('pluralName' in value) || value['pluralName'] === undefined) return false;
|
||||||
if (!('storeCategory' in value)) return false;
|
if (!('storeCategory' in value) || value['storeCategory'] === undefined) return false;
|
||||||
if (!('properties' in value)) return false;
|
if (!('properties' in value) || value['properties'] === undefined) return false;
|
||||||
if (!('propertiesFoodUnit' in value)) return false;
|
if (!('propertiesFoodUnit' in value) || value['propertiesFoodUnit'] === undefined) return false;
|
||||||
if (!('fdcId' in value)) return false;
|
if (!('fdcId' in value) || value['fdcId'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ export function OpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataFoodToJSON(value?: OpenDataFood | null): any {
|
export function OpenDataFoodToJSON(value?: Omit<OpenDataFood, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,9 +49,9 @@ export interface OpenDataFoodProperty {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataFoodProperty interface.
|
* Check if a given object implements the OpenDataFoodProperty interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataFoodProperty(value: object): boolean {
|
export function instanceOfOpenDataFoodProperty(value: object): value is OpenDataFoodProperty {
|
||||||
if (!('property' in value)) return false;
|
if (!('property' in value) || value['property'] === undefined) return false;
|
||||||
if (!('propertyAmount' in value)) return false;
|
if (!('propertyAmount' in value) || value['propertyAmount'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export interface OpenDataProperty {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof OpenDataProperty
|
* @memberof OpenDataProperty
|
||||||
*/
|
*/
|
||||||
fdcId?: number;
|
fdcId?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -113,11 +113,11 @@ export interface OpenDataProperty {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataProperty interface.
|
* Check if a given object implements the OpenDataProperty interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataProperty(value: object): boolean {
|
export function instanceOfOpenDataProperty(value: object): value is OpenDataProperty {
|
||||||
if (!('version' in value)) return false;
|
if (!('version' in value) || value['version'] === undefined) return false;
|
||||||
if (!('slug' in value)) return false;
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ export function OpenDataPropertyFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataPropertyToJSON(value?: OpenDataProperty | null): any {
|
export function OpenDataPropertyToJSON(value?: Omit<OpenDataProperty, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,12 +79,12 @@ export interface OpenDataStore {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataStore interface.
|
* Check if a given object implements the OpenDataStore interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataStore(value: object): boolean {
|
export function instanceOfOpenDataStore(value: object): value is OpenDataStore {
|
||||||
if (!('version' in value)) return false;
|
if (!('version' in value) || value['version'] === undefined) return false;
|
||||||
if (!('slug' in value)) return false;
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('categoryToStore' in value)) return false;
|
if (!('categoryToStore' in value) || value['categoryToStore'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@ export function OpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataStoreToJSON(value?: OpenDataStore | null): any {
|
export function OpenDataStoreToJSON(value?: Omit<OpenDataStore, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,9 +55,9 @@ export interface OpenDataStoreCategory {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataStoreCategory interface.
|
* Check if a given object implements the OpenDataStoreCategory interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataStoreCategory(value: object): boolean {
|
export function instanceOfOpenDataStoreCategory(value: object): value is OpenDataStoreCategory {
|
||||||
if (!('category' in value)) return false;
|
if (!('category' in value) || value['category'] === undefined) return false;
|
||||||
if (!('store' in value)) return false;
|
if (!('store' in value) || value['store'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,15 +128,17 @@ 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.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataUnit(value: object): boolean {
|
export function instanceOfOpenDataUnit(value: object): value is OpenDataUnit {
|
||||||
if (!('version' in value)) return false;
|
if (!('version' in value) || value['version'] === undefined) return false;
|
||||||
if (!('slug' in value)) return false;
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('type' in value)) return false;
|
if (!('type' in value) || value['type'] === undefined) return false;
|
||||||
if (!('createdBy' in value)) return false;
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,7 +164,7 @@ export function OpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDataUnitToJSON(value?: OpenDataUnit | null): any {
|
export function OpenDataUnitToJSON(value?: Omit<OpenDataUnit, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ export const OpenDataUnitTypeEnum = {
|
|||||||
export type OpenDataUnitTypeEnum = typeof OpenDataUnitTypeEnum[keyof typeof OpenDataUnitTypeEnum];
|
export type OpenDataUnitTypeEnum = typeof OpenDataUnitTypeEnum[keyof typeof OpenDataUnitTypeEnum];
|
||||||
|
|
||||||
|
|
||||||
|
export function instanceOfOpenDataUnitTypeEnum(value: any): boolean {
|
||||||
|
for (const key in OpenDataUnitTypeEnum) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(OpenDataUnitTypeEnum, key)) {
|
||||||
|
if (OpenDataUnitTypeEnum[key as keyof typeof OpenDataUnitTypeEnum] === value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
export function OpenDataUnitTypeEnumFromJSON(json: any): OpenDataUnitTypeEnum {
|
export function OpenDataUnitTypeEnumFromJSON(json: any): OpenDataUnitTypeEnum {
|
||||||
return OpenDataUnitTypeEnumFromJSONTyped(json, false);
|
return OpenDataUnitTypeEnumFromJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,9 +82,9 @@ export interface OpenDataVersion {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the OpenDataVersion interface.
|
* Check if a given object implements the OpenDataVersion interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfOpenDataVersion(value: object): boolean {
|
export function instanceOfOpenDataVersion(value: object): value is OpenDataVersion {
|
||||||
if (!('name' in value)) return false;
|
if (!('name' in value) || value['name'] === undefined) return false;
|
||||||
if (!('code' in value)) return false;
|
if (!('code' in value) || value['code'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedAutomationList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedAutomationList
|
* @memberof PaginatedAutomationList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedAutomationList
|
* @memberof PaginatedAutomationList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Automation>}
|
* @type {Array<Automation>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedAutomationList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedAutomationList interface.
|
* Check if a given object implements the PaginatedAutomationList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedAutomationList(value: object): boolean {
|
export function instanceOfPaginatedAutomationList(value: object): value is PaginatedAutomationList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedBookmarkletImportListList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedBookmarkletImportListList
|
* @memberof PaginatedBookmarkletImportListList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedBookmarkletImportListList
|
* @memberof PaginatedBookmarkletImportListList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<BookmarkletImportList>}
|
* @type {Array<BookmarkletImportList>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedBookmarkletImportListList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedBookmarkletImportListList interface.
|
* Check if a given object implements the PaginatedBookmarkletImportListList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedBookmarkletImportListList(value: object): boolean {
|
export function instanceOfPaginatedBookmarkletImportListList(value: object): value is PaginatedBookmarkletImportListList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedCookLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCookLogList
|
* @memberof PaginatedCookLogList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCookLogList
|
* @memberof PaginatedCookLogList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<CookLog>}
|
* @type {Array<CookLog>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedCookLogList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedCookLogList interface.
|
* Check if a given object implements the PaginatedCookLogList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedCookLogList(value: object): boolean {
|
export function instanceOfPaginatedCookLogList(value: object): value is PaginatedCookLogList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedCustomFilterList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCustomFilterList
|
* @memberof PaginatedCustomFilterList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedCustomFilterList
|
* @memberof PaginatedCustomFilterList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<CustomFilter>}
|
* @type {Array<CustomFilter>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedCustomFilterList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedCustomFilterList interface.
|
* Check if a given object implements the PaginatedCustomFilterList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedCustomFilterList(value: object): boolean {
|
export function instanceOfPaginatedCustomFilterList(value: object): value is PaginatedCustomFilterList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedExportLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedExportLogList
|
* @memberof PaginatedExportLogList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedExportLogList
|
* @memberof PaginatedExportLogList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ExportLog>}
|
* @type {Array<ExportLog>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedExportLogList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedExportLogList interface.
|
* Check if a given object implements the PaginatedExportLogList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedExportLogList(value: object): boolean {
|
export function instanceOfPaginatedExportLogList(value: object): value is PaginatedExportLogList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedFoodList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedFoodList
|
* @memberof PaginatedFoodList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedFoodList
|
* @memberof PaginatedFoodList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Food>}
|
* @type {Array<Food>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedFoodList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedFoodList interface.
|
* Check if a given object implements the PaginatedFoodList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedFoodList(value: object): boolean {
|
export function instanceOfPaginatedFoodList(value: object): value is PaginatedFoodList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedImportLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedImportLogList
|
* @memberof PaginatedImportLogList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedImportLogList
|
* @memberof PaginatedImportLogList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ImportLog>}
|
* @type {Array<ImportLog>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedImportLogList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedImportLogList interface.
|
* Check if a given object implements the PaginatedImportLogList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedImportLogList(value: object): boolean {
|
export function instanceOfPaginatedImportLogList(value: object): value is PaginatedImportLogList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedIngredientList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedIngredientList
|
* @memberof PaginatedIngredientList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedIngredientList
|
* @memberof PaginatedIngredientList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Ingredient>}
|
* @type {Array<Ingredient>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedIngredientList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedIngredientList interface.
|
* Check if a given object implements the PaginatedIngredientList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedIngredientList(value: object): boolean {
|
export function instanceOfPaginatedIngredientList(value: object): value is PaginatedIngredientList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedInviteLinkList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedInviteLinkList
|
* @memberof PaginatedInviteLinkList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedInviteLinkList
|
* @memberof PaginatedInviteLinkList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<InviteLink>}
|
* @type {Array<InviteLink>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedInviteLinkList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedInviteLinkList interface.
|
* Check if a given object implements the PaginatedInviteLinkList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedInviteLinkList(value: object): boolean {
|
export function instanceOfPaginatedInviteLinkList(value: object): value is PaginatedInviteLinkList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedKeywordList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedKeywordList
|
* @memberof PaginatedKeywordList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedKeywordList
|
* @memberof PaginatedKeywordList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Keyword>}
|
* @type {Array<Keyword>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedKeywordList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedKeywordList interface.
|
* Check if a given object implements the PaginatedKeywordList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedKeywordList(value: object): boolean {
|
export function instanceOfPaginatedKeywordList(value: object): value is PaginatedKeywordList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedMealPlanList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealPlanList
|
* @memberof PaginatedMealPlanList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealPlanList
|
* @memberof PaginatedMealPlanList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<MealPlan>}
|
* @type {Array<MealPlan>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedMealPlanList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedMealPlanList interface.
|
* Check if a given object implements the PaginatedMealPlanList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedMealPlanList(value: object): boolean {
|
export function instanceOfPaginatedMealPlanList(value: object): value is PaginatedMealPlanList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedMealTypeList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealTypeList
|
* @memberof PaginatedMealTypeList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedMealTypeList
|
* @memberof PaginatedMealTypeList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<MealType>}
|
* @type {Array<MealType>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedMealTypeList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedMealTypeList interface.
|
* Check if a given object implements the PaginatedMealTypeList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedMealTypeList(value: object): boolean {
|
export function instanceOfPaginatedMealTypeList(value: object): value is PaginatedMealTypeList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedPropertyList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyList
|
* @memberof PaginatedPropertyList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyList
|
* @memberof PaginatedPropertyList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedPropertyList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedPropertyList interface.
|
* Check if a given object implements the PaginatedPropertyList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedPropertyList(value: object): boolean {
|
export function instanceOfPaginatedPropertyList(value: object): value is PaginatedPropertyList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedPropertyTypeList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyTypeList
|
* @memberof PaginatedPropertyTypeList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedPropertyTypeList
|
* @memberof PaginatedPropertyTypeList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<PropertyType>}
|
* @type {Array<PropertyType>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedPropertyTypeList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedPropertyTypeList interface.
|
* Check if a given object implements the PaginatedPropertyTypeList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedPropertyTypeList(value: object): boolean {
|
export function instanceOfPaginatedPropertyTypeList(value: object): value is PaginatedPropertyTypeList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedRecipeBookEntryList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookEntryList
|
* @memberof PaginatedRecipeBookEntryList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookEntryList
|
* @memberof PaginatedRecipeBookEntryList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<RecipeBookEntry>}
|
* @type {Array<RecipeBookEntry>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedRecipeBookEntryList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedRecipeBookEntryList interface.
|
* Check if a given object implements the PaginatedRecipeBookEntryList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedRecipeBookEntryList(value: object): boolean {
|
export function instanceOfPaginatedRecipeBookEntryList(value: object): value is PaginatedRecipeBookEntryList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedRecipeBookList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookList
|
* @memberof PaginatedRecipeBookList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeBookList
|
* @memberof PaginatedRecipeBookList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<RecipeBook>}
|
* @type {Array<RecipeBook>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedRecipeBookList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedRecipeBookList interface.
|
* Check if a given object implements the PaginatedRecipeBookList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedRecipeBookList(value: object): boolean {
|
export function instanceOfPaginatedRecipeBookList(value: object): value is PaginatedRecipeBookList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedRecipeOverviewList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeOverviewList
|
* @memberof PaginatedRecipeOverviewList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedRecipeOverviewList
|
* @memberof PaginatedRecipeOverviewList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<RecipeOverview>}
|
* @type {Array<RecipeOverview>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedRecipeOverviewList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedRecipeOverviewList interface.
|
* Check if a given object implements the PaginatedRecipeOverviewList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedRecipeOverviewList(value: object): boolean {
|
export function instanceOfPaginatedRecipeOverviewList(value: object): value is PaginatedRecipeOverviewList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedShoppingListEntryList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListEntryList
|
* @memberof PaginatedShoppingListEntryList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListEntryList
|
* @memberof PaginatedShoppingListEntryList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ShoppingListEntry>}
|
* @type {Array<ShoppingListEntry>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedShoppingListEntryList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedShoppingListEntryList interface.
|
* Check if a given object implements the PaginatedShoppingListEntryList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedShoppingListEntryList(value: object): boolean {
|
export function instanceOfPaginatedShoppingListEntryList(value: object): value is PaginatedShoppingListEntryList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedShoppingListRecipeList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListRecipeList
|
* @memberof PaginatedShoppingListRecipeList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedShoppingListRecipeList
|
* @memberof PaginatedShoppingListRecipeList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ShoppingListRecipe>}
|
* @type {Array<ShoppingListRecipe>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedShoppingListRecipeList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedShoppingListRecipeList interface.
|
* Check if a given object implements the PaginatedShoppingListRecipeList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedShoppingListRecipeList(value: object): boolean {
|
export function instanceOfPaginatedShoppingListRecipeList(value: object): value is PaginatedShoppingListRecipeList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedSpaceList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSpaceList
|
* @memberof PaginatedSpaceList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSpaceList
|
* @memberof PaginatedSpaceList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Space>}
|
* @type {Array<Space>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedSpaceList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedSpaceList interface.
|
* Check if a given object implements the PaginatedSpaceList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedSpaceList(value: object): boolean {
|
export function instanceOfPaginatedSpaceList(value: object): value is PaginatedSpaceList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedStepList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedStepList
|
* @memberof PaginatedStepList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedStepList
|
* @memberof PaginatedStepList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Step>}
|
* @type {Array<Step>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedStepList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedStepList interface.
|
* Check if a given object implements the PaginatedStepList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedStepList(value: object): boolean {
|
export function instanceOfPaginatedStepList(value: object): value is PaginatedStepList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedSupermarketCategoryList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryList
|
* @memberof PaginatedSupermarketCategoryList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryList
|
* @memberof PaginatedSupermarketCategoryList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SupermarketCategory>}
|
* @type {Array<SupermarketCategory>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedSupermarketCategoryList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedSupermarketCategoryList interface.
|
* Check if a given object implements the PaginatedSupermarketCategoryList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedSupermarketCategoryList(value: object): boolean {
|
export function instanceOfPaginatedSupermarketCategoryList(value: object): value is PaginatedSupermarketCategoryList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedSupermarketCategoryRelationList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryRelationList
|
* @memberof PaginatedSupermarketCategoryRelationList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketCategoryRelationList
|
* @memberof PaginatedSupermarketCategoryRelationList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SupermarketCategoryRelation>}
|
* @type {Array<SupermarketCategoryRelation>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedSupermarketCategoryRelationList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedSupermarketCategoryRelationList interface.
|
* Check if a given object implements the PaginatedSupermarketCategoryRelationList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedSupermarketCategoryRelationList(value: object): boolean {
|
export function instanceOfPaginatedSupermarketCategoryRelationList(value: object): value is PaginatedSupermarketCategoryRelationList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedSupermarketList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketList
|
* @memberof PaginatedSupermarketList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSupermarketList
|
* @memberof PaginatedSupermarketList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Supermarket>}
|
* @type {Array<Supermarket>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedSupermarketList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedSupermarketList interface.
|
* Check if a given object implements the PaginatedSupermarketList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedSupermarketList(value: object): boolean {
|
export function instanceOfPaginatedSupermarketList(value: object): value is PaginatedSupermarketList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedSyncList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncList
|
* @memberof PaginatedSyncList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncList
|
* @memberof PaginatedSyncList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Sync>}
|
* @type {Array<Sync>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedSyncList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedSyncList interface.
|
* Check if a given object implements the PaginatedSyncList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedSyncList(value: object): boolean {
|
export function instanceOfPaginatedSyncList(value: object): value is PaginatedSyncList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedSyncLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncLogList
|
* @memberof PaginatedSyncLogList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedSyncLogList
|
* @memberof PaginatedSyncLogList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<SyncLog>}
|
* @type {Array<SyncLog>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedSyncLogList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedSyncLogList interface.
|
* Check if a given object implements the PaginatedSyncLogList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedSyncLogList(value: object): boolean {
|
export function instanceOfPaginatedSyncLogList(value: object): value is PaginatedSyncLogList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedUnitConversionList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitConversionList
|
* @memberof PaginatedUnitConversionList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitConversionList
|
* @memberof PaginatedUnitConversionList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<UnitConversion>}
|
* @type {Array<UnitConversion>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedUnitConversionList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedUnitConversionList interface.
|
* Check if a given object implements the PaginatedUnitConversionList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedUnitConversionList(value: object): boolean {
|
export function instanceOfPaginatedUnitConversionList(value: object): value is PaginatedUnitConversionList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedUnitList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitList
|
* @memberof PaginatedUnitList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUnitList
|
* @memberof PaginatedUnitList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Unit>}
|
* @type {Array<Unit>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedUnitList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedUnitList interface.
|
* Check if a given object implements the PaginatedUnitList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedUnitList(value: object): boolean {
|
export function instanceOfPaginatedUnitList(value: object): value is PaginatedUnitList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedUserFileList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserFileList
|
* @memberof PaginatedUserFileList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserFileList
|
* @memberof PaginatedUserFileList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<UserFile>}
|
* @type {Array<UserFile>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedUserFileList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedUserFileList interface.
|
* Check if a given object implements the PaginatedUserFileList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedUserFileList(value: object): boolean {
|
export function instanceOfPaginatedUserFileList(value: object): value is PaginatedUserFileList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedUserSpaceList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserSpaceList
|
* @memberof PaginatedUserSpaceList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedUserSpaceList
|
* @memberof PaginatedUserSpaceList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<UserSpace>}
|
* @type {Array<UserSpace>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedUserSpaceList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedUserSpaceList interface.
|
* Check if a given object implements the PaginatedUserSpaceList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedUserSpaceList(value: object): boolean {
|
export function instanceOfPaginatedUserSpaceList(value: object): value is PaginatedUserSpaceList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export interface PaginatedViewLogList {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedViewLogList
|
* @memberof PaginatedViewLogList
|
||||||
*/
|
*/
|
||||||
next?: string;
|
next?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PaginatedViewLogList
|
* @memberof PaginatedViewLogList
|
||||||
*/
|
*/
|
||||||
previous?: string;
|
previous?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<ViewLog>}
|
* @type {Array<ViewLog>}
|
||||||
@@ -55,9 +55,9 @@ export interface PaginatedViewLogList {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PaginatedViewLogList interface.
|
* Check if a given object implements the PaginatedViewLogList interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPaginatedViewLogList(value: object): boolean {
|
export function instanceOfPaginatedViewLogList(value: object): value is PaginatedViewLogList {
|
||||||
if (!('count' in value)) return false;
|
if (!('count' in value) || value['count'] === undefined) return false;
|
||||||
if (!('results' in value)) return false;
|
if (!('results' in value) || value['results'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,11 +48,11 @@ export interface ParsedIngredient {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the ParsedIngredient interface.
|
* Check if a given object implements the ParsedIngredient interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfParsedIngredient(value: object): boolean {
|
export function instanceOfParsedIngredient(value: object): value is ParsedIngredient {
|
||||||
if (!('amount' in value)) return false;
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
||||||
if (!('unit' in value)) return false;
|
if (!('unit' in value) || value['unit'] === undefined) return false;
|
||||||
if (!('food' in value)) return false;
|
if (!('food' in value) || value['food'] === undefined) return false;
|
||||||
if (!('note' in value)) return false;
|
if (!('note' in value) || value['note'] === undefined) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export interface PatchedAccessToken {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedAccessToken interface.
|
* Check if a given object implements the PatchedAccessToken interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedAccessToken(value: object): boolean {
|
export function instanceOfPatchedAccessToken(value: object): value is PatchedAccessToken {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ export function PatchedAccessTokenFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedAccessTokenToJSON(value?: PatchedAccessToken | null): any {
|
export function PatchedAccessTokenToJSON(value?: Omit<PatchedAccessToken, 'token'|'created'|'updated'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,25 +49,25 @@ export interface PatchedAutomation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
param1?: string;
|
param1?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
param2?: string;
|
param2?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedAutomation
|
* @memberof PatchedAutomation
|
||||||
*/
|
*/
|
||||||
param3?: string;
|
param3?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -88,10 +88,12 @@ 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.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedAutomation(value: object): boolean {
|
export function instanceOfPatchedAutomation(value: object): value is PatchedAutomation {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +120,7 @@ export function PatchedAutomationFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedAutomationToJSON(value?: PatchedAutomation | null): any {
|
export function PatchedAutomationToJSON(value?: Omit<PatchedAutomation, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export interface PatchedBookmarkletImport {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedBookmarkletImport
|
* @memberof PatchedBookmarkletImport
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -54,7 +54,7 @@ export interface PatchedBookmarkletImport {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedBookmarkletImport interface.
|
* Check if a given object implements the PatchedBookmarkletImport interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedBookmarkletImport(value: object): boolean {
|
export function instanceOfPatchedBookmarkletImport(value: object): value is PatchedBookmarkletImport {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ export function PatchedBookmarkletImportFromJSONTyped(json: any, ignoreDiscrimin
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedBookmarkletImportToJSON(value?: PatchedBookmarkletImport | null): any {
|
export function PatchedBookmarkletImportToJSON(value?: Omit<PatchedBookmarkletImport, 'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,19 +36,19 @@ export interface PatchedConnectorConfigConfig {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedConnectorConfigConfig
|
* @memberof PatchedConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedConnectorConfigConfig
|
* @memberof PatchedConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
token?: string;
|
token?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedConnectorConfigConfig
|
* @memberof PatchedConnectorConfigConfig
|
||||||
*/
|
*/
|
||||||
todoEntity?: string;
|
todoEntity?: string | null;
|
||||||
/**
|
/**
|
||||||
* Is Connector Enabled
|
* Is Connector Enabled
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -90,7 +90,7 @@ export interface PatchedConnectorConfigConfig {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedConnectorConfigConfig interface.
|
* Check if a given object implements the PatchedConnectorConfigConfig interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedConnectorConfigConfig(value: object): boolean {
|
export function instanceOfPatchedConnectorConfigConfig(value: object): value is PatchedConnectorConfigConfig {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ export function PatchedConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscr
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedConnectorConfigConfigToJSON(value?: PatchedConnectorConfigConfig | null): any {
|
export function PatchedConnectorConfigConfigToJSON(value?: Omit<PatchedConnectorConfigConfig, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,19 +43,19 @@ export interface PatchedCookLog {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedCookLog
|
* @memberof PatchedCookLog
|
||||||
*/
|
*/
|
||||||
servings?: number;
|
servings?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedCookLog
|
* @memberof PatchedCookLog
|
||||||
*/
|
*/
|
||||||
rating?: number;
|
rating?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedCookLog
|
* @memberof PatchedCookLog
|
||||||
*/
|
*/
|
||||||
comment?: string;
|
comment?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {User}
|
* @type {User}
|
||||||
@@ -79,7 +79,7 @@ export interface PatchedCookLog {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedCookLog interface.
|
* Check if a given object implements the PatchedCookLog interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedCookLog(value: object): boolean {
|
export function instanceOfPatchedCookLog(value: object): value is PatchedCookLog {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ export function PatchedCookLogFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedCookLogToJSON(value?: PatchedCookLog | null): any {
|
export function PatchedCookLogToJSON(value?: Omit<PatchedCookLog, 'created_by'|'updated_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export interface PatchedCustomFilter {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedCustomFilter interface.
|
* Check if a given object implements the PatchedCustomFilter interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedCustomFilter(value: object): boolean {
|
export function instanceOfPatchedCustomFilter(value: object): value is PatchedCustomFilter {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ export function PatchedCustomFilterFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedCustomFilterToJSON(value?: PatchedCustomFilter | null): any {
|
export function PatchedCustomFilterToJSON(value?: Omit<PatchedCustomFilter, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export interface PatchedExportLog {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedExportLog interface.
|
* Check if a given object implements the PatchedExportLog interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedExportLog(value: object): boolean {
|
export function instanceOfPatchedExportLog(value: object): value is PatchedExportLog {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ export function PatchedExportLogFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedExportLogToJSON(value?: PatchedExportLog | null): any {
|
export function PatchedExportLogToJSON(value?: Omit<PatchedExportLog, 'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,30 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { FoodInheritField } from './FoodInheritField';
|
|
||||||
import {
|
|
||||||
FoodInheritFieldFromJSON,
|
|
||||||
FoodInheritFieldFromJSONTyped,
|
|
||||||
FoodInheritFieldToJSON,
|
|
||||||
} from './FoodInheritField';
|
|
||||||
import type { FoodSimple } from './FoodSimple';
|
|
||||||
import {
|
|
||||||
FoodSimpleFromJSON,
|
|
||||||
FoodSimpleFromJSONTyped,
|
|
||||||
FoodSimpleToJSON,
|
|
||||||
} from './FoodSimple';
|
|
||||||
import type { Property } from './Property';
|
|
||||||
import {
|
|
||||||
PropertyFromJSON,
|
|
||||||
PropertyFromJSONTyped,
|
|
||||||
PropertyToJSON,
|
|
||||||
} from './Property';
|
|
||||||
import type { RecipeSimple } from './RecipeSimple';
|
|
||||||
import {
|
|
||||||
RecipeSimpleFromJSON,
|
|
||||||
RecipeSimpleFromJSONTyped,
|
|
||||||
RecipeSimpleToJSON,
|
|
||||||
} from './RecipeSimple';
|
|
||||||
import type { SupermarketCategory } from './SupermarketCategory';
|
import type { SupermarketCategory } from './SupermarketCategory';
|
||||||
import {
|
import {
|
||||||
SupermarketCategoryFromJSON,
|
SupermarketCategoryFromJSON,
|
||||||
@@ -49,6 +25,30 @@ import {
|
|||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
|
import type { Property } from './Property';
|
||||||
|
import {
|
||||||
|
PropertyFromJSON,
|
||||||
|
PropertyFromJSONTyped,
|
||||||
|
PropertyToJSON,
|
||||||
|
} from './Property';
|
||||||
|
import type { FoodInheritField } from './FoodInheritField';
|
||||||
|
import {
|
||||||
|
FoodInheritFieldFromJSON,
|
||||||
|
FoodInheritFieldFromJSONTyped,
|
||||||
|
FoodInheritFieldToJSON,
|
||||||
|
} from './FoodInheritField';
|
||||||
|
import type { FoodSimple } from './FoodSimple';
|
||||||
|
import {
|
||||||
|
FoodSimpleFromJSON,
|
||||||
|
FoodSimpleFromJSONTyped,
|
||||||
|
FoodSimpleToJSON,
|
||||||
|
} from './FoodSimple';
|
||||||
|
import type { RecipeSimple } from './RecipeSimple';
|
||||||
|
import {
|
||||||
|
RecipeSimpleFromJSON,
|
||||||
|
RecipeSimpleFromJSONTyped,
|
||||||
|
RecipeSimpleToJSON,
|
||||||
|
} from './RecipeSimple';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves `UniqueValidator`'s from the validation stage to the save stage.
|
* Moves `UniqueValidator`'s from the validation stage to the save stage.
|
||||||
@@ -107,7 +107,7 @@ export interface PatchedFood {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
pluralName?: string;
|
pluralName?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -125,19 +125,19 @@ export interface PatchedFood {
|
|||||||
* @type {RecipeSimple}
|
* @type {RecipeSimple}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeSimple;
|
recipe?: RecipeSimple | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
properties?: Array<Property>;
|
properties?: Array<Property> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -149,25 +149,25 @@ export interface PatchedFood {
|
|||||||
* @type {Unit}
|
* @type {Unit}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
propertiesFoodUnit?: Unit;
|
propertiesFoodUnit?: Unit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
fdcId?: number;
|
fdcId?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
foodOnhand?: boolean;
|
foodOnhand?: boolean | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {SupermarketCategory}
|
* @type {SupermarketCategory}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
supermarketCategory?: SupermarketCategory;
|
supermarketCategory?: SupermarketCategory | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -185,7 +185,7 @@ export interface PatchedFood {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
inheritFields?: Array<FoodInheritField>;
|
inheritFields?: Array<FoodInheritField> | null;
|
||||||
/**
|
/**
|
||||||
* 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'.
|
||||||
@@ -204,7 +204,7 @@ export interface PatchedFood {
|
|||||||
* @type {Array<FoodSimple>}
|
* @type {Array<FoodSimple>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
substitute?: Array<FoodSimple>;
|
substitute?: Array<FoodSimple> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -228,19 +228,19 @@ export interface PatchedFood {
|
|||||||
* @type {Array<FoodInheritField>}
|
* @type {Array<FoodInheritField>}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
childInheritFields?: Array<FoodInheritField>;
|
childInheritFields?: Array<FoodInheritField> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedFood
|
* @memberof PatchedFood
|
||||||
*/
|
*/
|
||||||
openDataSlug?: string;
|
openDataSlug?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedFood interface.
|
* Check if a given object implements the PatchedFood interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedFood(value: object): boolean {
|
export function instanceOfPatchedFood(value: object): value is PatchedFood {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ export function PatchedFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedFoodToJSON(value?: PatchedFood | null): any {
|
export function PatchedFoodToJSON(value?: Omit<PatchedFood, 'shopping'|'parent'|'numchild'|'full_name'|'substitute_onhand'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export interface PatchedImportLog {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedImportLog interface.
|
* Check if a given object implements the PatchedImportLog interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedImportLog(value: object): boolean {
|
export function instanceOfPatchedImportLog(value: object): value is PatchedImportLog {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ export function PatchedImportLogFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedImportLogToJSON(value?: PatchedImportLog | null): any {
|
export function PatchedImportLogToJSON(value?: Omit<PatchedImportLog, 'keyword'|'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { Food } from './Food';
|
|
||||||
import {
|
|
||||||
FoodFromJSON,
|
|
||||||
FoodFromJSONTyped,
|
|
||||||
FoodToJSON,
|
|
||||||
} from './Food';
|
|
||||||
import type { Unit } from './Unit';
|
import type { Unit } from './Unit';
|
||||||
import {
|
import {
|
||||||
UnitFromJSON,
|
UnitFromJSON,
|
||||||
UnitFromJSONTyped,
|
UnitFromJSONTyped,
|
||||||
UnitToJSON,
|
UnitToJSON,
|
||||||
} from './Unit';
|
} from './Unit';
|
||||||
|
import type { Food } from './Food';
|
||||||
|
import {
|
||||||
|
FoodFromJSON,
|
||||||
|
FoodFromJSONTyped,
|
||||||
|
FoodToJSON,
|
||||||
|
} from './Food';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds nested create feature
|
* Adds nested create feature
|
||||||
@@ -43,13 +43,13 @@ export interface PatchedIngredient {
|
|||||||
* @type {Food}
|
* @type {Food}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
food?: Food;
|
food?: Food | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Unit}
|
* @type {Unit}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
unit?: Unit;
|
unit?: Unit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -67,7 +67,7 @@ export interface PatchedIngredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
note?: string;
|
note?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -91,7 +91,7 @@ export interface PatchedIngredient {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedIngredient
|
* @memberof PatchedIngredient
|
||||||
*/
|
*/
|
||||||
originalText?: string;
|
originalText?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<any>}
|
* @type {Array<any>}
|
||||||
@@ -115,7 +115,7 @@ export interface PatchedIngredient {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedIngredient interface.
|
* Check if a given object implements the PatchedIngredient interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedIngredient(value: object): boolean {
|
export function instanceOfPatchedIngredient(value: object): value is PatchedIngredient {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ export function PatchedIngredientFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedIngredientToJSON(value?: PatchedIngredient | null): any {
|
export function PatchedIngredientToJSON(value?: Omit<PatchedIngredient, 'conversions'|'used_in_recipes'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export interface PatchedInviteLink {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedInviteLink
|
* @memberof PatchedInviteLink
|
||||||
*/
|
*/
|
||||||
usedBy?: number;
|
usedBy?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -73,7 +73,7 @@ export interface PatchedInviteLink {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedInviteLink
|
* @memberof PatchedInviteLink
|
||||||
*/
|
*/
|
||||||
internalNote?: string;
|
internalNote?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -91,7 +91,7 @@ export interface PatchedInviteLink {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedInviteLink interface.
|
* Check if a given object implements the PatchedInviteLink interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedInviteLink(value: object): boolean {
|
export function instanceOfPatchedInviteLink(value: object): value is PatchedInviteLink {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ export function PatchedInviteLinkFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedInviteLinkToJSON(value?: PatchedInviteLink | null): any {
|
export function PatchedInviteLinkToJSON(value?: Omit<PatchedInviteLink, 'uuid'|'created_by'|'created_at'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export interface PatchedKeyword {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedKeyword interface.
|
* Check if a given object implements the PatchedKeyword interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedKeyword(value: object): boolean {
|
export function instanceOfPatchedKeyword(value: object): value is PatchedKeyword {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ export function PatchedKeywordFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedKeywordToJSON(value?: PatchedKeyword | null): any {
|
export function PatchedKeywordToJSON(value?: Omit<PatchedKeyword, 'label'|'parent'|'numchild'|'created_at'|'updated_at'|'full_name'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,18 +19,18 @@ import {
|
|||||||
MealTypeFromJSONTyped,
|
MealTypeFromJSONTyped,
|
||||||
MealTypeToJSON,
|
MealTypeToJSON,
|
||||||
} from './MealType';
|
} from './MealType';
|
||||||
import type { RecipeOverview } from './RecipeOverview';
|
|
||||||
import {
|
|
||||||
RecipeOverviewFromJSON,
|
|
||||||
RecipeOverviewFromJSONTyped,
|
|
||||||
RecipeOverviewToJSON,
|
|
||||||
} from './RecipeOverview';
|
|
||||||
import type { User } from './User';
|
import type { User } from './User';
|
||||||
import {
|
import {
|
||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
} from './User';
|
} from './User';
|
||||||
|
import type { RecipeOverview } from './RecipeOverview';
|
||||||
|
import {
|
||||||
|
RecipeOverviewFromJSON,
|
||||||
|
RecipeOverviewFromJSONTyped,
|
||||||
|
RecipeOverviewToJSON,
|
||||||
|
} from './RecipeOverview';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds nested create feature
|
* Adds nested create feature
|
||||||
@@ -55,7 +55,7 @@ export interface PatchedMealPlan {
|
|||||||
* @type {RecipeOverview}
|
* @type {RecipeOverview}
|
||||||
* @memberof PatchedMealPlan
|
* @memberof PatchedMealPlan
|
||||||
*/
|
*/
|
||||||
recipe?: RecipeOverview;
|
recipe?: RecipeOverview | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -103,7 +103,7 @@ export interface PatchedMealPlan {
|
|||||||
* @type {Array<User>}
|
* @type {Array<User>}
|
||||||
* @memberof PatchedMealPlan
|
* @memberof PatchedMealPlan
|
||||||
*/
|
*/
|
||||||
shared?: Array<User>;
|
shared?: Array<User> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -127,7 +127,7 @@ export interface PatchedMealPlan {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedMealPlan interface.
|
* Check if a given object implements the PatchedMealPlan interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedMealPlan(value: object): boolean {
|
export function instanceOfPatchedMealPlan(value: object): value is PatchedMealPlan {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ export function PatchedMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedMealPlanToJSON(value?: PatchedMealPlan | null): any {
|
export function PatchedMealPlanToJSON(value?: Omit<PatchedMealPlan, 'note_markdown'|'created_by'|'recipe_name'|'meal_type_name'|'shopping'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,13 +42,13 @@ export interface PatchedMealType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedMealType
|
* @memberof PatchedMealType
|
||||||
*/
|
*/
|
||||||
time?: string;
|
time?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedMealType
|
* @memberof PatchedMealType
|
||||||
*/
|
*/
|
||||||
color?: string;
|
color?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -66,7 +66,7 @@ export interface PatchedMealType {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedMealType interface.
|
* Check if a given object implements the PatchedMealType interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedMealType(value: object): boolean {
|
export function instanceOfPatchedMealType(value: object): value is PatchedMealType {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ export function PatchedMealTypeFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedMealTypeToJSON(value?: PatchedMealType | null): any {
|
export function PatchedMealTypeToJSON(value?: Omit<PatchedMealType, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export interface PatchedOpenDataCategory {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataCategory interface.
|
* Check if a given object implements the PatchedOpenDataCategory interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataCategory(value: object): boolean {
|
export function instanceOfPatchedOpenDataCategory(value: object): value is PatchedOpenDataCategory {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ export function PatchedOpenDataCategoryFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataCategoryToJSON(value?: PatchedOpenDataCategory | null): any {
|
export function PatchedOpenDataCategoryToJSON(value?: Omit<PatchedOpenDataCategory, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,18 +13,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { OpenDataFood } from './OpenDataFood';
|
|
||||||
import {
|
|
||||||
OpenDataFoodFromJSON,
|
|
||||||
OpenDataFoodFromJSONTyped,
|
|
||||||
OpenDataFoodToJSON,
|
|
||||||
} from './OpenDataFood';
|
|
||||||
import type { OpenDataUnit } from './OpenDataUnit';
|
import type { OpenDataUnit } from './OpenDataUnit';
|
||||||
import {
|
import {
|
||||||
OpenDataUnitFromJSON,
|
OpenDataUnitFromJSON,
|
||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
|
import type { OpenDataFood } from './OpenDataFood';
|
||||||
|
import {
|
||||||
|
OpenDataFoodFromJSON,
|
||||||
|
OpenDataFoodFromJSONTyped,
|
||||||
|
OpenDataFoodToJSON,
|
||||||
|
} from './OpenDataFood';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
@@ -109,7 +109,7 @@ export interface PatchedOpenDataConversion {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataConversion interface.
|
* Check if a given object implements the PatchedOpenDataConversion interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataConversion(value: object): boolean {
|
export function instanceOfPatchedOpenDataConversion(value: object): value is PatchedOpenDataConversion {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ export function PatchedOpenDataConversionFromJSONTyped(json: any, ignoreDiscrimi
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataConversionToJSON(value?: PatchedOpenDataConversion | null): any {
|
export function PatchedOpenDataConversionToJSON(value?: Omit<PatchedOpenDataConversion, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,12 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { OpenDataCategory } from './OpenDataCategory';
|
|
||||||
import {
|
|
||||||
OpenDataCategoryFromJSON,
|
|
||||||
OpenDataCategoryFromJSONTyped,
|
|
||||||
OpenDataCategoryToJSON,
|
|
||||||
} from './OpenDataCategory';
|
|
||||||
import type { OpenDataFoodProperty } from './OpenDataFoodProperty';
|
import type { OpenDataFoodProperty } from './OpenDataFoodProperty';
|
||||||
import {
|
import {
|
||||||
OpenDataFoodPropertyFromJSON,
|
OpenDataFoodPropertyFromJSON,
|
||||||
@@ -31,6 +25,12 @@ import {
|
|||||||
OpenDataUnitFromJSONTyped,
|
OpenDataUnitFromJSONTyped,
|
||||||
OpenDataUnitToJSON,
|
OpenDataUnitToJSON,
|
||||||
} from './OpenDataUnit';
|
} from './OpenDataUnit';
|
||||||
|
import type { OpenDataCategory } from './OpenDataCategory';
|
||||||
|
import {
|
||||||
|
OpenDataCategoryFromJSON,
|
||||||
|
OpenDataCategoryFromJSONTyped,
|
||||||
|
OpenDataCategoryToJSON,
|
||||||
|
} from './OpenDataCategory';
|
||||||
import type { OpenDataVersion } from './OpenDataVersion';
|
import type { OpenDataVersion } from './OpenDataVersion';
|
||||||
import {
|
import {
|
||||||
OpenDataVersionFromJSON,
|
OpenDataVersionFromJSON,
|
||||||
@@ -119,31 +119,31 @@ export interface PatchedOpenDataFood {
|
|||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitMetric?: OpenDataUnit;
|
preferredUnitMetric?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitMetric?: OpenDataUnit;
|
preferredShoppingUnitMetric?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredUnitImperial?: OpenDataUnit;
|
preferredUnitImperial?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {OpenDataUnit}
|
* @type {OpenDataUnit}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
preferredShoppingUnitImperial?: OpenDataUnit;
|
preferredShoppingUnitImperial?: OpenDataUnit | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<OpenDataFoodProperty>}
|
* @type {Array<OpenDataFoodProperty>}
|
||||||
* @memberof PatchedOpenDataFood
|
* @memberof PatchedOpenDataFood
|
||||||
*/
|
*/
|
||||||
properties?: Array<OpenDataFoodProperty>;
|
properties?: Array<OpenDataFoodProperty> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -185,7 +185,7 @@ export interface PatchedOpenDataFood {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataFood interface.
|
* Check if a given object implements the PatchedOpenDataFood interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataFood(value: object): boolean {
|
export function instanceOfPatchedOpenDataFood(value: object): value is PatchedOpenDataFood {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ export function PatchedOpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataFoodToJSON(value?: PatchedOpenDataFood | null): any {
|
export function PatchedOpenDataFoodToJSON(value?: Omit<PatchedOpenDataFood, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export interface PatchedOpenDataProperty {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedOpenDataProperty
|
* @memberof PatchedOpenDataProperty
|
||||||
*/
|
*/
|
||||||
fdcId?: number;
|
fdcId?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -113,7 +113,7 @@ export interface PatchedOpenDataProperty {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataProperty interface.
|
* Check if a given object implements the PatchedOpenDataProperty interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataProperty(value: object): boolean {
|
export function instanceOfPatchedOpenDataProperty(value: object): value is PatchedOpenDataProperty {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ export function PatchedOpenDataPropertyFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataPropertyToJSON(value?: PatchedOpenDataProperty | null): any {
|
export function PatchedOpenDataPropertyToJSON(value?: Omit<PatchedOpenDataProperty, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export interface PatchedOpenDataStore {
|
|||||||
* @type {Array<OpenDataStoreCategory>}
|
* @type {Array<OpenDataStoreCategory>}
|
||||||
* @memberof PatchedOpenDataStore
|
* @memberof PatchedOpenDataStore
|
||||||
*/
|
*/
|
||||||
categoryToStore?: Array<OpenDataStoreCategory>;
|
categoryToStore?: Array<OpenDataStoreCategory> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -79,7 +79,7 @@ export interface PatchedOpenDataStore {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataStore interface.
|
* Check if a given object implements the PatchedOpenDataStore interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataStore(value: object): boolean {
|
export function instanceOfPatchedOpenDataStore(value: object): value is PatchedOpenDataStore {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ export function PatchedOpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataStoreToJSON(value?: PatchedOpenDataStore | null): any {
|
export function PatchedOpenDataStoreToJSON(value?: Omit<PatchedOpenDataStore, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,10 +128,12 @@ 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.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataUnit(value: object): boolean {
|
export function instanceOfPatchedOpenDataUnit(value: object): value is PatchedOpenDataUnit {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,7 +159,7 @@ export function PatchedOpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedOpenDataUnitToJSON(value?: PatchedOpenDataUnit | null): any {
|
export function PatchedOpenDataUnitToJSON(value?: Omit<PatchedOpenDataUnit, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export interface PatchedOpenDataVersion {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedOpenDataVersion interface.
|
* Check if a given object implements the PatchedOpenDataVersion interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedOpenDataVersion(value: object): boolean {
|
export function instanceOfPatchedOpenDataVersion(value: object): value is PatchedOpenDataVersion {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export interface PatchedProperty {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedProperty
|
* @memberof PatchedProperty
|
||||||
*/
|
*/
|
||||||
propertyAmount?: number;
|
propertyAmount?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {PropertyType}
|
* @type {PropertyType}
|
||||||
@@ -83,7 +83,7 @@ export interface PatchedProperty {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedProperty interface.
|
* Check if a given object implements the PatchedProperty interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedProperty(value: object): boolean {
|
export function instanceOfPatchedProperty(value: object): value is PatchedProperty {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,13 +36,13 @@ export interface PatchedPropertyType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
unit?: string;
|
unit?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -54,19 +54,19 @@ export interface PatchedPropertyType {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
openDataSlug?: string;
|
openDataSlug?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedPropertyType
|
* @memberof PatchedPropertyType
|
||||||
*/
|
*/
|
||||||
fdcId?: number;
|
fdcId?: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedPropertyType interface.
|
* Check if a given object implements the PatchedPropertyType interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedPropertyType(value: object): boolean {
|
export function instanceOfPatchedPropertyType(value: object): value is PatchedPropertyType {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,36 +13,36 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from '../runtime';
|
import { mapValues } from '../runtime';
|
||||||
import type { Keyword } from './Keyword';
|
|
||||||
import {
|
|
||||||
KeywordFromJSON,
|
|
||||||
KeywordFromJSONTyped,
|
|
||||||
KeywordToJSON,
|
|
||||||
} from './Keyword';
|
|
||||||
import type { NutritionInformation } from './NutritionInformation';
|
|
||||||
import {
|
|
||||||
NutritionInformationFromJSON,
|
|
||||||
NutritionInformationFromJSONTyped,
|
|
||||||
NutritionInformationToJSON,
|
|
||||||
} from './NutritionInformation';
|
|
||||||
import type { Property } from './Property';
|
|
||||||
import {
|
|
||||||
PropertyFromJSON,
|
|
||||||
PropertyFromJSONTyped,
|
|
||||||
PropertyToJSON,
|
|
||||||
} from './Property';
|
|
||||||
import type { Step } from './Step';
|
|
||||||
import {
|
|
||||||
StepFromJSON,
|
|
||||||
StepFromJSONTyped,
|
|
||||||
StepToJSON,
|
|
||||||
} from './Step';
|
|
||||||
import type { User } from './User';
|
import type { User } from './User';
|
||||||
import {
|
import {
|
||||||
UserFromJSON,
|
UserFromJSON,
|
||||||
UserFromJSONTyped,
|
UserFromJSONTyped,
|
||||||
UserToJSON,
|
UserToJSON,
|
||||||
} from './User';
|
} from './User';
|
||||||
|
import type { Keyword } from './Keyword';
|
||||||
|
import {
|
||||||
|
KeywordFromJSON,
|
||||||
|
KeywordFromJSONTyped,
|
||||||
|
KeywordToJSON,
|
||||||
|
} from './Keyword';
|
||||||
|
import type { Step } from './Step';
|
||||||
|
import {
|
||||||
|
StepFromJSON,
|
||||||
|
StepFromJSONTyped,
|
||||||
|
StepToJSON,
|
||||||
|
} from './Step';
|
||||||
|
import type { Property } from './Property';
|
||||||
|
import {
|
||||||
|
PropertyFromJSON,
|
||||||
|
PropertyFromJSONTyped,
|
||||||
|
PropertyToJSON,
|
||||||
|
} from './Property';
|
||||||
|
import type { NutritionInformation } from './NutritionInformation';
|
||||||
|
import {
|
||||||
|
NutritionInformationFromJSON,
|
||||||
|
NutritionInformationFromJSONTyped,
|
||||||
|
NutritionInformationToJSON,
|
||||||
|
} from './NutritionInformation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds nested create feature
|
* Adds nested create feature
|
||||||
@@ -67,13 +67,13 @@ export interface PatchedRecipe {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly image?: string;
|
readonly image?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Keyword>}
|
* @type {Array<Keyword>}
|
||||||
@@ -121,7 +121,7 @@ export interface PatchedRecipe {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
sourceUrl?: string;
|
sourceUrl?: string | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -139,7 +139,7 @@ export interface PatchedRecipe {
|
|||||||
* @type {NutritionInformation}
|
* @type {NutritionInformation}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
nutrition?: NutritionInformation;
|
nutrition?: NutritionInformation | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Array<Property>}
|
* @type {Array<Property>}
|
||||||
@@ -151,7 +151,7 @@ export interface PatchedRecipe {
|
|||||||
* @type {any}
|
* @type {any}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly foodProperties?: any;
|
readonly foodProperties?: any | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -175,13 +175,13 @@ export interface PatchedRecipe {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly rating?: number;
|
readonly rating?: number | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
* @memberof PatchedRecipe
|
* @memberof PatchedRecipe
|
||||||
*/
|
*/
|
||||||
readonly lastCooked?: Date;
|
readonly lastCooked?: Date | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -199,7 +199,7 @@ export interface PatchedRecipe {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedRecipe interface.
|
* Check if a given object implements the PatchedRecipe interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedRecipe(value: object): boolean {
|
export function instanceOfPatchedRecipe(value: object): value is PatchedRecipe {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,7 +240,7 @@ export function PatchedRecipeFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedRecipeToJSON(value?: PatchedRecipe | null): any {
|
export function PatchedRecipeToJSON(value?: Omit<PatchedRecipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export interface PatchedRecipeBook {
|
|||||||
* @type {CustomFilter}
|
* @type {CustomFilter}
|
||||||
* @memberof PatchedRecipeBook
|
* @memberof PatchedRecipeBook
|
||||||
*/
|
*/
|
||||||
filter?: CustomFilter;
|
filter?: CustomFilter | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -79,7 +79,7 @@ export interface PatchedRecipeBook {
|
|||||||
/**
|
/**
|
||||||
* Check if a given object implements the PatchedRecipeBook interface.
|
* Check if a given object implements the PatchedRecipeBook interface.
|
||||||
*/
|
*/
|
||||||
export function instanceOfPatchedRecipeBook(value: object): boolean {
|
export function instanceOfPatchedRecipeBook(value: object): value is PatchedRecipeBook {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ export function PatchedRecipeBookFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PatchedRecipeBookToJSON(value?: PatchedRecipeBook | null): any {
|
export function PatchedRecipeBookToJSON(value?: Omit<PatchedRecipeBook, 'created_by'> | null): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user