mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
import stuff
This commit is contained in:
@@ -13,6 +13,13 @@
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { SourceImportDuplicate } from './SourceImportDuplicate';
|
||||
import {
|
||||
SourceImportDuplicateFromJSON,
|
||||
SourceImportDuplicateFromJSONTyped,
|
||||
SourceImportDuplicateToJSON,
|
||||
SourceImportDuplicateToJSONTyped,
|
||||
} from './SourceImportDuplicate';
|
||||
import type { SourceImportRecipe } from './SourceImportRecipe';
|
||||
import {
|
||||
SourceImportRecipeFromJSON,
|
||||
@@ -35,10 +42,10 @@ export interface RecipeFromSourceResponse {
|
||||
recipe?: SourceImportRecipe;
|
||||
/**
|
||||
*
|
||||
* @type {Array<any>}
|
||||
* @type {Array<string>}
|
||||
* @memberof RecipeFromSourceResponse
|
||||
*/
|
||||
images?: Array<any>;
|
||||
images?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
@@ -53,10 +60,10 @@ export interface RecipeFromSourceResponse {
|
||||
msg?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<number>}
|
||||
* @type {Array<SourceImportDuplicate>}
|
||||
* @memberof RecipeFromSourceResponse
|
||||
*/
|
||||
duplicate?: Array<number>;
|
||||
duplicates?: Array<SourceImportDuplicate>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,7 +87,7 @@ export function RecipeFromSourceResponseFromJSONTyped(json: any, ignoreDiscrimin
|
||||
'images': json['images'] == null ? undefined : json['images'],
|
||||
'error': json['error'] == null ? undefined : json['error'],
|
||||
'msg': json['msg'] == null ? undefined : json['msg'],
|
||||
'duplicate': json['duplicate'] == null ? undefined : json['duplicate'],
|
||||
'duplicates': json['duplicates'] == null ? undefined : ((json['duplicates'] as Array<any>).map(SourceImportDuplicateFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -99,7 +106,7 @@ export function RecipeFromSourceResponseToJSONTyped(value?: RecipeFromSourceResp
|
||||
'images': value['images'],
|
||||
'error': value['error'],
|
||||
'msg': value['msg'],
|
||||
'duplicate': value['duplicate'],
|
||||
'duplicates': value['duplicates'] == null ? undefined : ((value['duplicates'] as Array<any>).map(SourceImportDuplicateToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
74
vue3/src/openapi/models/SourceImportDuplicate.ts
Normal file
74
vue3/src/openapi/models/SourceImportDuplicate.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/* 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 SourceImportDuplicate
|
||||
*/
|
||||
export interface SourceImportDuplicate {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SourceImportDuplicate
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SourceImportDuplicate
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SourceImportDuplicate interface.
|
||||
*/
|
||||
export function instanceOfSourceImportDuplicate(value: object): value is SourceImportDuplicate {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SourceImportDuplicateFromJSON(json: any): SourceImportDuplicate {
|
||||
return SourceImportDuplicateFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SourceImportDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceImportDuplicate {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SourceImportDuplicateToJSON(json: any): SourceImportDuplicate {
|
||||
return SourceImportDuplicateToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SourceImportDuplicateToJSONTyped(value?: SourceImportDuplicate | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -131,6 +131,7 @@ export * from './ShareLink';
|
||||
export * from './ShoppingListEntry';
|
||||
export * from './ShoppingListEntryBulk';
|
||||
export * from './ShoppingListRecipe';
|
||||
export * from './SourceImportDuplicate';
|
||||
export * from './SourceImportFood';
|
||||
export * from './SourceImportIngredient';
|
||||
export * from './SourceImportKeyword';
|
||||
|
||||
Reference in New Issue
Block a user