mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
added AI text import
This commit is contained in:
@@ -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 {
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {AutomationTypeEnum}
|
||||
* @type {TypeEnum}
|
||||
* @memberof Automation
|
||||
*/
|
||||
type: AutomationTypeEnum;
|
||||
type: TypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -108,7 +108,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : 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?: Omit<Automation, 'createdBy'> | null):
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
@@ -64,7 +64,7 @@ export interface Group {
|
||||
* @type {string}
|
||||
* @memberof Group
|
||||
*/
|
||||
name: string;
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,14 +90,13 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
||||
};
|
||||
}
|
||||
|
||||
export function GroupToJSON(value?: Group | null): any {
|
||||
export function GroupToJSON(value?: Omit<Group, 'name'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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 PatchedAutomation {
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {AutomationTypeEnum}
|
||||
* @type {TypeEnum}
|
||||
* @memberof PatchedAutomation
|
||||
*/
|
||||
type?: AutomationTypeEnum;
|
||||
type?: TypeEnum;
|
||||
/**
|
||||
*
|
||||
* @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 : 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'],
|
||||
@@ -125,7 +125,7 @@ export function PatchedAutomationToJSON(value?: Omit<PatchedAutomation, 'created
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'type': AutomationTypeEnumToJSON(value['type']),
|
||||
'type': TypeEnumToJSON(value['type']),
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
'param_1': value['param1'],
|
||||
|
||||
@@ -54,19 +54,19 @@ export interface PatchedUser {
|
||||
* @type {boolean}
|
||||
* @memberof PatchedUser
|
||||
*/
|
||||
isStaff?: boolean;
|
||||
readonly isStaff?: boolean;
|
||||
/**
|
||||
* Designates that this user has all permissions without explicitly assigning them.
|
||||
* @type {boolean}
|
||||
* @memberof PatchedUser
|
||||
*/
|
||||
isSuperuser?: boolean;
|
||||
readonly isSuperuser?: boolean;
|
||||
/**
|
||||
* Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
|
||||
* @type {boolean}
|
||||
* @memberof PatchedUser
|
||||
*/
|
||||
isActive?: boolean;
|
||||
readonly isActive?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +97,7 @@ export function PatchedUserFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
||||
};
|
||||
}
|
||||
|
||||
export function PatchedUserToJSON(value?: Omit<PatchedUser, 'username'|'displayName'> | null): any {
|
||||
export function PatchedUserToJSON(value?: Omit<PatchedUser, 'username'|'displayName'|'isStaff'|'isSuperuser'|'isActive'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
@@ -106,9 +106,6 @@ export function PatchedUserToJSON(value?: Omit<PatchedUser, 'username'|'displayN
|
||||
'id': value['id'],
|
||||
'first_name': value['firstName'],
|
||||
'last_name': value['lastName'],
|
||||
'is_staff': value['isStaff'],
|
||||
'is_superuser': value['isSuperuser'],
|
||||
'is_active': value['isActive'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ export interface SourceImportKeyword {
|
||||
* @type {boolean}
|
||||
* @memberof SourceImportKeyword
|
||||
*/
|
||||
importKeyword: boolean;
|
||||
importKeyword?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -51,7 +51,6 @@ export interface SourceImportKeyword {
|
||||
export function instanceOfSourceImportKeyword(value: object): value is SourceImportKeyword {
|
||||
if (!('label' in value) || value['label'] === undefined) return false;
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('importKeyword' in value) || value['importKeyword'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -68,7 +67,7 @@ export function SourceImportKeywordFromJSONTyped(json: any, ignoreDiscriminator:
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'label': json['label'],
|
||||
'name': json['name'],
|
||||
'importKeyword': json['import_keyword'],
|
||||
'importKeyword': json['import_keyword'] == null ? undefined : json['import_keyword'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ export interface SourceImportRecipe {
|
||||
* @type {boolean}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
internal: boolean;
|
||||
internal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -67,49 +67,49 @@ export interface SourceImportRecipe {
|
||||
* @type {string}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
servings: number;
|
||||
servings?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
servingsText: string;
|
||||
servingsText?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
workingTime: number;
|
||||
workingTime?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
waitingTime: number;
|
||||
waitingTime?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
imageUrl: string;
|
||||
imageUrl?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SourceImportKeyword>}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
keywords: Array<SourceImportKeyword>;
|
||||
keywords?: Array<SourceImportKeyword>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SourceImportProperty>}
|
||||
* @memberof SourceImportRecipe
|
||||
*/
|
||||
properties: Array<SourceImportProperty>;
|
||||
properties?: Array<SourceImportProperty>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -117,17 +117,8 @@ export interface SourceImportRecipe {
|
||||
*/
|
||||
export function instanceOfSourceImportRecipe(value: object): value is SourceImportRecipe {
|
||||
if (!('steps' in value) || value['steps'] === undefined) return false;
|
||||
if (!('internal' in value) || value['internal'] === undefined) return false;
|
||||
if (!('sourceUrl' in value) || value['sourceUrl'] === undefined) return false;
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('description' in value) || value['description'] === undefined) return false;
|
||||
if (!('servings' in value) || value['servings'] === undefined) return false;
|
||||
if (!('servingsText' in value) || value['servingsText'] === undefined) return false;
|
||||
if (!('workingTime' in value) || value['workingTime'] === undefined) return false;
|
||||
if (!('waitingTime' in value) || value['waitingTime'] === undefined) return false;
|
||||
if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false;
|
||||
if (!('keywords' in value) || value['keywords'] === undefined) return false;
|
||||
if (!('properties' in value) || value['properties'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -142,17 +133,17 @@ export function SourceImportRecipeFromJSONTyped(json: any, ignoreDiscriminator:
|
||||
return {
|
||||
|
||||
'steps': ((json['steps'] as Array<any>).map(SourceImportStepFromJSON)),
|
||||
'internal': json['internal'],
|
||||
'internal': json['internal'] == null ? undefined : json['internal'],
|
||||
'sourceUrl': json['source_url'],
|
||||
'name': json['name'],
|
||||
'description': json['description'],
|
||||
'servings': json['servings'],
|
||||
'servingsText': json['servings_text'],
|
||||
'workingTime': json['working_time'],
|
||||
'waitingTime': json['waiting_time'],
|
||||
'imageUrl': json['image_url'],
|
||||
'keywords': ((json['keywords'] as Array<any>).map(SourceImportKeywordFromJSON)),
|
||||
'properties': ((json['properties'] as Array<any>).map(SourceImportPropertyFromJSON)),
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'servings': json['servings'] == null ? undefined : json['servings'],
|
||||
'servingsText': json['servings_text'] == null ? undefined : json['servings_text'],
|
||||
'workingTime': json['working_time'] == null ? undefined : json['working_time'],
|
||||
'waitingTime': json['waiting_time'] == null ? undefined : json['waiting_time'],
|
||||
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
||||
'keywords': json['keywords'] == null ? undefined : ((json['keywords'] as Array<any>).map(SourceImportKeywordFromJSON)),
|
||||
'properties': json['properties'] == null ? undefined : ((json['properties'] as Array<any>).map(SourceImportPropertyFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -172,8 +163,8 @@ export function SourceImportRecipeToJSON(value?: SourceImportRecipe | null): any
|
||||
'working_time': value['workingTime'],
|
||||
'waiting_time': value['waitingTime'],
|
||||
'image_url': value['imageUrl'],
|
||||
'keywords': ((value['keywords'] as Array<any>).map(SourceImportKeywordToJSON)),
|
||||
'properties': ((value['properties'] as Array<any>).map(SourceImportPropertyToJSON)),
|
||||
'keywords': value['keywords'] == null ? undefined : ((value['keywords'] as Array<any>).map(SourceImportKeywordToJSON)),
|
||||
'properties': value['properties'] == null ? undefined : ((value['properties'] as Array<any>).map(SourceImportPropertyToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ export interface SourceImportStep {
|
||||
* @type {boolean}
|
||||
* @memberof SourceImportStep
|
||||
*/
|
||||
showIngredientsTable: boolean;
|
||||
showIngredientsTable?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,7 +52,6 @@ export interface SourceImportStep {
|
||||
export function instanceOfSourceImportStep(value: object): value is SourceImportStep {
|
||||
if (!('instruction' in value) || value['instruction'] === undefined) return false;
|
||||
if (!('ingredients' in value) || value['ingredients'] === undefined) return false;
|
||||
if (!('showIngredientsTable' in value) || value['showIngredientsTable'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -68,7 +67,7 @@ export function SourceImportStepFromJSONTyped(json: any, ignoreDiscriminator: bo
|
||||
|
||||
'instruction': json['instruction'],
|
||||
'ingredients': ((json['ingredients'] as Array<any>).map(SourceImportIngredientFromJSON)),
|
||||
'showIngredientsTable': json['show_ingredients_table'],
|
||||
'showIngredientsTable': json['show_ingredients_table'] == null ? undefined : json['show_ingredients_table'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -54,19 +54,19 @@ export interface User {
|
||||
* @type {boolean}
|
||||
* @memberof User
|
||||
*/
|
||||
isStaff?: boolean;
|
||||
readonly isStaff: boolean;
|
||||
/**
|
||||
* Designates that this user has all permissions without explicitly assigning them.
|
||||
* @type {boolean}
|
||||
* @memberof User
|
||||
*/
|
||||
isSuperuser?: boolean;
|
||||
readonly isSuperuser: boolean;
|
||||
/**
|
||||
* Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
|
||||
* @type {boolean}
|
||||
* @memberof User
|
||||
*/
|
||||
isActive?: boolean;
|
||||
readonly isActive: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,6 +75,9 @@ export interface User {
|
||||
export function instanceOfUser(value: object): value is User {
|
||||
if (!('username' in value) || value['username'] === undefined) return false;
|
||||
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
||||
if (!('isStaff' in value) || value['isStaff'] === undefined) return false;
|
||||
if (!('isSuperuser' in value) || value['isSuperuser'] === undefined) return false;
|
||||
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -93,13 +96,13 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
||||
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
||||
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
||||
'displayName': json['display_name'],
|
||||
'isStaff': json['is_staff'] == null ? undefined : json['is_staff'],
|
||||
'isSuperuser': json['is_superuser'] == null ? undefined : json['is_superuser'],
|
||||
'isActive': json['is_active'] == null ? undefined : json['is_active'],
|
||||
'isStaff': json['is_staff'],
|
||||
'isSuperuser': json['is_superuser'],
|
||||
'isActive': json['is_active'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UserToJSON(value?: Omit<User, 'username'|'displayName'> | null): any {
|
||||
export function UserToJSON(value?: Omit<User, 'username'|'displayName'|'isStaff'|'isSuperuser'|'isActive'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
@@ -108,9 +111,6 @@ export function UserToJSON(value?: Omit<User, 'username'|'displayName'> | null):
|
||||
'id': value['id'],
|
||||
'first_name': value['firstName'],
|
||||
'last_name': value['lastName'],
|
||||
'is_staff': value['isStaff'],
|
||||
'is_superuser': value['isSuperuser'],
|
||||
'is_active': value['isActive'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ 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';
|
||||
@@ -32,16 +30,6 @@ 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';
|
||||
@@ -88,13 +76,6 @@ 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';
|
||||
@@ -154,6 +135,7 @@ 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