mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 22:58:19 -05:00
steps overview in recipe view
This commit is contained in:
@@ -1,110 +0,0 @@
|
|||||||
.openapi-generator-ignore
|
|
||||||
apis/ApiApi.ts
|
|
||||||
apis/ApiImportOpenDataApi.ts
|
|
||||||
apis/ApiTokenAuthApi.ts
|
|
||||||
apis/index.ts
|
|
||||||
index.ts
|
|
||||||
models/AccessToken.ts
|
|
||||||
models/AuthToken.ts
|
|
||||||
models/Automation.ts
|
|
||||||
models/BookmarkletImport.ts
|
|
||||||
models/BookmarkletImportList.ts
|
|
||||||
models/CookLog.ts
|
|
||||||
models/CustomFilter.ts
|
|
||||||
models/CustomFilterSharedInner.ts
|
|
||||||
models/ExportLog.ts
|
|
||||||
models/Food.ts
|
|
||||||
models/FoodInheritField.ts
|
|
||||||
models/FoodInheritFieldsInner.ts
|
|
||||||
models/FoodPropertiesFoodUnit.ts
|
|
||||||
models/FoodPropertiesInner.ts
|
|
||||||
models/FoodPropertiesInnerPropertyType.ts
|
|
||||||
models/FoodRecipe.ts
|
|
||||||
models/FoodShoppingUpdate.ts
|
|
||||||
models/FoodSubstituteInner.ts
|
|
||||||
models/FoodSupermarketCategory.ts
|
|
||||||
models/Group.ts
|
|
||||||
models/ImportLog.ts
|
|
||||||
models/ImportLogKeyword.ts
|
|
||||||
models/Ingredient.ts
|
|
||||||
models/IngredientFood.ts
|
|
||||||
models/InviteLink.ts
|
|
||||||
models/InviteLinkGroup.ts
|
|
||||||
models/Keyword.ts
|
|
||||||
models/ListCookLogs200Response.ts
|
|
||||||
models/ListExportLogs200Response.ts
|
|
||||||
models/ListFoods200Response.ts
|
|
||||||
models/ListImportLogs200Response.ts
|
|
||||||
models/ListIngredients200Response.ts
|
|
||||||
models/ListKeywords200Response.ts
|
|
||||||
models/ListRecipes200Response.ts
|
|
||||||
models/ListSteps200Response.ts
|
|
||||||
models/ListSupermarketCategoryRelations200Response.ts
|
|
||||||
models/ListSyncLogs200Response.ts
|
|
||||||
models/ListUnits200Response.ts
|
|
||||||
models/ListUserSpaces200Response.ts
|
|
||||||
models/ListViewLogs200Response.ts
|
|
||||||
models/MealPlan.ts
|
|
||||||
models/MealPlanMealType.ts
|
|
||||||
models/MealPlanRecipe.ts
|
|
||||||
models/MealPlanRecipeKeywordsInner.ts
|
|
||||||
models/MealType.ts
|
|
||||||
models/OpenDataCategory.ts
|
|
||||||
models/OpenDataConversion.ts
|
|
||||||
models/OpenDataConversionFood.ts
|
|
||||||
models/OpenDataConversionFoodPreferredUnitMetric.ts
|
|
||||||
models/OpenDataConversionFoodPropertiesFoodUnit.ts
|
|
||||||
models/OpenDataConversionFoodPropertiesInner.ts
|
|
||||||
models/OpenDataConversionFoodPropertiesInnerProperty.ts
|
|
||||||
models/OpenDataFood.ts
|
|
||||||
models/OpenDataProperty.ts
|
|
||||||
models/OpenDataStore.ts
|
|
||||||
models/OpenDataStoreCategoryToStoreInner.ts
|
|
||||||
models/OpenDataStoreCategoryToStoreInnerCategory.ts
|
|
||||||
models/OpenDataUnit.ts
|
|
||||||
models/OpenDataUnitVersion.ts
|
|
||||||
models/OpenDataVersion.ts
|
|
||||||
models/Property.ts
|
|
||||||
models/PropertyType.ts
|
|
||||||
models/Recipe.ts
|
|
||||||
models/RecipeBook.ts
|
|
||||||
models/RecipeBookEntry.ts
|
|
||||||
models/RecipeBookFilter.ts
|
|
||||||
models/RecipeImage.ts
|
|
||||||
models/RecipeKeywordsInner.ts
|
|
||||||
models/RecipeNutrition.ts
|
|
||||||
models/RecipeOverview.ts
|
|
||||||
models/RecipeShoppingUpdate.ts
|
|
||||||
models/RecipeSimple.ts
|
|
||||||
models/RecipeStepsInner.ts
|
|
||||||
models/RecipeStepsInnerFile.ts
|
|
||||||
models/RecipeStepsInnerIngredientsInner.ts
|
|
||||||
models/ShoppingList.ts
|
|
||||||
models/ShoppingListEntriesInner.ts
|
|
||||||
models/ShoppingListEntriesInnerCreatedBy.ts
|
|
||||||
models/ShoppingListEntriesInnerRecipeMealplan.ts
|
|
||||||
models/ShoppingListEntry.ts
|
|
||||||
models/ShoppingListEntryBulk.ts
|
|
||||||
models/ShoppingListRecipe.ts
|
|
||||||
models/ShoppingListRecipesInner.ts
|
|
||||||
models/ShoppingListSupermarket.ts
|
|
||||||
models/ShoppingListSupermarketCategoryToSupermarketInner.ts
|
|
||||||
models/ShoppingListSupermarketCategoryToSupermarketInnerCategory.ts
|
|
||||||
models/Space.ts
|
|
||||||
models/Step.ts
|
|
||||||
models/Storage.ts
|
|
||||||
models/Supermarket.ts
|
|
||||||
models/SupermarketCategory.ts
|
|
||||||
models/SupermarketCategoryRelation.ts
|
|
||||||
models/Sync.ts
|
|
||||||
models/SyncLog.ts
|
|
||||||
models/Unit.ts
|
|
||||||
models/UnitConversion.ts
|
|
||||||
models/UnitConversionBaseUnit.ts
|
|
||||||
models/User.ts
|
|
||||||
models/UserFile.ts
|
|
||||||
models/UserPreference.ts
|
|
||||||
models/UserSpace.ts
|
|
||||||
models/ViewLog.ts
|
|
||||||
models/index.ts
|
|
||||||
runtime.ts
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
7.3.0
|
|
||||||
8
vue3/.vite/deps/_metadata.json
Normal file
8
vue3/.vite/deps/_metadata.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"hash": "07ff001c",
|
||||||
|
"configHash": "9d5c5d47",
|
||||||
|
"lockfileHash": "04d75623",
|
||||||
|
"browserHash": "e755c4e4",
|
||||||
|
"optimized": {},
|
||||||
|
"chunks": {}
|
||||||
|
}
|
||||||
3
vue3/.vite/deps/package.json
Normal file
3
vue3/.vite/deps/package.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
||||||
9885
vue3/apis/ApiApi.ts
9885
vue3/apis/ApiApi.ts
File diff suppressed because it is too large
Load Diff
@@ -1,86 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import * as runtime from '../runtime';
|
|
||||||
|
|
||||||
export interface CreateImportOpenDataRequest {
|
|
||||||
body?: any | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class ApiImportOpenDataApi extends runtime.BaseAPI {
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async createImportOpenDataRaw(requestParameters: CreateImportOpenDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api-import-open-data/`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: requestParameters.body as any,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
|
||||||
} else {
|
|
||||||
return new runtime.TextApiResponse(response) as any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async createImportOpenData(requestParameters: CreateImportOpenDataRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
|
|
||||||
const response = await this.createImportOpenDataRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async listImportOpenDatasRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<any>>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api-import-open-data/`,
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse<any>(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async listImportOpenDatas(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<any>> {
|
|
||||||
const response = await this.listImportOpenDatasRaw(initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import * as runtime from '../runtime';
|
|
||||||
import type {
|
|
||||||
AuthToken,
|
|
||||||
} from '../models/index';
|
|
||||||
import {
|
|
||||||
AuthTokenFromJSON,
|
|
||||||
AuthTokenToJSON,
|
|
||||||
} from '../models/index';
|
|
||||||
|
|
||||||
export interface CreateAuthTokenRequest {
|
|
||||||
username: string;
|
|
||||||
password: string;
|
|
||||||
token?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export class ApiTokenAuthApi extends runtime.BaseAPI {
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async createAuthTokenRaw(requestParameters: CreateAuthTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthToken>> {
|
|
||||||
if (requestParameters.username === null || requestParameters.username === undefined) {
|
|
||||||
throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling createAuthToken.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters.password === null || requestParameters.password === undefined) {
|
|
||||||
throw new runtime.RequiredError('password','Required parameter requestParameters.password was null or undefined when calling createAuthToken.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
const consumes: runtime.Consume[] = [
|
|
||||||
{ contentType: 'application/x-www-form-urlencoded' },
|
|
||||||
{ contentType: 'multipart/form-data' },
|
|
||||||
{ contentType: 'application/json' },
|
|
||||||
];
|
|
||||||
// @ts-ignore: canConsumeForm may be unused
|
|
||||||
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
||||||
|
|
||||||
let formParams: { append(param: string, value: any): any };
|
|
||||||
let useForm = false;
|
|
||||||
if (useForm) {
|
|
||||||
formParams = new FormData();
|
|
||||||
} else {
|
|
||||||
formParams = new URLSearchParams();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters.username !== undefined) {
|
|
||||||
formParams.append('username', requestParameters.username as any);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters.password !== undefined) {
|
|
||||||
formParams.append('password', requestParameters.password as any);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requestParameters.token !== undefined) {
|
|
||||||
formParams.append('token', requestParameters.token as any);
|
|
||||||
}
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/api-token-auth/`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: formParams,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => AuthTokenFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
async createAuthToken(requestParameters: CreateAuthTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthToken> {
|
|
||||||
const response = await this.createAuthTokenRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export * from './ApiApi';
|
|
||||||
export * from './ApiImportOpenDataApi';
|
|
||||||
export * from './ApiTokenAuthApi';
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export * from './runtime';
|
|
||||||
export * from './apis/index';
|
|
||||||
export * from './models/index';
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface AccessToken
|
|
||||||
*/
|
|
||||||
export interface AccessToken {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof AccessToken
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AccessToken
|
|
||||||
*/
|
|
||||||
readonly token?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof AccessToken
|
|
||||||
*/
|
|
||||||
expires: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AccessToken
|
|
||||||
*/
|
|
||||||
scope?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof AccessToken
|
|
||||||
*/
|
|
||||||
readonly created?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof AccessToken
|
|
||||||
*/
|
|
||||||
readonly updated?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the AccessToken interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfAccessToken(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "expires" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AccessTokenFromJSON(json: any): AccessToken {
|
|
||||||
return AccessTokenFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessToken {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
|
||||||
'expires': (new Date(json['expires'])),
|
|
||||||
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
|
||||||
'created': !exists(json, 'created') ? undefined : (new Date(json['created'])),
|
|
||||||
'updated': !exists(json, 'updated') ? undefined : (new Date(json['updated'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AccessTokenToJSON(value?: AccessToken | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'expires': (value.expires.toISOString()),
|
|
||||||
'scope': value.scope,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface AuthToken
|
|
||||||
*/
|
|
||||||
export interface AuthToken {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AuthToken
|
|
||||||
*/
|
|
||||||
username: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AuthToken
|
|
||||||
*/
|
|
||||||
password: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AuthToken
|
|
||||||
*/
|
|
||||||
readonly token?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the AuthToken interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfAuthToken(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "username" in value;
|
|
||||||
isInstance = isInstance && "password" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AuthTokenFromJSON(json: any): AuthToken {
|
|
||||||
return AuthTokenFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AuthTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthToken {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'username': json['username'],
|
|
||||||
'password': json['password'],
|
|
||||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AuthTokenToJSON(value?: AuthToken | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'username': value.username,
|
|
||||||
'password': value.password,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,155 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Automation
|
|
||||||
*/
|
|
||||||
export interface Automation {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
type: AutomationTypeEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
param1?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
param2?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
param3?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
disabled?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Automation
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const AutomationTypeEnum = {
|
|
||||||
FoodAlias: 'FOOD_ALIAS',
|
|
||||||
UnitAlias: 'UNIT_ALIAS',
|
|
||||||
KeywordAlias: 'KEYWORD_ALIAS',
|
|
||||||
DescriptionReplace: 'DESCRIPTION_REPLACE',
|
|
||||||
InstructionReplace: 'INSTRUCTION_REPLACE',
|
|
||||||
NeverUnit: 'NEVER_UNIT',
|
|
||||||
TransposeWords: 'TRANSPOSE_WORDS',
|
|
||||||
FoodReplace: 'FOOD_REPLACE',
|
|
||||||
UnitReplace: 'UNIT_REPLACE',
|
|
||||||
NameReplace: 'NAME_REPLACE'
|
|
||||||
} as const;
|
|
||||||
export type AutomationTypeEnum = typeof AutomationTypeEnum[keyof typeof AutomationTypeEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Automation interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfAutomation(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AutomationFromJSON(json: any): Automation {
|
|
||||||
return AutomationFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Automation {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'type': json['type'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'param1': !exists(json, 'param_1') ? undefined : json['param_1'],
|
|
||||||
'param2': !exists(json, 'param_2') ? undefined : json['param_2'],
|
|
||||||
'param3': !exists(json, 'param_3') ? undefined : json['param_3'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'disabled': !exists(json, 'disabled') ? undefined : json['disabled'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function AutomationToJSON(value?: Automation | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'type': value.type,
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'param_1': value.param1,
|
|
||||||
'param_2': value.param2,
|
|
||||||
'param_3': value.param3,
|
|
||||||
'order': value.order,
|
|
||||||
'disabled': value.disabled,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface BookmarkletImport
|
|
||||||
*/
|
|
||||||
export interface BookmarkletImport {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof BookmarkletImport
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof BookmarkletImport
|
|
||||||
*/
|
|
||||||
url?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof BookmarkletImport
|
|
||||||
*/
|
|
||||||
html: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof BookmarkletImport
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof BookmarkletImport
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the BookmarkletImport interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfBookmarkletImport(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "html" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportFromJSON(json: any): BookmarkletImport {
|
|
||||||
return BookmarkletImportFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarkletImport {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
||||||
'html': json['html'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'url': value.url,
|
|
||||||
'html': value.html,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface BookmarkletImportList
|
|
||||||
*/
|
|
||||||
export interface BookmarkletImportList {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof BookmarkletImportList
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof BookmarkletImportList
|
|
||||||
*/
|
|
||||||
url?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof BookmarkletImportList
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof BookmarkletImportList
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the BookmarkletImportList interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfBookmarkletImportList(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportListFromJSON(json: any): BookmarkletImportList {
|
|
||||||
return BookmarkletImportListFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarkletImportList {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function BookmarkletImportListToJSON(value?: BookmarkletImportList | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'url': value.url,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface CookLog
|
|
||||||
*/
|
|
||||||
export interface CookLog {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof CookLog
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof CookLog
|
|
||||||
*/
|
|
||||||
recipe: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof CookLog
|
|
||||||
*/
|
|
||||||
servings?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof CookLog
|
|
||||||
*/
|
|
||||||
rating?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CookLog
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof CookLog
|
|
||||||
*/
|
|
||||||
createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the CookLog interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfCookLog(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "recipe" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CookLogFromJSON(json: any): CookLog {
|
|
||||||
return CookLogFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): CookLog {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'recipe': json['recipe'],
|
|
||||||
'servings': !exists(json, 'servings') ? undefined : json['servings'],
|
|
||||||
'rating': !exists(json, 'rating') ? undefined : json['rating'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CookLogToJSON(value?: CookLog | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'recipe': value.recipe,
|
|
||||||
'servings': value.servings,
|
|
||||||
'rating': value.rating,
|
|
||||||
'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
|
||||||
import {
|
|
||||||
CustomFilterSharedInnerFromJSON,
|
|
||||||
CustomFilterSharedInnerFromJSONTyped,
|
|
||||||
CustomFilterSharedInnerToJSON,
|
|
||||||
} from './CustomFilterSharedInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface CustomFilter
|
|
||||||
*/
|
|
||||||
export interface CustomFilter {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof CustomFilter
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilter
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilter
|
|
||||||
*/
|
|
||||||
search: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CustomFilterSharedInner>}
|
|
||||||
* @memberof CustomFilter
|
|
||||||
*/
|
|
||||||
shared?: Array<CustomFilterSharedInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilter
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the CustomFilter interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfCustomFilter(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "search" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterFromJSON(json: any): CustomFilter {
|
|
||||||
return CustomFilterFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFilter {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'search': json['search'],
|
|
||||||
'shared': !exists(json, 'shared') ? undefined : ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterToJSON(value?: CustomFilter | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'search': value.search,
|
|
||||||
'shared': value.shared === undefined ? undefined : ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface CustomFilterSharedInner
|
|
||||||
*/
|
|
||||||
export interface CustomFilterSharedInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof CustomFilterSharedInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilterSharedInner
|
|
||||||
*/
|
|
||||||
readonly username?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilterSharedInner
|
|
||||||
*/
|
|
||||||
firstName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilterSharedInner
|
|
||||||
*/
|
|
||||||
lastName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof CustomFilterSharedInner
|
|
||||||
*/
|
|
||||||
readonly displayName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the CustomFilterSharedInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfCustomFilterSharedInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterSharedInnerFromJSON(json: any): CustomFilterSharedInner {
|
|
||||||
return CustomFilterSharedInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterSharedInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFilterSharedInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
||||||
'firstName': !exists(json, 'first_name') ? undefined : json['first_name'],
|
|
||||||
'lastName': !exists(json, 'last_name') ? undefined : json['last_name'],
|
|
||||||
'displayName': !exists(json, 'display_name') ? undefined : json['display_name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CustomFilterSharedInnerToJSON(value?: CustomFilterSharedInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'first_name': value.firstName,
|
|
||||||
'last_name': value.lastName,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ExportLog
|
|
||||||
*/
|
|
||||||
export interface ExportLog {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
type: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
msg?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
running?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
totalRecipes?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
exportedRecipes?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
cacheDuration?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
possiblyNotExpired?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ExportLog
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ExportLog interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfExportLog(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ExportLogFromJSON(json: any): ExportLog {
|
|
||||||
return ExportLogFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportLog {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'type': json['type'],
|
|
||||||
'msg': !exists(json, 'msg') ? undefined : json['msg'],
|
|
||||||
'running': !exists(json, 'running') ? undefined : json['running'],
|
|
||||||
'totalRecipes': !exists(json, 'total_recipes') ? undefined : json['total_recipes'],
|
|
||||||
'exportedRecipes': !exists(json, 'exported_recipes') ? undefined : json['exported_recipes'],
|
|
||||||
'cacheDuration': !exists(json, 'cache_duration') ? undefined : json['cache_duration'],
|
|
||||||
'possiblyNotExpired': !exists(json, 'possibly_not_expired') ? undefined : json['possibly_not_expired'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ExportLogToJSON(value?: ExportLog | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'type': value.type,
|
|
||||||
'msg': value.msg,
|
|
||||||
'running': value.running,
|
|
||||||
'total_recipes': value.totalRecipes,
|
|
||||||
'exported_recipes': value.exportedRecipes,
|
|
||||||
'cache_duration': value.cacheDuration,
|
|
||||||
'possibly_not_expired': value.possiblyNotExpired,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,281 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodInheritFieldsInner } from './FoodInheritFieldsInner';
|
|
||||||
import {
|
|
||||||
FoodInheritFieldsInnerFromJSON,
|
|
||||||
FoodInheritFieldsInnerFromJSONTyped,
|
|
||||||
FoodInheritFieldsInnerToJSON,
|
|
||||||
} from './FoodInheritFieldsInner';
|
|
||||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
FoodPropertiesFoodUnitFromJSON,
|
|
||||||
FoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
FoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './FoodPropertiesFoodUnit';
|
|
||||||
import type { FoodPropertiesInner } from './FoodPropertiesInner';
|
|
||||||
import {
|
|
||||||
FoodPropertiesInnerFromJSON,
|
|
||||||
FoodPropertiesInnerFromJSONTyped,
|
|
||||||
FoodPropertiesInnerToJSON,
|
|
||||||
} from './FoodPropertiesInner';
|
|
||||||
import type { FoodRecipe } from './FoodRecipe';
|
|
||||||
import {
|
|
||||||
FoodRecipeFromJSON,
|
|
||||||
FoodRecipeFromJSONTyped,
|
|
||||||
FoodRecipeToJSON,
|
|
||||||
} from './FoodRecipe';
|
|
||||||
import type { FoodSubstituteInner } from './FoodSubstituteInner';
|
|
||||||
import {
|
|
||||||
FoodSubstituteInnerFromJSON,
|
|
||||||
FoodSubstituteInnerFromJSONTyped,
|
|
||||||
FoodSubstituteInnerToJSON,
|
|
||||||
} from './FoodSubstituteInner';
|
|
||||||
import type { FoodSupermarketCategory } from './FoodSupermarketCategory';
|
|
||||||
import {
|
|
||||||
FoodSupermarketCategoryFromJSON,
|
|
||||||
FoodSupermarketCategoryFromJSONTyped,
|
|
||||||
FoodSupermarketCategoryToJSON,
|
|
||||||
} from './FoodSupermarketCategory';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Food
|
|
||||||
*/
|
|
||||||
export interface Food {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
pluralName?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
readonly shopping?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodRecipe}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
recipe?: FoodRecipe | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
url?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodPropertiesInner>}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
properties?: Array<FoodPropertiesInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
propertiesFoodAmount?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesFoodUnit}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
propertiesFoodUnit?: FoodPropertiesFoodUnit | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
fdcId?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
foodOnhand?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodSupermarketCategory}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
supermarketCategory?: FoodSupermarketCategory | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
readonly parent?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
readonly numchild?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodInheritFieldsInner>}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
inheritFields?: Array<FoodInheritFieldsInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
readonly fullName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
ignoreShopping?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodSubstituteInner>}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
substitute?: Array<FoodSubstituteInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
substituteSiblings?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
substituteChildren?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
readonly substituteOnhand?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodInheritFieldsInner>}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
childInheritFields?: Array<FoodInheritFieldsInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Food
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Food interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFood(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodFromJSON(json: any): Food {
|
|
||||||
return FoodFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Food {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'shopping': !exists(json, 'shopping') ? undefined : json['shopping'],
|
|
||||||
'recipe': !exists(json, 'recipe') ? undefined : FoodRecipeFromJSON(json['recipe']),
|
|
||||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
||||||
'properties': !exists(json, 'properties') ? undefined : (json['properties'] === null ? null : (json['properties'] as Array<any>).map(FoodPropertiesInnerFromJSON)),
|
|
||||||
'propertiesFoodAmount': !exists(json, 'properties_food_amount') ? undefined : json['properties_food_amount'],
|
|
||||||
'propertiesFoodUnit': !exists(json, 'properties_food_unit') ? undefined : FoodPropertiesFoodUnitFromJSON(json['properties_food_unit']),
|
|
||||||
'fdcId': !exists(json, 'fdc_id') ? undefined : json['fdc_id'],
|
|
||||||
'foodOnhand': !exists(json, 'food_onhand') ? undefined : json['food_onhand'],
|
|
||||||
'supermarketCategory': !exists(json, 'supermarket_category') ? undefined : FoodSupermarketCategoryFromJSON(json['supermarket_category']),
|
|
||||||
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
||||||
'numchild': !exists(json, 'numchild') ? undefined : json['numchild'],
|
|
||||||
'inheritFields': !exists(json, 'inherit_fields') ? undefined : (json['inherit_fields'] === null ? null : (json['inherit_fields'] as Array<any>).map(FoodInheritFieldsInnerFromJSON)),
|
|
||||||
'fullName': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
||||||
'ignoreShopping': !exists(json, 'ignore_shopping') ? undefined : json['ignore_shopping'],
|
|
||||||
'substitute': !exists(json, 'substitute') ? undefined : (json['substitute'] === null ? null : (json['substitute'] as Array<any>).map(FoodSubstituteInnerFromJSON)),
|
|
||||||
'substituteSiblings': !exists(json, 'substitute_siblings') ? undefined : json['substitute_siblings'],
|
|
||||||
'substituteChildren': !exists(json, 'substitute_children') ? undefined : json['substitute_children'],
|
|
||||||
'substituteOnhand': !exists(json, 'substitute_onhand') ? undefined : json['substitute_onhand'],
|
|
||||||
'childInheritFields': !exists(json, 'child_inherit_fields') ? undefined : (json['child_inherit_fields'] === null ? null : (json['child_inherit_fields'] as Array<any>).map(FoodInheritFieldsInnerFromJSON)),
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodToJSON(value?: Food | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'description': value.description,
|
|
||||||
'recipe': FoodRecipeToJSON(value.recipe),
|
|
||||||
'url': value.url,
|
|
||||||
'properties': value.properties === undefined ? undefined : (value.properties === null ? null : (value.properties as Array<any>).map(FoodPropertiesInnerToJSON)),
|
|
||||||
'properties_food_amount': value.propertiesFoodAmount,
|
|
||||||
'properties_food_unit': FoodPropertiesFoodUnitToJSON(value.propertiesFoodUnit),
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
'food_onhand': value.foodOnhand,
|
|
||||||
'supermarket_category': FoodSupermarketCategoryToJSON(value.supermarketCategory),
|
|
||||||
'inherit_fields': value.inheritFields === undefined ? undefined : (value.inheritFields === null ? null : (value.inheritFields as Array<any>).map(FoodInheritFieldsInnerToJSON)),
|
|
||||||
'ignore_shopping': value.ignoreShopping,
|
|
||||||
'substitute': value.substitute === undefined ? undefined : (value.substitute === null ? null : (value.substitute as Array<any>).map(FoodSubstituteInnerToJSON)),
|
|
||||||
'substitute_siblings': value.substituteSiblings,
|
|
||||||
'substitute_children': value.substituteChildren,
|
|
||||||
'child_inherit_fields': value.childInheritFields === undefined ? undefined : (value.childInheritFields === null ? null : (value.childInheritFields as Array<any>).map(FoodInheritFieldsInnerToJSON)),
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodInheritField
|
|
||||||
*/
|
|
||||||
export interface FoodInheritField {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodInheritField
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodInheritField
|
|
||||||
*/
|
|
||||||
name?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodInheritField
|
|
||||||
*/
|
|
||||||
field?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodInheritField interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodInheritField(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldFromJSON(json: any): FoodInheritField {
|
|
||||||
return FoodInheritFieldFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodInheritField {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'field': !exists(json, 'field') ? undefined : json['field'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldToJSON(value?: FoodInheritField | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'field': value.field,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodInheritFieldsInner
|
|
||||||
*/
|
|
||||||
export interface FoodInheritFieldsInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodInheritFieldsInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodInheritFieldsInner
|
|
||||||
*/
|
|
||||||
name?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodInheritFieldsInner
|
|
||||||
*/
|
|
||||||
field?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodInheritFieldsInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodInheritFieldsInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldsInnerFromJSON(json: any): FoodInheritFieldsInner {
|
|
||||||
return FoodInheritFieldsInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodInheritFieldsInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'field': !exists(json, 'field') ? undefined : json['field'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodInheritFieldsInnerToJSON(value?: FoodInheritFieldsInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'field': value.field,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
export interface FoodPropertiesFoodUnit {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
pluralName?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
baseUnit?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodPropertiesFoodUnit interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodPropertiesFoodUnit(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesFoodUnitFromJSON(json: any): FoodPropertiesFoodUnit {
|
|
||||||
return FoodPropertiesFoodUnitFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesFoodUnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodPropertiesFoodUnit {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'baseUnit': !exists(json, 'base_unit') ? undefined : json['base_unit'],
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesFoodUnitToJSON(value?: FoodPropertiesFoodUnit | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'description': value.description,
|
|
||||||
'base_unit': value.baseUnit,
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodPropertiesInnerPropertyType } from './FoodPropertiesInnerPropertyType';
|
|
||||||
import {
|
|
||||||
FoodPropertiesInnerPropertyTypeFromJSON,
|
|
||||||
FoodPropertiesInnerPropertyTypeFromJSONTyped,
|
|
||||||
FoodPropertiesInnerPropertyTypeToJSON,
|
|
||||||
} from './FoodPropertiesInnerPropertyType';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodPropertiesInner
|
|
||||||
*/
|
|
||||||
export interface FoodPropertiesInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodPropertiesInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesInner
|
|
||||||
*/
|
|
||||||
propertyAmount: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesInnerPropertyType}
|
|
||||||
* @memberof FoodPropertiesInner
|
|
||||||
*/
|
|
||||||
propertyType: FoodPropertiesInnerPropertyType;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodPropertiesInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodPropertiesInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "propertyAmount" in value;
|
|
||||||
isInstance = isInstance && "propertyType" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesInnerFromJSON(json: any): FoodPropertiesInner {
|
|
||||||
return FoodPropertiesInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodPropertiesInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'propertyAmount': json['property_amount'],
|
|
||||||
'propertyType': FoodPropertiesInnerPropertyTypeFromJSON(json['property_type']),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesInnerToJSON(value?: FoodPropertiesInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'property_amount': value.propertyAmount,
|
|
||||||
'property_type': FoodPropertiesInnerPropertyTypeToJSON(value.propertyType),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
export interface FoodPropertiesInnerPropertyType {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
unit?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodPropertiesInnerPropertyType
|
|
||||||
*/
|
|
||||||
fdcId?: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodPropertiesInnerPropertyType interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodPropertiesInnerPropertyType(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesInnerPropertyTypeFromJSON(json: any): FoodPropertiesInnerPropertyType {
|
|
||||||
return FoodPropertiesInnerPropertyTypeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesInnerPropertyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodPropertiesInnerPropertyType {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : json['unit'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
'fdcId': !exists(json, 'fdc_id') ? undefined : json['fdc_id'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodPropertiesInnerPropertyTypeToJSON(value?: FoodPropertiesInnerPropertyType | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value.id,
|
|
||||||
'name': value.name,
|
|
||||||
'unit': value.unit,
|
|
||||||
'description': value.description,
|
|
||||||
'order': value.order,
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodRecipe
|
|
||||||
*/
|
|
||||||
export interface FoodRecipe {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodRecipe
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodRecipe
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodRecipe
|
|
||||||
*/
|
|
||||||
readonly url?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodRecipe interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodRecipe(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodRecipeFromJSON(json: any): FoodRecipe {
|
|
||||||
return FoodRecipeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodRecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodRecipe {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodRecipeToJSON(value?: FoodRecipe | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodShoppingUpdate
|
|
||||||
*/
|
|
||||||
export interface FoodShoppingUpdate {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodShoppingUpdate
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
* Amount of food to add to the shopping list
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodShoppingUpdate
|
|
||||||
*/
|
|
||||||
amount?: number | null;
|
|
||||||
/**
|
|
||||||
* ID of unit to use for the shopping list
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodShoppingUpdate
|
|
||||||
*/
|
|
||||||
unit?: number | null;
|
|
||||||
/**
|
|
||||||
* When set to true will delete all food from active shopping lists.
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodShoppingUpdate
|
|
||||||
*/
|
|
||||||
_delete: FoodShoppingUpdateDeleteEnum | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const FoodShoppingUpdateDeleteEnum = {
|
|
||||||
True: 'true'
|
|
||||||
} as const;
|
|
||||||
export type FoodShoppingUpdateDeleteEnum = typeof FoodShoppingUpdateDeleteEnum[keyof typeof FoodShoppingUpdateDeleteEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodShoppingUpdate interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodShoppingUpdate(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "_delete" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodShoppingUpdateFromJSON(json: any): FoodShoppingUpdate {
|
|
||||||
return FoodShoppingUpdateFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodShoppingUpdate {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : json['unit'],
|
|
||||||
'_delete': json['delete'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'amount': value.amount,
|
|
||||||
'unit': value.unit,
|
|
||||||
'delete': value._delete,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodSubstituteInner
|
|
||||||
*/
|
|
||||||
export interface FoodSubstituteInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodSubstituteInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodSubstituteInner
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodSubstituteInner
|
|
||||||
*/
|
|
||||||
pluralName?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodSubstituteInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodSubstituteInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSubstituteInnerFromJSON(json: any): FoodSubstituteInner {
|
|
||||||
return FoodSubstituteInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSubstituteInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodSubstituteInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSubstituteInnerToJSON(value?: FoodSubstituteInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface FoodSupermarketCategory
|
|
||||||
*/
|
|
||||||
export interface FoodSupermarketCategory {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof FoodSupermarketCategory
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodSupermarketCategory
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof FoodSupermarketCategory
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the FoodSupermarketCategory interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfFoodSupermarketCategory(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSupermarketCategoryFromJSON(json: any): FoodSupermarketCategory {
|
|
||||||
return FoodSupermarketCategoryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSupermarketCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodSupermarketCategory {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function FoodSupermarketCategoryToJSON(value?: FoodSupermarketCategory | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Group
|
|
||||||
*/
|
|
||||||
export interface Group {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Group
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Group
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Group interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfGroup(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GroupFromJSON(json: any): Group {
|
|
||||||
return GroupFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Group {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function GroupToJSON(value?: Group | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ImportLogKeyword } from './ImportLogKeyword';
|
|
||||||
import {
|
|
||||||
ImportLogKeywordFromJSON,
|
|
||||||
ImportLogKeywordFromJSONTyped,
|
|
||||||
ImportLogKeywordToJSON,
|
|
||||||
} from './ImportLogKeyword';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ImportLog
|
|
||||||
*/
|
|
||||||
export interface ImportLog {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
type: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
msg?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
running?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ImportLogKeyword}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
keyword?: ImportLogKeyword;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
totalRecipes?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
importedRecipes?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ImportLog
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ImportLog interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfImportLog(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogFromJSON(json: any): ImportLog {
|
|
||||||
return ImportLogFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportLog {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'type': json['type'],
|
|
||||||
'msg': !exists(json, 'msg') ? undefined : json['msg'],
|
|
||||||
'running': !exists(json, 'running') ? undefined : json['running'],
|
|
||||||
'keyword': !exists(json, 'keyword') ? undefined : ImportLogKeywordFromJSON(json['keyword']),
|
|
||||||
'totalRecipes': !exists(json, 'total_recipes') ? undefined : json['total_recipes'],
|
|
||||||
'importedRecipes': !exists(json, 'imported_recipes') ? undefined : json['imported_recipes'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogToJSON(value?: ImportLog | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'type': value.type,
|
|
||||||
'msg': value.msg,
|
|
||||||
'running': value.running,
|
|
||||||
'keyword': ImportLogKeywordToJSON(value.keyword),
|
|
||||||
'total_recipes': value.totalRecipes,
|
|
||||||
'imported_recipes': value.importedRecipes,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ImportLogKeyword
|
|
||||||
*/
|
|
||||||
export interface ImportLogKeyword {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly label?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly parent?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly numchild?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ImportLogKeyword
|
|
||||||
*/
|
|
||||||
readonly fullName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ImportLogKeyword interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfImportLogKeyword(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogKeywordFromJSON(json: any): ImportLogKeyword {
|
|
||||||
return ImportLogKeywordFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogKeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportLogKeyword {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
||||||
'numchild': !exists(json, 'numchild') ? undefined : json['numchild'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'fullName': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ImportLogKeywordToJSON(value?: ImportLogKeyword | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
FoodPropertiesFoodUnitFromJSON,
|
|
||||||
FoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
FoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './FoodPropertiesFoodUnit';
|
|
||||||
import type { IngredientFood } from './IngredientFood';
|
|
||||||
import {
|
|
||||||
IngredientFoodFromJSON,
|
|
||||||
IngredientFoodFromJSONTyped,
|
|
||||||
IngredientFoodToJSON,
|
|
||||||
} from './IngredientFood';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Ingredient
|
|
||||||
*/
|
|
||||||
export interface Ingredient {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {IngredientFood}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
food: IngredientFood | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesFoodUnit}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
unit: FoodPropertiesFoodUnit | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
amount: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
readonly conversions?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
note?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
isHeader?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
noAmount?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
originalText?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
readonly usedInRecipes?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
alwaysUsePluralUnit?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Ingredient
|
|
||||||
*/
|
|
||||||
alwaysUsePluralFood?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Ingredient interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfIngredient(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "food" in value;
|
|
||||||
isInstance = isInstance && "unit" in value;
|
|
||||||
isInstance = isInstance && "amount" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientFromJSON(json: any): Ingredient {
|
|
||||||
return IngredientFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ingredient {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'food': IngredientFoodFromJSON(json['food']),
|
|
||||||
'unit': FoodPropertiesFoodUnitFromJSON(json['unit']),
|
|
||||||
'amount': json['amount'],
|
|
||||||
'conversions': !exists(json, 'conversions') ? undefined : json['conversions'],
|
|
||||||
'note': !exists(json, 'note') ? undefined : json['note'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'isHeader': !exists(json, 'is_header') ? undefined : json['is_header'],
|
|
||||||
'noAmount': !exists(json, 'no_amount') ? undefined : json['no_amount'],
|
|
||||||
'originalText': !exists(json, 'original_text') ? undefined : json['original_text'],
|
|
||||||
'usedInRecipes': !exists(json, 'used_in_recipes') ? undefined : json['used_in_recipes'],
|
|
||||||
'alwaysUsePluralUnit': !exists(json, 'always_use_plural_unit') ? undefined : json['always_use_plural_unit'],
|
|
||||||
'alwaysUsePluralFood': !exists(json, 'always_use_plural_food') ? undefined : json['always_use_plural_food'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientToJSON(value?: Ingredient | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'food': IngredientFoodToJSON(value.food),
|
|
||||||
'unit': FoodPropertiesFoodUnitToJSON(value.unit),
|
|
||||||
'amount': value.amount,
|
|
||||||
'note': value.note,
|
|
||||||
'order': value.order,
|
|
||||||
'is_header': value.isHeader,
|
|
||||||
'no_amount': value.noAmount,
|
|
||||||
'original_text': value.originalText,
|
|
||||||
'always_use_plural_unit': value.alwaysUsePluralUnit,
|
|
||||||
'always_use_plural_food': value.alwaysUsePluralFood,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,281 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodInheritFieldsInner } from './FoodInheritFieldsInner';
|
|
||||||
import {
|
|
||||||
FoodInheritFieldsInnerFromJSON,
|
|
||||||
FoodInheritFieldsInnerFromJSONTyped,
|
|
||||||
FoodInheritFieldsInnerToJSON,
|
|
||||||
} from './FoodInheritFieldsInner';
|
|
||||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
FoodPropertiesFoodUnitFromJSON,
|
|
||||||
FoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
FoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './FoodPropertiesFoodUnit';
|
|
||||||
import type { FoodPropertiesInner } from './FoodPropertiesInner';
|
|
||||||
import {
|
|
||||||
FoodPropertiesInnerFromJSON,
|
|
||||||
FoodPropertiesInnerFromJSONTyped,
|
|
||||||
FoodPropertiesInnerToJSON,
|
|
||||||
} from './FoodPropertiesInner';
|
|
||||||
import type { FoodRecipe } from './FoodRecipe';
|
|
||||||
import {
|
|
||||||
FoodRecipeFromJSON,
|
|
||||||
FoodRecipeFromJSONTyped,
|
|
||||||
FoodRecipeToJSON,
|
|
||||||
} from './FoodRecipe';
|
|
||||||
import type { FoodSubstituteInner } from './FoodSubstituteInner';
|
|
||||||
import {
|
|
||||||
FoodSubstituteInnerFromJSON,
|
|
||||||
FoodSubstituteInnerFromJSONTyped,
|
|
||||||
FoodSubstituteInnerToJSON,
|
|
||||||
} from './FoodSubstituteInner';
|
|
||||||
import type { FoodSupermarketCategory } from './FoodSupermarketCategory';
|
|
||||||
import {
|
|
||||||
FoodSupermarketCategoryFromJSON,
|
|
||||||
FoodSupermarketCategoryFromJSONTyped,
|
|
||||||
FoodSupermarketCategoryToJSON,
|
|
||||||
} from './FoodSupermarketCategory';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface IngredientFood
|
|
||||||
*/
|
|
||||||
export interface IngredientFood {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
pluralName?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
readonly shopping?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodRecipe}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
recipe?: FoodRecipe | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
url?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodPropertiesInner>}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
properties?: Array<FoodPropertiesInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
propertiesFoodAmount?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesFoodUnit}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
propertiesFoodUnit?: FoodPropertiesFoodUnit | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
fdcId?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
foodOnhand?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodSupermarketCategory}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
supermarketCategory?: FoodSupermarketCategory | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
readonly parent?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
readonly numchild?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodInheritFieldsInner>}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
inheritFields?: Array<FoodInheritFieldsInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
readonly fullName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
ignoreShopping?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodSubstituteInner>}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
substitute?: Array<FoodSubstituteInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
substituteSiblings?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
substituteChildren?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
readonly substituteOnhand?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodInheritFieldsInner>}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
childInheritFields?: Array<FoodInheritFieldsInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof IngredientFood
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the IngredientFood interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfIngredientFood(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientFoodFromJSON(json: any): IngredientFood {
|
|
||||||
return IngredientFoodFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngredientFood {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'shopping': !exists(json, 'shopping') ? undefined : json['shopping'],
|
|
||||||
'recipe': !exists(json, 'recipe') ? undefined : FoodRecipeFromJSON(json['recipe']),
|
|
||||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
||||||
'properties': !exists(json, 'properties') ? undefined : (json['properties'] === null ? null : (json['properties'] as Array<any>).map(FoodPropertiesInnerFromJSON)),
|
|
||||||
'propertiesFoodAmount': !exists(json, 'properties_food_amount') ? undefined : json['properties_food_amount'],
|
|
||||||
'propertiesFoodUnit': !exists(json, 'properties_food_unit') ? undefined : FoodPropertiesFoodUnitFromJSON(json['properties_food_unit']),
|
|
||||||
'fdcId': !exists(json, 'fdc_id') ? undefined : json['fdc_id'],
|
|
||||||
'foodOnhand': !exists(json, 'food_onhand') ? undefined : json['food_onhand'],
|
|
||||||
'supermarketCategory': !exists(json, 'supermarket_category') ? undefined : FoodSupermarketCategoryFromJSON(json['supermarket_category']),
|
|
||||||
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
||||||
'numchild': !exists(json, 'numchild') ? undefined : json['numchild'],
|
|
||||||
'inheritFields': !exists(json, 'inherit_fields') ? undefined : (json['inherit_fields'] === null ? null : (json['inherit_fields'] as Array<any>).map(FoodInheritFieldsInnerFromJSON)),
|
|
||||||
'fullName': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
||||||
'ignoreShopping': !exists(json, 'ignore_shopping') ? undefined : json['ignore_shopping'],
|
|
||||||
'substitute': !exists(json, 'substitute') ? undefined : (json['substitute'] === null ? null : (json['substitute'] as Array<any>).map(FoodSubstituteInnerFromJSON)),
|
|
||||||
'substituteSiblings': !exists(json, 'substitute_siblings') ? undefined : json['substitute_siblings'],
|
|
||||||
'substituteChildren': !exists(json, 'substitute_children') ? undefined : json['substitute_children'],
|
|
||||||
'substituteOnhand': !exists(json, 'substitute_onhand') ? undefined : json['substitute_onhand'],
|
|
||||||
'childInheritFields': !exists(json, 'child_inherit_fields') ? undefined : (json['child_inherit_fields'] === null ? null : (json['child_inherit_fields'] as Array<any>).map(FoodInheritFieldsInnerFromJSON)),
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function IngredientFoodToJSON(value?: IngredientFood | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'description': value.description,
|
|
||||||
'recipe': FoodRecipeToJSON(value.recipe),
|
|
||||||
'url': value.url,
|
|
||||||
'properties': value.properties === undefined ? undefined : (value.properties === null ? null : (value.properties as Array<any>).map(FoodPropertiesInnerToJSON)),
|
|
||||||
'properties_food_amount': value.propertiesFoodAmount,
|
|
||||||
'properties_food_unit': FoodPropertiesFoodUnitToJSON(value.propertiesFoodUnit),
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
'food_onhand': value.foodOnhand,
|
|
||||||
'supermarket_category': FoodSupermarketCategoryToJSON(value.supermarketCategory),
|
|
||||||
'inherit_fields': value.inheritFields === undefined ? undefined : (value.inheritFields === null ? null : (value.inheritFields as Array<any>).map(FoodInheritFieldsInnerToJSON)),
|
|
||||||
'ignore_shopping': value.ignoreShopping,
|
|
||||||
'substitute': value.substitute === undefined ? undefined : (value.substitute === null ? null : (value.substitute as Array<any>).map(FoodSubstituteInnerToJSON)),
|
|
||||||
'substitute_siblings': value.substituteSiblings,
|
|
||||||
'substitute_children': value.substituteChildren,
|
|
||||||
'child_inherit_fields': value.childInheritFields === undefined ? undefined : (value.childInheritFields === null ? null : (value.childInheritFields as Array<any>).map(FoodInheritFieldsInnerToJSON)),
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { InviteLinkGroup } from './InviteLinkGroup';
|
|
||||||
import {
|
|
||||||
InviteLinkGroupFromJSON,
|
|
||||||
InviteLinkGroupFromJSONTyped,
|
|
||||||
InviteLinkGroupToJSON,
|
|
||||||
} from './InviteLinkGroup';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface InviteLink
|
|
||||||
*/
|
|
||||||
export interface InviteLink {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
readonly uuid?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
email?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {InviteLinkGroup}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
group: InviteLinkGroup;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
validUntil?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
usedBy?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
reusable?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
internalNote?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof InviteLink
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the InviteLink interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfInviteLink(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "group" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkFromJSON(json: any): InviteLink {
|
|
||||||
return InviteLinkFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteLink {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
|
|
||||||
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
||||||
'group': InviteLinkGroupFromJSON(json['group']),
|
|
||||||
'validUntil': !exists(json, 'valid_until') ? undefined : (new Date(json['valid_until'])),
|
|
||||||
'usedBy': !exists(json, 'used_by') ? undefined : json['used_by'],
|
|
||||||
'reusable': !exists(json, 'reusable') ? undefined : json['reusable'],
|
|
||||||
'internalNote': !exists(json, 'internal_note') ? undefined : json['internal_note'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkToJSON(value?: InviteLink | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'email': value.email,
|
|
||||||
'group': InviteLinkGroupToJSON(value.group),
|
|
||||||
'valid_until': value.validUntil === undefined ? undefined : (value.validUntil.toISOString().substring(0,10)),
|
|
||||||
'used_by': value.usedBy,
|
|
||||||
'reusable': value.reusable,
|
|
||||||
'internal_note': value.internalNote,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface InviteLinkGroup
|
|
||||||
*/
|
|
||||||
export interface InviteLinkGroup {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof InviteLinkGroup
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof InviteLinkGroup
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the InviteLinkGroup interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfInviteLinkGroup(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkGroupFromJSON(json: any): InviteLinkGroup {
|
|
||||||
return InviteLinkGroupFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteLinkGroup {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function InviteLinkGroupToJSON(value?: InviteLinkGroup | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Keyword
|
|
||||||
*/
|
|
||||||
export interface Keyword {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly label?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly parent?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly numchild?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Keyword
|
|
||||||
*/
|
|
||||||
readonly fullName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Keyword interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfKeyword(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function KeywordFromJSON(json: any): Keyword {
|
|
||||||
return KeywordFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function KeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Keyword {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
||||||
'numchild': !exists(json, 'numchild') ? undefined : json['numchild'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'fullName': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function KeywordToJSON(value?: Keyword | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CookLog } from './CookLog';
|
|
||||||
import {
|
|
||||||
CookLogFromJSON,
|
|
||||||
CookLogFromJSONTyped,
|
|
||||||
CookLogToJSON,
|
|
||||||
} from './CookLog';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListCookLogs200Response
|
|
||||||
*/
|
|
||||||
export interface ListCookLogs200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListCookLogs200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListCookLogs200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListCookLogs200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CookLog>}
|
|
||||||
* @memberof ListCookLogs200Response
|
|
||||||
*/
|
|
||||||
results?: Array<CookLog>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListCookLogs200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListCookLogs200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListCookLogs200ResponseFromJSON(json: any): ListCookLogs200Response {
|
|
||||||
return ListCookLogs200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListCookLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCookLogs200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(CookLogFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListCookLogs200ResponseToJSON(value?: ListCookLogs200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(CookLogToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ExportLog } from './ExportLog';
|
|
||||||
import {
|
|
||||||
ExportLogFromJSON,
|
|
||||||
ExportLogFromJSONTyped,
|
|
||||||
ExportLogToJSON,
|
|
||||||
} from './ExportLog';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListExportLogs200Response
|
|
||||||
*/
|
|
||||||
export interface ListExportLogs200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListExportLogs200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListExportLogs200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListExportLogs200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ExportLog>}
|
|
||||||
* @memberof ListExportLogs200Response
|
|
||||||
*/
|
|
||||||
results?: Array<ExportLog>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListExportLogs200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListExportLogs200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListExportLogs200ResponseFromJSON(json: any): ListExportLogs200Response {
|
|
||||||
return ListExportLogs200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListExportLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListExportLogs200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(ExportLogFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListExportLogs200ResponseToJSON(value?: ListExportLogs200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(ExportLogToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { Food } from './Food';
|
|
||||||
import {
|
|
||||||
FoodFromJSON,
|
|
||||||
FoodFromJSONTyped,
|
|
||||||
FoodToJSON,
|
|
||||||
} from './Food';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListFoods200Response
|
|
||||||
*/
|
|
||||||
export interface ListFoods200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListFoods200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListFoods200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListFoods200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<Food>}
|
|
||||||
* @memberof ListFoods200Response
|
|
||||||
*/
|
|
||||||
results?: Array<Food>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListFoods200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListFoods200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListFoods200ResponseFromJSON(json: any): ListFoods200Response {
|
|
||||||
return ListFoods200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListFoods200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFoods200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(FoodFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListFoods200ResponseToJSON(value?: ListFoods200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(FoodToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ImportLog } from './ImportLog';
|
|
||||||
import {
|
|
||||||
ImportLogFromJSON,
|
|
||||||
ImportLogFromJSONTyped,
|
|
||||||
ImportLogToJSON,
|
|
||||||
} from './ImportLog';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListImportLogs200Response
|
|
||||||
*/
|
|
||||||
export interface ListImportLogs200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListImportLogs200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListImportLogs200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListImportLogs200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ImportLog>}
|
|
||||||
* @memberof ListImportLogs200Response
|
|
||||||
*/
|
|
||||||
results?: Array<ImportLog>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListImportLogs200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListImportLogs200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListImportLogs200ResponseFromJSON(json: any): ListImportLogs200Response {
|
|
||||||
return ListImportLogs200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListImportLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListImportLogs200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(ImportLogFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListImportLogs200ResponseToJSON(value?: ListImportLogs200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(ImportLogToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { Ingredient } from './Ingredient';
|
|
||||||
import {
|
|
||||||
IngredientFromJSON,
|
|
||||||
IngredientFromJSONTyped,
|
|
||||||
IngredientToJSON,
|
|
||||||
} from './Ingredient';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListIngredients200Response
|
|
||||||
*/
|
|
||||||
export interface ListIngredients200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListIngredients200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListIngredients200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListIngredients200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<Ingredient>}
|
|
||||||
* @memberof ListIngredients200Response
|
|
||||||
*/
|
|
||||||
results?: Array<Ingredient>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListIngredients200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListIngredients200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListIngredients200ResponseFromJSON(json: any): ListIngredients200Response {
|
|
||||||
return ListIngredients200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListIngredients200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListIngredients200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(IngredientFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListIngredients200ResponseToJSON(value?: ListIngredients200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(IngredientToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { Keyword } from './Keyword';
|
|
||||||
import {
|
|
||||||
KeywordFromJSON,
|
|
||||||
KeywordFromJSONTyped,
|
|
||||||
KeywordToJSON,
|
|
||||||
} from './Keyword';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListKeywords200Response
|
|
||||||
*/
|
|
||||||
export interface ListKeywords200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListKeywords200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListKeywords200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListKeywords200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<Keyword>}
|
|
||||||
* @memberof ListKeywords200Response
|
|
||||||
*/
|
|
||||||
results?: Array<Keyword>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListKeywords200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListKeywords200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListKeywords200ResponseFromJSON(json: any): ListKeywords200Response {
|
|
||||||
return ListKeywords200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListKeywords200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListKeywords200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(KeywordFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListKeywords200ResponseToJSON(value?: ListKeywords200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(KeywordToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { RecipeOverview } from './RecipeOverview';
|
|
||||||
import {
|
|
||||||
RecipeOverviewFromJSON,
|
|
||||||
RecipeOverviewFromJSONTyped,
|
|
||||||
RecipeOverviewToJSON,
|
|
||||||
} from './RecipeOverview';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListRecipes200Response
|
|
||||||
*/
|
|
||||||
export interface ListRecipes200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListRecipes200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListRecipes200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListRecipes200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<RecipeOverview>}
|
|
||||||
* @memberof ListRecipes200Response
|
|
||||||
*/
|
|
||||||
results?: Array<RecipeOverview>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListRecipes200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListRecipes200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListRecipes200ResponseFromJSON(json: any): ListRecipes200Response {
|
|
||||||
return ListRecipes200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListRecipes200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRecipes200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(RecipeOverviewFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListRecipes200ResponseToJSON(value?: ListRecipes200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(RecipeOverviewToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { Step } from './Step';
|
|
||||||
import {
|
|
||||||
StepFromJSON,
|
|
||||||
StepFromJSONTyped,
|
|
||||||
StepToJSON,
|
|
||||||
} from './Step';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListSteps200Response
|
|
||||||
*/
|
|
||||||
export interface ListSteps200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListSteps200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListSteps200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListSteps200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<Step>}
|
|
||||||
* @memberof ListSteps200Response
|
|
||||||
*/
|
|
||||||
results?: Array<Step>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListSteps200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListSteps200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSteps200ResponseFromJSON(json: any): ListSteps200Response {
|
|
||||||
return ListSteps200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSteps200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSteps200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(StepFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSteps200ResponseToJSON(value?: ListSteps200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(StepToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { SupermarketCategoryRelation } from './SupermarketCategoryRelation';
|
|
||||||
import {
|
|
||||||
SupermarketCategoryRelationFromJSON,
|
|
||||||
SupermarketCategoryRelationFromJSONTyped,
|
|
||||||
SupermarketCategoryRelationToJSON,
|
|
||||||
} from './SupermarketCategoryRelation';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListSupermarketCategoryRelations200Response
|
|
||||||
*/
|
|
||||||
export interface ListSupermarketCategoryRelations200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListSupermarketCategoryRelations200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListSupermarketCategoryRelations200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListSupermarketCategoryRelations200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<SupermarketCategoryRelation>}
|
|
||||||
* @memberof ListSupermarketCategoryRelations200Response
|
|
||||||
*/
|
|
||||||
results?: Array<SupermarketCategoryRelation>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListSupermarketCategoryRelations200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListSupermarketCategoryRelations200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSupermarketCategoryRelations200ResponseFromJSON(json: any): ListSupermarketCategoryRelations200Response {
|
|
||||||
return ListSupermarketCategoryRelations200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSupermarketCategoryRelations200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSupermarketCategoryRelations200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(SupermarketCategoryRelationFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSupermarketCategoryRelations200ResponseToJSON(value?: ListSupermarketCategoryRelations200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(SupermarketCategoryRelationToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { SyncLog } from './SyncLog';
|
|
||||||
import {
|
|
||||||
SyncLogFromJSON,
|
|
||||||
SyncLogFromJSONTyped,
|
|
||||||
SyncLogToJSON,
|
|
||||||
} from './SyncLog';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListSyncLogs200Response
|
|
||||||
*/
|
|
||||||
export interface ListSyncLogs200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListSyncLogs200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListSyncLogs200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListSyncLogs200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<SyncLog>}
|
|
||||||
* @memberof ListSyncLogs200Response
|
|
||||||
*/
|
|
||||||
results?: Array<SyncLog>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListSyncLogs200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListSyncLogs200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSyncLogs200ResponseFromJSON(json: any): ListSyncLogs200Response {
|
|
||||||
return ListSyncLogs200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSyncLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSyncLogs200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(SyncLogFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListSyncLogs200ResponseToJSON(value?: ListSyncLogs200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(SyncLogToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { Unit } from './Unit';
|
|
||||||
import {
|
|
||||||
UnitFromJSON,
|
|
||||||
UnitFromJSONTyped,
|
|
||||||
UnitToJSON,
|
|
||||||
} from './Unit';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListUnits200Response
|
|
||||||
*/
|
|
||||||
export interface ListUnits200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListUnits200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListUnits200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListUnits200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<Unit>}
|
|
||||||
* @memberof ListUnits200Response
|
|
||||||
*/
|
|
||||||
results?: Array<Unit>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListUnits200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListUnits200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListUnits200ResponseFromJSON(json: any): ListUnits200Response {
|
|
||||||
return ListUnits200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListUnits200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListUnits200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(UnitFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListUnits200ResponseToJSON(value?: ListUnits200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(UnitToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { UserSpace } from './UserSpace';
|
|
||||||
import {
|
|
||||||
UserSpaceFromJSON,
|
|
||||||
UserSpaceFromJSONTyped,
|
|
||||||
UserSpaceToJSON,
|
|
||||||
} from './UserSpace';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListUserSpaces200Response
|
|
||||||
*/
|
|
||||||
export interface ListUserSpaces200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListUserSpaces200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListUserSpaces200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListUserSpaces200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<UserSpace>}
|
|
||||||
* @memberof ListUserSpaces200Response
|
|
||||||
*/
|
|
||||||
results?: Array<UserSpace>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListUserSpaces200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListUserSpaces200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListUserSpaces200ResponseFromJSON(json: any): ListUserSpaces200Response {
|
|
||||||
return ListUserSpaces200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListUserSpaces200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListUserSpaces200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(UserSpaceFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListUserSpaces200ResponseToJSON(value?: ListUserSpaces200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(UserSpaceToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ViewLog } from './ViewLog';
|
|
||||||
import {
|
|
||||||
ViewLogFromJSON,
|
|
||||||
ViewLogFromJSONTyped,
|
|
||||||
ViewLogToJSON,
|
|
||||||
} from './ViewLog';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ListViewLogs200Response
|
|
||||||
*/
|
|
||||||
export interface ListViewLogs200Response {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ListViewLogs200Response
|
|
||||||
*/
|
|
||||||
count?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListViewLogs200Response
|
|
||||||
*/
|
|
||||||
next?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ListViewLogs200Response
|
|
||||||
*/
|
|
||||||
previous?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ViewLog>}
|
|
||||||
* @memberof ListViewLogs200Response
|
|
||||||
*/
|
|
||||||
results?: Array<ViewLog>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ListViewLogs200Response interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfListViewLogs200Response(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListViewLogs200ResponseFromJSON(json: any): ListViewLogs200Response {
|
|
||||||
return ListViewLogs200ResponseFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListViewLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListViewLogs200Response {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
||||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
|
||||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
|
||||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(ViewLogFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ListViewLogs200ResponseToJSON(value?: ListViewLogs200Response | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'count': value.count,
|
|
||||||
'next': value.next,
|
|
||||||
'previous': value.previous,
|
|
||||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(ViewLogToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,185 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
|
||||||
import {
|
|
||||||
CustomFilterSharedInnerFromJSON,
|
|
||||||
CustomFilterSharedInnerFromJSONTyped,
|
|
||||||
CustomFilterSharedInnerToJSON,
|
|
||||||
} from './CustomFilterSharedInner';
|
|
||||||
import type { MealPlanMealType } from './MealPlanMealType';
|
|
||||||
import {
|
|
||||||
MealPlanMealTypeFromJSON,
|
|
||||||
MealPlanMealTypeFromJSONTyped,
|
|
||||||
MealPlanMealTypeToJSON,
|
|
||||||
} from './MealPlanMealType';
|
|
||||||
import type { MealPlanRecipe } from './MealPlanRecipe';
|
|
||||||
import {
|
|
||||||
MealPlanRecipeFromJSON,
|
|
||||||
MealPlanRecipeFromJSONTyped,
|
|
||||||
MealPlanRecipeToJSON,
|
|
||||||
} from './MealPlanRecipe';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface MealPlan
|
|
||||||
*/
|
|
||||||
export interface MealPlan {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
title?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {MealPlanRecipe}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
recipe?: MealPlanRecipe | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
servings: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
note?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
readonly noteMarkdown?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
fromDate: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
toDate?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {MealPlanMealType}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
mealType: MealPlanMealType;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CustomFilterSharedInner>}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
shared?: Array<CustomFilterSharedInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
readonly recipeName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
readonly mealTypeName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlan
|
|
||||||
*/
|
|
||||||
readonly shopping?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the MealPlan interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfMealPlan(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "servings" in value;
|
|
||||||
isInstance = isInstance && "fromDate" in value;
|
|
||||||
isInstance = isInstance && "mealType" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanFromJSON(json: any): MealPlan {
|
|
||||||
return MealPlanFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): MealPlan {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'title': !exists(json, 'title') ? undefined : json['title'],
|
|
||||||
'recipe': !exists(json, 'recipe') ? undefined : MealPlanRecipeFromJSON(json['recipe']),
|
|
||||||
'servings': json['servings'],
|
|
||||||
'note': !exists(json, 'note') ? undefined : json['note'],
|
|
||||||
'noteMarkdown': !exists(json, 'note_markdown') ? undefined : json['note_markdown'],
|
|
||||||
'fromDate': (new Date(json['from_date'])),
|
|
||||||
'toDate': !exists(json, 'to_date') ? undefined : (new Date(json['to_date'])),
|
|
||||||
'mealType': MealPlanMealTypeFromJSON(json['meal_type']),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'shared': !exists(json, 'shared') ? undefined : (json['shared'] === null ? null : (json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
|
||||||
'recipeName': !exists(json, 'recipe_name') ? undefined : json['recipe_name'],
|
|
||||||
'mealTypeName': !exists(json, 'meal_type_name') ? undefined : json['meal_type_name'],
|
|
||||||
'shopping': !exists(json, 'shopping') ? undefined : json['shopping'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanToJSON(value?: MealPlan | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'title': value.title,
|
|
||||||
'recipe': MealPlanRecipeToJSON(value.recipe),
|
|
||||||
'servings': value.servings,
|
|
||||||
'note': value.note,
|
|
||||||
'from_date': (value.fromDate.toISOString().substring(0,10)),
|
|
||||||
'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substring(0,10)),
|
|
||||||
'meal_type': MealPlanMealTypeToJSON(value.mealType),
|
|
||||||
'shared': value.shared === undefined ? undefined : (value.shared === null ? null : (value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface MealPlanMealType
|
|
||||||
*/
|
|
||||||
export interface MealPlanMealType {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanMealType
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanMealType
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanMealType
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanMealType
|
|
||||||
*/
|
|
||||||
color?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof MealPlanMealType
|
|
||||||
*/
|
|
||||||
_default?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanMealType
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the MealPlanMealType interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfMealPlanMealType(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanMealTypeFromJSON(json: any): MealPlanMealType {
|
|
||||||
return MealPlanMealTypeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanMealTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MealPlanMealType {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'color': !exists(json, 'color') ? undefined : json['color'],
|
|
||||||
'_default': !exists(json, 'default') ? undefined : json['default'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanMealTypeToJSON(value?: MealPlanMealType | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'order': value.order,
|
|
||||||
'color': value.color,
|
|
||||||
'default': value._default,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,195 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { MealPlanRecipeKeywordsInner } from './MealPlanRecipeKeywordsInner';
|
|
||||||
import {
|
|
||||||
MealPlanRecipeKeywordsInnerFromJSON,
|
|
||||||
MealPlanRecipeKeywordsInnerFromJSONTyped,
|
|
||||||
MealPlanRecipeKeywordsInnerToJSON,
|
|
||||||
} from './MealPlanRecipeKeywordsInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface MealPlanRecipe
|
|
||||||
*/
|
|
||||||
export interface MealPlanRecipe {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Blob}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly image?: Blob | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<MealPlanRecipeKeywordsInner>}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
keywords: Array<MealPlanRecipeKeywordsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
workingTime?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
waitingTime?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
internal?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
servings?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
servingsText?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
rating?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
lastCooked?: Date | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly _new?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipe
|
|
||||||
*/
|
|
||||||
readonly recent?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the MealPlanRecipe interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfMealPlanRecipe(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "keywords" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanRecipeFromJSON(json: any): MealPlanRecipe {
|
|
||||||
return MealPlanRecipeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanRecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MealPlanRecipe {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
||||||
'keywords': ((json['keywords'] as Array<any>).map(MealPlanRecipeKeywordsInnerFromJSON)),
|
|
||||||
'workingTime': !exists(json, 'working_time') ? undefined : json['working_time'],
|
|
||||||
'waitingTime': !exists(json, 'waiting_time') ? undefined : json['waiting_time'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'internal': !exists(json, 'internal') ? undefined : json['internal'],
|
|
||||||
'servings': !exists(json, 'servings') ? undefined : json['servings'],
|
|
||||||
'servingsText': !exists(json, 'servings_text') ? undefined : json['servings_text'],
|
|
||||||
'rating': !exists(json, 'rating') ? undefined : json['rating'],
|
|
||||||
'lastCooked': !exists(json, 'last_cooked') ? undefined : (json['last_cooked'] === null ? null : new Date(json['last_cooked'])),
|
|
||||||
'_new': !exists(json, 'new') ? undefined : json['new'],
|
|
||||||
'recent': !exists(json, 'recent') ? undefined : json['recent'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanRecipeToJSON(value?: MealPlanRecipe | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'keywords': ((value.keywords as Array<any>).map(MealPlanRecipeKeywordsInnerToJSON)),
|
|
||||||
'working_time': value.workingTime,
|
|
||||||
'waiting_time': value.waitingTime,
|
|
||||||
'internal': value.internal,
|
|
||||||
'servings': value.servings,
|
|
||||||
'servings_text': value.servingsText,
|
|
||||||
'rating': value.rating,
|
|
||||||
'last_cooked': value.lastCooked === undefined ? undefined : (value.lastCooked === null ? null : value.lastCooked.toISOString()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface MealPlanRecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
export interface MealPlanRecipeKeywordsInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealPlanRecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealPlanRecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly label?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the MealPlanRecipeKeywordsInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfMealPlanRecipeKeywordsInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanRecipeKeywordsInnerFromJSON(json: any): MealPlanRecipeKeywordsInner {
|
|
||||||
return MealPlanRecipeKeywordsInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanRecipeKeywordsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MealPlanRecipeKeywordsInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealPlanRecipeKeywordsInnerToJSON(value?: MealPlanRecipeKeywordsInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface MealType
|
|
||||||
*/
|
|
||||||
export interface MealType {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealType
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealType
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof MealType
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealType
|
|
||||||
*/
|
|
||||||
color?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof MealType
|
|
||||||
*/
|
|
||||||
_default?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof MealType
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the MealType interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfMealType(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealTypeFromJSON(json: any): MealType {
|
|
||||||
return MealTypeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MealType {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'color': !exists(json, 'color') ? undefined : json['color'],
|
|
||||||
'_default': !exists(json, 'default') ? undefined : json['default'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MealTypeToJSON(value?: MealType | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'order': value.order,
|
|
||||||
'color': value.color,
|
|
||||||
'default': value._default,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataCategory
|
|
||||||
*/
|
|
||||||
export interface OpenDataCategory {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataCategory
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataCategory interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataCategory(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataCategoryFromJSON(json: any): OpenDataCategory {
|
|
||||||
return OpenDataCategoryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataCategory {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataCategoryToJSON(value?: OpenDataCategory | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataConversionFood } from './OpenDataConversionFood';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodFromJSON,
|
|
||||||
OpenDataConversionFoodFromJSONTyped,
|
|
||||||
OpenDataConversionFoodToJSON,
|
|
||||||
} from './OpenDataConversionFood';
|
|
||||||
import type { OpenDataConversionFoodPropertiesFoodUnit } from './OpenDataConversionFoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitFromJSON,
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './OpenDataConversionFoodPropertiesFoodUnit';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataConversion
|
|
||||||
*/
|
|
||||||
export interface OpenDataConversion {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFood}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
food: OpenDataConversionFood;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
baseAmount: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPropertiesFoodUnit}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
baseUnit: OpenDataConversionFoodPropertiesFoodUnit;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
convertedAmount: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPropertiesFoodUnit}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
convertedUnit: OpenDataConversionFoodPropertiesFoodUnit;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
source: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversion
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataConversion interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataConversion(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "food" in value;
|
|
||||||
isInstance = isInstance && "baseAmount" in value;
|
|
||||||
isInstance = isInstance && "baseUnit" in value;
|
|
||||||
isInstance = isInstance && "convertedAmount" in value;
|
|
||||||
isInstance = isInstance && "convertedUnit" in value;
|
|
||||||
isInstance = isInstance && "source" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFromJSON(json: any): OpenDataConversion {
|
|
||||||
return OpenDataConversionFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataConversion {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'food': OpenDataConversionFoodFromJSON(json['food']),
|
|
||||||
'baseAmount': json['base_amount'],
|
|
||||||
'baseUnit': OpenDataConversionFoodPropertiesFoodUnitFromJSON(json['base_unit']),
|
|
||||||
'convertedAmount': json['converted_amount'],
|
|
||||||
'convertedUnit': OpenDataConversionFoodPropertiesFoodUnitFromJSON(json['converted_unit']),
|
|
||||||
'source': json['source'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionToJSON(value?: OpenDataConversion | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'food': OpenDataConversionFoodToJSON(value.food),
|
|
||||||
'base_amount': value.baseAmount,
|
|
||||||
'base_unit': OpenDataConversionFoodPropertiesFoodUnitToJSON(value.baseUnit),
|
|
||||||
'converted_amount': value.convertedAmount,
|
|
||||||
'converted_unit': OpenDataConversionFoodPropertiesFoodUnitToJSON(value.convertedUnit),
|
|
||||||
'source': value.source,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,230 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataConversionFoodPreferredUnitMetric } from './OpenDataConversionFoodPreferredUnitMetric';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPreferredUnitMetricFromJSON,
|
|
||||||
OpenDataConversionFoodPreferredUnitMetricFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPreferredUnitMetricToJSON,
|
|
||||||
} from './OpenDataConversionFoodPreferredUnitMetric';
|
|
||||||
import type { OpenDataConversionFoodPropertiesFoodUnit } from './OpenDataConversionFoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitFromJSON,
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './OpenDataConversionFoodPropertiesFoodUnit';
|
|
||||||
import type { OpenDataConversionFoodPropertiesInner } from './OpenDataConversionFoodPropertiesInner';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPropertiesInnerFromJSON,
|
|
||||||
OpenDataConversionFoodPropertiesInnerFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPropertiesInnerToJSON,
|
|
||||||
} from './OpenDataConversionFoodPropertiesInner';
|
|
||||||
import type { OpenDataStoreCategoryToStoreInnerCategory } from './OpenDataStoreCategoryToStoreInnerCategory';
|
|
||||||
import {
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryFromJSON,
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryFromJSONTyped,
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryToJSON,
|
|
||||||
} from './OpenDataStoreCategoryToStoreInnerCategory';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
export interface OpenDataConversionFood {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
pluralName: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataStoreCategoryToStoreInnerCategory}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
storeCategory: OpenDataStoreCategoryToStoreInnerCategory;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
preferredUnitMetric?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
preferredShoppingUnitMetric?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
preferredUnitImperial?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
preferredShoppingUnitImperial?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<OpenDataConversionFoodPropertiesInner>}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
properties: Array<OpenDataConversionFoodPropertiesInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
propertiesFoodAmount?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPropertiesFoodUnit}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
propertiesFoodUnit: OpenDataConversionFoodPropertiesFoodUnit;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
propertiesSource?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
fdcId: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFood
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataConversionFood interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataConversionFood(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "pluralName" in value;
|
|
||||||
isInstance = isInstance && "storeCategory" in value;
|
|
||||||
isInstance = isInstance && "properties" in value;
|
|
||||||
isInstance = isInstance && "propertiesFoodUnit" in value;
|
|
||||||
isInstance = isInstance && "fdcId" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodFromJSON(json: any): OpenDataConversionFood {
|
|
||||||
return OpenDataConversionFoodFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataConversionFood {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': json['plural_name'],
|
|
||||||
'storeCategory': OpenDataStoreCategoryToStoreInnerCategoryFromJSON(json['store_category']),
|
|
||||||
'preferredUnitMetric': !exists(json, 'preferred_unit_metric') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_unit_metric']),
|
|
||||||
'preferredShoppingUnitMetric': !exists(json, 'preferred_shopping_unit_metric') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_shopping_unit_metric']),
|
|
||||||
'preferredUnitImperial': !exists(json, 'preferred_unit_imperial') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_unit_imperial']),
|
|
||||||
'preferredShoppingUnitImperial': !exists(json, 'preferred_shopping_unit_imperial') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_shopping_unit_imperial']),
|
|
||||||
'properties': (json['properties'] === null ? null : (json['properties'] as Array<any>).map(OpenDataConversionFoodPropertiesInnerFromJSON)),
|
|
||||||
'propertiesFoodAmount': !exists(json, 'properties_food_amount') ? undefined : json['properties_food_amount'],
|
|
||||||
'propertiesFoodUnit': OpenDataConversionFoodPropertiesFoodUnitFromJSON(json['properties_food_unit']),
|
|
||||||
'propertiesSource': !exists(json, 'properties_source') ? undefined : json['properties_source'],
|
|
||||||
'fdcId': json['fdc_id'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodToJSON(value?: OpenDataConversionFood | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'store_category': OpenDataStoreCategoryToStoreInnerCategoryToJSON(value.storeCategory),
|
|
||||||
'preferred_unit_metric': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredUnitMetric),
|
|
||||||
'preferred_shopping_unit_metric': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredShoppingUnitMetric),
|
|
||||||
'preferred_unit_imperial': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredUnitImperial),
|
|
||||||
'preferred_shopping_unit_imperial': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredShoppingUnitImperial),
|
|
||||||
'properties': (value.properties === null ? null : (value.properties as Array<any>).map(OpenDataConversionFoodPropertiesInnerToJSON)),
|
|
||||||
'properties_food_amount': value.propertiesFoodAmount,
|
|
||||||
'properties_food_unit': OpenDataConversionFoodPropertiesFoodUnitToJSON(value.propertiesFoodUnit),
|
|
||||||
'properties_source': value.propertiesSource,
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
export interface OpenDataConversionFoodPreferredUnitMetric {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
pluralName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
baseUnit?: OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
type: OpenDataConversionFoodPreferredUnitMetricTypeEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPreferredUnitMetric
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum = {
|
|
||||||
G: 'G',
|
|
||||||
Kg: 'KG',
|
|
||||||
Ml: 'ML',
|
|
||||||
L: 'L',
|
|
||||||
Ounce: 'OUNCE',
|
|
||||||
Pound: 'POUND',
|
|
||||||
FluidOunce: 'FLUID_OUNCE',
|
|
||||||
Tsp: 'TSP',
|
|
||||||
Tbsp: 'TBSP',
|
|
||||||
Cup: 'CUP',
|
|
||||||
Pint: 'PINT',
|
|
||||||
Quart: 'QUART',
|
|
||||||
Gallon: 'GALLON',
|
|
||||||
ImperialFluidOunce: 'IMPERIAL_FLUID_OUNCE',
|
|
||||||
ImperialPint: 'IMPERIAL_PINT',
|
|
||||||
ImperialQuart: 'IMPERIAL_QUART',
|
|
||||||
ImperialGallon: 'IMPERIAL_GALLON'
|
|
||||||
} as const;
|
|
||||||
export type OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum = typeof OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum[keyof typeof OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const OpenDataConversionFoodPreferredUnitMetricTypeEnum = {
|
|
||||||
Weight: 'WEIGHT',
|
|
||||||
Volume: 'VOLUME',
|
|
||||||
Other: 'OTHER'
|
|
||||||
} as const;
|
|
||||||
export type OpenDataConversionFoodPreferredUnitMetricTypeEnum = typeof OpenDataConversionFoodPreferredUnitMetricTypeEnum[keyof typeof OpenDataConversionFoodPreferredUnitMetricTypeEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataConversionFoodPreferredUnitMetric interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataConversionFoodPreferredUnitMetric(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPreferredUnitMetricFromJSON(json: any): OpenDataConversionFoodPreferredUnitMetric {
|
|
||||||
return OpenDataConversionFoodPreferredUnitMetricFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPreferredUnitMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataConversionFoodPreferredUnitMetric {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
'baseUnit': !exists(json, 'base_unit') ? undefined : json['base_unit'],
|
|
||||||
'type': json['type'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPreferredUnitMetricToJSON(value?: OpenDataConversionFoodPreferredUnitMetric | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'base_unit': value.baseUnit,
|
|
||||||
'type': value.type,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
export interface OpenDataConversionFoodPropertiesFoodUnit {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
pluralName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
baseUnit?: OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
type: OpenDataConversionFoodPropertiesFoodUnitTypeEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesFoodUnit
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum = {
|
|
||||||
G: 'G',
|
|
||||||
Kg: 'KG',
|
|
||||||
Ml: 'ML',
|
|
||||||
L: 'L',
|
|
||||||
Ounce: 'OUNCE',
|
|
||||||
Pound: 'POUND',
|
|
||||||
FluidOunce: 'FLUID_OUNCE',
|
|
||||||
Tsp: 'TSP',
|
|
||||||
Tbsp: 'TBSP',
|
|
||||||
Cup: 'CUP',
|
|
||||||
Pint: 'PINT',
|
|
||||||
Quart: 'QUART',
|
|
||||||
Gallon: 'GALLON',
|
|
||||||
ImperialFluidOunce: 'IMPERIAL_FLUID_OUNCE',
|
|
||||||
ImperialPint: 'IMPERIAL_PINT',
|
|
||||||
ImperialQuart: 'IMPERIAL_QUART',
|
|
||||||
ImperialGallon: 'IMPERIAL_GALLON'
|
|
||||||
} as const;
|
|
||||||
export type OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum = typeof OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum[keyof typeof OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const OpenDataConversionFoodPropertiesFoodUnitTypeEnum = {
|
|
||||||
Weight: 'WEIGHT',
|
|
||||||
Volume: 'VOLUME',
|
|
||||||
Other: 'OTHER'
|
|
||||||
} as const;
|
|
||||||
export type OpenDataConversionFoodPropertiesFoodUnitTypeEnum = typeof OpenDataConversionFoodPropertiesFoodUnitTypeEnum[keyof typeof OpenDataConversionFoodPropertiesFoodUnitTypeEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataConversionFoodPropertiesFoodUnit interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataConversionFoodPropertiesFoodUnit(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesFoodUnitFromJSON(json: any): OpenDataConversionFoodPropertiesFoodUnit {
|
|
||||||
return OpenDataConversionFoodPropertiesFoodUnitFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesFoodUnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataConversionFoodPropertiesFoodUnit {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
'baseUnit': !exists(json, 'base_unit') ? undefined : json['base_unit'],
|
|
||||||
'type': json['type'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesFoodUnitToJSON(value?: OpenDataConversionFoodPropertiesFoodUnit | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'base_unit': value.baseUnit,
|
|
||||||
'type': value.type,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataConversionFoodPropertiesInnerProperty } from './OpenDataConversionFoodPropertiesInnerProperty';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPropertiesInnerPropertyFromJSON,
|
|
||||||
OpenDataConversionFoodPropertiesInnerPropertyFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPropertiesInnerPropertyToJSON,
|
|
||||||
} from './OpenDataConversionFoodPropertiesInnerProperty';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataConversionFoodPropertiesInner
|
|
||||||
*/
|
|
||||||
export interface OpenDataConversionFoodPropertiesInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPropertiesInnerProperty}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInner
|
|
||||||
*/
|
|
||||||
property: OpenDataConversionFoodPropertiesInnerProperty;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInner
|
|
||||||
*/
|
|
||||||
propertyAmount: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataConversionFoodPropertiesInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataConversionFoodPropertiesInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "property" in value;
|
|
||||||
isInstance = isInstance && "propertyAmount" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesInnerFromJSON(json: any): OpenDataConversionFoodPropertiesInner {
|
|
||||||
return OpenDataConversionFoodPropertiesInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataConversionFoodPropertiesInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'property': OpenDataConversionFoodPropertiesInnerPropertyFromJSON(json['property']),
|
|
||||||
'propertyAmount': json['property_amount'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesInnerToJSON(value?: OpenDataConversionFoodPropertiesInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'property': OpenDataConversionFoodPropertiesInnerPropertyToJSON(value.property),
|
|
||||||
'property_amount': value.propertyAmount,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,129 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
export interface OpenDataConversionFoodPropertiesInnerProperty {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
unit?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
fdcId?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataConversionFoodPropertiesInnerProperty
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataConversionFoodPropertiesInnerProperty interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataConversionFoodPropertiesInnerProperty(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesInnerPropertyFromJSON(json: any): OpenDataConversionFoodPropertiesInnerProperty {
|
|
||||||
return OpenDataConversionFoodPropertiesInnerPropertyFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesInnerPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataConversionFoodPropertiesInnerProperty {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : json['unit'],
|
|
||||||
'fdcId': !exists(json, 'fdc_id') ? undefined : json['fdc_id'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataConversionFoodPropertiesInnerPropertyToJSON(value?: OpenDataConversionFoodPropertiesInnerProperty | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'unit': value.unit,
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,230 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataConversionFoodPreferredUnitMetric } from './OpenDataConversionFoodPreferredUnitMetric';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPreferredUnitMetricFromJSON,
|
|
||||||
OpenDataConversionFoodPreferredUnitMetricFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPreferredUnitMetricToJSON,
|
|
||||||
} from './OpenDataConversionFoodPreferredUnitMetric';
|
|
||||||
import type { OpenDataConversionFoodPropertiesFoodUnit } from './OpenDataConversionFoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitFromJSON,
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './OpenDataConversionFoodPropertiesFoodUnit';
|
|
||||||
import type { OpenDataConversionFoodPropertiesInner } from './OpenDataConversionFoodPropertiesInner';
|
|
||||||
import {
|
|
||||||
OpenDataConversionFoodPropertiesInnerFromJSON,
|
|
||||||
OpenDataConversionFoodPropertiesInnerFromJSONTyped,
|
|
||||||
OpenDataConversionFoodPropertiesInnerToJSON,
|
|
||||||
} from './OpenDataConversionFoodPropertiesInner';
|
|
||||||
import type { OpenDataStoreCategoryToStoreInnerCategory } from './OpenDataStoreCategoryToStoreInnerCategory';
|
|
||||||
import {
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryFromJSON,
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryFromJSONTyped,
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryToJSON,
|
|
||||||
} from './OpenDataStoreCategoryToStoreInnerCategory';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataFood
|
|
||||||
*/
|
|
||||||
export interface OpenDataFood {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
pluralName: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataStoreCategoryToStoreInnerCategory}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
storeCategory: OpenDataStoreCategoryToStoreInnerCategory;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
preferredUnitMetric?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
preferredShoppingUnitMetric?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
preferredUnitImperial?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPreferredUnitMetric}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
preferredShoppingUnitImperial?: OpenDataConversionFoodPreferredUnitMetric | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<OpenDataConversionFoodPropertiesInner>}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
properties: Array<OpenDataConversionFoodPropertiesInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
propertiesFoodAmount?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataConversionFoodPropertiesFoodUnit}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
propertiesFoodUnit: OpenDataConversionFoodPropertiesFoodUnit;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
propertiesSource?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
fdcId: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataFood
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataFood interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataFood(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "pluralName" in value;
|
|
||||||
isInstance = isInstance && "storeCategory" in value;
|
|
||||||
isInstance = isInstance && "properties" in value;
|
|
||||||
isInstance = isInstance && "propertiesFoodUnit" in value;
|
|
||||||
isInstance = isInstance && "fdcId" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataFoodFromJSON(json: any): OpenDataFood {
|
|
||||||
return OpenDataFoodFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataFood {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': json['plural_name'],
|
|
||||||
'storeCategory': OpenDataStoreCategoryToStoreInnerCategoryFromJSON(json['store_category']),
|
|
||||||
'preferredUnitMetric': !exists(json, 'preferred_unit_metric') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_unit_metric']),
|
|
||||||
'preferredShoppingUnitMetric': !exists(json, 'preferred_shopping_unit_metric') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_shopping_unit_metric']),
|
|
||||||
'preferredUnitImperial': !exists(json, 'preferred_unit_imperial') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_unit_imperial']),
|
|
||||||
'preferredShoppingUnitImperial': !exists(json, 'preferred_shopping_unit_imperial') ? undefined : OpenDataConversionFoodPreferredUnitMetricFromJSON(json['preferred_shopping_unit_imperial']),
|
|
||||||
'properties': (json['properties'] === null ? null : (json['properties'] as Array<any>).map(OpenDataConversionFoodPropertiesInnerFromJSON)),
|
|
||||||
'propertiesFoodAmount': !exists(json, 'properties_food_amount') ? undefined : json['properties_food_amount'],
|
|
||||||
'propertiesFoodUnit': OpenDataConversionFoodPropertiesFoodUnitFromJSON(json['properties_food_unit']),
|
|
||||||
'propertiesSource': !exists(json, 'properties_source') ? undefined : json['properties_source'],
|
|
||||||
'fdcId': json['fdc_id'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataFoodToJSON(value?: OpenDataFood | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'store_category': OpenDataStoreCategoryToStoreInnerCategoryToJSON(value.storeCategory),
|
|
||||||
'preferred_unit_metric': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredUnitMetric),
|
|
||||||
'preferred_shopping_unit_metric': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredShoppingUnitMetric),
|
|
||||||
'preferred_unit_imperial': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredUnitImperial),
|
|
||||||
'preferred_shopping_unit_imperial': OpenDataConversionFoodPreferredUnitMetricToJSON(value.preferredShoppingUnitImperial),
|
|
||||||
'properties': (value.properties === null ? null : (value.properties as Array<any>).map(OpenDataConversionFoodPropertiesInnerToJSON)),
|
|
||||||
'properties_food_amount': value.propertiesFoodAmount,
|
|
||||||
'properties_food_unit': OpenDataConversionFoodPropertiesFoodUnitToJSON(value.propertiesFoodUnit),
|
|
||||||
'properties_source': value.propertiesSource,
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,129 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataProperty
|
|
||||||
*/
|
|
||||||
export interface OpenDataProperty {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
unit?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
fdcId?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataProperty
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataProperty interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataProperty(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataPropertyFromJSON(json: any): OpenDataProperty {
|
|
||||||
return OpenDataPropertyFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataProperty {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : json['unit'],
|
|
||||||
'fdcId': !exists(json, 'fdc_id') ? undefined : json['fdc_id'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataPropertyToJSON(value?: OpenDataProperty | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'unit': value.unit,
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataStoreCategoryToStoreInner } from './OpenDataStoreCategoryToStoreInner';
|
|
||||||
import {
|
|
||||||
OpenDataStoreCategoryToStoreInnerFromJSON,
|
|
||||||
OpenDataStoreCategoryToStoreInnerFromJSONTyped,
|
|
||||||
OpenDataStoreCategoryToStoreInnerToJSON,
|
|
||||||
} from './OpenDataStoreCategoryToStoreInner';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataStore
|
|
||||||
*/
|
|
||||||
export interface OpenDataStore {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<OpenDataStoreCategoryToStoreInner>}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
categoryToStore: Array<OpenDataStoreCategoryToStoreInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStore
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataStore interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataStore(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "categoryToStore" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreFromJSON(json: any): OpenDataStore {
|
|
||||||
return OpenDataStoreFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataStore {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'categoryToStore': (json['category_to_store'] === null ? null : (json['category_to_store'] as Array<any>).map(OpenDataStoreCategoryToStoreInnerFromJSON)),
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreToJSON(value?: OpenDataStore | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'category_to_store': (value.categoryToStore === null ? null : (value.categoryToStore as Array<any>).map(OpenDataStoreCategoryToStoreInnerToJSON)),
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataStoreCategoryToStoreInnerCategory } from './OpenDataStoreCategoryToStoreInnerCategory';
|
|
||||||
import {
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryFromJSON,
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryFromJSONTyped,
|
|
||||||
OpenDataStoreCategoryToStoreInnerCategoryToJSON,
|
|
||||||
} from './OpenDataStoreCategoryToStoreInnerCategory';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataStoreCategoryToStoreInner
|
|
||||||
*/
|
|
||||||
export interface OpenDataStoreCategoryToStoreInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataStoreCategoryToStoreInnerCategory}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInner
|
|
||||||
*/
|
|
||||||
category: OpenDataStoreCategoryToStoreInnerCategory;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInner
|
|
||||||
*/
|
|
||||||
store: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInner
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataStoreCategoryToStoreInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataStoreCategoryToStoreInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "category" in value;
|
|
||||||
isInstance = isInstance && "store" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToStoreInnerFromJSON(json: any): OpenDataStoreCategoryToStoreInner {
|
|
||||||
return OpenDataStoreCategoryToStoreInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToStoreInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataStoreCategoryToStoreInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'category': OpenDataStoreCategoryToStoreInnerCategoryFromJSON(json['category']),
|
|
||||||
'store': json['store'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToStoreInnerToJSON(value?: OpenDataStoreCategoryToStoreInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'category': OpenDataStoreCategoryToStoreInnerCategoryToJSON(value.category),
|
|
||||||
'store': value.store,
|
|
||||||
'order': value.order,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
export interface OpenDataStoreCategoryToStoreInnerCategory {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataStoreCategoryToStoreInnerCategory
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataStoreCategoryToStoreInnerCategory interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataStoreCategoryToStoreInnerCategory(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToStoreInnerCategoryFromJSON(json: any): OpenDataStoreCategoryToStoreInnerCategory {
|
|
||||||
return OpenDataStoreCategoryToStoreInnerCategoryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToStoreInnerCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataStoreCategoryToStoreInnerCategory {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataStoreCategoryToStoreInnerCategoryToJSON(value?: OpenDataStoreCategoryToStoreInnerCategory | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { OpenDataUnitVersion } from './OpenDataUnitVersion';
|
|
||||||
import {
|
|
||||||
OpenDataUnitVersionFromJSON,
|
|
||||||
OpenDataUnitVersionFromJSONTyped,
|
|
||||||
OpenDataUnitVersionToJSON,
|
|
||||||
} from './OpenDataUnitVersion';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataUnit
|
|
||||||
*/
|
|
||||||
export interface OpenDataUnit {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OpenDataUnitVersion}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
version: OpenDataUnitVersion;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
slug: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
pluralName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
baseUnit?: OpenDataUnitBaseUnitEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
type: OpenDataUnitTypeEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnit
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const OpenDataUnitBaseUnitEnum = {
|
|
||||||
G: 'G',
|
|
||||||
Kg: 'KG',
|
|
||||||
Ml: 'ML',
|
|
||||||
L: 'L',
|
|
||||||
Ounce: 'OUNCE',
|
|
||||||
Pound: 'POUND',
|
|
||||||
FluidOunce: 'FLUID_OUNCE',
|
|
||||||
Tsp: 'TSP',
|
|
||||||
Tbsp: 'TBSP',
|
|
||||||
Cup: 'CUP',
|
|
||||||
Pint: 'PINT',
|
|
||||||
Quart: 'QUART',
|
|
||||||
Gallon: 'GALLON',
|
|
||||||
ImperialFluidOunce: 'IMPERIAL_FLUID_OUNCE',
|
|
||||||
ImperialPint: 'IMPERIAL_PINT',
|
|
||||||
ImperialQuart: 'IMPERIAL_QUART',
|
|
||||||
ImperialGallon: 'IMPERIAL_GALLON'
|
|
||||||
} as const;
|
|
||||||
export type OpenDataUnitBaseUnitEnum = typeof OpenDataUnitBaseUnitEnum[keyof typeof OpenDataUnitBaseUnitEnum];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const OpenDataUnitTypeEnum = {
|
|
||||||
Weight: 'WEIGHT',
|
|
||||||
Volume: 'VOLUME',
|
|
||||||
Other: 'OTHER'
|
|
||||||
} as const;
|
|
||||||
export type OpenDataUnitTypeEnum = typeof OpenDataUnitTypeEnum[keyof typeof OpenDataUnitTypeEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataUnit interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataUnit(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "version" in value;
|
|
||||||
isInstance = isInstance && "slug" in value;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "type" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitFromJSON(json: any): OpenDataUnit {
|
|
||||||
return OpenDataUnitFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataUnit {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'version': OpenDataUnitVersionFromJSON(json['version']),
|
|
||||||
'slug': json['slug'],
|
|
||||||
'name': json['name'],
|
|
||||||
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
|
|
||||||
'baseUnit': !exists(json, 'base_unit') ? undefined : json['base_unit'],
|
|
||||||
'type': json['type'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitToJSON(value?: OpenDataUnit | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'version': OpenDataUnitVersionToJSON(value.version),
|
|
||||||
'slug': value.slug,
|
|
||||||
'name': value.name,
|
|
||||||
'plural_name': value.pluralName,
|
|
||||||
'base_unit': value.baseUnit,
|
|
||||||
'type': value.type,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataUnitVersion
|
|
||||||
*/
|
|
||||||
export interface OpenDataUnitVersion {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataUnitVersion
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnitVersion
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnitVersion
|
|
||||||
*/
|
|
||||||
code: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataUnitVersion
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataUnitVersion interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataUnitVersion(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "code" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitVersionFromJSON(json: any): OpenDataUnitVersion {
|
|
||||||
return OpenDataUnitVersionFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataUnitVersion {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'code': json['code'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataUnitVersionToJSON(value?: OpenDataUnitVersion | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'code': value.code,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OpenDataVersion
|
|
||||||
*/
|
|
||||||
export interface OpenDataVersion {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof OpenDataVersion
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataVersion
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataVersion
|
|
||||||
*/
|
|
||||||
code: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OpenDataVersion
|
|
||||||
*/
|
|
||||||
comment?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the OpenDataVersion interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfOpenDataVersion(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "code" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataVersionFromJSON(json: any): OpenDataVersion {
|
|
||||||
return OpenDataVersionFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataVersion {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'code': json['code'],
|
|
||||||
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'code': value.code,
|
|
||||||
'comment': value.comment,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodPropertiesInnerPropertyType } from './FoodPropertiesInnerPropertyType';
|
|
||||||
import {
|
|
||||||
FoodPropertiesInnerPropertyTypeFromJSON,
|
|
||||||
FoodPropertiesInnerPropertyTypeFromJSONTyped,
|
|
||||||
FoodPropertiesInnerPropertyTypeToJSON,
|
|
||||||
} from './FoodPropertiesInnerPropertyType';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Property
|
|
||||||
*/
|
|
||||||
export interface Property {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Property
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Property
|
|
||||||
*/
|
|
||||||
propertyAmount: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesInnerPropertyType}
|
|
||||||
* @memberof Property
|
|
||||||
*/
|
|
||||||
propertyType: FoodPropertiesInnerPropertyType;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Property interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfProperty(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "propertyAmount" in value;
|
|
||||||
isInstance = isInstance && "propertyType" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PropertyFromJSON(json: any): Property {
|
|
||||||
return PropertyFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Property {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'propertyAmount': json['property_amount'],
|
|
||||||
'propertyType': FoodPropertiesInnerPropertyTypeFromJSON(json['property_type']),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PropertyToJSON(value?: Property | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'property_amount': value.propertyAmount,
|
|
||||||
'property_type': FoodPropertiesInnerPropertyTypeToJSON(value.propertyType),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface PropertyType
|
|
||||||
*/
|
|
||||||
export interface PropertyType {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
unit?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof PropertyType
|
|
||||||
*/
|
|
||||||
fdcId?: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the PropertyType interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfPropertyType(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PropertyTypeFromJSON(json: any): PropertyType {
|
|
||||||
return PropertyTypeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PropertyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyType {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : json['unit'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
'fdcId': !exists(json, 'fdc_id') ? undefined : json['fdc_id'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function PropertyTypeToJSON(value?: PropertyType | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': value.id,
|
|
||||||
'name': value.name,
|
|
||||||
'unit': value.unit,
|
|
||||||
'description': value.description,
|
|
||||||
'order': value.order,
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
'fdc_id': value.fdcId,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,275 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
|
||||||
import {
|
|
||||||
CustomFilterSharedInnerFromJSON,
|
|
||||||
CustomFilterSharedInnerFromJSONTyped,
|
|
||||||
CustomFilterSharedInnerToJSON,
|
|
||||||
} from './CustomFilterSharedInner';
|
|
||||||
import type { FoodPropertiesInner } from './FoodPropertiesInner';
|
|
||||||
import {
|
|
||||||
FoodPropertiesInnerFromJSON,
|
|
||||||
FoodPropertiesInnerFromJSONTyped,
|
|
||||||
FoodPropertiesInnerToJSON,
|
|
||||||
} from './FoodPropertiesInner';
|
|
||||||
import type { RecipeKeywordsInner } from './RecipeKeywordsInner';
|
|
||||||
import {
|
|
||||||
RecipeKeywordsInnerFromJSON,
|
|
||||||
RecipeKeywordsInnerFromJSONTyped,
|
|
||||||
RecipeKeywordsInnerToJSON,
|
|
||||||
} from './RecipeKeywordsInner';
|
|
||||||
import type { RecipeNutrition } from './RecipeNutrition';
|
|
||||||
import {
|
|
||||||
RecipeNutritionFromJSON,
|
|
||||||
RecipeNutritionFromJSONTyped,
|
|
||||||
RecipeNutritionToJSON,
|
|
||||||
} from './RecipeNutrition';
|
|
||||||
import type { RecipeStepsInner } from './RecipeStepsInner';
|
|
||||||
import {
|
|
||||||
RecipeStepsInnerFromJSON,
|
|
||||||
RecipeStepsInnerFromJSONTyped,
|
|
||||||
RecipeStepsInnerToJSON,
|
|
||||||
} from './RecipeStepsInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Recipe
|
|
||||||
*/
|
|
||||||
export interface Recipe {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Blob}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly image?: Blob | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<RecipeKeywordsInner>}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
keywords: Array<RecipeKeywordsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<RecipeStepsInner>}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
steps: Array<RecipeStepsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
workingTime?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
waitingTime?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
sourceUrl?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
internal?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
showIngredientOverview?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeNutrition}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
nutrition?: RecipeNutrition | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodPropertiesInner>}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
properties?: Array<FoodPropertiesInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly foodProperties?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
servings?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
filePath?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
servingsText?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly rating?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
readonly lastCooked?: Date | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
_private?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CustomFilterSharedInner>}
|
|
||||||
* @memberof Recipe
|
|
||||||
*/
|
|
||||||
shared?: Array<CustomFilterSharedInner>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Recipe interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipe(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "keywords" in value;
|
|
||||||
isInstance = isInstance && "steps" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeFromJSON(json: any): Recipe {
|
|
||||||
return RecipeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Recipe {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
||||||
'keywords': ((json['keywords'] as Array<any>).map(RecipeKeywordsInnerFromJSON)),
|
|
||||||
'steps': ((json['steps'] as Array<any>).map(RecipeStepsInnerFromJSON)),
|
|
||||||
'workingTime': !exists(json, 'working_time') ? undefined : json['working_time'],
|
|
||||||
'waitingTime': !exists(json, 'waiting_time') ? undefined : json['waiting_time'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'sourceUrl': !exists(json, 'source_url') ? undefined : json['source_url'],
|
|
||||||
'internal': !exists(json, 'internal') ? undefined : json['internal'],
|
|
||||||
'showIngredientOverview': !exists(json, 'show_ingredient_overview') ? undefined : json['show_ingredient_overview'],
|
|
||||||
'nutrition': !exists(json, 'nutrition') ? undefined : RecipeNutritionFromJSON(json['nutrition']),
|
|
||||||
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(FoodPropertiesInnerFromJSON)),
|
|
||||||
'foodProperties': !exists(json, 'food_properties') ? undefined : json['food_properties'],
|
|
||||||
'servings': !exists(json, 'servings') ? undefined : json['servings'],
|
|
||||||
'filePath': !exists(json, 'file_path') ? undefined : json['file_path'],
|
|
||||||
'servingsText': !exists(json, 'servings_text') ? undefined : json['servings_text'],
|
|
||||||
'rating': !exists(json, 'rating') ? undefined : json['rating'],
|
|
||||||
'lastCooked': !exists(json, 'last_cooked') ? undefined : (json['last_cooked'] === null ? null : new Date(json['last_cooked'])),
|
|
||||||
'_private': !exists(json, 'private') ? undefined : json['private'],
|
|
||||||
'shared': !exists(json, 'shared') ? undefined : ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeToJSON(value?: Recipe | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'keywords': ((value.keywords as Array<any>).map(RecipeKeywordsInnerToJSON)),
|
|
||||||
'steps': ((value.steps as Array<any>).map(RecipeStepsInnerToJSON)),
|
|
||||||
'working_time': value.workingTime,
|
|
||||||
'waiting_time': value.waitingTime,
|
|
||||||
'source_url': value.sourceUrl,
|
|
||||||
'internal': value.internal,
|
|
||||||
'show_ingredient_overview': value.showIngredientOverview,
|
|
||||||
'nutrition': RecipeNutritionToJSON(value.nutrition),
|
|
||||||
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(FoodPropertiesInnerToJSON)),
|
|
||||||
'servings': value.servings,
|
|
||||||
'file_path': value.filePath,
|
|
||||||
'servings_text': value.servingsText,
|
|
||||||
'private': value._private,
|
|
||||||
'shared': value.shared === undefined ? undefined : ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
|
||||||
import {
|
|
||||||
CustomFilterSharedInnerFromJSON,
|
|
||||||
CustomFilterSharedInnerFromJSONTyped,
|
|
||||||
CustomFilterSharedInnerToJSON,
|
|
||||||
} from './CustomFilterSharedInner';
|
|
||||||
import type { RecipeBookFilter } from './RecipeBookFilter';
|
|
||||||
import {
|
|
||||||
RecipeBookFilterFromJSON,
|
|
||||||
RecipeBookFilterFromJSONTyped,
|
|
||||||
RecipeBookFilterToJSON,
|
|
||||||
} from './RecipeBookFilter';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeBook
|
|
||||||
*/
|
|
||||||
export interface RecipeBook {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CustomFilterSharedInner>}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
shared: Array<CustomFilterSharedInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeBookFilter}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
filter?: RecipeBookFilter | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeBook
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeBook interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeBook(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "shared" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookFromJSON(json: any): RecipeBook {
|
|
||||||
return RecipeBookFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeBook {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'shared': ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'filter': !exists(json, 'filter') ? undefined : RecipeBookFilterFromJSON(json['filter']),
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookToJSON(value?: RecipeBook | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'shared': ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
|
||||||
'filter': RecipeBookFilterToJSON(value.filter),
|
|
||||||
'order': value.order,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeBookEntry
|
|
||||||
*/
|
|
||||||
export interface RecipeBookEntry {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeBookEntry
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeBookEntry
|
|
||||||
*/
|
|
||||||
book: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBookEntry
|
|
||||||
*/
|
|
||||||
readonly bookContent?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeBookEntry
|
|
||||||
*/
|
|
||||||
recipe: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBookEntry
|
|
||||||
*/
|
|
||||||
readonly recipeContent?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeBookEntry interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeBookEntry(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "book" in value;
|
|
||||||
isInstance = isInstance && "recipe" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookEntryFromJSON(json: any): RecipeBookEntry {
|
|
||||||
return RecipeBookEntryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeBookEntry {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'book': json['book'],
|
|
||||||
'bookContent': !exists(json, 'book_content') ? undefined : json['book_content'],
|
|
||||||
'recipe': json['recipe'],
|
|
||||||
'recipeContent': !exists(json, 'recipe_content') ? undefined : json['recipe_content'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookEntryToJSON(value?: RecipeBookEntry | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'book': value.book,
|
|
||||||
'recipe': value.recipe,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
|
||||||
import {
|
|
||||||
CustomFilterSharedInnerFromJSON,
|
|
||||||
CustomFilterSharedInnerFromJSONTyped,
|
|
||||||
CustomFilterSharedInnerToJSON,
|
|
||||||
} from './CustomFilterSharedInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeBookFilter
|
|
||||||
*/
|
|
||||||
export interface RecipeBookFilter {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeBookFilter
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBookFilter
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBookFilter
|
|
||||||
*/
|
|
||||||
search: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CustomFilterSharedInner>}
|
|
||||||
* @memberof RecipeBookFilter
|
|
||||||
*/
|
|
||||||
shared?: Array<CustomFilterSharedInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeBookFilter
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeBookFilter interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeBookFilter(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "search" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookFilterFromJSON(json: any): RecipeBookFilter {
|
|
||||||
return RecipeBookFilterFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeBookFilter {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'search': json['search'],
|
|
||||||
'shared': !exists(json, 'shared') ? undefined : ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeBookFilterToJSON(value?: RecipeBookFilter | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'search': value.search,
|
|
||||||
'shared': value.shared === undefined ? undefined : ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeImage
|
|
||||||
*/
|
|
||||||
export interface RecipeImage {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Blob}
|
|
||||||
* @memberof RecipeImage
|
|
||||||
*/
|
|
||||||
image?: Blob | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeImage
|
|
||||||
*/
|
|
||||||
imageUrl?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeImage interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeImage(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeImageFromJSON(json: any): RecipeImage {
|
|
||||||
return RecipeImageFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeImage {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
||||||
'imageUrl': !exists(json, 'image_url') ? undefined : json['image_url'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeImageToJSON(value?: RecipeImage | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'image': value.image,
|
|
||||||
'image_url': value.imageUrl,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
export interface RecipeKeywordsInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly label?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
description?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly parent?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly numchild?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeKeywordsInner
|
|
||||||
*/
|
|
||||||
readonly fullName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeKeywordsInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeKeywordsInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeKeywordsInnerFromJSON(json: any): RecipeKeywordsInner {
|
|
||||||
return RecipeKeywordsInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeKeywordsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeKeywordsInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
||||||
'numchild': !exists(json, 'numchild') ? undefined : json['numchild'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'fullName': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeKeywordsInnerToJSON(value?: RecipeKeywordsInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeNutrition
|
|
||||||
*/
|
|
||||||
export interface RecipeNutrition {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeNutrition
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeNutrition
|
|
||||||
*/
|
|
||||||
carbohydrates: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeNutrition
|
|
||||||
*/
|
|
||||||
fats: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeNutrition
|
|
||||||
*/
|
|
||||||
proteins: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeNutrition
|
|
||||||
*/
|
|
||||||
calories: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeNutrition
|
|
||||||
*/
|
|
||||||
source?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeNutrition interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeNutrition(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "carbohydrates" in value;
|
|
||||||
isInstance = isInstance && "fats" in value;
|
|
||||||
isInstance = isInstance && "proteins" in value;
|
|
||||||
isInstance = isInstance && "calories" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeNutritionFromJSON(json: any): RecipeNutrition {
|
|
||||||
return RecipeNutritionFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeNutritionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeNutrition {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'carbohydrates': json['carbohydrates'],
|
|
||||||
'fats': json['fats'],
|
|
||||||
'proteins': json['proteins'],
|
|
||||||
'calories': json['calories'],
|
|
||||||
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeNutritionToJSON(value?: RecipeNutrition | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'carbohydrates': value.carbohydrates,
|
|
||||||
'fats': value.fats,
|
|
||||||
'proteins': value.proteins,
|
|
||||||
'calories': value.calories,
|
|
||||||
'source': value.source,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,195 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { MealPlanRecipeKeywordsInner } from './MealPlanRecipeKeywordsInner';
|
|
||||||
import {
|
|
||||||
MealPlanRecipeKeywordsInnerFromJSON,
|
|
||||||
MealPlanRecipeKeywordsInnerFromJSONTyped,
|
|
||||||
MealPlanRecipeKeywordsInnerToJSON,
|
|
||||||
} from './MealPlanRecipeKeywordsInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeOverview
|
|
||||||
*/
|
|
||||||
export interface RecipeOverview {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Blob}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly image?: Blob | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<MealPlanRecipeKeywordsInner>}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
keywords: Array<MealPlanRecipeKeywordsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
workingTime?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
waitingTime?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
internal?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
servings?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
servingsText?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
rating?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
lastCooked?: Date | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly _new?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeOverview
|
|
||||||
*/
|
|
||||||
readonly recent?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeOverview interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeOverview(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
isInstance = isInstance && "keywords" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeOverviewFromJSON(json: any): RecipeOverview {
|
|
||||||
return RecipeOverviewFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeOverview {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'image': !exists(json, 'image') ? undefined : json['image'],
|
|
||||||
'keywords': ((json['keywords'] as Array<any>).map(MealPlanRecipeKeywordsInnerFromJSON)),
|
|
||||||
'workingTime': !exists(json, 'working_time') ? undefined : json['working_time'],
|
|
||||||
'waitingTime': !exists(json, 'waiting_time') ? undefined : json['waiting_time'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'internal': !exists(json, 'internal') ? undefined : json['internal'],
|
|
||||||
'servings': !exists(json, 'servings') ? undefined : json['servings'],
|
|
||||||
'servingsText': !exists(json, 'servings_text') ? undefined : json['servings_text'],
|
|
||||||
'rating': !exists(json, 'rating') ? undefined : json['rating'],
|
|
||||||
'lastCooked': !exists(json, 'last_cooked') ? undefined : (json['last_cooked'] === null ? null : new Date(json['last_cooked'])),
|
|
||||||
'_new': !exists(json, 'new') ? undefined : json['new'],
|
|
||||||
'recent': !exists(json, 'recent') ? undefined : json['recent'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeOverviewToJSON(value?: RecipeOverview | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'keywords': ((value.keywords as Array<any>).map(MealPlanRecipeKeywordsInnerToJSON)),
|
|
||||||
'working_time': value.workingTime,
|
|
||||||
'waiting_time': value.waitingTime,
|
|
||||||
'internal': value.internal,
|
|
||||||
'servings': value.servings,
|
|
||||||
'servings_text': value.servingsText,
|
|
||||||
'rating': value.rating,
|
|
||||||
'last_cooked': value.lastCooked === undefined ? undefined : (value.lastCooked === null ? null : value.lastCooked.toISOString()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeShoppingUpdate
|
|
||||||
*/
|
|
||||||
export interface RecipeShoppingUpdate {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeShoppingUpdate
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
* Existing shopping list to update
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeShoppingUpdate
|
|
||||||
*/
|
|
||||||
listRecipe?: number | null;
|
|
||||||
/**
|
|
||||||
* List of ingredient IDs from the recipe to add, if not provided all ingredients will be added.
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeShoppingUpdate
|
|
||||||
*/
|
|
||||||
ingredients?: number | null;
|
|
||||||
/**
|
|
||||||
* Providing a list_recipe ID and servings of 0 will delete that shopping list.
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeShoppingUpdate
|
|
||||||
*/
|
|
||||||
servings?: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeShoppingUpdate interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeShoppingUpdate(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeShoppingUpdateFromJSON(json: any): RecipeShoppingUpdate {
|
|
||||||
return RecipeShoppingUpdateFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeShoppingUpdate {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'listRecipe': !exists(json, 'list_recipe') ? undefined : json['list_recipe'],
|
|
||||||
'ingredients': !exists(json, 'ingredients') ? undefined : json['ingredients'],
|
|
||||||
'servings': !exists(json, 'servings') ? undefined : json['servings'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeShoppingUpdateToJSON(value?: RecipeShoppingUpdate | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'list_recipe': value.listRecipe,
|
|
||||||
'ingredients': value.ingredients,
|
|
||||||
'servings': value.servings,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeSimple
|
|
||||||
*/
|
|
||||||
export interface RecipeSimple {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeSimple
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeSimple
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeSimple
|
|
||||||
*/
|
|
||||||
readonly url?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeSimple interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeSimple(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeSimpleFromJSON(json: any): RecipeSimple {
|
|
||||||
return RecipeSimpleFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeSimple {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeSimpleToJSON(value?: RecipeSimple | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,178 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { RecipeStepsInnerFile } from './RecipeStepsInnerFile';
|
|
||||||
import {
|
|
||||||
RecipeStepsInnerFileFromJSON,
|
|
||||||
RecipeStepsInnerFileFromJSONTyped,
|
|
||||||
RecipeStepsInnerFileToJSON,
|
|
||||||
} from './RecipeStepsInnerFile';
|
|
||||||
import type { RecipeStepsInnerIngredientsInner } from './RecipeStepsInnerIngredientsInner';
|
|
||||||
import {
|
|
||||||
RecipeStepsInnerIngredientsInnerFromJSON,
|
|
||||||
RecipeStepsInnerIngredientsInnerFromJSONTyped,
|
|
||||||
RecipeStepsInnerIngredientsInnerToJSON,
|
|
||||||
} from './RecipeStepsInnerIngredientsInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeStepsInner
|
|
||||||
*/
|
|
||||||
export interface RecipeStepsInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
instruction?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<RecipeStepsInnerIngredientsInner>}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
ingredients: Array<RecipeStepsInnerIngredientsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
readonly ingredientsMarkdown?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
readonly ingredientsVue?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
time?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
showAsHeader?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
file?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
stepRecipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
readonly stepRecipeData?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
readonly numrecipe?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeStepsInner
|
|
||||||
*/
|
|
||||||
showIngredientsTable?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeStepsInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeStepsInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "ingredients" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerFromJSON(json: any): RecipeStepsInner {
|
|
||||||
return RecipeStepsInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeStepsInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'instruction': !exists(json, 'instruction') ? undefined : json['instruction'],
|
|
||||||
'ingredients': ((json['ingredients'] as Array<any>).map(RecipeStepsInnerIngredientsInnerFromJSON)),
|
|
||||||
'ingredientsMarkdown': !exists(json, 'ingredients_markdown') ? undefined : json['ingredients_markdown'],
|
|
||||||
'ingredientsVue': !exists(json, 'ingredients_vue') ? undefined : json['ingredients_vue'],
|
|
||||||
'time': !exists(json, 'time') ? undefined : json['time'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'showAsHeader': !exists(json, 'show_as_header') ? undefined : json['show_as_header'],
|
|
||||||
'file': !exists(json, 'file') ? undefined : RecipeStepsInnerFileFromJSON(json['file']),
|
|
||||||
'stepRecipe': !exists(json, 'step_recipe') ? undefined : json['step_recipe'],
|
|
||||||
'stepRecipeData': !exists(json, 'step_recipe_data') ? undefined : json['step_recipe_data'],
|
|
||||||
'numrecipe': !exists(json, 'numrecipe') ? undefined : json['numrecipe'],
|
|
||||||
'showIngredientsTable': !exists(json, 'show_ingredients_table') ? undefined : json['show_ingredients_table'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerToJSON(value?: RecipeStepsInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'instruction': value.instruction,
|
|
||||||
'ingredients': ((value.ingredients as Array<any>).map(RecipeStepsInnerIngredientsInnerToJSON)),
|
|
||||||
'time': value.time,
|
|
||||||
'order': value.order,
|
|
||||||
'show_as_header': value.showAsHeader,
|
|
||||||
'file': RecipeStepsInnerFileToJSON(value.file),
|
|
||||||
'step_recipe': value.stepRecipe,
|
|
||||||
'show_ingredients_table': value.showIngredientsTable,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeStepsInnerFile
|
|
||||||
*/
|
|
||||||
export interface RecipeStepsInnerFile {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInnerFile
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerFile
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerFile
|
|
||||||
*/
|
|
||||||
readonly fileDownload?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerFile
|
|
||||||
*/
|
|
||||||
readonly preview?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeStepsInnerFile interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeStepsInnerFile(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerFileFromJSON(json: any): RecipeStepsInnerFile {
|
|
||||||
return RecipeStepsInnerFileFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeStepsInnerFile {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'fileDownload': !exists(json, 'file_download') ? undefined : json['file_download'],
|
|
||||||
'preview': !exists(json, 'preview') ? undefined : json['preview'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerFileToJSON(value?: RecipeStepsInnerFile | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
FoodPropertiesFoodUnitFromJSON,
|
|
||||||
FoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
FoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './FoodPropertiesFoodUnit';
|
|
||||||
import type { IngredientFood } from './IngredientFood';
|
|
||||||
import {
|
|
||||||
IngredientFoodFromJSON,
|
|
||||||
IngredientFoodFromJSONTyped,
|
|
||||||
IngredientFoodToJSON,
|
|
||||||
} from './IngredientFood';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
export interface RecipeStepsInnerIngredientsInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {IngredientFood}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
food: IngredientFood | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesFoodUnit}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
unit: FoodPropertiesFoodUnit | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
amount: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
readonly conversions?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
note?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
isHeader?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
noAmount?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
originalText?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
readonly usedInRecipes?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
alwaysUsePluralUnit?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof RecipeStepsInnerIngredientsInner
|
|
||||||
*/
|
|
||||||
alwaysUsePluralFood?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the RecipeStepsInnerIngredientsInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfRecipeStepsInnerIngredientsInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "food" in value;
|
|
||||||
isInstance = isInstance && "unit" in value;
|
|
||||||
isInstance = isInstance && "amount" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerIngredientsInnerFromJSON(json: any): RecipeStepsInnerIngredientsInner {
|
|
||||||
return RecipeStepsInnerIngredientsInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerIngredientsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeStepsInnerIngredientsInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'food': IngredientFoodFromJSON(json['food']),
|
|
||||||
'unit': FoodPropertiesFoodUnitFromJSON(json['unit']),
|
|
||||||
'amount': json['amount'],
|
|
||||||
'conversions': !exists(json, 'conversions') ? undefined : json['conversions'],
|
|
||||||
'note': !exists(json, 'note') ? undefined : json['note'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'isHeader': !exists(json, 'is_header') ? undefined : json['is_header'],
|
|
||||||
'noAmount': !exists(json, 'no_amount') ? undefined : json['no_amount'],
|
|
||||||
'originalText': !exists(json, 'original_text') ? undefined : json['original_text'],
|
|
||||||
'usedInRecipes': !exists(json, 'used_in_recipes') ? undefined : json['used_in_recipes'],
|
|
||||||
'alwaysUsePluralUnit': !exists(json, 'always_use_plural_unit') ? undefined : json['always_use_plural_unit'],
|
|
||||||
'alwaysUsePluralFood': !exists(json, 'always_use_plural_food') ? undefined : json['always_use_plural_food'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function RecipeStepsInnerIngredientsInnerToJSON(value?: RecipeStepsInnerIngredientsInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'food': IngredientFoodToJSON(value.food),
|
|
||||||
'unit': FoodPropertiesFoodUnitToJSON(value.unit),
|
|
||||||
'amount': value.amount,
|
|
||||||
'note': value.note,
|
|
||||||
'order': value.order,
|
|
||||||
'is_header': value.isHeader,
|
|
||||||
'no_amount': value.noAmount,
|
|
||||||
'original_text': value.originalText,
|
|
||||||
'always_use_plural_unit': value.alwaysUsePluralUnit,
|
|
||||||
'always_use_plural_food': value.alwaysUsePluralFood,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,163 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
|
||||||
import {
|
|
||||||
CustomFilterSharedInnerFromJSON,
|
|
||||||
CustomFilterSharedInnerFromJSONTyped,
|
|
||||||
CustomFilterSharedInnerToJSON,
|
|
||||||
} from './CustomFilterSharedInner';
|
|
||||||
import type { ShoppingListEntriesInner } from './ShoppingListEntriesInner';
|
|
||||||
import {
|
|
||||||
ShoppingListEntriesInnerFromJSON,
|
|
||||||
ShoppingListEntriesInnerFromJSONTyped,
|
|
||||||
ShoppingListEntriesInnerToJSON,
|
|
||||||
} from './ShoppingListEntriesInner';
|
|
||||||
import type { ShoppingListRecipesInner } from './ShoppingListRecipesInner';
|
|
||||||
import {
|
|
||||||
ShoppingListRecipesInnerFromJSON,
|
|
||||||
ShoppingListRecipesInnerFromJSONTyped,
|
|
||||||
ShoppingListRecipesInnerToJSON,
|
|
||||||
} from './ShoppingListRecipesInner';
|
|
||||||
import type { ShoppingListSupermarket } from './ShoppingListSupermarket';
|
|
||||||
import {
|
|
||||||
ShoppingListSupermarketFromJSON,
|
|
||||||
ShoppingListSupermarketFromJSONTyped,
|
|
||||||
ShoppingListSupermarketToJSON,
|
|
||||||
} from './ShoppingListSupermarket';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingList
|
|
||||||
*/
|
|
||||||
export interface ShoppingList {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
uuid?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
note?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ShoppingListRecipesInner>}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
recipes: Array<ShoppingListRecipesInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ShoppingListEntriesInner>}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
entries: Array<ShoppingListEntriesInner> | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<CustomFilterSharedInner>}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
shared: Array<CustomFilterSharedInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
finished?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ShoppingListSupermarket}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
supermarket: ShoppingListSupermarket | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingList
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingList interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingList(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "recipes" in value;
|
|
||||||
isInstance = isInstance && "entries" in value;
|
|
||||||
isInstance = isInstance && "shared" in value;
|
|
||||||
isInstance = isInstance && "supermarket" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListFromJSON(json: any): ShoppingList {
|
|
||||||
return ShoppingListFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingList {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
|
|
||||||
'note': !exists(json, 'note') ? undefined : json['note'],
|
|
||||||
'recipes': (json['recipes'] === null ? null : (json['recipes'] as Array<any>).map(ShoppingListRecipesInnerFromJSON)),
|
|
||||||
'entries': (json['entries'] === null ? null : (json['entries'] as Array<any>).map(ShoppingListEntriesInnerFromJSON)),
|
|
||||||
'shared': ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
|
||||||
'finished': !exists(json, 'finished') ? undefined : json['finished'],
|
|
||||||
'supermarket': ShoppingListSupermarketFromJSON(json['supermarket']),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListToJSON(value?: ShoppingList | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'uuid': value.uuid,
|
|
||||||
'note': value.note,
|
|
||||||
'recipes': (value.recipes === null ? null : (value.recipes as Array<any>).map(ShoppingListRecipesInnerToJSON)),
|
|
||||||
'entries': (value.entries === null ? null : (value.entries as Array<any>).map(ShoppingListEntriesInnerToJSON)),
|
|
||||||
'shared': ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
|
||||||
'finished': value.finished,
|
|
||||||
'supermarket': ShoppingListSupermarketToJSON(value.supermarket),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,185 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
FoodPropertiesFoodUnitFromJSON,
|
|
||||||
FoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
FoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './FoodPropertiesFoodUnit';
|
|
||||||
import type { IngredientFood } from './IngredientFood';
|
|
||||||
import {
|
|
||||||
IngredientFoodFromJSON,
|
|
||||||
IngredientFoodFromJSONTyped,
|
|
||||||
IngredientFoodToJSON,
|
|
||||||
} from './IngredientFood';
|
|
||||||
import type { ShoppingListEntriesInnerCreatedBy } from './ShoppingListEntriesInnerCreatedBy';
|
|
||||||
import {
|
|
||||||
ShoppingListEntriesInnerCreatedByFromJSON,
|
|
||||||
ShoppingListEntriesInnerCreatedByFromJSONTyped,
|
|
||||||
ShoppingListEntriesInnerCreatedByToJSON,
|
|
||||||
} from './ShoppingListEntriesInnerCreatedBy';
|
|
||||||
import type { ShoppingListEntriesInnerRecipeMealplan } from './ShoppingListEntriesInnerRecipeMealplan';
|
|
||||||
import {
|
|
||||||
ShoppingListEntriesInnerRecipeMealplanFromJSON,
|
|
||||||
ShoppingListEntriesInnerRecipeMealplanFromJSONTyped,
|
|
||||||
ShoppingListEntriesInnerRecipeMealplanToJSON,
|
|
||||||
} from './ShoppingListEntriesInnerRecipeMealplan';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
export interface ShoppingListEntriesInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
listRecipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {IngredientFood}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
food: IngredientFood | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesFoodUnit}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
unit?: FoodPropertiesFoodUnit | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
amount: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
checked?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ShoppingListEntriesInnerRecipeMealplan}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
recipeMealplan?: ShoppingListEntriesInnerRecipeMealplan;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ShoppingListEntriesInnerCreatedBy}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
createdBy?: ShoppingListEntriesInnerCreatedBy;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
completedAt?: Date | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntriesInner
|
|
||||||
*/
|
|
||||||
delayUntil?: Date | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListEntriesInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListEntriesInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "food" in value;
|
|
||||||
isInstance = isInstance && "amount" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerFromJSON(json: any): ShoppingListEntriesInner {
|
|
||||||
return ShoppingListEntriesInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListEntriesInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'listRecipe': !exists(json, 'list_recipe') ? undefined : json['list_recipe'],
|
|
||||||
'food': IngredientFoodFromJSON(json['food']),
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : FoodPropertiesFoodUnitFromJSON(json['unit']),
|
|
||||||
'amount': json['amount'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'checked': !exists(json, 'checked') ? undefined : json['checked'],
|
|
||||||
'recipeMealplan': !exists(json, 'recipe_mealplan') ? undefined : ShoppingListEntriesInnerRecipeMealplanFromJSON(json['recipe_mealplan']),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : ShoppingListEntriesInnerCreatedByFromJSON(json['created_by']),
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'completedAt': !exists(json, 'completed_at') ? undefined : (json['completed_at'] === null ? null : new Date(json['completed_at'])),
|
|
||||||
'delayUntil': !exists(json, 'delay_until') ? undefined : (json['delay_until'] === null ? null : new Date(json['delay_until'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerToJSON(value?: ShoppingListEntriesInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'list_recipe': value.listRecipe,
|
|
||||||
'food': IngredientFoodToJSON(value.food),
|
|
||||||
'unit': FoodPropertiesFoodUnitToJSON(value.unit),
|
|
||||||
'amount': value.amount,
|
|
||||||
'order': value.order,
|
|
||||||
'checked': value.checked,
|
|
||||||
'recipe_mealplan': ShoppingListEntriesInnerRecipeMealplanToJSON(value.recipeMealplan),
|
|
||||||
'created_by': ShoppingListEntriesInnerCreatedByToJSON(value.createdBy),
|
|
||||||
'completed_at': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
|
|
||||||
'delay_until': value.delayUntil === undefined ? undefined : (value.delayUntil === null ? null : value.delayUntil.toISOString()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListEntriesInnerCreatedBy
|
|
||||||
*/
|
|
||||||
export interface ShoppingListEntriesInnerCreatedBy {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInnerCreatedBy
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerCreatedBy
|
|
||||||
*/
|
|
||||||
readonly username?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerCreatedBy
|
|
||||||
*/
|
|
||||||
firstName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerCreatedBy
|
|
||||||
*/
|
|
||||||
lastName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerCreatedBy
|
|
||||||
*/
|
|
||||||
readonly displayName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListEntriesInnerCreatedBy interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListEntriesInnerCreatedBy(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerCreatedByFromJSON(json: any): ShoppingListEntriesInnerCreatedBy {
|
|
||||||
return ShoppingListEntriesInnerCreatedByFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerCreatedByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListEntriesInnerCreatedBy {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
||||||
'firstName': !exists(json, 'first_name') ? undefined : json['first_name'],
|
|
||||||
'lastName': !exists(json, 'last_name') ? undefined : json['last_name'],
|
|
||||||
'displayName': !exists(json, 'display_name') ? undefined : json['display_name'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerCreatedByToJSON(value?: ShoppingListEntriesInnerCreatedBy | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'first_name': value.firstName,
|
|
||||||
'last_name': value.lastName,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
export interface ShoppingListEntriesInnerRecipeMealplan {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
readonly recipeName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
readonly name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
recipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
mealplan?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
servings: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
readonly mealplanNote?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
readonly mealplanFromDate?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntriesInnerRecipeMealplan
|
|
||||||
*/
|
|
||||||
readonly mealplanType?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListEntriesInnerRecipeMealplan interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListEntriesInnerRecipeMealplan(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "servings" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerRecipeMealplanFromJSON(json: any): ShoppingListEntriesInnerRecipeMealplan {
|
|
||||||
return ShoppingListEntriesInnerRecipeMealplanFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerRecipeMealplanFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListEntriesInnerRecipeMealplan {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'recipeName': !exists(json, 'recipe_name') ? undefined : json['recipe_name'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
|
|
||||||
'mealplan': !exists(json, 'mealplan') ? undefined : json['mealplan'],
|
|
||||||
'servings': json['servings'],
|
|
||||||
'mealplanNote': !exists(json, 'mealplan_note') ? undefined : json['mealplan_note'],
|
|
||||||
'mealplanFromDate': !exists(json, 'mealplan_from_date') ? undefined : json['mealplan_from_date'],
|
|
||||||
'mealplanType': !exists(json, 'mealplan_type') ? undefined : json['mealplan_type'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntriesInnerRecipeMealplanToJSON(value?: ShoppingListEntriesInnerRecipeMealplan | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'recipe': value.recipe,
|
|
||||||
'mealplan': value.mealplan,
|
|
||||||
'servings': value.servings,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,185 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
|
||||||
import {
|
|
||||||
FoodPropertiesFoodUnitFromJSON,
|
|
||||||
FoodPropertiesFoodUnitFromJSONTyped,
|
|
||||||
FoodPropertiesFoodUnitToJSON,
|
|
||||||
} from './FoodPropertiesFoodUnit';
|
|
||||||
import type { IngredientFood } from './IngredientFood';
|
|
||||||
import {
|
|
||||||
IngredientFoodFromJSON,
|
|
||||||
IngredientFoodFromJSONTyped,
|
|
||||||
IngredientFoodToJSON,
|
|
||||||
} from './IngredientFood';
|
|
||||||
import type { ShoppingListEntriesInnerCreatedBy } from './ShoppingListEntriesInnerCreatedBy';
|
|
||||||
import {
|
|
||||||
ShoppingListEntriesInnerCreatedByFromJSON,
|
|
||||||
ShoppingListEntriesInnerCreatedByFromJSONTyped,
|
|
||||||
ShoppingListEntriesInnerCreatedByToJSON,
|
|
||||||
} from './ShoppingListEntriesInnerCreatedBy';
|
|
||||||
import type { ShoppingListEntriesInnerRecipeMealplan } from './ShoppingListEntriesInnerRecipeMealplan';
|
|
||||||
import {
|
|
||||||
ShoppingListEntriesInnerRecipeMealplanFromJSON,
|
|
||||||
ShoppingListEntriesInnerRecipeMealplanFromJSONTyped,
|
|
||||||
ShoppingListEntriesInnerRecipeMealplanToJSON,
|
|
||||||
} from './ShoppingListEntriesInnerRecipeMealplan';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListEntry
|
|
||||||
*/
|
|
||||||
export interface ShoppingListEntry {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
listRecipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {IngredientFood}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
food: IngredientFood | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {FoodPropertiesFoodUnit}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
unit?: FoodPropertiesFoodUnit | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
amount: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
checked?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ShoppingListEntriesInnerRecipeMealplan}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
recipeMealplan?: ShoppingListEntriesInnerRecipeMealplan;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ShoppingListEntriesInnerCreatedBy}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
createdBy?: ShoppingListEntriesInnerCreatedBy;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
readonly updatedAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
completedAt?: Date | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof ShoppingListEntry
|
|
||||||
*/
|
|
||||||
delayUntil?: Date | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListEntry interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListEntry(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "food" in value;
|
|
||||||
isInstance = isInstance && "amount" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntryFromJSON(json: any): ShoppingListEntry {
|
|
||||||
return ShoppingListEntryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListEntry {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'listRecipe': !exists(json, 'list_recipe') ? undefined : json['list_recipe'],
|
|
||||||
'food': IngredientFoodFromJSON(json['food']),
|
|
||||||
'unit': !exists(json, 'unit') ? undefined : FoodPropertiesFoodUnitFromJSON(json['unit']),
|
|
||||||
'amount': json['amount'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'checked': !exists(json, 'checked') ? undefined : json['checked'],
|
|
||||||
'recipeMealplan': !exists(json, 'recipe_mealplan') ? undefined : ShoppingListEntriesInnerRecipeMealplanFromJSON(json['recipe_mealplan']),
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : ShoppingListEntriesInnerCreatedByFromJSON(json['created_by']),
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
||||||
'completedAt': !exists(json, 'completed_at') ? undefined : (json['completed_at'] === null ? null : new Date(json['completed_at'])),
|
|
||||||
'delayUntil': !exists(json, 'delay_until') ? undefined : (json['delay_until'] === null ? null : new Date(json['delay_until'])),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntryToJSON(value?: ShoppingListEntry | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'list_recipe': value.listRecipe,
|
|
||||||
'food': IngredientFoodToJSON(value.food),
|
|
||||||
'unit': FoodPropertiesFoodUnitToJSON(value.unit),
|
|
||||||
'amount': value.amount,
|
|
||||||
'order': value.order,
|
|
||||||
'checked': value.checked,
|
|
||||||
'recipe_mealplan': ShoppingListEntriesInnerRecipeMealplanToJSON(value.recipeMealplan),
|
|
||||||
'created_by': ShoppingListEntriesInnerCreatedByToJSON(value.createdBy),
|
|
||||||
'completed_at': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
|
|
||||||
'delay_until': value.delayUntil === undefined ? undefined : (value.delayUntil === null ? null : value.delayUntil.toISOString()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListEntryBulk
|
|
||||||
*/
|
|
||||||
export interface ShoppingListEntryBulk {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<any>}
|
|
||||||
* @memberof ShoppingListEntryBulk
|
|
||||||
*/
|
|
||||||
ids: Array<any>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof ShoppingListEntryBulk
|
|
||||||
*/
|
|
||||||
checked: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListEntryBulk interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListEntryBulk(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "ids" in value;
|
|
||||||
isInstance = isInstance && "checked" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntryBulkFromJSON(json: any): ShoppingListEntryBulk {
|
|
||||||
return ShoppingListEntryBulkFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntryBulkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListEntryBulk {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'ids': json['ids'],
|
|
||||||
'checked': json['checked'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListEntryBulkToJSON(value?: ShoppingListEntryBulk | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'ids': value.ids,
|
|
||||||
'checked': value.checked,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
export interface ShoppingListRecipe {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
readonly recipeName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
readonly name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
recipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
mealplan?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
servings: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
readonly mealplanNote?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
readonly mealplanFromDate?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipe
|
|
||||||
*/
|
|
||||||
readonly mealplanType?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListRecipe interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListRecipe(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "servings" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListRecipeFromJSON(json: any): ShoppingListRecipe {
|
|
||||||
return ShoppingListRecipeFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListRecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListRecipe {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'recipeName': !exists(json, 'recipe_name') ? undefined : json['recipe_name'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
|
|
||||||
'mealplan': !exists(json, 'mealplan') ? undefined : json['mealplan'],
|
|
||||||
'servings': json['servings'],
|
|
||||||
'mealplanNote': !exists(json, 'mealplan_note') ? undefined : json['mealplan_note'],
|
|
||||||
'mealplanFromDate': !exists(json, 'mealplan_from_date') ? undefined : json['mealplan_from_date'],
|
|
||||||
'mealplanType': !exists(json, 'mealplan_type') ? undefined : json['mealplan_type'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListRecipeToJSON(value?: ShoppingListRecipe | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'recipe': value.recipe,
|
|
||||||
'mealplan': value.mealplan,
|
|
||||||
'servings': value.servings,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
export interface ShoppingListRecipesInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
readonly recipeName?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
readonly name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
recipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
mealplan?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
servings: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
readonly mealplanNote?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
readonly mealplanFromDate?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListRecipesInner
|
|
||||||
*/
|
|
||||||
readonly mealplanType?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListRecipesInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListRecipesInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "servings" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListRecipesInnerFromJSON(json: any): ShoppingListRecipesInner {
|
|
||||||
return ShoppingListRecipesInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListRecipesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListRecipesInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'recipeName': !exists(json, 'recipe_name') ? undefined : json['recipe_name'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
|
|
||||||
'mealplan': !exists(json, 'mealplan') ? undefined : json['mealplan'],
|
|
||||||
'servings': json['servings'],
|
|
||||||
'mealplanNote': !exists(json, 'mealplan_note') ? undefined : json['mealplan_note'],
|
|
||||||
'mealplanFromDate': !exists(json, 'mealplan_from_date') ? undefined : json['mealplan_from_date'],
|
|
||||||
'mealplanType': !exists(json, 'mealplan_type') ? undefined : json['mealplan_type'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListRecipesInnerToJSON(value?: ShoppingListRecipesInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'recipe': value.recipe,
|
|
||||||
'mealplan': value.mealplan,
|
|
||||||
'servings': value.servings,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ShoppingListSupermarketCategoryToSupermarketInner } from './ShoppingListSupermarketCategoryToSupermarketInner';
|
|
||||||
import {
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerFromJSON,
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerFromJSONTyped,
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerToJSON,
|
|
||||||
} from './ShoppingListSupermarketCategoryToSupermarketInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListSupermarket
|
|
||||||
*/
|
|
||||||
export interface ShoppingListSupermarket {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListSupermarket
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListSupermarket
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListSupermarket
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ShoppingListSupermarketCategoryToSupermarketInner>}
|
|
||||||
* @memberof ShoppingListSupermarket
|
|
||||||
*/
|
|
||||||
readonly categoryToSupermarket?: Array<ShoppingListSupermarketCategoryToSupermarketInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListSupermarket
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListSupermarket interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListSupermarket(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketFromJSON(json: any): ShoppingListSupermarket {
|
|
||||||
return ShoppingListSupermarketFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListSupermarket {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'categoryToSupermarket': !exists(json, 'category_to_supermarket') ? undefined : ((json['category_to_supermarket'] as Array<any>).map(ShoppingListSupermarketCategoryToSupermarketInnerFromJSON)),
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketToJSON(value?: ShoppingListSupermarket | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ShoppingListSupermarketCategoryToSupermarketInnerCategory } from './ShoppingListSupermarketCategoryToSupermarketInnerCategory';
|
|
||||||
import {
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSON,
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSONTyped,
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerCategoryToJSON,
|
|
||||||
} from './ShoppingListSupermarketCategoryToSupermarketInnerCategory';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListSupermarketCategoryToSupermarketInner
|
|
||||||
*/
|
|
||||||
export interface ShoppingListSupermarketCategoryToSupermarketInner {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInner
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {ShoppingListSupermarketCategoryToSupermarketInnerCategory}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInner
|
|
||||||
*/
|
|
||||||
category: ShoppingListSupermarketCategoryToSupermarketInnerCategory;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInner
|
|
||||||
*/
|
|
||||||
supermarket: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInner
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListSupermarketCategoryToSupermarketInner interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListSupermarketCategoryToSupermarketInner(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "category" in value;
|
|
||||||
isInstance = isInstance && "supermarket" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketCategoryToSupermarketInnerFromJSON(json: any): ShoppingListSupermarketCategoryToSupermarketInner {
|
|
||||||
return ShoppingListSupermarketCategoryToSupermarketInnerFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketCategoryToSupermarketInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListSupermarketCategoryToSupermarketInner {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'category': ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSON(json['category']),
|
|
||||||
'supermarket': json['supermarket'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketCategoryToSupermarketInnerToJSON(value?: ShoppingListSupermarketCategoryToSupermarketInner | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'category': ShoppingListSupermarketCategoryToSupermarketInnerCategoryToJSON(value.category),
|
|
||||||
'supermarket': value.supermarket,
|
|
||||||
'order': value.order,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface ShoppingListSupermarketCategoryToSupermarketInnerCategory
|
|
||||||
*/
|
|
||||||
export interface ShoppingListSupermarketCategoryToSupermarketInnerCategory {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInnerCategory
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInnerCategory
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof ShoppingListSupermarketCategoryToSupermarketInnerCategory
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the ShoppingListSupermarketCategoryToSupermarketInnerCategory interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfShoppingListSupermarketCategoryToSupermarketInnerCategory(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSON(json: any): ShoppingListSupermarketCategoryToSupermarketInnerCategory {
|
|
||||||
return ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListSupermarketCategoryToSupermarketInnerCategory {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ShoppingListSupermarketCategoryToSupermarketInnerCategoryToJSON(value?: ShoppingListSupermarketCategoryToSupermarketInnerCategory | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,302 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { FoodInheritFieldsInner } from './FoodInheritFieldsInner';
|
|
||||||
import {
|
|
||||||
FoodInheritFieldsInnerFromJSON,
|
|
||||||
FoodInheritFieldsInnerFromJSONTyped,
|
|
||||||
FoodInheritFieldsInnerToJSON,
|
|
||||||
} from './FoodInheritFieldsInner';
|
|
||||||
import type { RecipeStepsInnerFile } from './RecipeStepsInnerFile';
|
|
||||||
import {
|
|
||||||
RecipeStepsInnerFileFromJSON,
|
|
||||||
RecipeStepsInnerFileFromJSONTyped,
|
|
||||||
RecipeStepsInnerFileToJSON,
|
|
||||||
} from './RecipeStepsInnerFile';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Space
|
|
||||||
*/
|
|
||||||
export interface Space {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Date}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly createdAt?: Date;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
message?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly maxRecipes?: number;
|
|
||||||
/**
|
|
||||||
* Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload.
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly maxFileStorageMb?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly maxUsers?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly allowSharing?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly demo?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<FoodInheritFieldsInner>}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
foodInherit: Array<FoodInheritFieldsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly userCount?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly recipeCount?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
readonly fileSizeMb?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
image?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
navLogo?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
spaceTheme?: SpaceSpaceThemeEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
customSpaceTheme?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
navBgColor?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
navTextColor?: SpaceNavTextColorEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColor32?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColor128?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColor144?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColor180?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColor192?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColor512?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Space
|
|
||||||
*/
|
|
||||||
logoColorSvg?: RecipeStepsInnerFile | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const SpaceSpaceThemeEnum = {
|
|
||||||
Blank: 'BLANK',
|
|
||||||
Tandoor: 'TANDOOR',
|
|
||||||
Bootstrap: 'BOOTSTRAP',
|
|
||||||
Darkly: 'DARKLY',
|
|
||||||
Flatly: 'FLATLY',
|
|
||||||
Superhero: 'SUPERHERO',
|
|
||||||
TandoorDark: 'TANDOOR_DARK'
|
|
||||||
} as const;
|
|
||||||
export type SpaceSpaceThemeEnum = typeof SpaceSpaceThemeEnum[keyof typeof SpaceSpaceThemeEnum];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const SpaceNavTextColorEnum = {
|
|
||||||
Blank: 'BLANK',
|
|
||||||
Light: 'LIGHT',
|
|
||||||
Dark: 'DARK'
|
|
||||||
} as const;
|
|
||||||
export type SpaceNavTextColorEnum = typeof SpaceNavTextColorEnum[keyof typeof SpaceNavTextColorEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Space interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfSpace(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "foodInherit" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SpaceFromJSON(json: any): Space {
|
|
||||||
return SpaceFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Space {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
||||||
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
||||||
'maxRecipes': !exists(json, 'max_recipes') ? undefined : json['max_recipes'],
|
|
||||||
'maxFileStorageMb': !exists(json, 'max_file_storage_mb') ? undefined : json['max_file_storage_mb'],
|
|
||||||
'maxUsers': !exists(json, 'max_users') ? undefined : json['max_users'],
|
|
||||||
'allowSharing': !exists(json, 'allow_sharing') ? undefined : json['allow_sharing'],
|
|
||||||
'demo': !exists(json, 'demo') ? undefined : json['demo'],
|
|
||||||
'foodInherit': ((json['food_inherit'] as Array<any>).map(FoodInheritFieldsInnerFromJSON)),
|
|
||||||
'userCount': !exists(json, 'user_count') ? undefined : json['user_count'],
|
|
||||||
'recipeCount': !exists(json, 'recipe_count') ? undefined : json['recipe_count'],
|
|
||||||
'fileSizeMb': !exists(json, 'file_size_mb') ? undefined : json['file_size_mb'],
|
|
||||||
'image': !exists(json, 'image') ? undefined : RecipeStepsInnerFileFromJSON(json['image']),
|
|
||||||
'navLogo': !exists(json, 'nav_logo') ? undefined : RecipeStepsInnerFileFromJSON(json['nav_logo']),
|
|
||||||
'spaceTheme': !exists(json, 'space_theme') ? undefined : json['space_theme'],
|
|
||||||
'customSpaceTheme': !exists(json, 'custom_space_theme') ? undefined : RecipeStepsInnerFileFromJSON(json['custom_space_theme']),
|
|
||||||
'navBgColor': !exists(json, 'nav_bg_color') ? undefined : json['nav_bg_color'],
|
|
||||||
'navTextColor': !exists(json, 'nav_text_color') ? undefined : json['nav_text_color'],
|
|
||||||
'logoColor32': !exists(json, 'logo_color_32') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_32']),
|
|
||||||
'logoColor128': !exists(json, 'logo_color_128') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_128']),
|
|
||||||
'logoColor144': !exists(json, 'logo_color_144') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_144']),
|
|
||||||
'logoColor180': !exists(json, 'logo_color_180') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_180']),
|
|
||||||
'logoColor192': !exists(json, 'logo_color_192') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_192']),
|
|
||||||
'logoColor512': !exists(json, 'logo_color_512') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_512']),
|
|
||||||
'logoColorSvg': !exists(json, 'logo_color_svg') ? undefined : RecipeStepsInnerFileFromJSON(json['logo_color_svg']),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SpaceToJSON(value?: Space | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'message': value.message,
|
|
||||||
'food_inherit': ((value.foodInherit as Array<any>).map(FoodInheritFieldsInnerToJSON)),
|
|
||||||
'image': RecipeStepsInnerFileToJSON(value.image),
|
|
||||||
'nav_logo': RecipeStepsInnerFileToJSON(value.navLogo),
|
|
||||||
'space_theme': value.spaceTheme,
|
|
||||||
'custom_space_theme': RecipeStepsInnerFileToJSON(value.customSpaceTheme),
|
|
||||||
'nav_bg_color': value.navBgColor,
|
|
||||||
'nav_text_color': value.navTextColor,
|
|
||||||
'logo_color_32': RecipeStepsInnerFileToJSON(value.logoColor32),
|
|
||||||
'logo_color_128': RecipeStepsInnerFileToJSON(value.logoColor128),
|
|
||||||
'logo_color_144': RecipeStepsInnerFileToJSON(value.logoColor144),
|
|
||||||
'logo_color_180': RecipeStepsInnerFileToJSON(value.logoColor180),
|
|
||||||
'logo_color_192': RecipeStepsInnerFileToJSON(value.logoColor192),
|
|
||||||
'logo_color_512': RecipeStepsInnerFileToJSON(value.logoColor512),
|
|
||||||
'logo_color_svg': RecipeStepsInnerFileToJSON(value.logoColorSvg),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,178 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { RecipeStepsInnerFile } from './RecipeStepsInnerFile';
|
|
||||||
import {
|
|
||||||
RecipeStepsInnerFileFromJSON,
|
|
||||||
RecipeStepsInnerFileFromJSONTyped,
|
|
||||||
RecipeStepsInnerFileToJSON,
|
|
||||||
} from './RecipeStepsInnerFile';
|
|
||||||
import type { RecipeStepsInnerIngredientsInner } from './RecipeStepsInnerIngredientsInner';
|
|
||||||
import {
|
|
||||||
RecipeStepsInnerIngredientsInnerFromJSON,
|
|
||||||
RecipeStepsInnerIngredientsInnerFromJSONTyped,
|
|
||||||
RecipeStepsInnerIngredientsInnerToJSON,
|
|
||||||
} from './RecipeStepsInnerIngredientsInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Step
|
|
||||||
*/
|
|
||||||
export interface Step {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
name?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
instruction?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<RecipeStepsInnerIngredientsInner>}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
ingredients: Array<RecipeStepsInnerIngredientsInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
readonly ingredientsMarkdown?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
readonly ingredientsVue?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
time?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
order?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
showAsHeader?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {RecipeStepsInnerFile}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
file?: RecipeStepsInnerFile | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
stepRecipe?: number | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
readonly stepRecipeData?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
readonly numrecipe?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof Step
|
|
||||||
*/
|
|
||||||
showIngredientsTable?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Step interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfStep(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "ingredients" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StepFromJSON(json: any): Step {
|
|
||||||
return StepFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StepFromJSONTyped(json: any, ignoreDiscriminator: boolean): Step {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
||||||
'instruction': !exists(json, 'instruction') ? undefined : json['instruction'],
|
|
||||||
'ingredients': ((json['ingredients'] as Array<any>).map(RecipeStepsInnerIngredientsInnerFromJSON)),
|
|
||||||
'ingredientsMarkdown': !exists(json, 'ingredients_markdown') ? undefined : json['ingredients_markdown'],
|
|
||||||
'ingredientsVue': !exists(json, 'ingredients_vue') ? undefined : json['ingredients_vue'],
|
|
||||||
'time': !exists(json, 'time') ? undefined : json['time'],
|
|
||||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
||||||
'showAsHeader': !exists(json, 'show_as_header') ? undefined : json['show_as_header'],
|
|
||||||
'file': !exists(json, 'file') ? undefined : RecipeStepsInnerFileFromJSON(json['file']),
|
|
||||||
'stepRecipe': !exists(json, 'step_recipe') ? undefined : json['step_recipe'],
|
|
||||||
'stepRecipeData': !exists(json, 'step_recipe_data') ? undefined : json['step_recipe_data'],
|
|
||||||
'numrecipe': !exists(json, 'numrecipe') ? undefined : json['numrecipe'],
|
|
||||||
'showIngredientsTable': !exists(json, 'show_ingredients_table') ? undefined : json['show_ingredients_table'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StepToJSON(value?: Step | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'instruction': value.instruction,
|
|
||||||
'ingredients': ((value.ingredients as Array<any>).map(RecipeStepsInnerIngredientsInnerToJSON)),
|
|
||||||
'time': value.time,
|
|
||||||
'order': value.order,
|
|
||||||
'show_as_header': value.showAsHeader,
|
|
||||||
'file': RecipeStepsInnerFileToJSON(value.file),
|
|
||||||
'step_recipe': value.stepRecipe,
|
|
||||||
'show_ingredients_table': value.showIngredientsTable,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Storage
|
|
||||||
*/
|
|
||||||
export interface Storage {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
method?: StorageMethodEnum;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
username?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
password?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
token?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Storage
|
|
||||||
*/
|
|
||||||
readonly createdBy?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @export
|
|
||||||
*/
|
|
||||||
export const StorageMethodEnum = {
|
|
||||||
Db: 'DB',
|
|
||||||
Nextcloud: 'NEXTCLOUD',
|
|
||||||
Local: 'LOCAL'
|
|
||||||
} as const;
|
|
||||||
export type StorageMethodEnum = typeof StorageMethodEnum[keyof typeof StorageMethodEnum];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Storage interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfStorage(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageFromJSON(json: any): Storage {
|
|
||||||
return StorageFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Storage {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'method': !exists(json, 'method') ? undefined : json['method'],
|
|
||||||
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
||||||
'password': !exists(json, 'password') ? undefined : json['password'],
|
|
||||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
|
||||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageToJSON(value?: Storage | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'method': value.method,
|
|
||||||
'username': value.username,
|
|
||||||
'password': value.password,
|
|
||||||
'token': value.token,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
import type { ShoppingListSupermarketCategoryToSupermarketInner } from './ShoppingListSupermarketCategoryToSupermarketInner';
|
|
||||||
import {
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerFromJSON,
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerFromJSONTyped,
|
|
||||||
ShoppingListSupermarketCategoryToSupermarketInnerToJSON,
|
|
||||||
} from './ShoppingListSupermarketCategoryToSupermarketInner';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface Supermarket
|
|
||||||
*/
|
|
||||||
export interface Supermarket {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof Supermarket
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Supermarket
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Supermarket
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {Array<ShoppingListSupermarketCategoryToSupermarketInner>}
|
|
||||||
* @memberof Supermarket
|
|
||||||
*/
|
|
||||||
readonly categoryToSupermarket?: Array<ShoppingListSupermarketCategoryToSupermarketInner>;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof Supermarket
|
|
||||||
*/
|
|
||||||
openDataSlug?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the Supermarket interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfSupermarket(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SupermarketFromJSON(json: any): Supermarket {
|
|
||||||
return SupermarketFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SupermarketFromJSONTyped(json: any, ignoreDiscriminator: boolean): Supermarket {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
'categoryToSupermarket': !exists(json, 'category_to_supermarket') ? undefined : ((json['category_to_supermarket'] as Array<any>).map(ShoppingListSupermarketCategoryToSupermarketInnerFromJSON)),
|
|
||||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SupermarketToJSON(value?: Supermarket | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
'open_data_slug': value.openDataSlug,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
/**
|
|
||||||
* Django Recipes
|
|
||||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { exists, mapValues } from '../runtime';
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface SupermarketCategory
|
|
||||||
*/
|
|
||||||
export interface SupermarketCategory {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @memberof SupermarketCategory
|
|
||||||
*/
|
|
||||||
readonly id?: number;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof SupermarketCategory
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof SupermarketCategory
|
|
||||||
*/
|
|
||||||
description?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a given object implements the SupermarketCategory interface.
|
|
||||||
*/
|
|
||||||
export function instanceOfSupermarketCategory(value: object): boolean {
|
|
||||||
let isInstance = true;
|
|
||||||
isInstance = isInstance && "name" in value;
|
|
||||||
|
|
||||||
return isInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SupermarketCategoryFromJSON(json: any): SupermarketCategory {
|
|
||||||
return SupermarketCategoryFromJSONTyped(json, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SupermarketCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermarketCategory {
|
|
||||||
if ((json === undefined) || (json === null)) {
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
||||||
'name': json['name'],
|
|
||||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SupermarketCategoryToJSON(value?: SupermarketCategory | null): any {
|
|
||||||
if (value === undefined) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (value === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
|
|
||||||
'name': value.name,
|
|
||||||
'description': value.description,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user