This commit is contained in:
vabene1111
2024-03-05 17:16:07 +01:00
committed by smilerz
parent 86652a8f1f
commit 40d460b458
138 changed files with 4367 additions and 3934 deletions

View File

@@ -299,6 +299,13 @@ REST_FRAMEWORK = {
),
'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated', ],
'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'

View File

@@ -1,7 +1,9 @@
<template>
<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">
<!-- TODO placement in image -->
@@ -27,9 +29,9 @@
<div class="text-grey">Waiting Time</div>
</v-col>
<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>
<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>
</template>
</NumberScalerDialog>
@@ -46,7 +48,7 @@
<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>
<!-- <RecipeActivity :recipe="recipe"></RecipeActivity>-->
@@ -68,9 +70,22 @@ import RecipeContextMenu from "@/components/inputs/RecipeContextMenu.vue";
export default defineComponent({
name: "RecipeView",
components: {RecipeContextMenu, RecipeActivity, Step, StepsOverview, IngredientsTable, NumberScalerDialog, KeywordsBar},
computed: {},
computed: {
ingredient_factor: function () {
return this.servings / this.recipe.servings
},
},
data() {
return {}
return {
servings: 1,
}
},
watch: {
'recipe.servings': function () {
if (this.recipe.servings){
this.servings = this.recipe.servings
}
}
},
props: {
recipe: {

View File

@@ -20,7 +20,7 @@
<IngredientsTable :ingredients="step.ingredients"></IngredientsTable>
<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>
</template>
@@ -66,7 +66,11 @@ export default defineComponent({
step: {
type: {} as PropType<Step>,
required: true,
}
},
ingredient_factor: {
type: Number,
required: true,
},
},
data() {
return {

View File

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

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -14,13 +14,11 @@
import * as runtime from '../runtime';
import type {
AuthToken,
} from '../models/index';
import {
AuthToken,
AuthTokenFromJSON,
AuthTokenToJSON,
} from '../models/index';
} from '../models';
export interface ApiTokenAuthCreateRequest {
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) {
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,
query: queryParameters,
body: formParams,
}, initOverrides);
});
return new runtime.JSONApiResponse(response, (jsonValue) => AuthTokenFromJSON(jsonValue));
}
/**
*/
async apiTokenAuthCreate(requestParameters: ApiTokenAuthCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthToken> {
const response = await this.apiTokenAuthCreateRaw(requestParameters, initOverrides);
async apiTokenAuthCreate(requestParameters: ApiTokenAuthCreateRequest): Promise<AuthToken> {
const response = await this.apiTokenAuthCreateRaw(requestParameters);
return await response.value();
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -57,20 +57,6 @@ export interface AccessToken {
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 {
return AccessTokenFromJSONTyped(json, false);
}
@@ -104,3 +90,4 @@ export function AccessTokenToJSON(value?: AccessToken | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -39,18 +39,6 @@ export interface AuthToken {
readonly token: string;
}
/**
* Check if a given object implements the AuthToken interface.
*/
export function instanceOfAuthToken(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "username" in value;
isInstance = isInstance && "password" in value;
isInstance = isInstance && "token" in value;
return isInstance;
}
export function AuthTokenFromJSON(json: any): AuthToken {
return AuthTokenFromJSONTyped(json, false);
}
@@ -81,3 +69,4 @@ export function AuthTokenToJSON(value?: AuthToken | null): any {
};
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -51,19 +51,6 @@ export interface BookmarkletImport {
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 {
return BookmarkletImportFromJSONTyped(json, false);
}
@@ -96,3 +83,4 @@ export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -45,18 +45,6 @@ export interface BookmarkletImportList {
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 {
return BookmarkletImportListFromJSONTyped(json, false);
}
@@ -87,3 +75,4 @@ export function BookmarkletImportListToJSON(value?: BookmarkletImportList | null
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -81,18 +81,6 @@ export interface ConnectorConfigConfig {
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 {
return ConnectorConfigConfigFromJSONTyped(json, false);
}
@@ -136,3 +124,4 @@ export function ConnectorConfigConfigToJSON(value?: ConnectorConfigConfig | null
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
*
@@ -76,19 +76,6 @@ export interface CookLog {
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 {
return CookLogFromJSONTyped(json, false);
}
@@ -127,3 +114,4 @@ export function CookLogToJSON(value?: CookLog | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
* Adds nested create feature
@@ -58,19 +58,6 @@ export interface CustomFilter {
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 {
return CustomFilterFromJSONTyped(json, false);
}
@@ -104,3 +91,4 @@ export function CustomFilterToJSON(value?: CustomFilter | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -81,19 +81,6 @@ export interface ExportLog {
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 {
return ExportLogFromJSONTyped(json, false);
}
@@ -136,3 +123,4 @@ export function ExportLogToJSON(value?: ExportLog | null): any {
};
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -39,17 +39,6 @@ export interface FoodSimple {
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 {
return FoodSimpleFromJSONTyped(json, false);
}
@@ -80,3 +69,4 @@ export function FoodSimpleToJSON(value?: FoodSimple | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import {
Keyword,
KeywordFromJSON,
KeywordFromJSONTyped,
KeywordToJSON,
} from './Keyword';
} from './';
/**
*
@@ -82,20 +82,6 @@ export interface ImportLog {
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 {
return ImportLogFromJSONTyped(json, false);
}
@@ -135,3 +121,4 @@ export function ImportLogToJSON(value?: ImportLog | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,18 +13,16 @@
*/
import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import {
Food,
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
import type { Unit } from './Unit';
import {
Unit,
UnitFromJSON,
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
} from './';
/**
* Adds nested create feature
@@ -112,21 +110,6 @@ export interface Ingredient {
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 {
return IngredientFromJSONTyped(json, false);
}
@@ -175,3 +158,4 @@ export function IngredientToJSON(value?: Ingredient | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Group } from './Group';
import {
Group,
GroupFromJSON,
GroupFromJSONTyped,
GroupToJSON,
} from './Group';
} from './';
/**
* Adds nested create feature
@@ -88,20 +88,6 @@ export interface InviteLink {
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 {
return InviteLinkFromJSONTyped(json, false);
}
@@ -136,10 +122,11 @@ export function InviteLinkToJSON(value?: InviteLink | null): any {
'email': value.email,
'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,
'reusable': value.reusable,
'internal_note': value.internalNote,
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -33,17 +33,6 @@ export interface KeywordLabel {
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 {
return KeywordLabelFromJSONTyped(json, false);
}
@@ -71,3 +60,4 @@ export function KeywordLabelToJSON(value?: KeywordLabel | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -57,18 +57,6 @@ export interface MealType {
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 {
return MealTypeFromJSONTyped(json, false);
}
@@ -104,3 +92,4 @@ export function MealTypeToJSON(value?: MealType | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -57,20 +57,6 @@ export interface NutritionInformation {
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 {
return NutritionInformationFromJSONTyped(json, false);
}
@@ -107,3 +93,4 @@ export function NutritionInformationToJSON(value?: NutritionInformation | null):
};
}

View File

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

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { OpenDataProperty } from './OpenDataProperty';
import {
OpenDataProperty,
OpenDataPropertyFromJSON,
OpenDataPropertyFromJSONTyped,
OpenDataPropertyToJSON,
} from './OpenDataProperty';
} from './';
/**
* Adds nested create feature
@@ -46,18 +46,6 @@ export interface OpenDataFoodProperty {
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 {
return OpenDataFoodPropertyFromJSONTyped(json, false);
}
@@ -88,3 +76,4 @@ export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null):
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,18 +13,16 @@
*/
import { exists, mapValues } from '../runtime';
import type { OpenDataStoreCategory } from './OpenDataStoreCategory';
import {
OpenDataStoreCategory,
OpenDataStoreCategoryFromJSON,
OpenDataStoreCategoryFromJSONTyped,
OpenDataStoreCategoryToJSON,
} from './OpenDataStoreCategory';
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersion,
OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON,
} from './OpenDataVersion';
} from './';
/**
* Adds nested create feature
@@ -76,21 +74,6 @@ export interface OpenDataStore {
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 {
return OpenDataStoreFromJSONTyped(json, false);
}
@@ -128,3 +111,4 @@ export function OpenDataStoreToJSON(value?: OpenDataStore | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { OpenDataCategory } from './OpenDataCategory';
import {
OpenDataCategory,
OpenDataCategoryFromJSON,
OpenDataCategoryFromJSONTyped,
OpenDataCategoryToJSON,
} from './OpenDataCategory';
} from './';
/**
* Adds nested create feature
@@ -52,18 +52,6 @@ export interface OpenDataStoreCategory {
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 {
return OpenDataStoreCategoryFromJSONTyped(json, false);
}
@@ -96,3 +84,4 @@ export function OpenDataStoreCategoryToJSON(value?: OpenDataStoreCategory | null
};
}

View File

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

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Automation } from './Automation';
import {
Automation,
AutomationFromJSON,
AutomationFromJSONTyped,
AutomationToJSON,
} from './Automation';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedAutomationList {
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 {
return PaginatedAutomationListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList |
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { CookLog } from './CookLog';
import {
CookLog,
CookLogFromJSON,
CookLogFromJSONTyped,
CookLogToJSON,
} from './CookLog';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedCookLogList {
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 {
return PaginatedCookLogListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedCookLogListToJSON(value?: PaginatedCookLogList | null):
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { CustomFilter } from './CustomFilter';
import {
CustomFilter,
CustomFilterFromJSON,
CustomFilterFromJSONTyped,
CustomFilterToJSON,
} from './CustomFilter';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedCustomFilterList {
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 {
return PaginatedCustomFilterListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedCustomFilterListToJSON(value?: PaginatedCustomFilterLis
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { ExportLog } from './ExportLog';
import {
ExportLog,
ExportLogFromJSON,
ExportLogFromJSONTyped,
ExportLogToJSON,
} from './ExportLog';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedExportLogList {
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 {
return PaginatedExportLogListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | nu
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { ImportLog } from './ImportLog';
import {
ImportLog,
ImportLogFromJSON,
ImportLogFromJSONTyped,
ImportLogToJSON,
} from './ImportLog';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedImportLogList {
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 {
return PaginatedImportLogListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | nu
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Ingredient } from './Ingredient';
import {
Ingredient,
IngredientFromJSON,
IngredientFromJSONTyped,
IngredientToJSON,
} from './Ingredient';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedIngredientList {
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 {
return PaginatedIngredientListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList |
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import {
Keyword,
KeywordFromJSON,
KeywordFromJSONTyped,
KeywordToJSON,
} from './Keyword';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedKeywordList {
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 {
return PaginatedKeywordListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null):
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { RecipeOverview } from './RecipeOverview';
import {
RecipeOverview,
RecipeOverviewFromJSON,
RecipeOverviewFromJSONTyped,
RecipeOverviewToJSON,
} from './RecipeOverview';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedRecipeOverviewList {
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 {
return PaginatedRecipeOverviewListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedRecipeOverviewListToJSON(value?: PaginatedRecipeOvervie
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { SupermarketCategoryRelation } from './SupermarketCategoryRelation';
import {
SupermarketCategoryRelation,
SupermarketCategoryRelationFromJSON,
SupermarketCategoryRelationFromJSONTyped,
SupermarketCategoryRelationToJSON,
} from './SupermarketCategoryRelation';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedSupermarketCategoryRelationList {
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 {
return PaginatedSupermarketCategoryRelationListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedSupermarketCategoryRelationListToJSON(value?: Paginated
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { SyncLog } from './SyncLog';
import {
SyncLog,
SyncLogFromJSON,
SyncLogFromJSONTyped,
SyncLogToJSON,
} from './SyncLog';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedSyncLogList {
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 {
return PaginatedSyncLogListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedSyncLogListToJSON(value?: PaginatedSyncLogList | null):
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { UserSpace } from './UserSpace';
import {
UserSpace,
UserSpaceFromJSON,
UserSpaceFromJSONTyped,
UserSpaceToJSON,
} from './UserSpace';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedUserSpaceList {
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 {
return PaginatedUserSpaceListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedUserSpaceListToJSON(value?: PaginatedUserSpaceList | nu
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { ViewLog } from './ViewLog';
import {
ViewLog,
ViewLogFromJSON,
ViewLogFromJSONTyped,
ViewLogToJSON,
} from './ViewLog';
} from './';
/**
*
@@ -52,15 +52,6 @@ export interface PaginatedViewLogList {
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 {
return PaginatedViewLogListFromJSONTyped(json, false);
}
@@ -94,3 +85,4 @@ export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null):
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -57,15 +57,6 @@ export interface PatchedAccessToken {
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 {
return PatchedAccessTokenFromJSONTyped(json, false);
}
@@ -99,3 +90,4 @@ export function PatchedAccessTokenToJSON(value?: PatchedAccessToken | null): any
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -51,15 +51,6 @@ export interface PatchedBookmarkletImport {
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 {
return PatchedBookmarkletImportFromJSONTyped(json, false);
}
@@ -92,3 +83,4 @@ export function PatchedBookmarkletImportToJSON(value?: PatchedBookmarkletImport
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -81,15 +81,6 @@ export interface PatchedConnectorConfigConfig {
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 {
return PatchedConnectorConfigConfigFromJSONTyped(json, false);
}
@@ -133,3 +124,4 @@ export function PatchedConnectorConfigConfigToJSON(value?: PatchedConnectorConfi
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
*
@@ -76,15 +76,6 @@ export interface PatchedCookLog {
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 {
return PatchedCookLogFromJSONTyped(json, false);
}
@@ -123,3 +114,4 @@ export function PatchedCookLogToJSON(value?: PatchedCookLog | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
* Adds nested create feature
@@ -58,15 +58,6 @@ export interface PatchedCustomFilter {
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 {
return PatchedCustomFilterFromJSONTyped(json, false);
}
@@ -100,3 +91,4 @@ export function PatchedCustomFilterToJSON(value?: PatchedCustomFilter | null): a
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -81,15 +81,6 @@ export interface PatchedExportLog {
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 {
return PatchedExportLogFromJSONTyped(json, false);
}
@@ -132,3 +123,4 @@ export function PatchedExportLogToJSON(value?: PatchedExportLog | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import {
Keyword,
KeywordFromJSON,
KeywordFromJSONTyped,
KeywordToJSON,
} from './Keyword';
} from './';
/**
*
@@ -82,15 +82,6 @@ export interface PatchedImportLog {
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 {
return PatchedImportLogFromJSONTyped(json, false);
}
@@ -130,3 +121,4 @@ export function PatchedImportLogToJSON(value?: PatchedImportLog | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { Group } from './Group';
import {
Group,
GroupFromJSON,
GroupFromJSONTyped,
GroupToJSON,
} from './Group';
} from './';
/**
* Adds nested create feature
@@ -88,15 +88,6 @@ export interface PatchedInviteLink {
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 {
return PatchedInviteLinkFromJSONTyped(json, false);
}
@@ -131,10 +122,11 @@ export function PatchedInviteLinkToJSON(value?: PatchedInviteLink | null): any {
'email': value.email,
'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,
'reusable': value.reusable,
'internal_note': value.internalNote,
};
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -57,15 +57,6 @@ export interface PatchedMealType {
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 {
return PatchedMealTypeFromJSONTyped(json, false);
}
@@ -101,3 +92,4 @@ export function PatchedMealTypeToJSON(value?: PatchedMealType | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,24 +13,20 @@
*/
import { exists, mapValues } from '../runtime';
import type { OpenDataFood } from './OpenDataFood';
import {
OpenDataFood,
OpenDataFoodFromJSON,
OpenDataFoodFromJSONTyped,
OpenDataFoodToJSON,
} from './OpenDataFood';
import type { OpenDataUnit } from './OpenDataUnit';
import {
OpenDataUnit,
OpenDataUnitFromJSON,
OpenDataUnitFromJSONTyped,
OpenDataUnitToJSON,
} from './OpenDataUnit';
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersion,
OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON,
} from './OpenDataVersion';
} from './';
/**
* Adds nested create feature
@@ -106,15 +102,6 @@ export interface PatchedOpenDataConversion {
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 {
return PatchedOpenDataConversionFromJSONTyped(json, false);
}
@@ -160,3 +147,4 @@ export function PatchedOpenDataConversionToJSON(value?: PatchedOpenDataConversio
};
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,18 +13,16 @@
*/
import { exists, mapValues } from '../runtime';
import type { OpenDataStoreCategory } from './OpenDataStoreCategory';
import {
OpenDataStoreCategory,
OpenDataStoreCategoryFromJSON,
OpenDataStoreCategoryFromJSONTyped,
OpenDataStoreCategoryToJSON,
} from './OpenDataStoreCategory';
import type { OpenDataVersion } from './OpenDataVersion';
import {
OpenDataVersion,
OpenDataVersionFromJSON,
OpenDataVersionFromJSONTyped,
OpenDataVersionToJSON,
} from './OpenDataVersion';
} from './';
/**
* Adds nested create feature
@@ -76,15 +74,6 @@ export interface PatchedOpenDataStore {
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 {
return PatchedOpenDataStoreFromJSONTyped(json, false);
}
@@ -122,3 +111,4 @@ export function PatchedOpenDataStoreToJSON(value?: PatchedOpenDataStore | null):
};
}

View File

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

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -63,15 +63,6 @@ export interface PatchedPropertyType {
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 {
return PatchedPropertyTypeFromJSONTyped(json, false);
}
@@ -111,3 +102,4 @@ export function PatchedPropertyTypeToJSON(value?: PatchedPropertyType | null): a
};
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -51,15 +51,6 @@ export interface PatchedRecipeBookEntry {
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 {
return PatchedRecipeBookEntryFromJSONTyped(json, false);
}
@@ -92,3 +83,4 @@ export function PatchedRecipeBookEntryToJSON(value?: PatchedRecipeBookEntry | nu
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,30 +13,24 @@
*/
import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import {
Food,
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
import type { ShoppingListRecipe } from './ShoppingListRecipe';
import {
ShoppingListRecipe,
ShoppingListRecipeFromJSON,
ShoppingListRecipeFromJSONTyped,
ShoppingListRecipeToJSON,
} from './ShoppingListRecipe';
import type { Unit } from './Unit';
import {
Unit,
UnitFromJSON,
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
* Adds nested create feature
@@ -124,15 +118,6 @@ export interface PatchedShoppingListEntry {
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 {
return PatchedShoppingListEntryFromJSONTyped(json, false);
}
@@ -179,3 +164,4 @@ export function PatchedShoppingListEntryToJSON(value?: PatchedShoppingListEntry
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -75,15 +75,6 @@ export interface PatchedShoppingListRecipe {
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 {
return PatchedShoppingListRecipeFromJSONTyped(json, false);
}
@@ -121,3 +112,4 @@ export function PatchedShoppingListRecipeToJSON(value?: PatchedShoppingListRecip
};
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { MethodEnum } from './MethodEnum';
import {
MethodEnum,
MethodEnumFromJSON,
MethodEnumFromJSONTyped,
MethodEnumToJSON,
} from './MethodEnum';
} from './';
/**
*
@@ -70,15 +70,6 @@ export interface PatchedStorage {
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 {
return PatchedStorageFromJSONTyped(json, false);
}
@@ -116,3 +107,4 @@ export function PatchedStorageToJSON(value?: PatchedStorage | null): any {
};
}

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { SupermarketCategory } from './SupermarketCategory';
import {
SupermarketCategory,
SupermarketCategoryFromJSON,
SupermarketCategoryFromJSONTyped,
SupermarketCategoryToJSON,
} from './SupermarketCategory';
} from './';
/**
* Adds nested create feature
@@ -52,15 +52,6 @@ export interface PatchedSupermarketCategoryRelation {
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 {
return PatchedSupermarketCategoryRelationFromJSONTyped(json, false);
}
@@ -93,3 +84,4 @@ export function PatchedSupermarketCategoryRelationToJSON(value?: PatchedSupermar
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -63,15 +63,6 @@ export interface PatchedSync {
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 {
return PatchedSyncFromJSONTyped(json, false);
}
@@ -108,3 +99,4 @@ export function PatchedSyncToJSON(value?: PatchedSync | null): any {
};
}

View File

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

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,18 +13,16 @@
*/
import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import {
Food,
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
import type { Unit } from './Unit';
import {
Unit,
UnitFromJSON,
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
} from './';
/**
* Adds nested create feature
@@ -82,15 +80,6 @@ export interface PatchedUnitConversion {
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 {
return PatchedUnitConversionFromJSONTyped(json, false);
}
@@ -130,3 +119,4 @@ export function PatchedUnitConversionToJSON(value?: PatchedUnitConversion | null
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -51,15 +51,6 @@ export interface PatchedUser {
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 {
return PatchedUserFromJSONTyped(json, false);
}
@@ -92,3 +83,4 @@ export function PatchedUserToJSON(value?: PatchedUser | null): any {
};
}

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,36 +13,28 @@
*/
import { exists, mapValues } from '../runtime';
import type { DefaultPageEnum } from './DefaultPageEnum';
import {
DefaultPageEnum,
DefaultPageEnumFromJSON,
DefaultPageEnumFromJSONTyped,
DefaultPageEnumToJSON,
} from './DefaultPageEnum';
import type { ThemeEnum } from './ThemeEnum';
import {
ThemeEnum,
ThemeEnumFromJSON,
ThemeEnumFromJSONTyped,
ThemeEnumToJSON,
} from './ThemeEnum';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
import type { UserFileView } from './UserFileView';
import {
UserFileView,
UserFileViewFromJSON,
UserFileViewFromJSONTyped,
UserFileViewToJSON,
} from './UserFileView';
import type { UserPreferenceNavTextColorEnum } from './UserPreferenceNavTextColorEnum';
import {
UserPreferenceNavTextColorEnum,
UserPreferenceNavTextColorEnumFromJSON,
UserPreferenceNavTextColorEnumFromJSONTyped,
UserPreferenceNavTextColorEnumToJSON,
} from './UserPreferenceNavTextColorEnum';
} from './';
/**
* Adds nested create feature
@@ -154,10 +146,10 @@ export interface PatchedUserPreference {
readonly foodInheritDefault?: string;
/**
*
* @type {string}
* @type {number}
* @memberof PatchedUserPreference
*/
defaultDelay?: string;
defaultDelay?: number;
/**
*
* @type {boolean}
@@ -226,15 +218,6 @@ export interface PatchedUserPreference {
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 {
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