mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
regenerate API
This commit is contained in:
@@ -1,139 +0,0 @@
|
||||
apis/ApiApi.ts
|
||||
apis/ApiImportOpenDataApi.ts
|
||||
apis/ApiTokenAuthApi.ts
|
||||
apis/index.ts
|
||||
index.ts
|
||||
models/AccessToken.ts
|
||||
models/AuthToken.ts
|
||||
models/AutoMealPlan.ts
|
||||
models/Automation.ts
|
||||
models/BookmarkletImport.ts
|
||||
models/BookmarkletImportList.ts
|
||||
models/ConnectorConfigConfig.ts
|
||||
models/CookLog.ts
|
||||
models/CustomFilter.ts
|
||||
models/DefaultPageEnum.ts
|
||||
models/DeleteEnum.ts
|
||||
models/ExportLog.ts
|
||||
models/Food.ts
|
||||
models/FoodInheritField.ts
|
||||
models/FoodPropertiesFoodUnit.ts
|
||||
models/FoodRecipe.ts
|
||||
models/FoodShoppingUpdate.ts
|
||||
models/FoodSimple.ts
|
||||
models/FoodSupermarketCategory.ts
|
||||
models/Group.ts
|
||||
models/ImportLog.ts
|
||||
models/Ingredient.ts
|
||||
models/IngredientFood.ts
|
||||
models/InviteLink.ts
|
||||
models/Keyword.ts
|
||||
models/KeywordLabel.ts
|
||||
models/MealPlan.ts
|
||||
models/MealPlanRecipe.ts
|
||||
models/MealType.ts
|
||||
models/MethodEnum.ts
|
||||
models/NutritionInformation.ts
|
||||
models/PaginatedAutomationList.ts
|
||||
models/PaginatedBookmarkletImportListList.ts
|
||||
models/PaginatedCookLogList.ts
|
||||
models/PaginatedCustomFilterList.ts
|
||||
models/PaginatedExportLogList.ts
|
||||
models/PaginatedFoodList.ts
|
||||
models/PaginatedImportLogList.ts
|
||||
models/PaginatedIngredientList.ts
|
||||
models/PaginatedInviteLinkList.ts
|
||||
models/PaginatedKeywordList.ts
|
||||
models/PaginatedMealPlanList.ts
|
||||
models/PaginatedMealTypeList.ts
|
||||
models/PaginatedPropertyList.ts
|
||||
models/PaginatedPropertyTypeList.ts
|
||||
models/PaginatedRecipeBookEntryList.ts
|
||||
models/PaginatedRecipeBookList.ts
|
||||
models/PaginatedRecipeOverviewList.ts
|
||||
models/PaginatedShoppingListEntryList.ts
|
||||
models/PaginatedShoppingListRecipeList.ts
|
||||
models/PaginatedStepList.ts
|
||||
models/PaginatedSupermarketCategoryList.ts
|
||||
models/PaginatedSupermarketCategoryRelationList.ts
|
||||
models/PaginatedSupermarketList.ts
|
||||
models/PaginatedSyncList.ts
|
||||
models/PaginatedSyncLogList.ts
|
||||
models/PaginatedUnitConversionList.ts
|
||||
models/PaginatedUnitList.ts
|
||||
models/PaginatedUserFileList.ts
|
||||
models/PaginatedUserSpaceList.ts
|
||||
models/PaginatedViewLogList.ts
|
||||
models/PatchedAccessToken.ts
|
||||
models/PatchedAutomation.ts
|
||||
models/PatchedBookmarkletImport.ts
|
||||
models/PatchedConnectorConfigConfig.ts
|
||||
models/PatchedCookLog.ts
|
||||
models/PatchedCustomFilter.ts
|
||||
models/PatchedExportLog.ts
|
||||
models/PatchedFood.ts
|
||||
models/PatchedImportLog.ts
|
||||
models/PatchedIngredient.ts
|
||||
models/PatchedInviteLink.ts
|
||||
models/PatchedKeyword.ts
|
||||
models/PatchedMealPlan.ts
|
||||
models/PatchedMealType.ts
|
||||
models/PatchedProperty.ts
|
||||
models/PatchedPropertyType.ts
|
||||
models/PatchedRecipe.ts
|
||||
models/PatchedRecipeBook.ts
|
||||
models/PatchedRecipeBookEntry.ts
|
||||
models/PatchedRecipeBookFilter.ts
|
||||
models/PatchedRecipeNutrition.ts
|
||||
models/PatchedShoppingListEntry.ts
|
||||
models/PatchedShoppingListRecipe.ts
|
||||
models/PatchedSpace.ts
|
||||
models/PatchedSpaceImage.ts
|
||||
models/PatchedStep.ts
|
||||
models/PatchedStorage.ts
|
||||
models/PatchedSupermarket.ts
|
||||
models/PatchedSupermarketCategory.ts
|
||||
models/PatchedSupermarketCategoryRelation.ts
|
||||
models/PatchedSync.ts
|
||||
models/PatchedUnit.ts
|
||||
models/PatchedUnitConversion.ts
|
||||
models/PatchedUser.ts
|
||||
models/PatchedUserPreference.ts
|
||||
models/PatchedUserSpace.ts
|
||||
models/PatchedViewLog.ts
|
||||
models/Property.ts
|
||||
models/PropertyType.ts
|
||||
models/Recipe.ts
|
||||
models/RecipeBook.ts
|
||||
models/RecipeBookEntry.ts
|
||||
models/RecipeFlat.ts
|
||||
models/RecipeImage.ts
|
||||
models/RecipeOverview.ts
|
||||
models/RecipeShoppingUpdate.ts
|
||||
models/RecipeSimple.ts
|
||||
models/ShoppingListEntry.ts
|
||||
models/ShoppingListEntryBulk.ts
|
||||
models/ShoppingListRecipe.ts
|
||||
models/Space.ts
|
||||
models/SpaceNavTextColorEnum.ts
|
||||
models/SpaceThemeEnum.ts
|
||||
models/Step.ts
|
||||
models/Storage.ts
|
||||
models/Supermarket.ts
|
||||
models/SupermarketCategory.ts
|
||||
models/SupermarketCategoryRelation.ts
|
||||
models/Sync.ts
|
||||
models/SyncLog.ts
|
||||
models/ThemeEnum.ts
|
||||
models/TypeEnum.ts
|
||||
models/Unit.ts
|
||||
models/UnitConversion.ts
|
||||
models/User.ts
|
||||
models/UserFile.ts
|
||||
models/UserFileView.ts
|
||||
models/UserPreference.ts
|
||||
models/UserPreferenceNavTextColorEnum.ts
|
||||
models/UserSpace.ts
|
||||
models/ViewLog.ts
|
||||
models/index.ts
|
||||
runtime.ts
|
||||
@@ -1 +0,0 @@
|
||||
6.2.1
|
||||
@@ -554,8 +554,13 @@ def test_inherit(request, obj_tree_1, field, inherit, new_val, u1_s1):
|
||||
|
||||
|
||||
@pytest.mark.parametrize("obj_tree_1", [
|
||||
({'has_category': True, 'inherit': False, 'ignore_shopping': True,
|
||||
'substitute_children': True, 'substitute_siblings': True}),
|
||||
({
|
||||
'has_category': True,
|
||||
'inherit': False,
|
||||
'ignore_shopping': True,
|
||||
'substitute_children': True,
|
||||
'substitute_siblings': True,
|
||||
}),
|
||||
], indirect=['obj_tree_1'])
|
||||
@pytest.mark.parametrize("global_reset", [True, False])
|
||||
@pytest.mark.parametrize("field", ['ignore_shopping', 'substitute_children', 'substitute_siblings', 'supermarket_category'])
|
||||
@@ -575,12 +580,10 @@ def test_reset_inherit_space_fields(obj_tree_1, space_1, global_reset, field):
|
||||
|
||||
if global_reset:
|
||||
# set default inherit fields
|
||||
space_1.food_inherit.add(
|
||||
*Food.inheritable_fields.values_list('id', flat=True))
|
||||
space_1.food_inherit.add(*Food.inheritable_fields.values_list('id', flat=True))
|
||||
parent.reset_inheritance(space=space_1)
|
||||
else:
|
||||
obj_tree_1.child_inherit_fields.set(
|
||||
Food.inheritable_fields.values_list('id', flat=True))
|
||||
obj_tree_1.child_inherit_fields.set(Food.inheritable_fields.values_list('id', flat=True))
|
||||
obj_tree_1.save()
|
||||
parent.reset_inheritance(space=space_1, food=obj_tree_1)
|
||||
# djangotree bypasses ORM and need to be retrieved again
|
||||
@@ -588,14 +591,18 @@ def test_reset_inherit_space_fields(obj_tree_1, space_1, global_reset, field):
|
||||
parent = Food.objects.get(id=parent.id)
|
||||
child = Food.objects.get(id=child.id)
|
||||
|
||||
assert (getattr(parent, field) == getattr(
|
||||
obj_tree_1, field)) == global_reset
|
||||
assert (getattr(parent, field) == getattr(obj_tree_1, field)) == global_reset
|
||||
assert getattr(obj_tree_1, field) == getattr(child, field)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("obj_tree_1", [
|
||||
({'has_category': True, 'inherit': False, 'ignore_shopping': True,
|
||||
'substitute_children': True, 'substitute_siblings': True}),
|
||||
({
|
||||
'has_category': True,
|
||||
'inherit': False,
|
||||
'ignore_shopping': True,
|
||||
'substitute_children': True,
|
||||
'substitute_siblings': True,
|
||||
}),
|
||||
], indirect=['obj_tree_1'])
|
||||
@pytest.mark.parametrize("field", ['ignore_shopping', 'substitute_children', 'substitute_siblings', 'supermarket_category'])
|
||||
def test_reset_inherit_no_food_instances(obj_tree_1, space_1, field):
|
||||
@@ -604,8 +611,7 @@ def test_reset_inherit_no_food_instances(obj_tree_1, space_1, field):
|
||||
Food.objects.all().delete()
|
||||
|
||||
# set default inherit fields
|
||||
space_1.food_inherit.add(
|
||||
*Food.inheritable_fields.values_list('id', flat=True))
|
||||
space_1.food_inherit.add(*Food.inheritable_fields.values_list('id', flat=True))
|
||||
parent.reset_inheritance(space=space_1)
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,10 +7,10 @@ models/AccessToken.ts
|
||||
models/AccessTokenRequest.ts
|
||||
models/AuthToken.ts
|
||||
models/AuthTokenRequest.ts
|
||||
models/AutoMealPlan.ts
|
||||
models/AutoMealPlanRequest.ts
|
||||
models/Automation.ts
|
||||
models/AutomationRequest.ts
|
||||
models/AutomationTypeEnum.ts
|
||||
models/BaseUnitEnum.ts
|
||||
models/BookmarkletImport.ts
|
||||
models/BookmarkletImportList.ts
|
||||
models/BookmarkletImportRequest.ts
|
||||
@@ -38,6 +38,7 @@ models/ImportLog.ts
|
||||
models/ImportLogRequest.ts
|
||||
models/Ingredient.ts
|
||||
models/IngredientRequest.ts
|
||||
models/IngredientStringRequest.ts
|
||||
models/InviteLink.ts
|
||||
models/InviteLinkRequest.ts
|
||||
models/Keyword.ts
|
||||
@@ -50,40 +51,37 @@ models/MealTypeRequest.ts
|
||||
models/MethodEnum.ts
|
||||
models/NutritionInformation.ts
|
||||
models/NutritionInformationRequest.ts
|
||||
models/OpenDataCategory.ts
|
||||
models/OpenDataCategoryRequest.ts
|
||||
models/OpenDataConversion.ts
|
||||
models/OpenDataConversionRequest.ts
|
||||
models/OpenDataFood.ts
|
||||
models/OpenDataFoodProperty.ts
|
||||
models/OpenDataFoodPropertyRequest.ts
|
||||
models/OpenDataFoodRequest.ts
|
||||
models/OpenDataProperty.ts
|
||||
models/OpenDataPropertyRequest.ts
|
||||
models/OpenDataStore.ts
|
||||
models/OpenDataStoreCategory.ts
|
||||
models/OpenDataStoreCategoryRequest.ts
|
||||
models/OpenDataStoreRequest.ts
|
||||
models/OpenDataUnit.ts
|
||||
models/OpenDataUnitRequest.ts
|
||||
models/OpenDataUnitTypeEnum.ts
|
||||
models/OpenDataVersion.ts
|
||||
models/OpenDataVersionRequest.ts
|
||||
models/PaginatedAutomationList.ts
|
||||
models/PaginatedBookmarkletImportListList.ts
|
||||
models/PaginatedCookLogList.ts
|
||||
models/PaginatedCustomFilterList.ts
|
||||
models/PaginatedExportLogList.ts
|
||||
models/PaginatedFoodList.ts
|
||||
models/PaginatedImportLogList.ts
|
||||
models/PaginatedIngredientList.ts
|
||||
models/PaginatedInviteLinkList.ts
|
||||
models/PaginatedKeywordList.ts
|
||||
models/PaginatedMealPlanList.ts
|
||||
models/PaginatedMealTypeList.ts
|
||||
models/PaginatedPropertyList.ts
|
||||
models/PaginatedPropertyTypeList.ts
|
||||
models/PaginatedRecipeBookEntryList.ts
|
||||
models/PaginatedRecipeBookList.ts
|
||||
models/PaginatedRecipeOverviewList.ts
|
||||
models/PaginatedShoppingListEntryList.ts
|
||||
models/PaginatedShoppingListRecipeList.ts
|
||||
models/PaginatedStepList.ts
|
||||
models/PaginatedSupermarketCategoryList.ts
|
||||
models/PaginatedSupermarketCategoryRelationList.ts
|
||||
models/PaginatedSupermarketList.ts
|
||||
models/PaginatedSyncList.ts
|
||||
models/PaginatedSyncLogList.ts
|
||||
models/PaginatedUnitConversionList.ts
|
||||
models/PaginatedUnitList.ts
|
||||
models/PaginatedUserFileList.ts
|
||||
models/PaginatedUserSpaceList.ts
|
||||
models/PaginatedViewLogList.ts
|
||||
models/ParsedIngredient.ts
|
||||
models/PatchedAccessTokenRequest.ts
|
||||
models/PatchedAutomationRequest.ts
|
||||
models/PatchedBookmarkletImportRequest.ts
|
||||
@@ -98,13 +96,6 @@ models/PatchedInviteLinkRequest.ts
|
||||
models/PatchedKeywordRequest.ts
|
||||
models/PatchedMealPlanRequest.ts
|
||||
models/PatchedMealTypeRequest.ts
|
||||
models/PatchedOpenDataCategoryRequest.ts
|
||||
models/PatchedOpenDataConversionRequest.ts
|
||||
models/PatchedOpenDataFoodRequest.ts
|
||||
models/PatchedOpenDataPropertyRequest.ts
|
||||
models/PatchedOpenDataStoreRequest.ts
|
||||
models/PatchedOpenDataUnitRequest.ts
|
||||
models/PatchedOpenDataVersionRequest.ts
|
||||
models/PatchedPropertyRequest.ts
|
||||
models/PatchedPropertyTypeRequest.ts
|
||||
models/PatchedRecipeBookEntryRequest.ts
|
||||
@@ -143,6 +134,7 @@ models/RecipeShoppingUpdate.ts
|
||||
models/RecipeShoppingUpdateRequest.ts
|
||||
models/RecipeSimple.ts
|
||||
models/RecipeSimpleRequest.ts
|
||||
models/ShareLink.ts
|
||||
models/ShoppingListEntry.ts
|
||||
models/ShoppingListEntryBulk.ts
|
||||
models/ShoppingListEntryBulkRequest.ts
|
||||
@@ -166,6 +158,7 @@ models/Sync.ts
|
||||
models/SyncLog.ts
|
||||
models/SyncRequest.ts
|
||||
models/ThemeEnum.ts
|
||||
models/TypeEnum.ts
|
||||
models/Unit.ts
|
||||
models/UnitConversion.ts
|
||||
models/UnitConversionRequest.ts
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
121
vue3/src/openapi/models/AutoMealPlan.ts
Normal file
121
vue3/src/openapi/models/AutoMealPlan.ts
Normal file
@@ -0,0 +1,121 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { User } from './User';
|
||||
import {
|
||||
UserFromJSON,
|
||||
UserFromJSONTyped,
|
||||
UserToJSON,
|
||||
} from './User';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AutoMealPlan
|
||||
*/
|
||||
export interface AutoMealPlan {
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
startDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
endDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
mealTypeId: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<any>}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
keywordIds: Array<any>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<User>}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
shared?: Array<User>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
addshopping: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AutoMealPlan interface.
|
||||
*/
|
||||
export function instanceOfAutoMealPlan(value: object): boolean {
|
||||
if (!('startDate' in value)) return false;
|
||||
if (!('endDate' in value)) return false;
|
||||
if (!('mealTypeId' in value)) return false;
|
||||
if (!('keywordIds' in value)) return false;
|
||||
if (!('servings' in value)) return false;
|
||||
if (!('addshopping' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AutoMealPlanFromJSON(json: any): AutoMealPlan {
|
||||
return AutoMealPlanFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AutoMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoMealPlan {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'startDate': (new Date(json['start_date'])),
|
||||
'endDate': (new Date(json['end_date'])),
|
||||
'mealTypeId': json['meal_type_id'],
|
||||
'keywordIds': json['keyword_ids'],
|
||||
'servings': json['servings'],
|
||||
'shared': json['shared'] == null ? undefined : ((json['shared'] as Array<any>).map(UserFromJSON)),
|
||||
'addshopping': json['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'start_date': ((value['startDate']).toISOString().substring(0,10)),
|
||||
'end_date': ((value['endDate']).toISOString().substring(0,10)),
|
||||
'meal_type_id': value['mealTypeId'],
|
||||
'keyword_ids': value['keywordIds'],
|
||||
'servings': value['servings'],
|
||||
'shared': value['shared'] == null ? undefined : ((value['shared'] as Array<any>).map(UserToJSON)),
|
||||
'addshopping': value['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
121
vue3/src/openapi/models/AutoMealPlanRequest.ts
Normal file
121
vue3/src/openapi/models/AutoMealPlanRequest.ts
Normal file
@@ -0,0 +1,121 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { UserRequest } from './UserRequest';
|
||||
import {
|
||||
UserRequestFromJSON,
|
||||
UserRequestFromJSONTyped,
|
||||
UserRequestToJSON,
|
||||
} from './UserRequest';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AutoMealPlanRequest
|
||||
*/
|
||||
export interface AutoMealPlanRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
startDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
endDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
mealTypeId: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<any>}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
keywordIds: Array<any>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserRequest>}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
shared?: Array<UserRequest>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AutoMealPlanRequest
|
||||
*/
|
||||
addshopping: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AutoMealPlanRequest interface.
|
||||
*/
|
||||
export function instanceOfAutoMealPlanRequest(value: object): boolean {
|
||||
if (!('startDate' in value)) return false;
|
||||
if (!('endDate' in value)) return false;
|
||||
if (!('mealTypeId' in value)) return false;
|
||||
if (!('keywordIds' in value)) return false;
|
||||
if (!('servings' in value)) return false;
|
||||
if (!('addshopping' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AutoMealPlanRequestFromJSON(json: any): AutoMealPlanRequest {
|
||||
return AutoMealPlanRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AutoMealPlanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoMealPlanRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'startDate': (new Date(json['start_date'])),
|
||||
'endDate': (new Date(json['end_date'])),
|
||||
'mealTypeId': json['meal_type_id'],
|
||||
'keywordIds': json['keyword_ids'],
|
||||
'servings': json['servings'],
|
||||
'shared': json['shared'] == null ? undefined : ((json['shared'] as Array<any>).map(UserRequestFromJSON)),
|
||||
'addshopping': json['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AutoMealPlanRequestToJSON(value?: AutoMealPlanRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'start_date': ((value['startDate']).toISOString().substring(0,10)),
|
||||
'end_date': ((value['endDate']).toISOString().substring(0,10)),
|
||||
'meal_type_id': value['mealTypeId'],
|
||||
'keyword_ids': value['keywordIds'],
|
||||
'servings': value['servings'],
|
||||
'shared': value['shared'] == null ? undefined : ((value['shared'] as Array<any>).map(UserRequestToJSON)),
|
||||
'addshopping': value['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { AutomationTypeEnum } from './AutomationTypeEnum';
|
||||
import type { TypeEnum } from './TypeEnum';
|
||||
import {
|
||||
AutomationTypeEnumFromJSON,
|
||||
AutomationTypeEnumFromJSONTyped,
|
||||
AutomationTypeEnumToJSON,
|
||||
} from './AutomationTypeEnum';
|
||||
TypeEnumFromJSON,
|
||||
TypeEnumFromJSONTyped,
|
||||
TypeEnumToJSON,
|
||||
} from './TypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -34,10 +34,10 @@ export interface Automation {
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {AutomationTypeEnum}
|
||||
* @type {TypeEnum}
|
||||
* @memberof Automation
|
||||
*/
|
||||
type: AutomationTypeEnum;
|
||||
type: TypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -109,7 +109,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'type': AutomationTypeEnumFromJSON(json['type']),
|
||||
'type': TypeEnumFromJSON(json['type']),
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'param1': json['param_1'] == null ? undefined : json['param_1'],
|
||||
@@ -127,7 +127,7 @@ export function AutomationToJSON(value?: Automation | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { AutomationTypeEnum } from './AutomationTypeEnum';
|
||||
import type { TypeEnum } from './TypeEnum';
|
||||
import {
|
||||
AutomationTypeEnumFromJSON,
|
||||
AutomationTypeEnumFromJSONTyped,
|
||||
AutomationTypeEnumToJSON,
|
||||
} from './AutomationTypeEnum';
|
||||
TypeEnumFromJSON,
|
||||
TypeEnumFromJSONTyped,
|
||||
TypeEnumToJSON,
|
||||
} from './TypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -28,10 +28,10 @@ import {
|
||||
export interface AutomationRequest {
|
||||
/**
|
||||
*
|
||||
* @type {AutomationTypeEnum}
|
||||
* @type {TypeEnum}
|
||||
* @memberof AutomationRequest
|
||||
*/
|
||||
type: AutomationTypeEnum;
|
||||
type: TypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -100,7 +100,7 @@ export function AutomationRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
||||
}
|
||||
return {
|
||||
|
||||
'type': AutomationTypeEnumFromJSON(json['type']),
|
||||
'type': TypeEnumFromJSON(json['type']),
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'param1': json['param_1'] == null ? undefined : json['param_1'],
|
||||
@@ -118,7 +118,7 @@ export function AutomationRequestToJSON(value?: AutomationRequest | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
@@ -140,10 +140,10 @@ export interface Food {
|
||||
properties?: Array<Property>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Food
|
||||
*/
|
||||
propertiesFoodAmount?: string;
|
||||
propertiesFoodAmount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Unit}
|
||||
@@ -158,10 +158,10 @@ export interface Food {
|
||||
fdcId?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof Food
|
||||
*/
|
||||
foodOnhand?: string;
|
||||
foodOnhand?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {SupermarketCategory}
|
||||
@@ -170,10 +170,10 @@ export interface Food {
|
||||
supermarketCategory?: SupermarketCategory;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Food
|
||||
*/
|
||||
readonly parent: string;
|
||||
readonly parent: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -187,7 +187,8 @@ export interface Food {
|
||||
*/
|
||||
inheritFields?: Array<FoodInheritField>;
|
||||
/**
|
||||
*
|
||||
* Returns a string representation of a tree node and it's ancestors,
|
||||
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
|
||||
* @type {string}
|
||||
* @memberof Food
|
||||
*/
|
||||
@@ -218,10 +219,10 @@ export interface Food {
|
||||
substituteChildren?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof Food
|
||||
*/
|
||||
readonly substituteOnhand: string;
|
||||
readonly substituteOnhand: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<FoodInheritField>}
|
||||
|
||||
@@ -128,10 +128,10 @@ export interface FoodRequest {
|
||||
properties?: Array<PropertyRequest>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof FoodRequest
|
||||
*/
|
||||
propertiesFoodAmount?: string;
|
||||
propertiesFoodAmount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
@@ -146,10 +146,10 @@ export interface FoodRequest {
|
||||
fdcId?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof FoodRequest
|
||||
*/
|
||||
foodOnhand?: string;
|
||||
foodOnhand?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {SupermarketCategoryRequest}
|
||||
|
||||
@@ -52,16 +52,16 @@ export interface Ingredient {
|
||||
unit: Unit | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
amount: string;
|
||||
amount: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {Array<any>}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
readonly conversions: string;
|
||||
readonly conversions: Array<any>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -94,10 +94,10 @@ export interface Ingredient {
|
||||
originalText?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {Array<any>}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
readonly usedInRecipes: string;
|
||||
readonly usedInRecipes: Array<any>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
||||
@@ -46,10 +46,10 @@ export interface IngredientRequest {
|
||||
unit: UnitRequest | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof IngredientRequest
|
||||
*/
|
||||
amount: string;
|
||||
amount: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
61
vue3/src/openapi/models/IngredientStringRequest.ts
Normal file
61
vue3/src/openapi/models/IngredientStringRequest.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface IngredientStringRequest
|
||||
*/
|
||||
export interface IngredientStringRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IngredientStringRequest
|
||||
*/
|
||||
text: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the IngredientStringRequest interface.
|
||||
*/
|
||||
export function instanceOfIngredientStringRequest(value: object): boolean {
|
||||
if (!('text' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function IngredientStringRequestFromJSON(json: any): IngredientStringRequest {
|
||||
return IngredientStringRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function IngredientStringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngredientStringRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'text': json['text'],
|
||||
};
|
||||
}
|
||||
|
||||
export function IngredientStringRequestToJSON(value?: IngredientStringRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'text': value['text'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -79,10 +79,10 @@ export interface Keyword {
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Keyword
|
||||
*/
|
||||
readonly parent: string;
|
||||
readonly parent: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -102,7 +102,8 @@ export interface Keyword {
|
||||
*/
|
||||
readonly updatedAt: Date;
|
||||
/**
|
||||
*
|
||||
* Returns a string representation of a tree node and it's ancestors,
|
||||
* e.g. 'Cuisine > Asian > Chinese > Catonese'.
|
||||
* @type {string}
|
||||
* @memberof Keyword
|
||||
*/
|
||||
|
||||
@@ -58,10 +58,10 @@ export interface MealPlan {
|
||||
recipe?: RecipeOverview;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof MealPlan
|
||||
*/
|
||||
servings: string;
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -118,10 +118,10 @@ export interface MealPlan {
|
||||
readonly mealTypeName: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof MealPlan
|
||||
*/
|
||||
readonly shopping: string;
|
||||
readonly shopping: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,10 +52,10 @@ export interface MealPlanRequest {
|
||||
recipe?: RecipeOverviewRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof MealPlanRequest
|
||||
*/
|
||||
servings: string;
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
@@ -27,28 +27,28 @@ export interface NutritionInformation {
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformation
|
||||
*/
|
||||
carbohydrates: string;
|
||||
carbohydrates: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformation
|
||||
*/
|
||||
fats: string;
|
||||
fats: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformation
|
||||
*/
|
||||
proteins: string;
|
||||
proteins: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformation
|
||||
*/
|
||||
calories: string;
|
||||
calories: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
@@ -21,28 +21,28 @@ import { mapValues } from '../runtime';
|
||||
export interface NutritionInformationRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformationRequest
|
||||
*/
|
||||
carbohydrates: string;
|
||||
carbohydrates: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformationRequest
|
||||
*/
|
||||
fats: string;
|
||||
fats: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformationRequest
|
||||
*/
|
||||
proteins: string;
|
||||
proteins: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof NutritionInformationRequest
|
||||
*/
|
||||
calories: string;
|
||||
calories: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { BookmarkletImportList } from './BookmarkletImportList';
|
||||
import {
|
||||
BookmarkletImportListFromJSON,
|
||||
BookmarkletImportListFromJSONTyped,
|
||||
BookmarkletImportListToJSON,
|
||||
} from './BookmarkletImportList';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedBookmarkletImportListList
|
||||
*/
|
||||
export interface PaginatedBookmarkletImportListList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BookmarkletImportList>}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
results?: Array<BookmarkletImportList>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedBookmarkletImportListList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedBookmarkletImportListList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedBookmarkletImportListListFromJSON(json: any): PaginatedBookmarkletImportListList {
|
||||
return PaginatedBookmarkletImportListListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBookmarkletImportListList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(BookmarkletImportListFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookmarkletImportListList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(BookmarkletImportListToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedInviteLinkList.ts
Normal file
91
vue3/src/openapi/models/PaginatedInviteLinkList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { InviteLink } from './InviteLink';
|
||||
import {
|
||||
InviteLinkFromJSON,
|
||||
InviteLinkFromJSONTyped,
|
||||
InviteLinkToJSON,
|
||||
} from './InviteLink';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedInviteLinkList
|
||||
*/
|
||||
export interface PaginatedInviteLinkList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<InviteLink>}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
results?: Array<InviteLink>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedInviteLinkList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedInviteLinkList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedInviteLinkListFromJSON(json: any): PaginatedInviteLinkList {
|
||||
return PaginatedInviteLinkListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedInviteLinkListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedInviteLinkList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(InviteLinkFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(InviteLinkToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedMealPlanList.ts
Normal file
91
vue3/src/openapi/models/PaginatedMealPlanList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { MealPlan } from './MealPlan';
|
||||
import {
|
||||
MealPlanFromJSON,
|
||||
MealPlanFromJSONTyped,
|
||||
MealPlanToJSON,
|
||||
} from './MealPlan';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedMealPlanList
|
||||
*/
|
||||
export interface PaginatedMealPlanList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MealPlan>}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
results?: Array<MealPlan>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedMealPlanList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedMealPlanList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedMealPlanListFromJSON(json: any): PaginatedMealPlanList {
|
||||
return PaginatedMealPlanListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedMealPlanListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMealPlanList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(MealPlanFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(MealPlanToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedMealTypeList.ts
Normal file
91
vue3/src/openapi/models/PaginatedMealTypeList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { MealType } from './MealType';
|
||||
import {
|
||||
MealTypeFromJSON,
|
||||
MealTypeFromJSONTyped,
|
||||
MealTypeToJSON,
|
||||
} from './MealType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedMealTypeList
|
||||
*/
|
||||
export interface PaginatedMealTypeList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MealType>}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
results?: Array<MealType>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedMealTypeList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedMealTypeList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedMealTypeListFromJSON(json: any): PaginatedMealTypeList {
|
||||
return PaginatedMealTypeListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedMealTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMealTypeList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(MealTypeFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(MealTypeToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedPropertyList.ts
Normal file
91
vue3/src/openapi/models/PaginatedPropertyList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { Property } from './Property';
|
||||
import {
|
||||
PropertyFromJSON,
|
||||
PropertyFromJSONTyped,
|
||||
PropertyToJSON,
|
||||
} from './Property';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedPropertyList
|
||||
*/
|
||||
export interface PaginatedPropertyList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Property>}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
results?: Array<Property>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedPropertyList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedPropertyList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedPropertyListFromJSON(json: any): PaginatedPropertyList {
|
||||
return PaginatedPropertyListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PropertyFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PropertyToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedPropertyTypeList.ts
Normal file
91
vue3/src/openapi/models/PaginatedPropertyTypeList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { PropertyType } from './PropertyType';
|
||||
import {
|
||||
PropertyTypeFromJSON,
|
||||
PropertyTypeFromJSONTyped,
|
||||
PropertyTypeToJSON,
|
||||
} from './PropertyType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedPropertyTypeList
|
||||
*/
|
||||
export interface PaginatedPropertyTypeList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PropertyType>}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
results?: Array<PropertyType>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedPropertyTypeList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedPropertyTypeList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedPropertyTypeListFromJSON(json: any): PaginatedPropertyTypeList {
|
||||
return PaginatedPropertyTypeListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedPropertyTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyTypeList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PropertyTypeFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PropertyTypeToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts
Normal file
91
vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { RecipeBookEntry } from './RecipeBookEntry';
|
||||
import {
|
||||
RecipeBookEntryFromJSON,
|
||||
RecipeBookEntryFromJSONTyped,
|
||||
RecipeBookEntryToJSON,
|
||||
} from './RecipeBookEntry';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedRecipeBookEntryList
|
||||
*/
|
||||
export interface PaginatedRecipeBookEntryList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeBookEntry>}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
results?: Array<RecipeBookEntry>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedRecipeBookEntryList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedRecipeBookEntryList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookEntryListFromJSON(json: any): PaginatedRecipeBookEntryList {
|
||||
return PaginatedRecipeBookEntryListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookEntryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecipeBookEntryList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(RecipeBookEntryFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEntryList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeBookEntryToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedRecipeBookList.ts
Normal file
91
vue3/src/openapi/models/PaginatedRecipeBookList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { RecipeBook } from './RecipeBook';
|
||||
import {
|
||||
RecipeBookFromJSON,
|
||||
RecipeBookFromJSONTyped,
|
||||
RecipeBookToJSON,
|
||||
} from './RecipeBook';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedRecipeBookList
|
||||
*/
|
||||
export interface PaginatedRecipeBookList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeBook>}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
results?: Array<RecipeBook>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedRecipeBookList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedRecipeBookList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookListFromJSON(json: any): PaginatedRecipeBookList {
|
||||
return PaginatedRecipeBookListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecipeBookList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(RecipeBookFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeBookToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedShoppingListEntryList.ts
Normal file
91
vue3/src/openapi/models/PaginatedShoppingListEntryList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { ShoppingListEntry } from './ShoppingListEntry';
|
||||
import {
|
||||
ShoppingListEntryFromJSON,
|
||||
ShoppingListEntryFromJSONTyped,
|
||||
ShoppingListEntryToJSON,
|
||||
} from './ShoppingListEntry';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedShoppingListEntryList
|
||||
*/
|
||||
export interface PaginatedShoppingListEntryList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ShoppingListEntry>}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
results?: Array<ShoppingListEntry>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedShoppingListEntryList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedShoppingListEntryList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListEntryListFromJSON(json: any): PaginatedShoppingListEntryList {
|
||||
return PaginatedShoppingListEntryListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListEntryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedShoppingListEntryList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ShoppingListEntryFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingListEntryList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ShoppingListEntryToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts
Normal file
91
vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { ShoppingListRecipe } from './ShoppingListRecipe';
|
||||
import {
|
||||
ShoppingListRecipeFromJSON,
|
||||
ShoppingListRecipeFromJSONTyped,
|
||||
ShoppingListRecipeToJSON,
|
||||
} from './ShoppingListRecipe';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedShoppingListRecipeList
|
||||
*/
|
||||
export interface PaginatedShoppingListRecipeList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ShoppingListRecipe>}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
results?: Array<ShoppingListRecipe>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedShoppingListRecipeList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedShoppingListRecipeList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListRecipeListFromJSON(json: any): PaginatedShoppingListRecipeList {
|
||||
return PaginatedShoppingListRecipeListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListRecipeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedShoppingListRecipeList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ShoppingListRecipeFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingListRecipeList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ShoppingListRecipeToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts
Normal file
91
vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { SupermarketCategory } from './SupermarketCategory';
|
||||
import {
|
||||
SupermarketCategoryFromJSON,
|
||||
SupermarketCategoryFromJSONTyped,
|
||||
SupermarketCategoryToJSON,
|
||||
} from './SupermarketCategory';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSupermarketCategoryList
|
||||
*/
|
||||
export interface PaginatedSupermarketCategoryList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SupermarketCategory>}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
results?: Array<SupermarketCategory>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSupermarketCategoryList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSupermarketCategoryList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketCategoryListFromJSON(json: any): PaginatedSupermarketCategoryList {
|
||||
return PaginatedSupermarketCategoryListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketCategoryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupermarketCategoryList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SupermarketCategoryFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermarketCategoryList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketCategoryToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedSupermarketList.ts
Normal file
91
vue3/src/openapi/models/PaginatedSupermarketList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { Supermarket } from './Supermarket';
|
||||
import {
|
||||
SupermarketFromJSON,
|
||||
SupermarketFromJSONTyped,
|
||||
SupermarketToJSON,
|
||||
} from './Supermarket';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSupermarketList
|
||||
*/
|
||||
export interface PaginatedSupermarketList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Supermarket>}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
results?: Array<Supermarket>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSupermarketList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSupermarketList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketListFromJSON(json: any): PaginatedSupermarketList {
|
||||
return PaginatedSupermarketListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupermarketList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SupermarketFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedSyncList.ts
Normal file
91
vue3/src/openapi/models/PaginatedSyncList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { Sync } from './Sync';
|
||||
import {
|
||||
SyncFromJSON,
|
||||
SyncFromJSONTyped,
|
||||
SyncToJSON,
|
||||
} from './Sync';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSyncList
|
||||
*/
|
||||
export interface PaginatedSyncList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Sync>}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
results?: Array<Sync>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSyncList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSyncList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSyncListFromJSON(json: any): PaginatedSyncList {
|
||||
return PaginatedSyncListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSyncListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSyncList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SyncFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSyncListToJSON(value?: PaginatedSyncList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SyncToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedUnitConversionList.ts
Normal file
91
vue3/src/openapi/models/PaginatedUnitConversionList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { UnitConversion } from './UnitConversion';
|
||||
import {
|
||||
UnitConversionFromJSON,
|
||||
UnitConversionFromJSONTyped,
|
||||
UnitConversionToJSON,
|
||||
} from './UnitConversion';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedUnitConversionList
|
||||
*/
|
||||
export interface PaginatedUnitConversionList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UnitConversion>}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
results?: Array<UnitConversion>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedUnitConversionList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedUnitConversionList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedUnitConversionListFromJSON(json: any): PaginatedUnitConversionList {
|
||||
return PaginatedUnitConversionListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedUnitConversionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUnitConversionList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(UnitConversionFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedUnitConversionListToJSON(value?: PaginatedUnitConversionList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UnitConversionToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/src/openapi/models/PaginatedUserFileList.ts
Normal file
91
vue3/src/openapi/models/PaginatedUserFileList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { UserFile } from './UserFile';
|
||||
import {
|
||||
UserFileFromJSON,
|
||||
UserFileFromJSONTyped,
|
||||
UserFileToJSON,
|
||||
} from './UserFile';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedUserFileList
|
||||
*/
|
||||
export interface PaginatedUserFileList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserFile>}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
results?: Array<UserFile>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedUserFileList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedUserFileList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedUserFileListFromJSON(json: any): PaginatedUserFileList {
|
||||
return PaginatedUserFileListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedUserFileListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserFileList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(UserFileFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedUserFileListToJSON(value?: PaginatedUserFileList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UserFileToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
88
vue3/src/openapi/models/ParsedIngredient.ts
Normal file
88
vue3/src/openapi/models/ParsedIngredient.ts
Normal file
@@ -0,0 +1,88 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ParsedIngredient
|
||||
*/
|
||||
export interface ParsedIngredient {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ParsedIngredient
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ParsedIngredient
|
||||
*/
|
||||
unit: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ParsedIngredient
|
||||
*/
|
||||
food: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ParsedIngredient
|
||||
*/
|
||||
note: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ParsedIngredient interface.
|
||||
*/
|
||||
export function instanceOfParsedIngredient(value: object): boolean {
|
||||
if (!('amount' in value)) return false;
|
||||
if (!('unit' in value)) return false;
|
||||
if (!('food' in value)) return false;
|
||||
if (!('note' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ParsedIngredientFromJSON(json: any): ParsedIngredient {
|
||||
return ParsedIngredientFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ParsedIngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParsedIngredient {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'amount': json['amount'],
|
||||
'unit': json['unit'],
|
||||
'food': json['food'],
|
||||
'note': json['note'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ParsedIngredientToJSON(value?: ParsedIngredient | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'amount': value['amount'],
|
||||
'unit': value['unit'],
|
||||
'food': value['food'],
|
||||
'note': value['note'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { AutomationTypeEnum } from './AutomationTypeEnum';
|
||||
import type { TypeEnum } from './TypeEnum';
|
||||
import {
|
||||
AutomationTypeEnumFromJSON,
|
||||
AutomationTypeEnumFromJSONTyped,
|
||||
AutomationTypeEnumToJSON,
|
||||
} from './AutomationTypeEnum';
|
||||
TypeEnumFromJSON,
|
||||
TypeEnumFromJSONTyped,
|
||||
TypeEnumToJSON,
|
||||
} from './TypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -28,10 +28,10 @@ import {
|
||||
export interface PatchedAutomationRequest {
|
||||
/**
|
||||
*
|
||||
* @type {AutomationTypeEnum}
|
||||
* @type {TypeEnum}
|
||||
* @memberof PatchedAutomationRequest
|
||||
*/
|
||||
type?: AutomationTypeEnum;
|
||||
type?: TypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -99,7 +99,7 @@ export function PatchedAutomationRequestFromJSONTyped(json: any, ignoreDiscrimin
|
||||
}
|
||||
return {
|
||||
|
||||
'type': json['type'] == null ? undefined : AutomationTypeEnumFromJSON(json['type']),
|
||||
'type': json['type'] == null ? undefined : TypeEnumFromJSON(json['type']),
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'param1': json['param_1'] == null ? undefined : json['param_1'],
|
||||
@@ -117,7 +117,7 @@ export function PatchedAutomationRequestToJSON(value?: PatchedAutomationRequest
|
||||
}
|
||||
return {
|
||||
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
@@ -128,10 +128,10 @@ export interface PatchedFoodRequest {
|
||||
properties?: Array<PropertyRequest>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedFoodRequest
|
||||
*/
|
||||
propertiesFoodAmount?: string;
|
||||
propertiesFoodAmount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
@@ -146,10 +146,10 @@ export interface PatchedFoodRequest {
|
||||
fdcId?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof PatchedFoodRequest
|
||||
*/
|
||||
foodOnhand?: string;
|
||||
foodOnhand?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {SupermarketCategoryRequest}
|
||||
|
||||
@@ -46,10 +46,10 @@ export interface PatchedIngredientRequest {
|
||||
unit?: UnitRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
amount?: string;
|
||||
amount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
@@ -52,10 +52,10 @@ export interface PatchedMealPlanRequest {
|
||||
recipe?: RecipeOverviewRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedMealPlanRequest
|
||||
*/
|
||||
servings?: string;
|
||||
servings?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
@@ -62,10 +62,10 @@ import {
|
||||
export interface PatchedPropertyRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedPropertyRequest
|
||||
*/
|
||||
propertyAmount?: string;
|
||||
propertyAmount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {PropertyTypeRequest}
|
||||
|
||||
@@ -52,10 +52,10 @@ export interface PatchedShoppingListEntryRequest {
|
||||
unit?: UnitRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedShoppingListEntryRequest
|
||||
*/
|
||||
amount?: string;
|
||||
amount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
|
||||
@@ -33,10 +33,10 @@ export interface PatchedShoppingListRecipeRequest {
|
||||
mealplan?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedShoppingListRecipeRequest
|
||||
*/
|
||||
servings?: string;
|
||||
servings?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
|
||||
@@ -34,10 +34,10 @@ import {
|
||||
export interface PatchedUnitConversionRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedUnitConversionRequest
|
||||
*/
|
||||
baseAmount?: string;
|
||||
baseAmount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
@@ -46,10 +46,10 @@ export interface PatchedUnitConversionRequest {
|
||||
baseUnit?: UnitRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PatchedUnitConversionRequest
|
||||
*/
|
||||
convertedAmount?: string;
|
||||
convertedAmount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
|
||||
@@ -68,10 +68,10 @@ export interface Property {
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Property
|
||||
*/
|
||||
propertyAmount: string | null;
|
||||
propertyAmount: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {PropertyType}
|
||||
|
||||
@@ -62,10 +62,10 @@ import {
|
||||
export interface PropertyRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof PropertyRequest
|
||||
*/
|
||||
propertyAmount: string | null;
|
||||
propertyAmount: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {PropertyTypeRequest}
|
||||
|
||||
@@ -148,10 +148,10 @@ export interface Recipe {
|
||||
properties?: Array<Property>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {any}
|
||||
* @memberof Recipe
|
||||
*/
|
||||
readonly foodProperties: string;
|
||||
readonly foodProperties: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -172,10 +172,10 @@ export interface Recipe {
|
||||
servingsText?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Recipe
|
||||
*/
|
||||
readonly rating: string | null;
|
||||
readonly rating: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
|
||||
@@ -13,6 +13,19 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { RecipeBook } from './RecipeBook';
|
||||
import {
|
||||
RecipeBookFromJSON,
|
||||
RecipeBookFromJSONTyped,
|
||||
RecipeBookToJSON,
|
||||
} from './RecipeBook';
|
||||
import type { RecipeOverview } from './RecipeOverview';
|
||||
import {
|
||||
RecipeOverviewFromJSON,
|
||||
RecipeOverviewFromJSONTyped,
|
||||
RecipeOverviewToJSON,
|
||||
} from './RecipeOverview';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -33,10 +46,10 @@ export interface RecipeBookEntry {
|
||||
book: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {RecipeBook}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
readonly bookContent: string;
|
||||
readonly bookContent: RecipeBook;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -45,10 +58,10 @@ export interface RecipeBookEntry {
|
||||
recipe: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {RecipeOverview}
|
||||
* @memberof RecipeBookEntry
|
||||
*/
|
||||
readonly recipeContent: string;
|
||||
readonly recipeContent: RecipeOverview;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,9 +88,9 @@ export function RecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boo
|
||||
|
||||
'id': json['id'],
|
||||
'book': json['book'],
|
||||
'bookContent': json['book_content'],
|
||||
'bookContent': RecipeBookFromJSON(json['book_content']),
|
||||
'recipe': json['recipe'],
|
||||
'recipeContent': json['recipe_content'],
|
||||
'recipeContent': RecipeOverviewFromJSON(json['recipe_content']),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -106,10 +106,10 @@ export interface RecipeOverview {
|
||||
readonly servingsText: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof RecipeOverview
|
||||
*/
|
||||
readonly rating: string | null;
|
||||
readonly rating: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
@@ -118,10 +118,10 @@ export interface RecipeOverview {
|
||||
readonly lastCooked: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof RecipeOverview
|
||||
*/
|
||||
readonly _new: string;
|
||||
readonly _new: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
79
vue3/src/openapi/models/ShareLink.ts
Normal file
79
vue3/src/openapi/models/ShareLink.ts
Normal file
@@ -0,0 +1,79 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ShareLink
|
||||
*/
|
||||
export interface ShareLink {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShareLink
|
||||
*/
|
||||
pk: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShareLink
|
||||
*/
|
||||
share: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShareLink
|
||||
*/
|
||||
link: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ShareLink interface.
|
||||
*/
|
||||
export function instanceOfShareLink(value: object): boolean {
|
||||
if (!('pk' in value)) return false;
|
||||
if (!('share' in value)) return false;
|
||||
if (!('link' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ShareLinkFromJSON(json: any): ShareLink {
|
||||
return ShareLinkFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ShareLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareLink {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'pk': json['pk'],
|
||||
'share': json['share'],
|
||||
'link': json['link'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ShareLinkToJSON(value?: ShareLink | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'pk': value['pk'],
|
||||
'share': value['share'],
|
||||
'link': value['link'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -70,10 +70,10 @@ export interface ShoppingListEntry {
|
||||
unit?: Unit;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof ShoppingListEntry
|
||||
*/
|
||||
amount: string;
|
||||
amount: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
|
||||
@@ -52,10 +52,10 @@ export interface ShoppingListEntryRequest {
|
||||
unit?: UnitRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof ShoppingListEntryRequest
|
||||
*/
|
||||
amount: string;
|
||||
amount: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
|
||||
@@ -51,10 +51,10 @@ export interface ShoppingListRecipe {
|
||||
mealplan?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof ShoppingListRecipe
|
||||
*/
|
||||
servings: string;
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
||||
@@ -33,10 +33,10 @@ export interface ShoppingListRecipeRequest {
|
||||
mealplan?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof ShoppingListRecipeRequest
|
||||
*/
|
||||
servings: string;
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
|
||||
@@ -112,22 +112,22 @@ export interface Space {
|
||||
foodInherit: Array<FoodInheritField>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Space
|
||||
*/
|
||||
readonly userCount: string;
|
||||
readonly userCount: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Space
|
||||
*/
|
||||
readonly recipeCount: string;
|
||||
readonly recipeCount: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Space
|
||||
*/
|
||||
readonly fileSizeMb: string;
|
||||
readonly fileSizeMb: number;
|
||||
/**
|
||||
*
|
||||
* @type {UserFileView}
|
||||
|
||||
@@ -94,16 +94,16 @@ export interface Step {
|
||||
stepRecipe?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {any}
|
||||
* @memberof Step
|
||||
*/
|
||||
readonly stepRecipeData: string;
|
||||
readonly stepRecipeData: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof Step
|
||||
*/
|
||||
readonly numrecipe: string;
|
||||
readonly numrecipe: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
||||
@@ -46,10 +46,10 @@ export interface UnitConversion {
|
||||
readonly name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof UnitConversion
|
||||
*/
|
||||
baseAmount: string;
|
||||
baseAmount: number;
|
||||
/**
|
||||
*
|
||||
* @type {Unit}
|
||||
@@ -58,10 +58,10 @@ export interface UnitConversion {
|
||||
baseUnit: Unit;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof UnitConversion
|
||||
*/
|
||||
convertedAmount: string;
|
||||
convertedAmount: number;
|
||||
/**
|
||||
*
|
||||
* @type {Unit}
|
||||
|
||||
@@ -34,10 +34,10 @@ import {
|
||||
export interface UnitConversionRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof UnitConversionRequest
|
||||
*/
|
||||
baseAmount: string;
|
||||
baseAmount: number;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
@@ -46,10 +46,10 @@ export interface UnitConversionRequest {
|
||||
baseUnit: UnitRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof UnitConversionRequest
|
||||
*/
|
||||
convertedAmount: string;
|
||||
convertedAmount: number;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
|
||||
@@ -19,6 +19,12 @@ import {
|
||||
DefaultPageEnumFromJSONTyped,
|
||||
DefaultPageEnumToJSON,
|
||||
} from './DefaultPageEnum';
|
||||
import type { FoodInheritField } from './FoodInheritField';
|
||||
import {
|
||||
FoodInheritFieldFromJSON,
|
||||
FoodInheritFieldFromJSONTyped,
|
||||
FoodInheritFieldToJSON,
|
||||
} from './FoodInheritField';
|
||||
import type { ThemeEnum } from './ThemeEnum';
|
||||
import {
|
||||
ThemeEnumFromJSON,
|
||||
@@ -148,10 +154,10 @@ export interface UserPreference {
|
||||
mealplanAutoaddShopping?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {FoodInheritField}
|
||||
* @memberof UserPreference
|
||||
*/
|
||||
readonly foodInheritDefault: string;
|
||||
readonly foodInheritDefault: FoodInheritField;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -220,10 +226,10 @@ export interface UserPreference {
|
||||
showStepIngredients?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof UserPreference
|
||||
*/
|
||||
readonly foodChildrenExist: string;
|
||||
readonly foodChildrenExist: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -262,7 +268,7 @@ export function UserPreferenceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
||||
'comments': json['comments'] == null ? undefined : json['comments'],
|
||||
'shoppingAutoSync': json['shopping_auto_sync'] == null ? undefined : json['shopping_auto_sync'],
|
||||
'mealplanAutoaddShopping': json['mealplan_autoadd_shopping'] == null ? undefined : json['mealplan_autoadd_shopping'],
|
||||
'foodInheritDefault': json['food_inherit_default'],
|
||||
'foodInheritDefault': FoodInheritFieldFromJSON(json['food_inherit_default']),
|
||||
'defaultDelay': json['default_delay'] == null ? undefined : json['default_delay'],
|
||||
'mealplanAutoincludeRelated': json['mealplan_autoinclude_related'] == null ? undefined : json['mealplan_autoinclude_related'],
|
||||
'mealplanAutoexcludeOnhand': json['mealplan_autoexclude_onhand'] == null ? undefined : json['mealplan_autoexclude_onhand'],
|
||||
|
||||
@@ -4,10 +4,10 @@ export * from './AccessToken';
|
||||
export * from './AccessTokenRequest';
|
||||
export * from './AuthToken';
|
||||
export * from './AuthTokenRequest';
|
||||
export * from './AutoMealPlan';
|
||||
export * from './AutoMealPlanRequest';
|
||||
export * from './Automation';
|
||||
export * from './AutomationRequest';
|
||||
export * from './AutomationTypeEnum';
|
||||
export * from './BaseUnitEnum';
|
||||
export * from './BookmarkletImport';
|
||||
export * from './BookmarkletImportList';
|
||||
export * from './BookmarkletImportRequest';
|
||||
@@ -35,6 +35,7 @@ export * from './ImportLog';
|
||||
export * from './ImportLogRequest';
|
||||
export * from './Ingredient';
|
||||
export * from './IngredientRequest';
|
||||
export * from './IngredientStringRequest';
|
||||
export * from './InviteLink';
|
||||
export * from './InviteLinkRequest';
|
||||
export * from './Keyword';
|
||||
@@ -47,40 +48,37 @@ export * from './MealTypeRequest';
|
||||
export * from './MethodEnum';
|
||||
export * from './NutritionInformation';
|
||||
export * from './NutritionInformationRequest';
|
||||
export * from './OpenDataCategory';
|
||||
export * from './OpenDataCategoryRequest';
|
||||
export * from './OpenDataConversion';
|
||||
export * from './OpenDataConversionRequest';
|
||||
export * from './OpenDataFood';
|
||||
export * from './OpenDataFoodProperty';
|
||||
export * from './OpenDataFoodPropertyRequest';
|
||||
export * from './OpenDataFoodRequest';
|
||||
export * from './OpenDataProperty';
|
||||
export * from './OpenDataPropertyRequest';
|
||||
export * from './OpenDataStore';
|
||||
export * from './OpenDataStoreCategory';
|
||||
export * from './OpenDataStoreCategoryRequest';
|
||||
export * from './OpenDataStoreRequest';
|
||||
export * from './OpenDataUnit';
|
||||
export * from './OpenDataUnitRequest';
|
||||
export * from './OpenDataUnitTypeEnum';
|
||||
export * from './OpenDataVersion';
|
||||
export * from './OpenDataVersionRequest';
|
||||
export * from './PaginatedAutomationList';
|
||||
export * from './PaginatedBookmarkletImportListList';
|
||||
export * from './PaginatedCookLogList';
|
||||
export * from './PaginatedCustomFilterList';
|
||||
export * from './PaginatedExportLogList';
|
||||
export * from './PaginatedFoodList';
|
||||
export * from './PaginatedImportLogList';
|
||||
export * from './PaginatedIngredientList';
|
||||
export * from './PaginatedInviteLinkList';
|
||||
export * from './PaginatedKeywordList';
|
||||
export * from './PaginatedMealPlanList';
|
||||
export * from './PaginatedMealTypeList';
|
||||
export * from './PaginatedPropertyList';
|
||||
export * from './PaginatedPropertyTypeList';
|
||||
export * from './PaginatedRecipeBookEntryList';
|
||||
export * from './PaginatedRecipeBookList';
|
||||
export * from './PaginatedRecipeOverviewList';
|
||||
export * from './PaginatedShoppingListEntryList';
|
||||
export * from './PaginatedShoppingListRecipeList';
|
||||
export * from './PaginatedStepList';
|
||||
export * from './PaginatedSupermarketCategoryList';
|
||||
export * from './PaginatedSupermarketCategoryRelationList';
|
||||
export * from './PaginatedSupermarketList';
|
||||
export * from './PaginatedSyncList';
|
||||
export * from './PaginatedSyncLogList';
|
||||
export * from './PaginatedUnitConversionList';
|
||||
export * from './PaginatedUnitList';
|
||||
export * from './PaginatedUserFileList';
|
||||
export * from './PaginatedUserSpaceList';
|
||||
export * from './PaginatedViewLogList';
|
||||
export * from './ParsedIngredient';
|
||||
export * from './PatchedAccessTokenRequest';
|
||||
export * from './PatchedAutomationRequest';
|
||||
export * from './PatchedBookmarkletImportRequest';
|
||||
@@ -95,13 +93,6 @@ export * from './PatchedInviteLinkRequest';
|
||||
export * from './PatchedKeywordRequest';
|
||||
export * from './PatchedMealPlanRequest';
|
||||
export * from './PatchedMealTypeRequest';
|
||||
export * from './PatchedOpenDataCategoryRequest';
|
||||
export * from './PatchedOpenDataConversionRequest';
|
||||
export * from './PatchedOpenDataFoodRequest';
|
||||
export * from './PatchedOpenDataPropertyRequest';
|
||||
export * from './PatchedOpenDataStoreRequest';
|
||||
export * from './PatchedOpenDataUnitRequest';
|
||||
export * from './PatchedOpenDataVersionRequest';
|
||||
export * from './PatchedPropertyRequest';
|
||||
export * from './PatchedPropertyTypeRequest';
|
||||
export * from './PatchedRecipeBookEntryRequest';
|
||||
@@ -140,6 +131,7 @@ export * from './RecipeShoppingUpdate';
|
||||
export * from './RecipeShoppingUpdateRequest';
|
||||
export * from './RecipeSimple';
|
||||
export * from './RecipeSimpleRequest';
|
||||
export * from './ShareLink';
|
||||
export * from './ShoppingListEntry';
|
||||
export * from './ShoppingListEntryBulk';
|
||||
export * from './ShoppingListEntryBulkRequest';
|
||||
@@ -163,6 +155,7 @@ export * from './Sync';
|
||||
export * from './SyncLog';
|
||||
export * from './SyncRequest';
|
||||
export * from './ThemeEnum';
|
||||
export * from './TypeEnum';
|
||||
export * from './Unit';
|
||||
export * from './UnitConversion';
|
||||
export * from './UnitConversionRequest';
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
openapi-generator-cli generate -g typescript-fetch -i http://127.0.0.1:8000/openapi/
|
||||
openapi-generator-cli generate -g typescript-fetch -i http://127.0.0.1:8000/openapi/
|
||||
|
||||
cd ../../../vue/src/utils/openapi/
|
||||
openapi-generator-cli generate -g typescript-axios -i http://127.0.0.1:8000/openapi/
|
||||
Reference in New Issue
Block a user