mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
added recipe export
This commit is contained in:
@@ -6,6 +6,8 @@ models/AccessToken.ts
|
||||
models/AuthToken.ts
|
||||
models/AutoMealPlan.ts
|
||||
models/Automation.ts
|
||||
models/AutomationTypeEnum.ts
|
||||
models/BaseUnitEnum.ts
|
||||
models/BookmarkletImport.ts
|
||||
models/BookmarkletImportList.ts
|
||||
models/ConnectorConfigConfig.ts
|
||||
@@ -14,6 +16,7 @@ models/CustomFilter.ts
|
||||
models/DefaultPageEnum.ts
|
||||
models/DeleteEnum.ts
|
||||
models/ExportLog.ts
|
||||
models/ExportRequest.ts
|
||||
models/FdcQuery.ts
|
||||
models/FdcQueryFoods.ts
|
||||
models/Food.ts
|
||||
@@ -37,6 +40,16 @@ models/MealPlan.ts
|
||||
models/MealType.ts
|
||||
models/MethodEnum.ts
|
||||
models/NutritionInformation.ts
|
||||
models/OpenDataCategory.ts
|
||||
models/OpenDataConversion.ts
|
||||
models/OpenDataFood.ts
|
||||
models/OpenDataFoodProperty.ts
|
||||
models/OpenDataProperty.ts
|
||||
models/OpenDataStore.ts
|
||||
models/OpenDataStoreCategory.ts
|
||||
models/OpenDataUnit.ts
|
||||
models/OpenDataUnitTypeEnum.ts
|
||||
models/OpenDataVersion.ts
|
||||
models/PaginatedAutomationList.ts
|
||||
models/PaginatedBookmarkletImportListList.ts
|
||||
models/PaginatedCookLogList.ts
|
||||
@@ -83,6 +96,13 @@ models/PatchedInviteLink.ts
|
||||
models/PatchedKeyword.ts
|
||||
models/PatchedMealPlan.ts
|
||||
models/PatchedMealType.ts
|
||||
models/PatchedOpenDataCategory.ts
|
||||
models/PatchedOpenDataConversion.ts
|
||||
models/PatchedOpenDataFood.ts
|
||||
models/PatchedOpenDataProperty.ts
|
||||
models/PatchedOpenDataStore.ts
|
||||
models/PatchedOpenDataUnit.ts
|
||||
models/PatchedOpenDataVersion.ts
|
||||
models/PatchedProperty.ts
|
||||
models/PatchedPropertyType.ts
|
||||
models/PatchedRecipe.ts
|
||||
@@ -142,7 +162,6 @@ models/SupermarketCategoryRelation.ts
|
||||
models/Sync.ts
|
||||
models/SyncLog.ts
|
||||
models/ThemeEnum.ts
|
||||
models/TypeEnum.ts
|
||||
models/Unit.ts
|
||||
models/UnitConversion.ts
|
||||
models/User.ts
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { TypeEnum } from './TypeEnum';
|
||||
import type { AutomationTypeEnum } from './AutomationTypeEnum';
|
||||
import {
|
||||
TypeEnumFromJSON,
|
||||
TypeEnumFromJSONTyped,
|
||||
TypeEnumToJSON,
|
||||
} from './TypeEnum';
|
||||
AutomationTypeEnumFromJSON,
|
||||
AutomationTypeEnumFromJSONTyped,
|
||||
AutomationTypeEnumToJSON,
|
||||
} from './AutomationTypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -34,10 +34,10 @@ export interface Automation {
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {TypeEnum}
|
||||
* @type {AutomationTypeEnum}
|
||||
* @memberof Automation
|
||||
*/
|
||||
type: TypeEnum;
|
||||
type: AutomationTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -108,7 +108,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'type': TypeEnumFromJSON(json['type']),
|
||||
'type': AutomationTypeEnumFromJSON(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?: Omit<Automation, 'createdBy'> | null):
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
98
vue3/src/openapi/models/ExportRequest.ts
Normal file
98
vue3/src/openapi/models/ExportRequest.ts
Normal file
@@ -0,0 +1,98 @@
|
||||
/* 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 { CustomFilter } from './CustomFilter';
|
||||
import {
|
||||
CustomFilterFromJSON,
|
||||
CustomFilterFromJSONTyped,
|
||||
CustomFilterToJSON,
|
||||
} from './CustomFilter';
|
||||
import type { RecipeFlat } from './RecipeFlat';
|
||||
import {
|
||||
RecipeFlatFromJSON,
|
||||
RecipeFlatFromJSONTyped,
|
||||
RecipeFlatToJSON,
|
||||
} from './RecipeFlat';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ExportRequest
|
||||
*/
|
||||
export interface ExportRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ExportRequest
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ExportRequest
|
||||
*/
|
||||
all?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeFlat>}
|
||||
* @memberof ExportRequest
|
||||
*/
|
||||
recipes?: Array<RecipeFlat>;
|
||||
/**
|
||||
*
|
||||
* @type {CustomFilter}
|
||||
* @memberof ExportRequest
|
||||
*/
|
||||
customFilter?: CustomFilter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ExportRequest interface.
|
||||
*/
|
||||
export function instanceOfExportRequest(value: object): value is ExportRequest {
|
||||
if (!('type' in value) || value['type'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ExportRequestFromJSON(json: any): ExportRequest {
|
||||
return ExportRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ExportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': json['type'],
|
||||
'all': json['all'] == null ? undefined : json['all'],
|
||||
'recipes': json['recipes'] == null ? undefined : ((json['recipes'] as Array<any>).map(RecipeFlatFromJSON)),
|
||||
'customFilter': json['custom_filter'] == null ? undefined : CustomFilterFromJSON(json['custom_filter']),
|
||||
};
|
||||
}
|
||||
|
||||
export function ExportRequestToJSON(value?: ExportRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': value['type'],
|
||||
'all': value['all'],
|
||||
'recipes': value['recipes'] == null ? undefined : ((value['recipes'] as Array<any>).map(RecipeFlatToJSON)),
|
||||
'custom_filter': CustomFilterToJSON(value['customFilter']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,49 +31,43 @@ export interface ImportOpenDataResponse {
|
||||
* @type {ImportOpenDataResponseDetail}
|
||||
* @memberof ImportOpenDataResponse
|
||||
*/
|
||||
food: ImportOpenDataResponseDetail;
|
||||
food?: ImportOpenDataResponseDetail;
|
||||
/**
|
||||
*
|
||||
* @type {ImportOpenDataResponseDetail}
|
||||
* @memberof ImportOpenDataResponse
|
||||
*/
|
||||
unit: ImportOpenDataResponseDetail;
|
||||
unit?: ImportOpenDataResponseDetail;
|
||||
/**
|
||||
*
|
||||
* @type {ImportOpenDataResponseDetail}
|
||||
* @memberof ImportOpenDataResponse
|
||||
*/
|
||||
category: ImportOpenDataResponseDetail;
|
||||
category?: ImportOpenDataResponseDetail;
|
||||
/**
|
||||
*
|
||||
* @type {ImportOpenDataResponseDetail}
|
||||
* @memberof ImportOpenDataResponse
|
||||
*/
|
||||
property: ImportOpenDataResponseDetail;
|
||||
property?: ImportOpenDataResponseDetail;
|
||||
/**
|
||||
*
|
||||
* @type {ImportOpenDataResponseDetail}
|
||||
* @memberof ImportOpenDataResponse
|
||||
*/
|
||||
store: ImportOpenDataResponseDetail;
|
||||
store?: ImportOpenDataResponseDetail;
|
||||
/**
|
||||
*
|
||||
* @type {ImportOpenDataResponseDetail}
|
||||
* @memberof ImportOpenDataResponse
|
||||
*/
|
||||
conversion: ImportOpenDataResponseDetail;
|
||||
conversion?: ImportOpenDataResponseDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ImportOpenDataResponse interface.
|
||||
*/
|
||||
export function instanceOfImportOpenDataResponse(value: object): value is ImportOpenDataResponse {
|
||||
if (!('food' in value) || value['food'] === undefined) return false;
|
||||
if (!('unit' in value) || value['unit'] === undefined) return false;
|
||||
if (!('category' in value) || value['category'] === undefined) return false;
|
||||
if (!('property' in value) || value['property'] === undefined) return false;
|
||||
if (!('store' in value) || value['store'] === undefined) return false;
|
||||
if (!('conversion' in value) || value['conversion'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -87,12 +81,12 @@ export function ImportOpenDataResponseFromJSONTyped(json: any, ignoreDiscriminat
|
||||
}
|
||||
return {
|
||||
|
||||
'food': ImportOpenDataResponseDetailFromJSON(json['food']),
|
||||
'unit': ImportOpenDataResponseDetailFromJSON(json['unit']),
|
||||
'category': ImportOpenDataResponseDetailFromJSON(json['category']),
|
||||
'property': ImportOpenDataResponseDetailFromJSON(json['property']),
|
||||
'store': ImportOpenDataResponseDetailFromJSON(json['store']),
|
||||
'conversion': ImportOpenDataResponseDetailFromJSON(json['conversion']),
|
||||
'food': json['food'] == null ? undefined : ImportOpenDataResponseDetailFromJSON(json['food']),
|
||||
'unit': json['unit'] == null ? undefined : ImportOpenDataResponseDetailFromJSON(json['unit']),
|
||||
'category': json['category'] == null ? undefined : ImportOpenDataResponseDetailFromJSON(json['category']),
|
||||
'property': json['property'] == null ? undefined : ImportOpenDataResponseDetailFromJSON(json['property']),
|
||||
'store': json['store'] == null ? undefined : ImportOpenDataResponseDetailFromJSON(json['store']),
|
||||
'conversion': json['conversion'] == null ? undefined : ImportOpenDataResponseDetailFromJSON(json['conversion']),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -24,35 +24,31 @@ export interface ImportOpenDataResponseDetail {
|
||||
* @type {number}
|
||||
* @memberof ImportOpenDataResponseDetail
|
||||
*/
|
||||
totalCreated: number;
|
||||
totalCreated?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ImportOpenDataResponseDetail
|
||||
*/
|
||||
totalUpdated: number;
|
||||
totalUpdated?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ImportOpenDataResponseDetail
|
||||
*/
|
||||
totalUntouched: number;
|
||||
totalUntouched?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ImportOpenDataResponseDetail
|
||||
*/
|
||||
totalErrored: number;
|
||||
totalErrored?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ImportOpenDataResponseDetail interface.
|
||||
*/
|
||||
export function instanceOfImportOpenDataResponseDetail(value: object): value is ImportOpenDataResponseDetail {
|
||||
if (!('totalCreated' in value) || value['totalCreated'] === undefined) return false;
|
||||
if (!('totalUpdated' in value) || value['totalUpdated'] === undefined) return false;
|
||||
if (!('totalUntouched' in value) || value['totalUntouched'] === undefined) return false;
|
||||
if (!('totalErrored' in value) || value['totalErrored'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -66,10 +62,10 @@ export function ImportOpenDataResponseDetailFromJSONTyped(json: any, ignoreDiscr
|
||||
}
|
||||
return {
|
||||
|
||||
'totalCreated': json['total_created'],
|
||||
'totalUpdated': json['total_updated'],
|
||||
'totalUntouched': json['total_untouched'],
|
||||
'totalErrored': json['total_errored'],
|
||||
'totalCreated': json['total_created'] == null ? undefined : json['total_created'],
|
||||
'totalUpdated': json['total_updated'] == null ? undefined : json['total_updated'],
|
||||
'totalUntouched': json['total_untouched'] == null ? undefined : json['total_untouched'],
|
||||
'totalErrored': json['total_errored'] == null ? undefined : json['total_errored'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { TypeEnum } from './TypeEnum';
|
||||
import type { AutomationTypeEnum } from './AutomationTypeEnum';
|
||||
import {
|
||||
TypeEnumFromJSON,
|
||||
TypeEnumFromJSONTyped,
|
||||
TypeEnumToJSON,
|
||||
} from './TypeEnum';
|
||||
AutomationTypeEnumFromJSON,
|
||||
AutomationTypeEnumFromJSONTyped,
|
||||
AutomationTypeEnumToJSON,
|
||||
} from './AutomationTypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -34,10 +34,10 @@ export interface PatchedAutomation {
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {TypeEnum}
|
||||
* @type {AutomationTypeEnum}
|
||||
* @memberof PatchedAutomation
|
||||
*/
|
||||
type?: TypeEnum;
|
||||
type?: AutomationTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -106,7 +106,7 @@ export function PatchedAutomationFromJSONTyped(json: any, ignoreDiscriminator: b
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'type': json['type'] == null ? undefined : TypeEnumFromJSON(json['type']),
|
||||
'type': json['type'] == null ? undefined : AutomationTypeEnumFromJSON(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'],
|
||||
@@ -125,7 +125,7 @@ export function PatchedAutomationToJSON(value?: Omit<PatchedAutomation, 'created
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
@@ -4,6 +4,8 @@ export * from './AccessToken';
|
||||
export * from './AuthToken';
|
||||
export * from './AutoMealPlan';
|
||||
export * from './Automation';
|
||||
export * from './AutomationTypeEnum';
|
||||
export * from './BaseUnitEnum';
|
||||
export * from './BookmarkletImport';
|
||||
export * from './BookmarkletImportList';
|
||||
export * from './ConnectorConfigConfig';
|
||||
@@ -12,6 +14,7 @@ export * from './CustomFilter';
|
||||
export * from './DefaultPageEnum';
|
||||
export * from './DeleteEnum';
|
||||
export * from './ExportLog';
|
||||
export * from './ExportRequest';
|
||||
export * from './FdcQuery';
|
||||
export * from './FdcQueryFoods';
|
||||
export * from './Food';
|
||||
@@ -35,6 +38,16 @@ export * from './MealPlan';
|
||||
export * from './MealType';
|
||||
export * from './MethodEnum';
|
||||
export * from './NutritionInformation';
|
||||
export * from './OpenDataCategory';
|
||||
export * from './OpenDataConversion';
|
||||
export * from './OpenDataFood';
|
||||
export * from './OpenDataFoodProperty';
|
||||
export * from './OpenDataProperty';
|
||||
export * from './OpenDataStore';
|
||||
export * from './OpenDataStoreCategory';
|
||||
export * from './OpenDataUnit';
|
||||
export * from './OpenDataUnitTypeEnum';
|
||||
export * from './OpenDataVersion';
|
||||
export * from './PaginatedAutomationList';
|
||||
export * from './PaginatedBookmarkletImportListList';
|
||||
export * from './PaginatedCookLogList';
|
||||
@@ -81,6 +94,13 @@ export * from './PatchedInviteLink';
|
||||
export * from './PatchedKeyword';
|
||||
export * from './PatchedMealPlan';
|
||||
export * from './PatchedMealType';
|
||||
export * from './PatchedOpenDataCategory';
|
||||
export * from './PatchedOpenDataConversion';
|
||||
export * from './PatchedOpenDataFood';
|
||||
export * from './PatchedOpenDataProperty';
|
||||
export * from './PatchedOpenDataStore';
|
||||
export * from './PatchedOpenDataUnit';
|
||||
export * from './PatchedOpenDataVersion';
|
||||
export * from './PatchedProperty';
|
||||
export * from './PatchedPropertyType';
|
||||
export * from './PatchedRecipe';
|
||||
@@ -140,7 +160,6 @@ export * from './SupermarketCategoryRelation';
|
||||
export * from './Sync';
|
||||
export * from './SyncLog';
|
||||
export * from './ThemeEnum';
|
||||
export * from './TypeEnum';
|
||||
export * from './Unit';
|
||||
export * from './UnitConversion';
|
||||
export * from './User';
|
||||
|
||||
Reference in New Issue
Block a user