This commit is contained in:
vabene1111
2024-03-05 17:16:07 +01:00
parent aa5a87a1fc
commit c0c71c3967
138 changed files with 4367 additions and 3934 deletions

View File

@@ -298,6 +298,13 @@ REST_FRAMEWORK = {
), ),
'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated', ], 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated', ],
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema', 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
'COERCE_DECIMAL_TO_STRING': False,
}
SPECTACULAR_SETTINGS = {
'TITLE': 'Tandoor',
'DESCRIPTION': 'Tandoor API Docs',
'SERVE_INCLUDE_SCHEMA': False,
} }
ROOT_URLCONF = 'recipes.urls' ROOT_URLCONF = 'recipes.urls'

View File

@@ -1,7 +1,9 @@
<template> <template>
<v-card> <v-card>
<v-card-title>{{ recipe.name }} <recipe-context-menu :recipe="recipe"></recipe-context-menu></v-card-title> <v-card-title>{{ recipe.name }}
<recipe-context-menu :recipe="recipe"></recipe-context-menu>
</v-card-title>
<v-img max-height="25vh" cover lazy :src="recipe.image"> <v-img max-height="25vh" cover lazy :src="recipe.image">
<!-- TODO placement in image --> <!-- TODO placement in image -->
@@ -27,9 +29,9 @@
<div class="text-grey">Waiting Time</div> <div class="text-grey">Waiting Time</div>
</v-col> </v-col>
<v-col class="pt-1 pb-1"> <v-col class="pt-1 pb-1">
<NumberScalerDialog :number="recipe.servings" @change="recipe.servings = $event.number" title="Servings"> <NumberScalerDialog :number="servings" @change="servings = $event.number" title="Servings">
<template #activator> <template #activator>
<i class="fas fa-calendar-alt"></i> {{ recipe.servings }} <br/> <i class="fas fa-calendar-alt"></i> {{ servings }} <br/>
<div class="text-grey"><span v-if="recipe?.servingsText">{{ recipe.servingsText }}</span><span v-else>Servings</span></div> <div class="text-grey"><span v-if="recipe?.servingsText">{{ recipe.servingsText }}</span><span v-else>Servings</span></div>
</template> </template>
</NumberScalerDialog> </NumberScalerDialog>
@@ -46,7 +48,7 @@
<v-card class="mt-1" v-for="s in recipe.steps" :key="s.id"> <v-card class="mt-1" v-for="s in recipe.steps" :key="s.id">
<Step :step="s"></Step> <Step :step="s" :ingredient_factor="ingredient_factor"></Step>
</v-card> </v-card>
<!-- <RecipeActivity :recipe="recipe"></RecipeActivity>--> <!-- <RecipeActivity :recipe="recipe"></RecipeActivity>-->
@@ -68,9 +70,22 @@ import RecipeContextMenu from "@/components/inputs/RecipeContextMenu.vue";
export default defineComponent({ export default defineComponent({
name: "RecipeView", name: "RecipeView",
components: {RecipeContextMenu, RecipeActivity, Step, StepsOverview, IngredientsTable, NumberScalerDialog, KeywordsBar}, components: {RecipeContextMenu, RecipeActivity, Step, StepsOverview, IngredientsTable, NumberScalerDialog, KeywordsBar},
computed: {}, computed: {
ingredient_factor: function () {
return this.servings / this.recipe.servings
},
},
data() { data() {
return {} return {
servings: 1,
}
},
watch: {
'recipe.servings': function () {
if (this.recipe.servings){
this.servings = this.recipe.servings
}
}
}, },
props: { props: {
recipe: { recipe: {

View File

@@ -20,7 +20,7 @@
<IngredientsTable :ingredients="step.ingredients"></IngredientsTable> <IngredientsTable :ingredients="step.ingredients"></IngredientsTable>
<v-card-text v-if="step.instructionsMarkdown.length > 0"> <v-card-text v-if="step.instructionsMarkdown.length > 0">
<instructions :instructions_html="step.instructionsMarkdown" :ingredient_factor="1"></instructions> <instructions :instructions_html="step.instructionsMarkdown" :ingredient_factor="ingredient_factor"></instructions>
</v-card-text> </v-card-text>
</v-card> </v-card>
</template> </template>
@@ -66,7 +66,11 @@ export default defineComponent({
step: { step: {
type: {} as PropType<Step>, type: {} as PropType<Step>,
required: true, required: true,
} },
ingredient_factor: {
type: Number,
required: true,
},
}, },
data() { data() {
return { return {

View File

@@ -1,12 +1,14 @@
apis/ApiApi.ts apis/ApiApi.ts
apis/ApiImportOpenDataApi.ts apis/ApiImportOpenDataApi.ts
apis/ApiTokenAuthApi.ts apis/ApiTokenAuthApi.ts
apis/OpenapiApi.ts
apis/index.ts apis/index.ts
index.ts index.ts
models/AccessToken.ts models/AccessToken.ts
models/AuthToken.ts models/AuthToken.ts
models/Automation.ts models/Automation.ts
models/AutomationTypeEnum.ts
models/BaseUnitEnum.ts
models/BlankEnum.ts
models/BookmarkletImport.ts models/BookmarkletImport.ts
models/BookmarkletImportList.ts models/BookmarkletImportList.ts
models/ConnectorConfigConfig.ts models/ConnectorConfigConfig.ts
@@ -27,6 +29,16 @@ models/MealPlan.ts
models/MealType.ts models/MealType.ts
models/MethodEnum.ts models/MethodEnum.ts
models/NutritionInformation.ts models/NutritionInformation.ts
models/OpenDataCategory.ts
models/OpenDataConversion.ts
models/OpenDataFood.ts
models/OpenDataFoodProperty.ts
models/OpenDataProperty.ts
models/OpenDataStore.ts
models/OpenDataStoreCategory.ts
models/OpenDataUnit.ts
models/OpenDataUnitTypeEnum.ts
models/OpenDataVersion.ts
models/PaginatedAutomationList.ts models/PaginatedAutomationList.ts
models/PaginatedCookLogList.ts models/PaginatedCookLogList.ts
models/PaginatedCustomFilterList.ts models/PaginatedCustomFilterList.ts
@@ -56,6 +68,13 @@ models/PatchedInviteLink.ts
models/PatchedKeyword.ts models/PatchedKeyword.ts
models/PatchedMealPlan.ts models/PatchedMealPlan.ts
models/PatchedMealType.ts models/PatchedMealType.ts
models/PatchedOpenDataCategory.ts
models/PatchedOpenDataConversion.ts
models/PatchedOpenDataFood.ts
models/PatchedOpenDataProperty.ts
models/PatchedOpenDataStore.ts
models/PatchedOpenDataUnit.ts
models/PatchedOpenDataVersion.ts
models/PatchedProperty.ts models/PatchedProperty.ts
models/PatchedPropertyType.ts models/PatchedPropertyType.ts
models/PatchedRecipe.ts models/PatchedRecipe.ts
@@ -100,7 +119,6 @@ models/SupermarketCategoryRelation.ts
models/Sync.ts models/Sync.ts
models/SyncLog.ts models/SyncLog.ts
models/ThemeEnum.ts models/ThemeEnum.ts
models/TypeEnum.ts
models/Unit.ts models/Unit.ts
models/UnitConversion.ts models/UnitConversion.ts
models/User.ts models/User.ts

View File

@@ -1 +1 @@
7.3.0 5.1.0

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -22,7 +22,7 @@ export class ApiImportOpenDataApi extends runtime.BaseAPI {
/** /**
*/ */
async apiImportOpenDataCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> { async apiImportOpenDataCreateRaw(): Promise<runtime.ApiResponse<void>> {
const queryParameters: any = {}; const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
@@ -35,20 +35,20 @@ export class ApiImportOpenDataApi extends runtime.BaseAPI {
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
}, initOverrides); });
return new runtime.VoidApiResponse(response); return new runtime.VoidApiResponse(response);
} }
/** /**
*/ */
async apiImportOpenDataCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> { async apiImportOpenDataCreate(): Promise<void> {
await this.apiImportOpenDataCreateRaw(initOverrides); await this.apiImportOpenDataCreateRaw();
} }
/** /**
*/ */
async apiImportOpenDataRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> { async apiImportOpenDataRetrieveRaw(): Promise<runtime.ApiResponse<void>> {
const queryParameters: any = {}; const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
@@ -61,15 +61,15 @@ export class ApiImportOpenDataApi extends runtime.BaseAPI {
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
}, initOverrides); });
return new runtime.VoidApiResponse(response); return new runtime.VoidApiResponse(response);
} }
/** /**
*/ */
async apiImportOpenDataRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> { async apiImportOpenDataRetrieve(): Promise<void> {
await this.apiImportOpenDataRetrieveRaw(initOverrides); await this.apiImportOpenDataRetrieveRaw();
} }
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -14,13 +14,11 @@
import * as runtime from '../runtime'; import * as runtime from '../runtime';
import type {
AuthToken,
} from '../models/index';
import { import {
AuthToken,
AuthTokenFromJSON, AuthTokenFromJSON,
AuthTokenToJSON, AuthTokenToJSON,
} from '../models/index'; } from '../models';
export interface ApiTokenAuthCreateRequest { export interface ApiTokenAuthCreateRequest {
username: string; username: string;
@@ -35,7 +33,7 @@ export class ApiTokenAuthApi extends runtime.BaseAPI {
/** /**
*/ */
async apiTokenAuthCreateRaw(requestParameters: ApiTokenAuthCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthToken>> { async apiTokenAuthCreateRaw(requestParameters: ApiTokenAuthCreateRequest): Promise<runtime.ApiResponse<AuthToken>> {
if (requestParameters.username === null || requestParameters.username === undefined) { if (requestParameters.username === null || requestParameters.username === undefined) {
throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling apiTokenAuthCreate.'); throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling apiTokenAuthCreate.');
} }
@@ -89,15 +87,15 @@ export class ApiTokenAuthApi extends runtime.BaseAPI {
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
body: formParams, body: formParams,
}, initOverrides); });
return new runtime.JSONApiResponse(response, (jsonValue) => AuthTokenFromJSON(jsonValue)); return new runtime.JSONApiResponse(response, (jsonValue) => AuthTokenFromJSON(jsonValue));
} }
/** /**
*/ */
async apiTokenAuthCreate(requestParameters: ApiTokenAuthCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthToken> { async apiTokenAuthCreate(requestParameters: ApiTokenAuthCreateRequest): Promise<AuthToken> {
const response = await this.apiTokenAuthCreateRaw(requestParameters, initOverrides); const response = await this.apiTokenAuthCreateRaw(requestParameters);
return await response.value(); return await response.value();
} }

View File

@@ -1,6 +1,3 @@
/* tslint:disable */
/* eslint-disable */
export * from './ApiApi'; export * from './ApiApi';
export * from './ApiImportOpenDataApi'; export * from './ApiImportOpenDataApi';
export * from './ApiTokenAuthApi'; export * from './ApiTokenAuthApi';
export * from './OpenapiApi';

View File

@@ -1,5 +1,3 @@
/* tslint:disable */
/* eslint-disable */
export * from './runtime'; export * from './runtime';
export * from './apis/index'; export * from './apis';
export * from './models/index'; export * from './models';

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -57,20 +57,6 @@ export interface AccessToken {
readonly updated: Date; readonly updated: Date;
} }
/**
* Check if a given object implements the AccessToken interface.
*/
export function instanceOfAccessToken(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "token" in value;
isInstance = isInstance && "expires" in value;
isInstance = isInstance && "created" in value;
isInstance = isInstance && "updated" in value;
return isInstance;
}
export function AccessTokenFromJSON(json: any): AccessToken { export function AccessTokenFromJSON(json: any): AccessToken {
return AccessTokenFromJSONTyped(json, false); return AccessTokenFromJSONTyped(json, false);
} }
@@ -104,3 +90,4 @@ export function AccessTokenToJSON(value?: AccessToken | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -39,18 +39,6 @@ export interface AuthToken {
readonly token: string; 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;
isInstance = isInstance && "token" in value;
return isInstance;
}
export function AuthTokenFromJSON(json: any): AuthToken { export function AuthTokenFromJSON(json: any): AuthToken {
return AuthTokenFromJSONTyped(json, false); return AuthTokenFromJSONTyped(json, false);
} }
@@ -81,3 +69,4 @@ export function AuthTokenToJSON(value?: AuthToken | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { TypeEnum } from './TypeEnum';
import { import {
TypeEnumFromJSON, AutomationTypeEnum,
TypeEnumFromJSONTyped, AutomationTypeEnumFromJSON,
TypeEnumToJSON, AutomationTypeEnumFromJSONTyped,
} from './TypeEnum'; AutomationTypeEnumToJSON,
} from './';
/** /**
* *
@@ -34,10 +34,10 @@ export interface Automation {
readonly id: number; readonly id: number;
/** /**
* *
* @type {TypeEnum} * @type {AutomationTypeEnum}
* @memberof Automation * @memberof Automation
*/ */
type: TypeEnum; type: AutomationTypeEnum;
/** /**
* *
* @type {string} * @type {string}
@@ -88,18 +88,6 @@ export interface Automation {
readonly createdBy: number; readonly createdBy: number;
} }
/**
* Check if a given object implements the Automation interface.
*/
export function instanceOfAutomation(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function AutomationFromJSON(json: any): Automation { export function AutomationFromJSON(json: any): Automation {
return AutomationFromJSONTyped(json, false); return AutomationFromJSONTyped(json, false);
} }
@@ -111,7 +99,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
return { return {
'id': json['id'], 'id': json['id'],
'type': TypeEnumFromJSON(json['type']), 'type': AutomationTypeEnumFromJSON(json['type']),
'name': !exists(json, 'name') ? undefined : json['name'], 'name': !exists(json, 'name') ? undefined : json['name'],
'description': !exists(json, 'description') ? undefined : json['description'], 'description': !exists(json, 'description') ? undefined : json['description'],
'param1': !exists(json, 'param_1') ? undefined : json['param_1'], 'param1': !exists(json, 'param_1') ? undefined : json['param_1'],
@@ -132,7 +120,7 @@ export function AutomationToJSON(value?: Automation | null): any {
} }
return { return {
'type': TypeEnumToJSON(value.type), 'type': AutomationTypeEnumToJSON(value.type),
'name': value.name, 'name': value.name,
'description': value.description, 'description': value.description,
'param_1': value.param1, 'param_1': value.param1,
@@ -143,3 +131,4 @@ export function AutomationToJSON(value?: Automation | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,34 +12,32 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* * `FOOD_ALIAS` - Food Alias * * `FOOD_ALIAS` - Food Alias
* * `UNIT_ALIAS` - Unit Alias * `UNIT_ALIAS` - Unit Alias
* * `KEYWORD_ALIAS` - Keyword Alias * `KEYWORD_ALIAS` - Keyword Alias
* * `DESCRIPTION_REPLACE` - Description Replace * `DESCRIPTION_REPLACE` - Description Replace
* * `INSTRUCTION_REPLACE` - Instruction Replace * `INSTRUCTION_REPLACE` - Instruction Replace
* * `NEVER_UNIT` - Never Unit * `NEVER_UNIT` - Never Unit
* * `TRANSPOSE_WORDS` - Transpose Words * `TRANSPOSE_WORDS` - Transpose Words
* * `FOOD_REPLACE` - Food Replace * `FOOD_REPLACE` - Food Replace
* * `UNIT_REPLACE` - Unit Replace * `UNIT_REPLACE` - Unit Replace
* * `NAME_REPLACE` - Name Replace * `NAME_REPLACE` - Name Replace
* @export * @export
* @enum {string}
*/ */
export const AutomationTypeEnum = { export enum AutomationTypeEnum {
FoodAlias: 'FOOD_ALIAS', FoodAlias = 'FOOD_ALIAS',
UnitAlias: 'UNIT_ALIAS', UnitAlias = 'UNIT_ALIAS',
KeywordAlias: 'KEYWORD_ALIAS', KeywordAlias = 'KEYWORD_ALIAS',
DescriptionReplace: 'DESCRIPTION_REPLACE', DescriptionReplace = 'DESCRIPTION_REPLACE',
InstructionReplace: 'INSTRUCTION_REPLACE', InstructionReplace = 'INSTRUCTION_REPLACE',
NeverUnit: 'NEVER_UNIT', NeverUnit = 'NEVER_UNIT',
TransposeWords: 'TRANSPOSE_WORDS', TransposeWords = 'TRANSPOSE_WORDS',
FoodReplace: 'FOOD_REPLACE', FoodReplace = 'FOOD_REPLACE',
UnitReplace: 'UNIT_REPLACE', UnitReplace = 'UNIT_REPLACE',
NameReplace: 'NAME_REPLACE' NameReplace = 'NAME_REPLACE'
} as const; }
export type AutomationTypeEnum = typeof AutomationTypeEnum[keyof typeof AutomationTypeEnum];
export function AutomationTypeEnumFromJSON(json: any): AutomationTypeEnum { export function AutomationTypeEnumFromJSON(json: any): AutomationTypeEnum {
return AutomationTypeEnumFromJSONTyped(json, false); return AutomationTypeEnumFromJSONTyped(json, false);

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,48 +12,46 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* * `G` - g * * `G` - g
* * `KG` - kg * `KG` - kg
* * `ML` - ml * `ML` - ml
* * `L` - l * `L` - l
* * `OUNCE` - ounce * `OUNCE` - ounce
* * `POUND` - pound * `POUND` - pound
* * `FLUID_OUNCE` - fluid_ounce * `FLUID_OUNCE` - fluid_ounce
* * `TSP` - tsp * `TSP` - tsp
* * `TBSP` - tbsp * `TBSP` - tbsp
* * `CUP` - cup * `CUP` - cup
* * `PINT` - pint * `PINT` - pint
* * `QUART` - quart * `QUART` - quart
* * `GALLON` - gallon * `GALLON` - gallon
* * `IMPERIAL_FLUID_OUNCE` - imperial fluid ounce * `IMPERIAL_FLUID_OUNCE` - imperial fluid ounce
* * `IMPERIAL_PINT` - imperial pint * `IMPERIAL_PINT` - imperial pint
* * `IMPERIAL_QUART` - imperial quart * `IMPERIAL_QUART` - imperial quart
* * `IMPERIAL_GALLON` - imperial gallon * `IMPERIAL_GALLON` - imperial gallon
* @export * @export
* @enum {string}
*/ */
export const BaseUnitEnum = { export enum BaseUnitEnum {
G: 'G', G = 'G',
Kg: 'KG', Kg = 'KG',
Ml: 'ML', Ml = 'ML',
L: 'L', L = 'L',
Ounce: 'OUNCE', Ounce = 'OUNCE',
Pound: 'POUND', Pound = 'POUND',
FluidOunce: 'FLUID_OUNCE', FluidOunce = 'FLUID_OUNCE',
Tsp: 'TSP', Tsp = 'TSP',
Tbsp: 'TBSP', Tbsp = 'TBSP',
Cup: 'CUP', Cup = 'CUP',
Pint: 'PINT', Pint = 'PINT',
Quart: 'QUART', Quart = 'QUART',
Gallon: 'GALLON', Gallon = 'GALLON',
ImperialFluidOunce: 'IMPERIAL_FLUID_OUNCE', ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE',
ImperialPint: 'IMPERIAL_PINT', ImperialPint = 'IMPERIAL_PINT',
ImperialQuart: 'IMPERIAL_QUART', ImperialQuart = 'IMPERIAL_QUART',
ImperialGallon: 'IMPERIAL_GALLON' ImperialGallon = 'IMPERIAL_GALLON'
} as const; }
export type BaseUnitEnum = typeof BaseUnitEnum[keyof typeof BaseUnitEnum];
export function BaseUnitEnumFromJSON(json: any): BaseUnitEnum { export function BaseUnitEnumFromJSON(json: any): BaseUnitEnum {
return BaseUnitEnumFromJSONTyped(json, false); return BaseUnitEnumFromJSONTyped(json, false);

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,16 +12,14 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* *
* @export * @export
* @enum {string}
*/ */
export const BlankEnum = { export enum BlankEnum {
Empty: '' Empty = ''
} as const; }
export type BlankEnum = typeof BlankEnum[keyof typeof BlankEnum];
export function BlankEnumFromJSON(json: any): BlankEnum { export function BlankEnumFromJSON(json: any): BlankEnum {
return BlankEnumFromJSONTyped(json, false); return BlankEnumFromJSONTyped(json, false);

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -51,19 +51,6 @@ export interface BookmarkletImport {
readonly createdAt: Date; readonly createdAt: Date;
} }
/**
* Check if a given object implements the BookmarkletImport interface.
*/
export function instanceOfBookmarkletImport(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "html" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
export function BookmarkletImportFromJSON(json: any): BookmarkletImport { export function BookmarkletImportFromJSON(json: any): BookmarkletImport {
return BookmarkletImportFromJSONTyped(json, false); return BookmarkletImportFromJSONTyped(json, false);
} }
@@ -96,3 +83,4 @@ export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -45,18 +45,6 @@ export interface BookmarkletImportList {
readonly createdAt: Date; readonly createdAt: Date;
} }
/**
* Check if a given object implements the BookmarkletImportList interface.
*/
export function instanceOfBookmarkletImportList(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
export function BookmarkletImportListFromJSON(json: any): BookmarkletImportList { export function BookmarkletImportListFromJSON(json: any): BookmarkletImportList {
return BookmarkletImportListFromJSONTyped(json, false); return BookmarkletImportListFromJSONTyped(json, false);
} }
@@ -87,3 +75,4 @@ export function BookmarkletImportListToJSON(value?: BookmarkletImportList | null
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -81,18 +81,6 @@ export interface ConnectorConfigConfig {
readonly createdBy: number; readonly createdBy: number;
} }
/**
* Check if a given object implements the ConnectorConfigConfig interface.
*/
export function instanceOfConnectorConfigConfig(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function ConnectorConfigConfigFromJSON(json: any): ConnectorConfigConfig { export function ConnectorConfigConfigFromJSON(json: any): ConnectorConfigConfig {
return ConnectorConfigConfigFromJSONTyped(json, false); return ConnectorConfigConfigFromJSONTyped(json, false);
} }
@@ -136,3 +124,4 @@ export function ConnectorConfigConfigToJSON(value?: ConnectorConfigConfig | null
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { User } from './User';
import { import {
User,
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* *
@@ -76,19 +76,6 @@ export interface CookLog {
readonly updatedAt: Date; readonly updatedAt: Date;
} }
/**
* Check if a given object implements the CookLog interface.
*/
export function instanceOfCookLog(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "recipe" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "updatedAt" in value;
return isInstance;
}
export function CookLogFromJSON(json: any): CookLog { export function CookLogFromJSON(json: any): CookLog {
return CookLogFromJSONTyped(json, false); return CookLogFromJSONTyped(json, false);
} }
@@ -127,3 +114,4 @@ export function CookLogToJSON(value?: CookLog | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { User } from './User';
import { import {
User,
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -58,19 +58,6 @@ export interface CustomFilter {
readonly createdBy: number; readonly createdBy: number;
} }
/**
* Check if a given object implements the CustomFilter interface.
*/
export function instanceOfCustomFilter(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "search" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function CustomFilterFromJSON(json: any): CustomFilter { export function CustomFilterFromJSON(json: any): CustomFilter {
return CustomFilterFromJSONTyped(json, false); return CustomFilterFromJSONTyped(json, false);
} }
@@ -104,3 +91,4 @@ export function CustomFilterToJSON(value?: CustomFilter | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,20 +12,18 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* * `SEARCH` - Search * * `SEARCH` - Search
* * `PLAN` - Meal-Plan * `PLAN` - Meal-Plan
* * `BOOKS` - Books * `BOOKS` - Books
* @export * @export
* @enum {string}
*/ */
export const DefaultPageEnum = { export enum DefaultPageEnum {
Search: 'SEARCH', Search = 'SEARCH',
Plan: 'PLAN', Plan = 'PLAN',
Books: 'BOOKS' Books = 'BOOKS'
} as const; }
export type DefaultPageEnum = typeof DefaultPageEnum[keyof typeof DefaultPageEnum];
export function DefaultPageEnumFromJSON(json: any): DefaultPageEnum { export function DefaultPageEnumFromJSON(json: any): DefaultPageEnum {
return DefaultPageEnumFromJSONTyped(json, false); return DefaultPageEnumFromJSONTyped(json, false);

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -81,19 +81,6 @@ export interface ExportLog {
readonly createdAt: Date; readonly createdAt: Date;
} }
/**
* Check if a given object implements the ExportLog interface.
*/
export function instanceOfExportLog(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
export function ExportLogFromJSON(json: any): ExportLog { export function ExportLogFromJSON(json: any): ExportLog {
return ExportLogFromJSONTyped(json, false); return ExportLogFromJSONTyped(json, false);
} }
@@ -136,3 +123,4 @@ export function ExportLogToJSON(value?: ExportLog | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,79 +13,69 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { FoodInheritField } from './FoodInheritField';
import { import {
FoodInheritField,
FoodInheritFieldFromJSON, FoodInheritFieldFromJSON,
FoodInheritFieldFromJSONTyped, FoodInheritFieldFromJSONTyped,
FoodInheritFieldToJSON, FoodInheritFieldToJSON,
} from './FoodInheritField'; FoodSimple,
import type { FoodSimple } from './FoodSimple';
import {
FoodSimpleFromJSON, FoodSimpleFromJSON,
FoodSimpleFromJSONTyped, FoodSimpleFromJSONTyped,
FoodSimpleToJSON, FoodSimpleToJSON,
} from './FoodSimple'; Property,
import type { Property } from './Property';
import {
PropertyFromJSON, PropertyFromJSON,
PropertyFromJSONTyped, PropertyFromJSONTyped,
PropertyToJSON, PropertyToJSON,
} from './Property'; RecipeSimple,
import type { RecipeSimple } from './RecipeSimple';
import {
RecipeSimpleFromJSON, RecipeSimpleFromJSON,
RecipeSimpleFromJSONTyped, RecipeSimpleFromJSONTyped,
RecipeSimpleToJSON, RecipeSimpleToJSON,
} from './RecipeSimple'; SupermarketCategory,
import type { SupermarketCategory } from './SupermarketCategory';
import {
SupermarketCategoryFromJSON, SupermarketCategoryFromJSON,
SupermarketCategoryFromJSONTyped, SupermarketCategoryFromJSONTyped,
SupermarketCategoryToJSON, SupermarketCategoryToJSON,
} from './SupermarketCategory'; Unit,
import type { Unit } from './Unit';
import {
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface Food * @interface Food
*/ */
@@ -236,22 +226,6 @@ export interface Food {
openDataSlug?: string | null; openDataSlug?: string | null;
} }
/**
* Check if a given object implements the Food interface.
*/
export function instanceOfFood(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "shopping" in value;
isInstance = isInstance && "parent" in value;
isInstance = isInstance && "numchild" in value;
isInstance = isInstance && "fullName" in value;
isInstance = isInstance && "substituteOnhand" in value;
return isInstance;
}
export function FoodFromJSON(json: any): Food { export function FoodFromJSON(json: any): Food {
return FoodFromJSONTyped(json, false); return FoodFromJSONTyped(json, false);
} }
@@ -319,3 +293,4 @@ export function FoodToJSON(value?: Food | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface FoodInheritField * @interface FoodInheritField
*/ */
@@ -73,16 +73,6 @@ export interface FoodInheritField {
field?: string | null; field?: string | null;
} }
/**
* Check if a given object implements the FoodInheritField interface.
*/
export function instanceOfFoodInheritField(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
return isInstance;
}
export function FoodInheritFieldFromJSON(json: any): FoodInheritField { export function FoodInheritFieldFromJSON(json: any): FoodInheritField {
return FoodInheritFieldFromJSONTyped(json, false); return FoodInheritFieldFromJSONTyped(json, false);
} }
@@ -113,3 +103,4 @@ export function FoodInheritFieldToJSON(value?: FoodInheritField | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -39,17 +39,6 @@ export interface FoodSimple {
pluralName?: string | null; pluralName?: string | null;
} }
/**
* Check if a given object implements the FoodSimple interface.
*/
export function instanceOfFoodSimple(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
return isInstance;
}
export function FoodSimpleFromJSON(json: any): FoodSimple { export function FoodSimpleFromJSON(json: any): FoodSimple {
return FoodSimpleFromJSONTyped(json, false); return FoodSimpleFromJSONTyped(json, false);
} }
@@ -80,3 +69,4 @@ export function FoodSimpleToJSON(value?: FoodSimple | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface Group * @interface Group
*/ */
@@ -67,17 +67,6 @@ export interface Group {
name: string; name: string;
} }
/**
* Check if a given object implements the Group interface.
*/
export function instanceOfGroup(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
return isInstance;
}
export function GroupFromJSON(json: any): Group { export function GroupFromJSON(json: any): Group {
return GroupFromJSONTyped(json, false); return GroupFromJSONTyped(json, false);
} }
@@ -106,3 +95,4 @@ export function GroupToJSON(value?: Group | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import { import {
Keyword,
KeywordFromJSON, KeywordFromJSON,
KeywordFromJSONTyped, KeywordFromJSONTyped,
KeywordToJSON, KeywordToJSON,
} from './Keyword'; } from './';
/** /**
* *
@@ -82,20 +82,6 @@ export interface ImportLog {
readonly createdAt: Date; readonly createdAt: Date;
} }
/**
* Check if a given object implements the ImportLog interface.
*/
export function instanceOfImportLog(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "keyword" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
export function ImportLogFromJSON(json: any): ImportLog { export function ImportLogFromJSON(json: any): ImportLog {
return ImportLogFromJSONTyped(json, false); return ImportLogFromJSONTyped(json, false);
} }
@@ -135,3 +121,4 @@ export function ImportLogToJSON(value?: ImportLog | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import { import {
Food,
FoodFromJSON, FoodFromJSON,
FoodFromJSONTyped, FoodFromJSONTyped,
FoodToJSON, FoodToJSON,
} from './Food'; Unit,
import type { Unit } from './Unit';
import {
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -112,21 +110,6 @@ export interface Ingredient {
alwaysUsePluralFood?: boolean; alwaysUsePluralFood?: boolean;
} }
/**
* Check if a given object implements the Ingredient interface.
*/
export function instanceOfIngredient(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "food" in value;
isInstance = isInstance && "unit" in value;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "conversions" in value;
isInstance = isInstance && "usedInRecipes" in value;
return isInstance;
}
export function IngredientFromJSON(json: any): Ingredient { export function IngredientFromJSON(json: any): Ingredient {
return IngredientFromJSONTyped(json, false); return IngredientFromJSONTyped(json, false);
} }
@@ -175,3 +158,4 @@ export function IngredientToJSON(value?: Ingredient | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Group } from './Group';
import { import {
Group,
GroupFromJSON, GroupFromJSON,
GroupFromJSONTyped, GroupFromJSONTyped,
GroupToJSON, GroupToJSON,
} from './Group'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -88,20 +88,6 @@ export interface InviteLink {
readonly createdAt: Date; readonly createdAt: Date;
} }
/**
* Check if a given object implements the InviteLink interface.
*/
export function instanceOfInviteLink(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "uuid" in value;
isInstance = isInstance && "group" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
export function InviteLinkFromJSON(json: any): InviteLink { export function InviteLinkFromJSON(json: any): InviteLink {
return InviteLinkFromJSONTyped(json, false); return InviteLinkFromJSONTyped(json, false);
} }
@@ -136,10 +122,11 @@ export function InviteLinkToJSON(value?: InviteLink | null): any {
'email': value.email, 'email': value.email,
'group': GroupToJSON(value.group), 'group': GroupToJSON(value.group),
'valid_until': value.validUntil === undefined ? undefined : (value.validUntil.toISOString().substring(0,10)), 'valid_until': value.validUntil === undefined ? undefined : (value.validUntil.toISOString().substr(0,10)),
'used_by': value.usedBy, 'used_by': value.usedBy,
'reusable': value.reusable, 'reusable': value.reusable,
'internal_note': value.internalNote, 'internal_note': value.internalNote,
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface Keyword * @interface Keyword
*/ */
@@ -109,23 +109,6 @@ export interface Keyword {
readonly fullName: string; readonly fullName: string;
} }
/**
* Check if a given object implements the Keyword interface.
*/
export function instanceOfKeyword(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "label" in value;
isInstance = isInstance && "parent" in value;
isInstance = isInstance && "numchild" in value;
isInstance = isInstance && "createdAt" in value;
isInstance = isInstance && "updatedAt" in value;
isInstance = isInstance && "fullName" in value;
return isInstance;
}
export function KeywordFromJSON(json: any): Keyword { export function KeywordFromJSON(json: any): Keyword {
return KeywordFromJSONTyped(json, false); return KeywordFromJSONTyped(json, false);
} }
@@ -162,3 +145,4 @@ export function KeywordToJSON(value?: Keyword | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -33,17 +33,6 @@ export interface KeywordLabel {
readonly label: string; readonly label: string;
} }
/**
* Check if a given object implements the KeywordLabel interface.
*/
export function instanceOfKeywordLabel(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "label" in value;
return isInstance;
}
export function KeywordLabelFromJSON(json: any): KeywordLabel { export function KeywordLabelFromJSON(json: any): KeywordLabel {
return KeywordLabelFromJSONTyped(json, false); return KeywordLabelFromJSONTyped(json, false);
} }
@@ -71,3 +60,4 @@ export function KeywordLabelToJSON(value?: KeywordLabel | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,24 +13,20 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { MealType } from './MealType';
import { import {
MealType,
MealTypeFromJSON, MealTypeFromJSON,
MealTypeFromJSONTyped, MealTypeFromJSONTyped,
MealTypeToJSON, MealTypeToJSON,
} from './MealType'; RecipeOverview,
import type { RecipeOverview } from './RecipeOverview';
import {
RecipeOverviewFromJSON, RecipeOverviewFromJSON,
RecipeOverviewFromJSONTyped, RecipeOverviewFromJSONTyped,
RecipeOverviewToJSON, RecipeOverviewToJSON,
} from './RecipeOverview'; User,
import type { User } from './User';
import {
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -124,24 +120,6 @@ export interface MealPlan {
readonly shopping: string; readonly shopping: string;
} }
/**
* Check if a given object implements the MealPlan interface.
*/
export function instanceOfMealPlan(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "servings" in value;
isInstance = isInstance && "noteMarkdown" in value;
isInstance = isInstance && "fromDate" in value;
isInstance = isInstance && "mealType" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "recipeName" in value;
isInstance = isInstance && "mealTypeName" in value;
isInstance = isInstance && "shopping" in value;
return isInstance;
}
export function MealPlanFromJSON(json: any): MealPlan { export function MealPlanFromJSON(json: any): MealPlan {
return MealPlanFromJSONTyped(json, false); return MealPlanFromJSONTyped(json, false);
} }
@@ -182,10 +160,11 @@ export function MealPlanToJSON(value?: MealPlan | null): any {
'recipe': RecipeOverviewToJSON(value.recipe), 'recipe': RecipeOverviewToJSON(value.recipe),
'servings': value.servings, 'servings': value.servings,
'note': value.note, 'note': value.note,
'from_date': (value.fromDate.toISOString().substring(0,10)), 'from_date': (value.fromDate.toISOString().substr(0,10)),
'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substring(0,10)), 'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substr(0,10)),
'meal_type': MealTypeToJSON(value.mealType), 'meal_type': MealTypeToJSON(value.mealType),
'shared': value.shared === undefined ? undefined : (value.shared === null ? null : (value.shared as Array<any>).map(UserToJSON)), 'shared': value.shared === undefined ? undefined : (value.shared === null ? null : (value.shared as Array<any>).map(UserToJSON)),
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -57,18 +57,6 @@ export interface MealType {
readonly createdBy: number; readonly createdBy: number;
} }
/**
* Check if a given object implements the MealType interface.
*/
export function instanceOfMealType(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function MealTypeFromJSON(json: any): MealType { export function MealTypeFromJSON(json: any): MealType {
return MealTypeFromJSONTyped(json, false); return MealTypeFromJSONTyped(json, false);
} }
@@ -104,3 +92,4 @@ export function MealTypeToJSON(value?: MealType | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,20 +12,18 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* * `DB` - Dropbox * * `DB` - Dropbox
* * `NEXTCLOUD` - Nextcloud * `NEXTCLOUD` - Nextcloud
* * `LOCAL` - Local * `LOCAL` - Local
* @export * @export
* @enum {string}
*/ */
export const MethodEnum = { export enum MethodEnum {
Db: 'DB', Db = 'DB',
Nextcloud: 'NEXTCLOUD', Nextcloud = 'NEXTCLOUD',
Local: 'LOCAL' Local = 'LOCAL'
} as const; }
export type MethodEnum = typeof MethodEnum[keyof typeof MethodEnum];
export function MethodEnumFromJSON(json: any): MethodEnum { export function MethodEnumFromJSON(json: any): MethodEnum {
return MethodEnumFromJSONTyped(json, false); return MethodEnumFromJSONTyped(json, false);

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -57,20 +57,6 @@ export interface NutritionInformation {
source?: string | null; source?: string | null;
} }
/**
* Check if a given object implements the NutritionInformation interface.
*/
export function instanceOfNutritionInformation(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "carbohydrates" in value;
isInstance = isInstance && "fats" in value;
isInstance = isInstance && "proteins" in value;
isInstance = isInstance && "calories" in value;
return isInstance;
}
export function NutritionInformationFromJSON(json: any): NutritionInformation { export function NutritionInformationFromJSON(json: any): NutritionInformation {
return NutritionInformationFromJSONTyped(json, false); return NutritionInformationFromJSONTyped(json, false);
} }
@@ -107,3 +93,4 @@ export function NutritionInformationToJSON(value?: NutritionInformation | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,49 +13,49 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataVersion } from './OpenDataVersion';
import { import {
OpenDataVersion,
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface OpenDataCategory * @interface OpenDataCategory
*/ */
@@ -104,20 +104,6 @@ export interface OpenDataCategory {
readonly createdBy: string; readonly createdBy: string;
} }
/**
* Check if a given object implements the OpenDataCategory interface.
*/
export function instanceOfOpenDataCategory(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "version" in value;
isInstance = isInstance && "slug" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function OpenDataCategoryFromJSON(json: any): OpenDataCategory { export function OpenDataCategoryFromJSON(json: any): OpenDataCategory {
return OpenDataCategoryFromJSONTyped(json, false); return OpenDataCategoryFromJSONTyped(json, false);
} }
@@ -155,3 +141,4 @@ export function OpenDataCategoryToJSON(value?: OpenDataCategory | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,24 +13,20 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataFood } from './OpenDataFood';
import { import {
OpenDataFood,
OpenDataFoodFromJSON, OpenDataFoodFromJSON,
OpenDataFoodFromJSONTyped, OpenDataFoodFromJSONTyped,
OpenDataFoodToJSON, OpenDataFoodToJSON,
} from './OpenDataFood'; OpenDataUnit,
import type { OpenDataUnit } from './OpenDataUnit';
import {
OpenDataUnitFromJSON, OpenDataUnitFromJSON,
OpenDataUnitFromJSONTyped, OpenDataUnitFromJSONTyped,
OpenDataUnitToJSON, OpenDataUnitToJSON,
} from './OpenDataUnit'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -106,25 +102,6 @@ export interface OpenDataConversion {
readonly createdBy: string; readonly createdBy: string;
} }
/**
* Check if a given object implements the OpenDataConversion interface.
*/
export function instanceOfOpenDataConversion(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
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;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function OpenDataConversionFromJSON(json: any): OpenDataConversion { export function OpenDataConversionFromJSON(json: any): OpenDataConversion {
return OpenDataConversionFromJSONTyped(json, false); return OpenDataConversionFromJSONTyped(json, false);
} }
@@ -170,3 +147,4 @@ export function OpenDataConversionToJSON(value?: OpenDataConversion | null): any
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,67 +13,61 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataCategory } from './OpenDataCategory';
import { import {
OpenDataCategory,
OpenDataCategoryFromJSON, OpenDataCategoryFromJSON,
OpenDataCategoryFromJSONTyped, OpenDataCategoryFromJSONTyped,
OpenDataCategoryToJSON, OpenDataCategoryToJSON,
} from './OpenDataCategory'; OpenDataFoodProperty,
import type { OpenDataFoodProperty } from './OpenDataFoodProperty';
import {
OpenDataFoodPropertyFromJSON, OpenDataFoodPropertyFromJSON,
OpenDataFoodPropertyFromJSONTyped, OpenDataFoodPropertyFromJSONTyped,
OpenDataFoodPropertyToJSON, OpenDataFoodPropertyToJSON,
} from './OpenDataFoodProperty'; OpenDataUnit,
import type { OpenDataUnit } from './OpenDataUnit';
import {
OpenDataUnitFromJSON, OpenDataUnitFromJSON,
OpenDataUnitFromJSONTyped, OpenDataUnitFromJSONTyped,
OpenDataUnitToJSON, OpenDataUnitToJSON,
} from './OpenDataUnit'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface OpenDataFood * @interface OpenDataFood
*/ */
@@ -182,25 +176,6 @@ export interface OpenDataFood {
readonly createdBy: string; readonly createdBy: string;
} }
/**
* Check if a given object implements the OpenDataFood interface.
*/
export function instanceOfOpenDataFood(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
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;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function OpenDataFoodFromJSON(json: any): OpenDataFood { export function OpenDataFoodFromJSON(json: any): OpenDataFood {
return OpenDataFoodFromJSONTyped(json, false); return OpenDataFoodFromJSONTyped(json, false);
} }
@@ -258,3 +233,4 @@ export function OpenDataFoodToJSON(value?: OpenDataFood | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataProperty } from './OpenDataProperty';
import { import {
OpenDataProperty,
OpenDataPropertyFromJSON, OpenDataPropertyFromJSON,
OpenDataPropertyFromJSONTyped, OpenDataPropertyFromJSONTyped,
OpenDataPropertyToJSON, OpenDataPropertyToJSON,
} from './OpenDataProperty'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -46,18 +46,6 @@ export interface OpenDataFoodProperty {
propertyAmount: string; propertyAmount: string;
} }
/**
* Check if a given object implements the OpenDataFoodProperty interface.
*/
export function instanceOfOpenDataFoodProperty(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "property" in value;
isInstance = isInstance && "propertyAmount" in value;
return isInstance;
}
export function OpenDataFoodPropertyFromJSON(json: any): OpenDataFoodProperty { export function OpenDataFoodPropertyFromJSON(json: any): OpenDataFoodProperty {
return OpenDataFoodPropertyFromJSONTyped(json, false); return OpenDataFoodPropertyFromJSONTyped(json, false);
} }
@@ -88,3 +76,4 @@ export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,49 +13,49 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataVersion } from './OpenDataVersion';
import { import {
OpenDataVersion,
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface OpenDataProperty * @interface OpenDataProperty
*/ */
@@ -110,20 +110,6 @@ export interface OpenDataProperty {
readonly createdBy: string; readonly createdBy: string;
} }
/**
* Check if a given object implements the OpenDataProperty interface.
*/
export function instanceOfOpenDataProperty(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "version" in value;
isInstance = isInstance && "slug" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function OpenDataPropertyFromJSON(json: any): OpenDataProperty { export function OpenDataPropertyFromJSON(json: any): OpenDataProperty {
return OpenDataPropertyFromJSONTyped(json, false); return OpenDataPropertyFromJSONTyped(json, false);
} }
@@ -163,3 +149,4 @@ export function OpenDataPropertyToJSON(value?: OpenDataProperty | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataStoreCategory } from './OpenDataStoreCategory';
import { import {
OpenDataStoreCategory,
OpenDataStoreCategoryFromJSON, OpenDataStoreCategoryFromJSON,
OpenDataStoreCategoryFromJSONTyped, OpenDataStoreCategoryFromJSONTyped,
OpenDataStoreCategoryToJSON, OpenDataStoreCategoryToJSON,
} from './OpenDataStoreCategory'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -76,21 +74,6 @@ export interface OpenDataStore {
readonly createdBy: string; readonly createdBy: string;
} }
/**
* Check if a given object implements the OpenDataStore interface.
*/
export function instanceOfOpenDataStore(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "version" in value;
isInstance = isInstance && "slug" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "categoryToStore" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function OpenDataStoreFromJSON(json: any): OpenDataStore { export function OpenDataStoreFromJSON(json: any): OpenDataStore {
return OpenDataStoreFromJSONTyped(json, false); return OpenDataStoreFromJSONTyped(json, false);
} }
@@ -128,3 +111,4 @@ export function OpenDataStoreToJSON(value?: OpenDataStore | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataCategory } from './OpenDataCategory';
import { import {
OpenDataCategory,
OpenDataCategoryFromJSON, OpenDataCategoryFromJSON,
OpenDataCategoryFromJSONTyped, OpenDataCategoryFromJSONTyped,
OpenDataCategoryToJSON, OpenDataCategoryToJSON,
} from './OpenDataCategory'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -52,18 +52,6 @@ export interface OpenDataStoreCategory {
order?: number; order?: number;
} }
/**
* Check if a given object implements the OpenDataStoreCategory interface.
*/
export function instanceOfOpenDataStoreCategory(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "category" in value;
isInstance = isInstance && "store" in value;
return isInstance;
}
export function OpenDataStoreCategoryFromJSON(json: any): OpenDataStoreCategory { export function OpenDataStoreCategoryFromJSON(json: any): OpenDataStoreCategory {
return OpenDataStoreCategoryFromJSONTyped(json, false); return OpenDataStoreCategoryFromJSONTyped(json, false);
} }
@@ -96,3 +84,4 @@ export function OpenDataStoreCategoryToJSON(value?: OpenDataStoreCategory | null
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,61 +13,61 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataUnitBaseUnit } from './OpenDataUnitBaseUnit';
import {
OpenDataUnitBaseUnitFromJSON,
OpenDataUnitBaseUnitFromJSONTyped,
OpenDataUnitBaseUnitToJSON,
} from './OpenDataUnitBaseUnit';
import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum';
import { import {
BaseUnitEnum,
BaseUnitEnumFromJSON,
BaseUnitEnumFromJSONTyped,
BaseUnitEnumToJSON,
BlankEnum,
BlankEnumFromJSON,
BlankEnumFromJSONTyped,
BlankEnumToJSON,
OpenDataUnitTypeEnum,
OpenDataUnitTypeEnumFromJSON, OpenDataUnitTypeEnumFromJSON,
OpenDataUnitTypeEnumFromJSONTyped, OpenDataUnitTypeEnumFromJSONTyped,
OpenDataUnitTypeEnumToJSON, OpenDataUnitTypeEnumToJSON,
} from './OpenDataUnitTypeEnum'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface OpenDataUnit * @interface OpenDataUnit
*/ */
@@ -104,10 +104,10 @@ export interface OpenDataUnit {
pluralName?: string; pluralName?: string;
/** /**
* *
* @type {OpenDataUnitBaseUnit} * @type {BaseUnitEnum | BlankEnum}
* @memberof OpenDataUnit * @memberof OpenDataUnit
*/ */
baseUnit?: OpenDataUnitBaseUnit; baseUnit?: BaseUnitEnum | BlankEnum;
/** /**
* *
* @type {OpenDataUnitTypeEnum} * @type {OpenDataUnitTypeEnum}
@@ -128,21 +128,6 @@ export interface OpenDataUnit {
readonly createdBy: string; readonly createdBy: string;
} }
/**
* Check if a given object implements the OpenDataUnit interface.
*/
export function instanceOfOpenDataUnit(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "version" in value;
isInstance = isInstance && "slug" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
export function OpenDataUnitFromJSON(json: any): OpenDataUnit { export function OpenDataUnitFromJSON(json: any): OpenDataUnit {
return OpenDataUnitFromJSONTyped(json, false); return OpenDataUnitFromJSONTyped(json, false);
} }
@@ -158,7 +143,7 @@ export function OpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator: boolea
'slug': json['slug'], 'slug': json['slug'],
'name': json['name'], 'name': json['name'],
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'], 'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
'baseUnit': !exists(json, 'base_unit') ? undefined : OpenDataUnitBaseUnitFromJSON(json['base_unit']), 'baseUnit': !exists(json, 'base_unit') ? undefined : BaseUnitEnum | BlankEnumFromJSON(json['base_unit']),
'type': OpenDataUnitTypeEnumFromJSON(json['type']), 'type': OpenDataUnitTypeEnumFromJSON(json['type']),
'comment': !exists(json, 'comment') ? undefined : json['comment'], 'comment': !exists(json, 'comment') ? undefined : json['comment'],
'createdBy': json['created_by'], 'createdBy': json['created_by'],
@@ -178,9 +163,10 @@ export function OpenDataUnitToJSON(value?: OpenDataUnit | null): any {
'slug': value.slug, 'slug': value.slug,
'name': value.name, 'name': value.name,
'plural_name': value.pluralName, 'plural_name': value.pluralName,
'base_unit': OpenDataUnitBaseUnitToJSON(value.baseUnit), 'base_unit': BaseUnitEnum | BlankEnumToJSON(value.baseUnit),
'type': OpenDataUnitTypeEnumToJSON(value.type), 'type': OpenDataUnitTypeEnumToJSON(value.type),
'comment': value.comment, 'comment': value.comment,
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,20 +12,18 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* * `WEIGHT` - weight * * `WEIGHT` - weight
* * `VOLUME` - volume * `VOLUME` - volume
* * `OTHER` - other * `OTHER` - other
* @export * @export
* @enum {string}
*/ */
export const OpenDataUnitTypeEnum = { export enum OpenDataUnitTypeEnum {
Weight: 'WEIGHT', Weight = 'WEIGHT',
Volume: 'VOLUME', Volume = 'VOLUME',
Other: 'OTHER' Other = 'OTHER'
} as const; }
export type OpenDataUnitTypeEnum = typeof OpenDataUnitTypeEnum[keyof typeof OpenDataUnitTypeEnum];
export function OpenDataUnitTypeEnumFromJSON(json: any): OpenDataUnitTypeEnum { export function OpenDataUnitTypeEnumFromJSON(json: any): OpenDataUnitTypeEnum {
return OpenDataUnitTypeEnumFromJSONTyped(json, false); return OpenDataUnitTypeEnumFromJSONTyped(json, false);

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface OpenDataVersion * @interface OpenDataVersion
*/ */
@@ -79,18 +79,6 @@ export interface OpenDataVersion {
comment?: string; comment?: string;
} }
/**
* Check if a given object implements the OpenDataVersion interface.
*/
export function instanceOfOpenDataVersion(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "code" in value;
return isInstance;
}
export function OpenDataVersionFromJSON(json: any): OpenDataVersion { export function OpenDataVersionFromJSON(json: any): OpenDataVersion {
return OpenDataVersionFromJSONTyped(json, false); return OpenDataVersionFromJSONTyped(json, false);
} }
@@ -123,3 +111,4 @@ export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Automation } from './Automation';
import { import {
Automation,
AutomationFromJSON, AutomationFromJSON,
AutomationFromJSONTyped, AutomationFromJSONTyped,
AutomationToJSON, AutomationToJSON,
} from './Automation'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedAutomationList {
results?: Array<Automation>; results?: Array<Automation>;
} }
/**
* Check if a given object implements the PaginatedAutomationList interface.
*/
export function instanceOfPaginatedAutomationList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedAutomationListFromJSON(json: any): PaginatedAutomationList { export function PaginatedAutomationListFromJSON(json: any): PaginatedAutomationList {
return PaginatedAutomationListFromJSONTyped(json, false); return PaginatedAutomationListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList |
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { CookLog } from './CookLog';
import { import {
CookLog,
CookLogFromJSON, CookLogFromJSON,
CookLogFromJSONTyped, CookLogFromJSONTyped,
CookLogToJSON, CookLogToJSON,
} from './CookLog'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedCookLogList {
results?: Array<CookLog>; results?: Array<CookLog>;
} }
/**
* Check if a given object implements the PaginatedCookLogList interface.
*/
export function instanceOfPaginatedCookLogList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedCookLogListFromJSON(json: any): PaginatedCookLogList { export function PaginatedCookLogListFromJSON(json: any): PaginatedCookLogList {
return PaginatedCookLogListFromJSONTyped(json, false); return PaginatedCookLogListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedCookLogListToJSON(value?: PaginatedCookLogList | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { CustomFilter } from './CustomFilter';
import { import {
CustomFilter,
CustomFilterFromJSON, CustomFilterFromJSON,
CustomFilterFromJSONTyped, CustomFilterFromJSONTyped,
CustomFilterToJSON, CustomFilterToJSON,
} from './CustomFilter'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedCustomFilterList {
results?: Array<CustomFilter>; results?: Array<CustomFilter>;
} }
/**
* Check if a given object implements the PaginatedCustomFilterList interface.
*/
export function instanceOfPaginatedCustomFilterList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedCustomFilterListFromJSON(json: any): PaginatedCustomFilterList { export function PaginatedCustomFilterListFromJSON(json: any): PaginatedCustomFilterList {
return PaginatedCustomFilterListFromJSONTyped(json, false); return PaginatedCustomFilterListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedCustomFilterListToJSON(value?: PaginatedCustomFilterLis
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { ExportLog } from './ExportLog';
import { import {
ExportLog,
ExportLogFromJSON, ExportLogFromJSON,
ExportLogFromJSONTyped, ExportLogFromJSONTyped,
ExportLogToJSON, ExportLogToJSON,
} from './ExportLog'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedExportLogList {
results?: Array<ExportLog>; results?: Array<ExportLog>;
} }
/**
* Check if a given object implements the PaginatedExportLogList interface.
*/
export function instanceOfPaginatedExportLogList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedExportLogListFromJSON(json: any): PaginatedExportLogList { export function PaginatedExportLogListFromJSON(json: any): PaginatedExportLogList {
return PaginatedExportLogListFromJSONTyped(json, false); return PaginatedExportLogListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | nu
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import { import {
Food,
FoodFromJSON, FoodFromJSON,
FoodFromJSONTyped, FoodFromJSONTyped,
FoodToJSON, FoodToJSON,
} from './Food'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedFoodList {
results?: Array<Food>; results?: Array<Food>;
} }
/**
* Check if a given object implements the PaginatedFoodList interface.
*/
export function instanceOfPaginatedFoodList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedFoodListFromJSON(json: any): PaginatedFoodList { export function PaginatedFoodListFromJSON(json: any): PaginatedFoodList {
return PaginatedFoodListFromJSONTyped(json, false); return PaginatedFoodListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedFoodListToJSON(value?: PaginatedFoodList | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { ImportLog } from './ImportLog';
import { import {
ImportLog,
ImportLogFromJSON, ImportLogFromJSON,
ImportLogFromJSONTyped, ImportLogFromJSONTyped,
ImportLogToJSON, ImportLogToJSON,
} from './ImportLog'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedImportLogList {
results?: Array<ImportLog>; results?: Array<ImportLog>;
} }
/**
* Check if a given object implements the PaginatedImportLogList interface.
*/
export function instanceOfPaginatedImportLogList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedImportLogListFromJSON(json: any): PaginatedImportLogList { export function PaginatedImportLogListFromJSON(json: any): PaginatedImportLogList {
return PaginatedImportLogListFromJSONTyped(json, false); return PaginatedImportLogListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | nu
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Ingredient } from './Ingredient';
import { import {
Ingredient,
IngredientFromJSON, IngredientFromJSON,
IngredientFromJSONTyped, IngredientFromJSONTyped,
IngredientToJSON, IngredientToJSON,
} from './Ingredient'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedIngredientList {
results?: Array<Ingredient>; results?: Array<Ingredient>;
} }
/**
* Check if a given object implements the PaginatedIngredientList interface.
*/
export function instanceOfPaginatedIngredientList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedIngredientListFromJSON(json: any): PaginatedIngredientList { export function PaginatedIngredientListFromJSON(json: any): PaginatedIngredientList {
return PaginatedIngredientListFromJSONTyped(json, false); return PaginatedIngredientListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList |
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import { import {
Keyword,
KeywordFromJSON, KeywordFromJSON,
KeywordFromJSONTyped, KeywordFromJSONTyped,
KeywordToJSON, KeywordToJSON,
} from './Keyword'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedKeywordList {
results?: Array<Keyword>; results?: Array<Keyword>;
} }
/**
* Check if a given object implements the PaginatedKeywordList interface.
*/
export function instanceOfPaginatedKeywordList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedKeywordListFromJSON(json: any): PaginatedKeywordList { export function PaginatedKeywordListFromJSON(json: any): PaginatedKeywordList {
return PaginatedKeywordListFromJSONTyped(json, false); return PaginatedKeywordListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { RecipeOverview } from './RecipeOverview';
import { import {
RecipeOverview,
RecipeOverviewFromJSON, RecipeOverviewFromJSON,
RecipeOverviewFromJSONTyped, RecipeOverviewFromJSONTyped,
RecipeOverviewToJSON, RecipeOverviewToJSON,
} from './RecipeOverview'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedRecipeOverviewList {
results?: Array<RecipeOverview>; results?: Array<RecipeOverview>;
} }
/**
* Check if a given object implements the PaginatedRecipeOverviewList interface.
*/
export function instanceOfPaginatedRecipeOverviewList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedRecipeOverviewListFromJSON(json: any): PaginatedRecipeOverviewList { export function PaginatedRecipeOverviewListFromJSON(json: any): PaginatedRecipeOverviewList {
return PaginatedRecipeOverviewListFromJSONTyped(json, false); return PaginatedRecipeOverviewListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedRecipeOverviewListToJSON(value?: PaginatedRecipeOvervie
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Step } from './Step';
import { import {
Step,
StepFromJSON, StepFromJSON,
StepFromJSONTyped, StepFromJSONTyped,
StepToJSON, StepToJSON,
} from './Step'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedStepList {
results?: Array<Step>; results?: Array<Step>;
} }
/**
* Check if a given object implements the PaginatedStepList interface.
*/
export function instanceOfPaginatedStepList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedStepListFromJSON(json: any): PaginatedStepList { export function PaginatedStepListFromJSON(json: any): PaginatedStepList {
return PaginatedStepListFromJSONTyped(json, false); return PaginatedStepListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedStepListToJSON(value?: PaginatedStepList | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { SupermarketCategoryRelation } from './SupermarketCategoryRelation';
import { import {
SupermarketCategoryRelation,
SupermarketCategoryRelationFromJSON, SupermarketCategoryRelationFromJSON,
SupermarketCategoryRelationFromJSONTyped, SupermarketCategoryRelationFromJSONTyped,
SupermarketCategoryRelationToJSON, SupermarketCategoryRelationToJSON,
} from './SupermarketCategoryRelation'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedSupermarketCategoryRelationList {
results?: Array<SupermarketCategoryRelation>; results?: Array<SupermarketCategoryRelation>;
} }
/**
* Check if a given object implements the PaginatedSupermarketCategoryRelationList interface.
*/
export function instanceOfPaginatedSupermarketCategoryRelationList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedSupermarketCategoryRelationListFromJSON(json: any): PaginatedSupermarketCategoryRelationList { export function PaginatedSupermarketCategoryRelationListFromJSON(json: any): PaginatedSupermarketCategoryRelationList {
return PaginatedSupermarketCategoryRelationListFromJSONTyped(json, false); return PaginatedSupermarketCategoryRelationListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedSupermarketCategoryRelationListToJSON(value?: Paginated
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { SyncLog } from './SyncLog';
import { import {
SyncLog,
SyncLogFromJSON, SyncLogFromJSON,
SyncLogFromJSONTyped, SyncLogFromJSONTyped,
SyncLogToJSON, SyncLogToJSON,
} from './SyncLog'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedSyncLogList {
results?: Array<SyncLog>; results?: Array<SyncLog>;
} }
/**
* Check if a given object implements the PaginatedSyncLogList interface.
*/
export function instanceOfPaginatedSyncLogList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedSyncLogListFromJSON(json: any): PaginatedSyncLogList { export function PaginatedSyncLogListFromJSON(json: any): PaginatedSyncLogList {
return PaginatedSyncLogListFromJSONTyped(json, false); return PaginatedSyncLogListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedSyncLogListToJSON(value?: PaginatedSyncLogList | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Unit } from './Unit';
import { import {
Unit,
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedUnitList {
results?: Array<Unit>; results?: Array<Unit>;
} }
/**
* Check if a given object implements the PaginatedUnitList interface.
*/
export function instanceOfPaginatedUnitList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedUnitListFromJSON(json: any): PaginatedUnitList { export function PaginatedUnitListFromJSON(json: any): PaginatedUnitList {
return PaginatedUnitListFromJSONTyped(json, false); return PaginatedUnitListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedUnitListToJSON(value?: PaginatedUnitList | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { UserSpace } from './UserSpace';
import { import {
UserSpace,
UserSpaceFromJSON, UserSpaceFromJSON,
UserSpaceFromJSONTyped, UserSpaceFromJSONTyped,
UserSpaceToJSON, UserSpaceToJSON,
} from './UserSpace'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedUserSpaceList {
results?: Array<UserSpace>; results?: Array<UserSpace>;
} }
/**
* Check if a given object implements the PaginatedUserSpaceList interface.
*/
export function instanceOfPaginatedUserSpaceList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedUserSpaceListFromJSON(json: any): PaginatedUserSpaceList { export function PaginatedUserSpaceListFromJSON(json: any): PaginatedUserSpaceList {
return PaginatedUserSpaceListFromJSONTyped(json, false); return PaginatedUserSpaceListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedUserSpaceListToJSON(value?: PaginatedUserSpaceList | nu
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { ViewLog } from './ViewLog';
import { import {
ViewLog,
ViewLogFromJSON, ViewLogFromJSON,
ViewLogFromJSONTyped, ViewLogFromJSONTyped,
ViewLogToJSON, ViewLogToJSON,
} from './ViewLog'; } from './';
/** /**
* *
@@ -52,15 +52,6 @@ export interface PaginatedViewLogList {
results?: Array<ViewLog>; results?: Array<ViewLog>;
} }
/**
* Check if a given object implements the PaginatedViewLogList interface.
*/
export function instanceOfPaginatedViewLogList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedViewLogListFromJSON(json: any): PaginatedViewLogList { export function PaginatedViewLogListFromJSON(json: any): PaginatedViewLogList {
return PaginatedViewLogListFromJSONTyped(json, false); return PaginatedViewLogListFromJSONTyped(json, false);
} }
@@ -94,3 +85,4 @@ export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -57,15 +57,6 @@ export interface PatchedAccessToken {
readonly updated?: Date; readonly updated?: Date;
} }
/**
* Check if a given object implements the PatchedAccessToken interface.
*/
export function instanceOfPatchedAccessToken(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedAccessTokenFromJSON(json: any): PatchedAccessToken { export function PatchedAccessTokenFromJSON(json: any): PatchedAccessToken {
return PatchedAccessTokenFromJSONTyped(json, false); return PatchedAccessTokenFromJSONTyped(json, false);
} }
@@ -99,3 +90,4 @@ export function PatchedAccessTokenToJSON(value?: PatchedAccessToken | null): any
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { TypeEnum } from './TypeEnum';
import { import {
TypeEnumFromJSON, AutomationTypeEnum,
TypeEnumFromJSONTyped, AutomationTypeEnumFromJSON,
TypeEnumToJSON, AutomationTypeEnumFromJSONTyped,
} from './TypeEnum'; AutomationTypeEnumToJSON,
} from './';
/** /**
* *
@@ -34,10 +34,10 @@ export interface PatchedAutomation {
readonly id?: number; readonly id?: number;
/** /**
* *
* @type {TypeEnum} * @type {AutomationTypeEnum}
* @memberof PatchedAutomation * @memberof PatchedAutomation
*/ */
type?: TypeEnum; type?: AutomationTypeEnum;
/** /**
* *
* @type {string} * @type {string}
@@ -88,15 +88,6 @@ export interface PatchedAutomation {
readonly createdBy?: number; readonly createdBy?: number;
} }
/**
* Check if a given object implements the PatchedAutomation interface.
*/
export function instanceOfPatchedAutomation(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedAutomationFromJSON(json: any): PatchedAutomation { export function PatchedAutomationFromJSON(json: any): PatchedAutomation {
return PatchedAutomationFromJSONTyped(json, false); return PatchedAutomationFromJSONTyped(json, false);
} }
@@ -108,7 +99,7 @@ export function PatchedAutomationFromJSONTyped(json: any, ignoreDiscriminator: b
return { return {
'id': !exists(json, 'id') ? undefined : json['id'], 'id': !exists(json, 'id') ? undefined : json['id'],
'type': !exists(json, 'type') ? undefined : TypeEnumFromJSON(json['type']), 'type': !exists(json, 'type') ? undefined : AutomationTypeEnumFromJSON(json['type']),
'name': !exists(json, 'name') ? undefined : json['name'], 'name': !exists(json, 'name') ? undefined : json['name'],
'description': !exists(json, 'description') ? undefined : json['description'], 'description': !exists(json, 'description') ? undefined : json['description'],
'param1': !exists(json, 'param_1') ? undefined : json['param_1'], 'param1': !exists(json, 'param_1') ? undefined : json['param_1'],
@@ -129,7 +120,7 @@ export function PatchedAutomationToJSON(value?: PatchedAutomation | null): any {
} }
return { return {
'type': TypeEnumToJSON(value.type), 'type': AutomationTypeEnumToJSON(value.type),
'name': value.name, 'name': value.name,
'description': value.description, 'description': value.description,
'param_1': value.param1, 'param_1': value.param1,
@@ -140,3 +131,4 @@ export function PatchedAutomationToJSON(value?: PatchedAutomation | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -51,15 +51,6 @@ export interface PatchedBookmarkletImport {
readonly createdAt?: Date; readonly createdAt?: Date;
} }
/**
* Check if a given object implements the PatchedBookmarkletImport interface.
*/
export function instanceOfPatchedBookmarkletImport(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedBookmarkletImportFromJSON(json: any): PatchedBookmarkletImport { export function PatchedBookmarkletImportFromJSON(json: any): PatchedBookmarkletImport {
return PatchedBookmarkletImportFromJSONTyped(json, false); return PatchedBookmarkletImportFromJSONTyped(json, false);
} }
@@ -92,3 +83,4 @@ export function PatchedBookmarkletImportToJSON(value?: PatchedBookmarkletImport
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -81,15 +81,6 @@ export interface PatchedConnectorConfigConfig {
readonly createdBy?: number; readonly createdBy?: number;
} }
/**
* Check if a given object implements the PatchedConnectorConfigConfig interface.
*/
export function instanceOfPatchedConnectorConfigConfig(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedConnectorConfigConfigFromJSON(json: any): PatchedConnectorConfigConfig { export function PatchedConnectorConfigConfigFromJSON(json: any): PatchedConnectorConfigConfig {
return PatchedConnectorConfigConfigFromJSONTyped(json, false); return PatchedConnectorConfigConfigFromJSONTyped(json, false);
} }
@@ -133,3 +124,4 @@ export function PatchedConnectorConfigConfigToJSON(value?: PatchedConnectorConfi
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { User } from './User';
import { import {
User,
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* *
@@ -76,15 +76,6 @@ export interface PatchedCookLog {
readonly updatedAt?: Date; readonly updatedAt?: Date;
} }
/**
* Check if a given object implements the PatchedCookLog interface.
*/
export function instanceOfPatchedCookLog(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedCookLogFromJSON(json: any): PatchedCookLog { export function PatchedCookLogFromJSON(json: any): PatchedCookLog {
return PatchedCookLogFromJSONTyped(json, false); return PatchedCookLogFromJSONTyped(json, false);
} }
@@ -123,3 +114,4 @@ export function PatchedCookLogToJSON(value?: PatchedCookLog | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { User } from './User';
import { import {
User,
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -58,15 +58,6 @@ export interface PatchedCustomFilter {
readonly createdBy?: number; readonly createdBy?: number;
} }
/**
* Check if a given object implements the PatchedCustomFilter interface.
*/
export function instanceOfPatchedCustomFilter(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedCustomFilterFromJSON(json: any): PatchedCustomFilter { export function PatchedCustomFilterFromJSON(json: any): PatchedCustomFilter {
return PatchedCustomFilterFromJSONTyped(json, false); return PatchedCustomFilterFromJSONTyped(json, false);
} }
@@ -100,3 +91,4 @@ export function PatchedCustomFilterToJSON(value?: PatchedCustomFilter | null): a
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -81,15 +81,6 @@ export interface PatchedExportLog {
readonly createdAt?: Date; readonly createdAt?: Date;
} }
/**
* Check if a given object implements the PatchedExportLog interface.
*/
export function instanceOfPatchedExportLog(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedExportLogFromJSON(json: any): PatchedExportLog { export function PatchedExportLogFromJSON(json: any): PatchedExportLog {
return PatchedExportLogFromJSONTyped(json, false); return PatchedExportLogFromJSONTyped(json, false);
} }
@@ -132,3 +123,4 @@ export function PatchedExportLogToJSON(value?: PatchedExportLog | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,79 +13,69 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { FoodInheritField } from './FoodInheritField';
import { import {
FoodInheritField,
FoodInheritFieldFromJSON, FoodInheritFieldFromJSON,
FoodInheritFieldFromJSONTyped, FoodInheritFieldFromJSONTyped,
FoodInheritFieldToJSON, FoodInheritFieldToJSON,
} from './FoodInheritField'; FoodSimple,
import type { FoodSimple } from './FoodSimple';
import {
FoodSimpleFromJSON, FoodSimpleFromJSON,
FoodSimpleFromJSONTyped, FoodSimpleFromJSONTyped,
FoodSimpleToJSON, FoodSimpleToJSON,
} from './FoodSimple'; Property,
import type { Property } from './Property';
import {
PropertyFromJSON, PropertyFromJSON,
PropertyFromJSONTyped, PropertyFromJSONTyped,
PropertyToJSON, PropertyToJSON,
} from './Property'; RecipeSimple,
import type { RecipeSimple } from './RecipeSimple';
import {
RecipeSimpleFromJSON, RecipeSimpleFromJSON,
RecipeSimpleFromJSONTyped, RecipeSimpleFromJSONTyped,
RecipeSimpleToJSON, RecipeSimpleToJSON,
} from './RecipeSimple'; SupermarketCategory,
import type { SupermarketCategory } from './SupermarketCategory';
import {
SupermarketCategoryFromJSON, SupermarketCategoryFromJSON,
SupermarketCategoryFromJSONTyped, SupermarketCategoryFromJSONTyped,
SupermarketCategoryToJSON, SupermarketCategoryToJSON,
} from './SupermarketCategory'; Unit,
import type { Unit } from './Unit';
import {
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedFood * @interface PatchedFood
*/ */
@@ -236,15 +226,6 @@ export interface PatchedFood {
openDataSlug?: string | null; openDataSlug?: string | null;
} }
/**
* Check if a given object implements the PatchedFood interface.
*/
export function instanceOfPatchedFood(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedFoodFromJSON(json: any): PatchedFood { export function PatchedFoodFromJSON(json: any): PatchedFood {
return PatchedFoodFromJSONTyped(json, false); return PatchedFoodFromJSONTyped(json, false);
} }
@@ -312,3 +293,4 @@ export function PatchedFoodToJSON(value?: PatchedFood | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import { import {
Keyword,
KeywordFromJSON, KeywordFromJSON,
KeywordFromJSONTyped, KeywordFromJSONTyped,
KeywordToJSON, KeywordToJSON,
} from './Keyword'; } from './';
/** /**
* *
@@ -82,15 +82,6 @@ export interface PatchedImportLog {
readonly createdAt?: Date; readonly createdAt?: Date;
} }
/**
* Check if a given object implements the PatchedImportLog interface.
*/
export function instanceOfPatchedImportLog(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedImportLogFromJSON(json: any): PatchedImportLog { export function PatchedImportLogFromJSON(json: any): PatchedImportLog {
return PatchedImportLogFromJSONTyped(json, false); return PatchedImportLogFromJSONTyped(json, false);
} }
@@ -130,3 +121,4 @@ export function PatchedImportLogToJSON(value?: PatchedImportLog | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import { import {
Food,
FoodFromJSON, FoodFromJSON,
FoodFromJSONTyped, FoodFromJSONTyped,
FoodToJSON, FoodToJSON,
} from './Food'; Unit,
import type { Unit } from './Unit';
import {
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -112,15 +110,6 @@ export interface PatchedIngredient {
alwaysUsePluralFood?: boolean; alwaysUsePluralFood?: boolean;
} }
/**
* Check if a given object implements the PatchedIngredient interface.
*/
export function instanceOfPatchedIngredient(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedIngredientFromJSON(json: any): PatchedIngredient { export function PatchedIngredientFromJSON(json: any): PatchedIngredient {
return PatchedIngredientFromJSONTyped(json, false); return PatchedIngredientFromJSONTyped(json, false);
} }
@@ -169,3 +158,4 @@ export function PatchedIngredientToJSON(value?: PatchedIngredient | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Group } from './Group';
import { import {
Group,
GroupFromJSON, GroupFromJSON,
GroupFromJSONTyped, GroupFromJSONTyped,
GroupToJSON, GroupToJSON,
} from './Group'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -88,15 +88,6 @@ export interface PatchedInviteLink {
readonly createdAt?: Date; readonly createdAt?: Date;
} }
/**
* Check if a given object implements the PatchedInviteLink interface.
*/
export function instanceOfPatchedInviteLink(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedInviteLinkFromJSON(json: any): PatchedInviteLink { export function PatchedInviteLinkFromJSON(json: any): PatchedInviteLink {
return PatchedInviteLinkFromJSONTyped(json, false); return PatchedInviteLinkFromJSONTyped(json, false);
} }
@@ -131,10 +122,11 @@ export function PatchedInviteLinkToJSON(value?: PatchedInviteLink | null): any {
'email': value.email, 'email': value.email,
'group': GroupToJSON(value.group), 'group': GroupToJSON(value.group),
'valid_until': value.validUntil === undefined ? undefined : (value.validUntil.toISOString().substring(0,10)), 'valid_until': value.validUntil === undefined ? undefined : (value.validUntil.toISOString().substr(0,10)),
'used_by': value.usedBy, 'used_by': value.usedBy,
'reusable': value.reusable, 'reusable': value.reusable,
'internal_note': value.internalNote, 'internal_note': value.internalNote,
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedKeyword * @interface PatchedKeyword
*/ */
@@ -109,15 +109,6 @@ export interface PatchedKeyword {
readonly fullName?: string; readonly fullName?: string;
} }
/**
* Check if a given object implements the PatchedKeyword interface.
*/
export function instanceOfPatchedKeyword(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedKeywordFromJSON(json: any): PatchedKeyword { export function PatchedKeywordFromJSON(json: any): PatchedKeyword {
return PatchedKeywordFromJSONTyped(json, false); return PatchedKeywordFromJSONTyped(json, false);
} }
@@ -154,3 +145,4 @@ export function PatchedKeywordToJSON(value?: PatchedKeyword | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,24 +13,20 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { MealType } from './MealType';
import { import {
MealType,
MealTypeFromJSON, MealTypeFromJSON,
MealTypeFromJSONTyped, MealTypeFromJSONTyped,
MealTypeToJSON, MealTypeToJSON,
} from './MealType'; RecipeOverview,
import type { RecipeOverview } from './RecipeOverview';
import {
RecipeOverviewFromJSON, RecipeOverviewFromJSON,
RecipeOverviewFromJSONTyped, RecipeOverviewFromJSONTyped,
RecipeOverviewToJSON, RecipeOverviewToJSON,
} from './RecipeOverview'; User,
import type { User } from './User';
import {
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -124,15 +120,6 @@ export interface PatchedMealPlan {
readonly shopping?: string; readonly shopping?: string;
} }
/**
* Check if a given object implements the PatchedMealPlan interface.
*/
export function instanceOfPatchedMealPlan(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedMealPlanFromJSON(json: any): PatchedMealPlan { export function PatchedMealPlanFromJSON(json: any): PatchedMealPlan {
return PatchedMealPlanFromJSONTyped(json, false); return PatchedMealPlanFromJSONTyped(json, false);
} }
@@ -173,10 +160,11 @@ export function PatchedMealPlanToJSON(value?: PatchedMealPlan | null): any {
'recipe': RecipeOverviewToJSON(value.recipe), 'recipe': RecipeOverviewToJSON(value.recipe),
'servings': value.servings, 'servings': value.servings,
'note': value.note, 'note': value.note,
'from_date': value.fromDate === undefined ? undefined : (value.fromDate.toISOString().substring(0,10)), 'from_date': value.fromDate === undefined ? undefined : (value.fromDate.toISOString().substr(0,10)),
'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substring(0,10)), 'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substr(0,10)),
'meal_type': MealTypeToJSON(value.mealType), 'meal_type': MealTypeToJSON(value.mealType),
'shared': value.shared === undefined ? undefined : (value.shared === null ? null : (value.shared as Array<any>).map(UserToJSON)), 'shared': value.shared === undefined ? undefined : (value.shared === null ? null : (value.shared as Array<any>).map(UserToJSON)),
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -57,15 +57,6 @@ export interface PatchedMealType {
readonly createdBy?: number; readonly createdBy?: number;
} }
/**
* Check if a given object implements the PatchedMealType interface.
*/
export function instanceOfPatchedMealType(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedMealTypeFromJSON(json: any): PatchedMealType { export function PatchedMealTypeFromJSON(json: any): PatchedMealType {
return PatchedMealTypeFromJSONTyped(json, false); return PatchedMealTypeFromJSONTyped(json, false);
} }
@@ -101,3 +92,4 @@ export function PatchedMealTypeToJSON(value?: PatchedMealType | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,49 +13,49 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataVersion } from './OpenDataVersion';
import { import {
OpenDataVersion,
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedOpenDataCategory * @interface PatchedOpenDataCategory
*/ */
@@ -104,15 +104,6 @@ export interface PatchedOpenDataCategory {
readonly createdBy?: string; readonly createdBy?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataCategory interface.
*/
export function instanceOfPatchedOpenDataCategory(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataCategoryFromJSON(json: any): PatchedOpenDataCategory { export function PatchedOpenDataCategoryFromJSON(json: any): PatchedOpenDataCategory {
return PatchedOpenDataCategoryFromJSONTyped(json, false); return PatchedOpenDataCategoryFromJSONTyped(json, false);
} }
@@ -150,3 +141,4 @@ export function PatchedOpenDataCategoryToJSON(value?: PatchedOpenDataCategory |
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,24 +13,20 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataFood } from './OpenDataFood';
import { import {
OpenDataFood,
OpenDataFoodFromJSON, OpenDataFoodFromJSON,
OpenDataFoodFromJSONTyped, OpenDataFoodFromJSONTyped,
OpenDataFoodToJSON, OpenDataFoodToJSON,
} from './OpenDataFood'; OpenDataUnit,
import type { OpenDataUnit } from './OpenDataUnit';
import {
OpenDataUnitFromJSON, OpenDataUnitFromJSON,
OpenDataUnitFromJSONTyped, OpenDataUnitFromJSONTyped,
OpenDataUnitToJSON, OpenDataUnitToJSON,
} from './OpenDataUnit'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -106,15 +102,6 @@ export interface PatchedOpenDataConversion {
readonly createdBy?: string; readonly createdBy?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataConversion interface.
*/
export function instanceOfPatchedOpenDataConversion(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataConversionFromJSON(json: any): PatchedOpenDataConversion { export function PatchedOpenDataConversionFromJSON(json: any): PatchedOpenDataConversion {
return PatchedOpenDataConversionFromJSONTyped(json, false); return PatchedOpenDataConversionFromJSONTyped(json, false);
} }
@@ -160,3 +147,4 @@ export function PatchedOpenDataConversionToJSON(value?: PatchedOpenDataConversio
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,67 +13,61 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataCategory } from './OpenDataCategory';
import { import {
OpenDataCategory,
OpenDataCategoryFromJSON, OpenDataCategoryFromJSON,
OpenDataCategoryFromJSONTyped, OpenDataCategoryFromJSONTyped,
OpenDataCategoryToJSON, OpenDataCategoryToJSON,
} from './OpenDataCategory'; OpenDataFoodProperty,
import type { OpenDataFoodProperty } from './OpenDataFoodProperty';
import {
OpenDataFoodPropertyFromJSON, OpenDataFoodPropertyFromJSON,
OpenDataFoodPropertyFromJSONTyped, OpenDataFoodPropertyFromJSONTyped,
OpenDataFoodPropertyToJSON, OpenDataFoodPropertyToJSON,
} from './OpenDataFoodProperty'; OpenDataUnit,
import type { OpenDataUnit } from './OpenDataUnit';
import {
OpenDataUnitFromJSON, OpenDataUnitFromJSON,
OpenDataUnitFromJSONTyped, OpenDataUnitFromJSONTyped,
OpenDataUnitToJSON, OpenDataUnitToJSON,
} from './OpenDataUnit'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedOpenDataFood * @interface PatchedOpenDataFood
*/ */
@@ -182,15 +176,6 @@ export interface PatchedOpenDataFood {
readonly createdBy?: string; readonly createdBy?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataFood interface.
*/
export function instanceOfPatchedOpenDataFood(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataFoodFromJSON(json: any): PatchedOpenDataFood { export function PatchedOpenDataFoodFromJSON(json: any): PatchedOpenDataFood {
return PatchedOpenDataFoodFromJSONTyped(json, false); return PatchedOpenDataFoodFromJSONTyped(json, false);
} }
@@ -248,3 +233,4 @@ export function PatchedOpenDataFoodToJSON(value?: PatchedOpenDataFood | null): a
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,49 +13,49 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataVersion } from './OpenDataVersion';
import { import {
OpenDataVersion,
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedOpenDataProperty * @interface PatchedOpenDataProperty
*/ */
@@ -110,15 +110,6 @@ export interface PatchedOpenDataProperty {
readonly createdBy?: string; readonly createdBy?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataProperty interface.
*/
export function instanceOfPatchedOpenDataProperty(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataPropertyFromJSON(json: any): PatchedOpenDataProperty { export function PatchedOpenDataPropertyFromJSON(json: any): PatchedOpenDataProperty {
return PatchedOpenDataPropertyFromJSONTyped(json, false); return PatchedOpenDataPropertyFromJSONTyped(json, false);
} }
@@ -158,3 +149,4 @@ export function PatchedOpenDataPropertyToJSON(value?: PatchedOpenDataProperty |
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataStoreCategory } from './OpenDataStoreCategory';
import { import {
OpenDataStoreCategory,
OpenDataStoreCategoryFromJSON, OpenDataStoreCategoryFromJSON,
OpenDataStoreCategoryFromJSONTyped, OpenDataStoreCategoryFromJSONTyped,
OpenDataStoreCategoryToJSON, OpenDataStoreCategoryToJSON,
} from './OpenDataStoreCategory'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -76,15 +74,6 @@ export interface PatchedOpenDataStore {
readonly createdBy?: string; readonly createdBy?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataStore interface.
*/
export function instanceOfPatchedOpenDataStore(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataStoreFromJSON(json: any): PatchedOpenDataStore { export function PatchedOpenDataStoreFromJSON(json: any): PatchedOpenDataStore {
return PatchedOpenDataStoreFromJSONTyped(json, false); return PatchedOpenDataStoreFromJSONTyped(json, false);
} }
@@ -122,3 +111,4 @@ export function PatchedOpenDataStoreToJSON(value?: PatchedOpenDataStore | null):
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,61 +13,61 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { OpenDataUnitBaseUnit } from './OpenDataUnitBaseUnit';
import {
OpenDataUnitBaseUnitFromJSON,
OpenDataUnitBaseUnitFromJSONTyped,
OpenDataUnitBaseUnitToJSON,
} from './OpenDataUnitBaseUnit';
import type { OpenDataUnitTypeEnum } from './OpenDataUnitTypeEnum';
import { import {
BaseUnitEnum,
BaseUnitEnumFromJSON,
BaseUnitEnumFromJSONTyped,
BaseUnitEnumToJSON,
BlankEnum,
BlankEnumFromJSON,
BlankEnumFromJSONTyped,
BlankEnumToJSON,
OpenDataUnitTypeEnum,
OpenDataUnitTypeEnumFromJSON, OpenDataUnitTypeEnumFromJSON,
OpenDataUnitTypeEnumFromJSONTyped, OpenDataUnitTypeEnumFromJSONTyped,
OpenDataUnitTypeEnumToJSON, OpenDataUnitTypeEnumToJSON,
} from './OpenDataUnitTypeEnum'; OpenDataVersion,
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersionFromJSON, OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped, OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON, OpenDataVersionToJSON,
} from './OpenDataVersion'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedOpenDataUnit * @interface PatchedOpenDataUnit
*/ */
@@ -104,10 +104,10 @@ export interface PatchedOpenDataUnit {
pluralName?: string; pluralName?: string;
/** /**
* *
* @type {OpenDataUnitBaseUnit} * @type {BaseUnitEnum | BlankEnum}
* @memberof PatchedOpenDataUnit * @memberof PatchedOpenDataUnit
*/ */
baseUnit?: OpenDataUnitBaseUnit; baseUnit?: BaseUnitEnum | BlankEnum;
/** /**
* *
* @type {OpenDataUnitTypeEnum} * @type {OpenDataUnitTypeEnum}
@@ -128,15 +128,6 @@ export interface PatchedOpenDataUnit {
readonly createdBy?: string; readonly createdBy?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataUnit interface.
*/
export function instanceOfPatchedOpenDataUnit(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataUnitFromJSON(json: any): PatchedOpenDataUnit { export function PatchedOpenDataUnitFromJSON(json: any): PatchedOpenDataUnit {
return PatchedOpenDataUnitFromJSONTyped(json, false); return PatchedOpenDataUnitFromJSONTyped(json, false);
} }
@@ -152,7 +143,7 @@ export function PatchedOpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator:
'slug': !exists(json, 'slug') ? undefined : json['slug'], 'slug': !exists(json, 'slug') ? undefined : json['slug'],
'name': !exists(json, 'name') ? undefined : json['name'], 'name': !exists(json, 'name') ? undefined : json['name'],
'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'], 'pluralName': !exists(json, 'plural_name') ? undefined : json['plural_name'],
'baseUnit': !exists(json, 'base_unit') ? undefined : OpenDataUnitBaseUnitFromJSON(json['base_unit']), 'baseUnit': !exists(json, 'base_unit') ? undefined : BaseUnitEnum | BlankEnumFromJSON(json['base_unit']),
'type': !exists(json, 'type') ? undefined : OpenDataUnitTypeEnumFromJSON(json['type']), 'type': !exists(json, 'type') ? undefined : OpenDataUnitTypeEnumFromJSON(json['type']),
'comment': !exists(json, 'comment') ? undefined : json['comment'], 'comment': !exists(json, 'comment') ? undefined : json['comment'],
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'], 'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
@@ -172,9 +163,10 @@ export function PatchedOpenDataUnitToJSON(value?: PatchedOpenDataUnit | null): a
'slug': value.slug, 'slug': value.slug,
'name': value.name, 'name': value.name,
'plural_name': value.pluralName, 'plural_name': value.pluralName,
'base_unit': OpenDataUnitBaseUnitToJSON(value.baseUnit), 'base_unit': BaseUnitEnum | BlankEnumToJSON(value.baseUnit),
'type': OpenDataUnitTypeEnumToJSON(value.type), 'type': OpenDataUnitTypeEnumToJSON(value.type),
'comment': value.comment, 'comment': value.comment,
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedOpenDataVersion * @interface PatchedOpenDataVersion
*/ */
@@ -79,15 +79,6 @@ export interface PatchedOpenDataVersion {
comment?: string; comment?: string;
} }
/**
* Check if a given object implements the PatchedOpenDataVersion interface.
*/
export function instanceOfPatchedOpenDataVersion(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataVersionFromJSON(json: any): PatchedOpenDataVersion { export function PatchedOpenDataVersionFromJSON(json: any): PatchedOpenDataVersion {
return PatchedOpenDataVersionFromJSONTyped(json, false); return PatchedOpenDataVersionFromJSONTyped(json, false);
} }
@@ -120,3 +111,4 @@ export function PatchedOpenDataVersionToJSON(value?: PatchedOpenDataVersion | nu
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,49 +13,49 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { PropertyType } from './PropertyType';
import { import {
PropertyType,
PropertyTypeFromJSON, PropertyTypeFromJSON,
PropertyTypeFromJSONTyped, PropertyTypeFromJSONTyped,
PropertyTypeToJSON, PropertyTypeToJSON,
} from './PropertyType'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedProperty * @interface PatchedProperty
*/ */
@@ -80,15 +80,6 @@ export interface PatchedProperty {
propertyType?: PropertyType; propertyType?: PropertyType;
} }
/**
* Check if a given object implements the PatchedProperty interface.
*/
export function instanceOfPatchedProperty(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedPropertyFromJSON(json: any): PatchedProperty { export function PatchedPropertyFromJSON(json: any): PatchedProperty {
return PatchedPropertyFromJSONTyped(json, false); return PatchedPropertyFromJSONTyped(json, false);
} }
@@ -119,3 +110,4 @@ export function PatchedPropertyToJSON(value?: PatchedProperty | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -63,15 +63,6 @@ export interface PatchedPropertyType {
fdcId?: number | null; fdcId?: number | null;
} }
/**
* Check if a given object implements the PatchedPropertyType interface.
*/
export function instanceOfPatchedPropertyType(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedPropertyTypeFromJSON(json: any): PatchedPropertyType { export function PatchedPropertyTypeFromJSON(json: any): PatchedPropertyType {
return PatchedPropertyTypeFromJSONTyped(json, false); return PatchedPropertyTypeFromJSONTyped(json, false);
} }
@@ -111,3 +102,4 @@ export function PatchedPropertyTypeToJSON(value?: PatchedPropertyType | null): a
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,36 +13,28 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import { import {
Keyword,
KeywordFromJSON, KeywordFromJSON,
KeywordFromJSONTyped, KeywordFromJSONTyped,
KeywordToJSON, KeywordToJSON,
} from './Keyword'; NutritionInformation,
import type { NutritionInformation } from './NutritionInformation';
import {
NutritionInformationFromJSON, NutritionInformationFromJSON,
NutritionInformationFromJSONTyped, NutritionInformationFromJSONTyped,
NutritionInformationToJSON, NutritionInformationToJSON,
} from './NutritionInformation'; Property,
import type { Property } from './Property';
import {
PropertyFromJSON, PropertyFromJSON,
PropertyFromJSONTyped, PropertyFromJSONTyped,
PropertyToJSON, PropertyToJSON,
} from './Property'; Step,
import type { Step } from './Step';
import {
StepFromJSON, StepFromJSON,
StepFromJSONTyped, StepFromJSONTyped,
StepToJSON, StepToJSON,
} from './Step'; User,
import type { User } from './User';
import {
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -196,15 +188,6 @@ export interface PatchedRecipe {
shared?: Array<User>; shared?: Array<User>;
} }
/**
* Check if a given object implements the PatchedRecipe interface.
*/
export function instanceOfPatchedRecipe(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedRecipeFromJSON(json: any): PatchedRecipe { export function PatchedRecipeFromJSON(json: any): PatchedRecipe {
return PatchedRecipeFromJSONTyped(json, false); return PatchedRecipeFromJSONTyped(json, false);
} }
@@ -270,3 +253,4 @@ export function PatchedRecipeToJSON(value?: PatchedRecipe | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { CustomFilter } from './CustomFilter';
import { import {
CustomFilter,
CustomFilterFromJSON, CustomFilterFromJSON,
CustomFilterFromJSONTyped, CustomFilterFromJSONTyped,
CustomFilterToJSON, CustomFilterToJSON,
} from './CustomFilter'; User,
import type { User } from './User';
import {
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -76,15 +74,6 @@ export interface PatchedRecipeBook {
order?: number; order?: number;
} }
/**
* Check if a given object implements the PatchedRecipeBook interface.
*/
export function instanceOfPatchedRecipeBook(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedRecipeBookFromJSON(json: any): PatchedRecipeBook { export function PatchedRecipeBookFromJSON(json: any): PatchedRecipeBook {
return PatchedRecipeBookFromJSONTyped(json, false); return PatchedRecipeBookFromJSONTyped(json, false);
} }
@@ -122,3 +111,4 @@ export function PatchedRecipeBookToJSON(value?: PatchedRecipeBook | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -51,15 +51,6 @@ export interface PatchedRecipeBookEntry {
readonly recipeContent?: string; readonly recipeContent?: string;
} }
/**
* Check if a given object implements the PatchedRecipeBookEntry interface.
*/
export function instanceOfPatchedRecipeBookEntry(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedRecipeBookEntryFromJSON(json: any): PatchedRecipeBookEntry { export function PatchedRecipeBookEntryFromJSON(json: any): PatchedRecipeBookEntry {
return PatchedRecipeBookEntryFromJSONTyped(json, false); return PatchedRecipeBookEntryFromJSONTyped(json, false);
} }
@@ -92,3 +83,4 @@ export function PatchedRecipeBookEntryToJSON(value?: PatchedRecipeBookEntry | nu
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,30 +13,24 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import { import {
Food,
FoodFromJSON, FoodFromJSON,
FoodFromJSONTyped, FoodFromJSONTyped,
FoodToJSON, FoodToJSON,
} from './Food'; ShoppingListRecipe,
import type { ShoppingListRecipe } from './ShoppingListRecipe';
import {
ShoppingListRecipeFromJSON, ShoppingListRecipeFromJSON,
ShoppingListRecipeFromJSONTyped, ShoppingListRecipeFromJSONTyped,
ShoppingListRecipeToJSON, ShoppingListRecipeToJSON,
} from './ShoppingListRecipe'; Unit,
import type { Unit } from './Unit';
import {
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; User,
import type { User } from './User';
import {
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -124,15 +118,6 @@ export interface PatchedShoppingListEntry {
delayUntil?: Date | null; delayUntil?: Date | null;
} }
/**
* Check if a given object implements the PatchedShoppingListEntry interface.
*/
export function instanceOfPatchedShoppingListEntry(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedShoppingListEntryFromJSON(json: any): PatchedShoppingListEntry { export function PatchedShoppingListEntryFromJSON(json: any): PatchedShoppingListEntry {
return PatchedShoppingListEntryFromJSONTyped(json, false); return PatchedShoppingListEntryFromJSONTyped(json, false);
} }
@@ -179,3 +164,4 @@ export function PatchedShoppingListEntryToJSON(value?: PatchedShoppingListEntry
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -75,15 +75,6 @@ export interface PatchedShoppingListRecipe {
readonly mealplanType?: string; readonly mealplanType?: string;
} }
/**
* Check if a given object implements the PatchedShoppingListRecipe interface.
*/
export function instanceOfPatchedShoppingListRecipe(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedShoppingListRecipeFromJSON(json: any): PatchedShoppingListRecipe { export function PatchedShoppingListRecipeFromJSON(json: any): PatchedShoppingListRecipe {
return PatchedShoppingListRecipeFromJSONTyped(json, false); return PatchedShoppingListRecipeFromJSONTyped(json, false);
} }
@@ -121,3 +112,4 @@ export function PatchedShoppingListRecipeToJSON(value?: PatchedShoppingListRecip
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,30 +13,24 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { FoodInheritField } from './FoodInheritField';
import { import {
FoodInheritField,
FoodInheritFieldFromJSON, FoodInheritFieldFromJSON,
FoodInheritFieldFromJSONTyped, FoodInheritFieldFromJSONTyped,
FoodInheritFieldToJSON, FoodInheritFieldToJSON,
} from './FoodInheritField'; SpaceNavTextColorEnum,
import type { SpaceNavTextColorEnum } from './SpaceNavTextColorEnum';
import {
SpaceNavTextColorEnumFromJSON, SpaceNavTextColorEnumFromJSON,
SpaceNavTextColorEnumFromJSONTyped, SpaceNavTextColorEnumFromJSONTyped,
SpaceNavTextColorEnumToJSON, SpaceNavTextColorEnumToJSON,
} from './SpaceNavTextColorEnum'; SpaceThemeEnum,
import type { SpaceThemeEnum } from './SpaceThemeEnum';
import {
SpaceThemeEnumFromJSON, SpaceThemeEnumFromJSON,
SpaceThemeEnumFromJSONTyped, SpaceThemeEnumFromJSONTyped,
SpaceThemeEnumToJSON, SpaceThemeEnumToJSON,
} from './SpaceThemeEnum'; UserFileView,
import type { UserFileView } from './UserFileView';
import {
UserFileViewFromJSON, UserFileViewFromJSON,
UserFileViewFromJSONTyped, UserFileViewFromJSONTyped,
UserFileViewToJSON, UserFileViewToJSON,
} from './UserFileView'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -208,15 +202,6 @@ export interface PatchedSpace {
logoColorSvg?: UserFileView | null; logoColorSvg?: UserFileView | null;
} }
/**
* Check if a given object implements the PatchedSpace interface.
*/
export function instanceOfPatchedSpace(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedSpaceFromJSON(json: any): PatchedSpace { export function PatchedSpaceFromJSON(json: any): PatchedSpace {
return PatchedSpaceFromJSONTyped(json, false); return PatchedSpaceFromJSONTyped(json, false);
} }
@@ -285,3 +270,4 @@ export function PatchedSpaceToJSON(value?: PatchedSpace | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Ingredient } from './Ingredient';
import { import {
Ingredient,
IngredientFromJSON, IngredientFromJSON,
IngredientFromJSONTyped, IngredientFromJSONTyped,
IngredientToJSON, IngredientToJSON,
} from './Ingredient'; UserFileView,
import type { UserFileView } from './UserFileView';
import {
UserFileViewFromJSON, UserFileViewFromJSON,
UserFileViewFromJSONTyped, UserFileViewFromJSONTyped,
UserFileViewToJSON, UserFileViewToJSON,
} from './UserFileView'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -112,15 +110,6 @@ export interface PatchedStep {
showIngredientsTable?: boolean; showIngredientsTable?: boolean;
} }
/**
* Check if a given object implements the PatchedStep interface.
*/
export function instanceOfPatchedStep(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedStepFromJSON(json: any): PatchedStep { export function PatchedStepFromJSON(json: any): PatchedStep {
return PatchedStepFromJSONTyped(json, false); return PatchedStepFromJSONTyped(json, false);
} }
@@ -168,3 +157,4 @@ export function PatchedStepToJSON(value?: PatchedStep | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { MethodEnum } from './MethodEnum';
import { import {
MethodEnum,
MethodEnumFromJSON, MethodEnumFromJSON,
MethodEnumFromJSONTyped, MethodEnumFromJSONTyped,
MethodEnumToJSON, MethodEnumToJSON,
} from './MethodEnum'; } from './';
/** /**
* *
@@ -70,15 +70,6 @@ export interface PatchedStorage {
readonly createdBy?: number; readonly createdBy?: number;
} }
/**
* Check if a given object implements the PatchedStorage interface.
*/
export function instanceOfPatchedStorage(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedStorageFromJSON(json: any): PatchedStorage { export function PatchedStorageFromJSON(json: any): PatchedStorage {
return PatchedStorageFromJSONTyped(json, false); return PatchedStorageFromJSONTyped(json, false);
} }
@@ -116,3 +107,4 @@ export function PatchedStorageToJSON(value?: PatchedStorage | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,49 +13,49 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { SupermarketCategoryRelation } from './SupermarketCategoryRelation';
import { import {
SupermarketCategoryRelation,
SupermarketCategoryRelationFromJSON, SupermarketCategoryRelationFromJSON,
SupermarketCategoryRelationFromJSONTyped, SupermarketCategoryRelationFromJSONTyped,
SupermarketCategoryRelationToJSON, SupermarketCategoryRelationToJSON,
} from './SupermarketCategoryRelation'; } from './';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedSupermarket * @interface PatchedSupermarket
*/ */
@@ -92,15 +92,6 @@ export interface PatchedSupermarket {
openDataSlug?: string | null; openDataSlug?: string | null;
} }
/**
* Check if a given object implements the PatchedSupermarket interface.
*/
export function instanceOfPatchedSupermarket(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedSupermarketFromJSON(json: any): PatchedSupermarket { export function PatchedSupermarketFromJSON(json: any): PatchedSupermarket {
return PatchedSupermarketFromJSONTyped(json, false); return PatchedSupermarketFromJSONTyped(json, false);
} }
@@ -134,3 +125,4 @@ export function PatchedSupermarketToJSON(value?: PatchedSupermarket | null): any
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedSupermarketCategory * @interface PatchedSupermarketCategory
*/ */
@@ -73,15 +73,6 @@ export interface PatchedSupermarketCategory {
description?: string | null; description?: string | null;
} }
/**
* Check if a given object implements the PatchedSupermarketCategory interface.
*/
export function instanceOfPatchedSupermarketCategory(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedSupermarketCategoryFromJSON(json: any): PatchedSupermarketCategory { export function PatchedSupermarketCategoryFromJSON(json: any): PatchedSupermarketCategory {
return PatchedSupermarketCategoryFromJSONTyped(json, false); return PatchedSupermarketCategoryFromJSONTyped(json, false);
} }
@@ -112,3 +103,4 @@ export function PatchedSupermarketCategoryToJSON(value?: PatchedSupermarketCateg
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,12 +13,12 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { SupermarketCategory } from './SupermarketCategory';
import { import {
SupermarketCategory,
SupermarketCategoryFromJSON, SupermarketCategoryFromJSON,
SupermarketCategoryFromJSONTyped, SupermarketCategoryFromJSONTyped,
SupermarketCategoryToJSON, SupermarketCategoryToJSON,
} from './SupermarketCategory'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -52,15 +52,6 @@ export interface PatchedSupermarketCategoryRelation {
order?: number; order?: number;
} }
/**
* Check if a given object implements the PatchedSupermarketCategoryRelation interface.
*/
export function instanceOfPatchedSupermarketCategoryRelation(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedSupermarketCategoryRelationFromJSON(json: any): PatchedSupermarketCategoryRelation { export function PatchedSupermarketCategoryRelationFromJSON(json: any): PatchedSupermarketCategoryRelation {
return PatchedSupermarketCategoryRelationFromJSONTyped(json, false); return PatchedSupermarketCategoryRelationFromJSONTyped(json, false);
} }
@@ -93,3 +84,4 @@ export function PatchedSupermarketCategoryRelationToJSON(value?: PatchedSupermar
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -63,15 +63,6 @@ export interface PatchedSync {
readonly updatedAt?: Date; readonly updatedAt?: Date;
} }
/**
* Check if a given object implements the PatchedSync interface.
*/
export function instanceOfPatchedSync(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedSyncFromJSON(json: any): PatchedSync { export function PatchedSyncFromJSON(json: any): PatchedSync {
return PatchedSyncFromJSONTyped(json, false); return PatchedSyncFromJSONTyped(json, false);
} }
@@ -108,3 +99,4 @@ export function PatchedSyncToJSON(value?: PatchedSync | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -15,40 +15,40 @@
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
/** /**
* Moves `UniqueValidator`'s from the validation stage to the save stage. * Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update. It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles: If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1 https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage: Example of usage:
* ``` ```
* class Child(models.Model): class Child(models.Model):
* field = models.CharField(unique=True) field = models.CharField(unique=True)
*
*
* class Parent(models.Model): class Parent(models.Model):
* child = models.ForeignKey('Child') child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta: class Meta:
* model = Child model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer() child = ChildSerializer()
*
* class Meta: class Meta:
* model = Parent model = Parent
* ``` ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields. which has unique fields.
*
* Note: When you are using both mixins Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead. you should put `UniqueFieldsMixin` ahead.
* @export * @export
* @interface PatchedUnit * @interface PatchedUnit
*/ */
@@ -91,15 +91,6 @@ export interface PatchedUnit {
openDataSlug?: string | null; openDataSlug?: string | null;
} }
/**
* Check if a given object implements the PatchedUnit interface.
*/
export function instanceOfPatchedUnit(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedUnitFromJSON(json: any): PatchedUnit { export function PatchedUnitFromJSON(json: any): PatchedUnit {
return PatchedUnitFromJSONTyped(json, false); return PatchedUnitFromJSONTyped(json, false);
} }
@@ -136,3 +127,4 @@ export function PatchedUnitToJSON(value?: PatchedUnit | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,18 +13,16 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import { import {
Food,
FoodFromJSON, FoodFromJSON,
FoodFromJSONTyped, FoodFromJSONTyped,
FoodToJSON, FoodToJSON,
} from './Food'; Unit,
import type { Unit } from './Unit';
import {
UnitFromJSON, UnitFromJSON,
UnitFromJSONTyped, UnitFromJSONTyped,
UnitToJSON, UnitToJSON,
} from './Unit'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -82,15 +80,6 @@ export interface PatchedUnitConversion {
openDataSlug?: string | null; openDataSlug?: string | null;
} }
/**
* Check if a given object implements the PatchedUnitConversion interface.
*/
export function instanceOfPatchedUnitConversion(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedUnitConversionFromJSON(json: any): PatchedUnitConversion { export function PatchedUnitConversionFromJSON(json: any): PatchedUnitConversion {
return PatchedUnitConversionFromJSONTyped(json, false); return PatchedUnitConversionFromJSONTyped(json, false);
} }
@@ -130,3 +119,4 @@ export function PatchedUnitConversionToJSON(value?: PatchedUnitConversion | null
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -51,15 +51,6 @@ export interface PatchedUser {
readonly displayName?: string; readonly displayName?: string;
} }
/**
* Check if a given object implements the PatchedUser interface.
*/
export function instanceOfPatchedUser(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedUserFromJSON(json: any): PatchedUser { export function PatchedUserFromJSON(json: any): PatchedUser {
return PatchedUserFromJSONTyped(json, false); return PatchedUserFromJSONTyped(json, false);
} }
@@ -92,3 +83,4 @@ export function PatchedUserToJSON(value?: PatchedUser | null): any {
}; };
} }

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -13,36 +13,28 @@
*/ */
import { exists, mapValues } from '../runtime'; import { exists, mapValues } from '../runtime';
import type { DefaultPageEnum } from './DefaultPageEnum';
import { import {
DefaultPageEnum,
DefaultPageEnumFromJSON, DefaultPageEnumFromJSON,
DefaultPageEnumFromJSONTyped, DefaultPageEnumFromJSONTyped,
DefaultPageEnumToJSON, DefaultPageEnumToJSON,
} from './DefaultPageEnum'; ThemeEnum,
import type { ThemeEnum } from './ThemeEnum';
import {
ThemeEnumFromJSON, ThemeEnumFromJSON,
ThemeEnumFromJSONTyped, ThemeEnumFromJSONTyped,
ThemeEnumToJSON, ThemeEnumToJSON,
} from './ThemeEnum'; User,
import type { User } from './User';
import {
UserFromJSON, UserFromJSON,
UserFromJSONTyped, UserFromJSONTyped,
UserToJSON, UserToJSON,
} from './User'; UserFileView,
import type { UserFileView } from './UserFileView';
import {
UserFileViewFromJSON, UserFileViewFromJSON,
UserFileViewFromJSONTyped, UserFileViewFromJSONTyped,
UserFileViewToJSON, UserFileViewToJSON,
} from './UserFileView'; UserPreferenceNavTextColorEnum,
import type { UserPreferenceNavTextColorEnum } from './UserPreferenceNavTextColorEnum';
import {
UserPreferenceNavTextColorEnumFromJSON, UserPreferenceNavTextColorEnumFromJSON,
UserPreferenceNavTextColorEnumFromJSONTyped, UserPreferenceNavTextColorEnumFromJSONTyped,
UserPreferenceNavTextColorEnumToJSON, UserPreferenceNavTextColorEnumToJSON,
} from './UserPreferenceNavTextColorEnum'; } from './';
/** /**
* Adds nested create feature * Adds nested create feature
@@ -154,10 +146,10 @@ export interface PatchedUserPreference {
readonly foodInheritDefault?: string; readonly foodInheritDefault?: string;
/** /**
* *
* @type {string} * @type {number}
* @memberof PatchedUserPreference * @memberof PatchedUserPreference
*/ */
defaultDelay?: string; defaultDelay?: number;
/** /**
* *
* @type {boolean} * @type {boolean}
@@ -226,15 +218,6 @@ export interface PatchedUserPreference {
readonly foodChildrenExist?: string; readonly foodChildrenExist?: string;
} }
/**
* Check if a given object implements the PatchedUserPreference interface.
*/
export function instanceOfPatchedUserPreference(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedUserPreferenceFromJSON(json: any): PatchedUserPreference { export function PatchedUserPreferenceFromJSON(json: any): PatchedUserPreference {
return PatchedUserPreferenceFromJSONTyped(json, false); return PatchedUserPreferenceFromJSONTyped(json, false);
} }
@@ -316,3 +299,4 @@ export function PatchedUserPreferenceToJSON(value?: PatchedUserPreference | null
}; };
} }

Some files were not shown because too many files have changed in this diff Show More