settings page WIP

This commit is contained in:
vabene1111
2024-08-04 16:59:56 +02:00
parent 4a6d542965
commit 516b345807
76 changed files with 15560 additions and 202 deletions

View File

@@ -0,0 +1,68 @@
/* tslint:disable */
/* eslint-disable */
/**
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface Localization
*/
export interface Localization {
/**
*
* @type {string}
* @memberof Localization
*/
readonly code: string;
/**
*
* @type {string}
* @memberof Localization
*/
readonly language: string;
}
/**
* Check if a given object implements the Localization interface.
*/
export function instanceOfLocalization(value: object): boolean {
if (!('code' in value)) return false;
if (!('language' in value)) return false;
return true;
}
export function LocalizationFromJSON(json: any): Localization {
return LocalizationFromJSONTyped(json, false);
}
export function LocalizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Localization {
if (json == null) {
return json;
}
return {
'code': json['code'],
'language': json['language'],
};
}
export function LocalizationToJSON(value?: Localization | null): any {
if (value == null) {
return value;
}
return {
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedAutomationList {
* @type {number}
* @memberof PaginatedAutomationList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedAutomationList {
* @type {Array<Automation>}
* @memberof PaginatedAutomationList
*/
results?: Array<Automation>;
results: Array<Automation>;
}
/**
* Check if a given object implements the PaginatedAutomationList interface.
*/
export function instanceOfPaginatedAutomationList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedAutomationListFromJSONTyped(json: any, ignoreDiscrimina
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(AutomationFromJSON)),
'results': ((json['results'] as Array<any>).map(AutomationFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList |
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(AutomationToJSON)),
'results': ((value['results'] as Array<any>).map(AutomationToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedBookmarkletImportListList {
* @type {number}
* @memberof PaginatedBookmarkletImportListList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedBookmarkletImportListList {
* @type {Array<BookmarkletImportList>}
* @memberof PaginatedBookmarkletImportListList
*/
results?: Array<BookmarkletImportList>;
results: Array<BookmarkletImportList>;
}
/**
* Check if a given object implements the PaginatedBookmarkletImportListList interface.
*/
export function instanceOfPaginatedBookmarkletImportListList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignor
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(BookmarkletImportListFromJSON)),
'results': ((json['results'] as Array<any>).map(BookmarkletImportListFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookma
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(BookmarkletImportListToJSON)),
'results': ((value['results'] as Array<any>).map(BookmarkletImportListToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedCookLogList {
* @type {number}
* @memberof PaginatedCookLogList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedCookLogList {
* @type {Array<CookLog>}
* @memberof PaginatedCookLogList
*/
results?: Array<CookLog>;
results: Array<CookLog>;
}
/**
* Check if a given object implements the PaginatedCookLogList interface.
*/
export function instanceOfPaginatedCookLogList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedCookLogListFromJSONTyped(json: any, ignoreDiscriminator
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(CookLogFromJSON)),
'results': ((json['results'] as Array<any>).map(CookLogFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedCookLogListToJSON(value?: PaginatedCookLogList | null):
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(CookLogToJSON)),
'results': ((value['results'] as Array<any>).map(CookLogToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedCustomFilterList {
* @type {number}
* @memberof PaginatedCustomFilterList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedCustomFilterList {
* @type {Array<CustomFilter>}
* @memberof PaginatedCustomFilterList
*/
results?: Array<CustomFilter>;
results: Array<CustomFilter>;
}
/**
* Check if a given object implements the PaginatedCustomFilterList interface.
*/
export function instanceOfPaginatedCustomFilterList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedCustomFilterListFromJSONTyped(json: any, ignoreDiscrimi
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(CustomFilterFromJSON)),
'results': ((json['results'] as Array<any>).map(CustomFilterFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedCustomFilterListToJSON(value?: PaginatedCustomFilterLis
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(CustomFilterToJSON)),
'results': ((value['results'] as Array<any>).map(CustomFilterToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedExportLogList {
* @type {number}
* @memberof PaginatedExportLogList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedExportLogList {
* @type {Array<ExportLog>}
* @memberof PaginatedExportLogList
*/
results?: Array<ExportLog>;
results: Array<ExportLog>;
}
/**
* Check if a given object implements the PaginatedExportLogList interface.
*/
export function instanceOfPaginatedExportLogList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedExportLogListFromJSONTyped(json: any, ignoreDiscriminat
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ExportLogFromJSON)),
'results': ((json['results'] as Array<any>).map(ExportLogFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | nu
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ExportLogToJSON)),
'results': ((value['results'] as Array<any>).map(ExportLogToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedFoodList {
* @type {number}
* @memberof PaginatedFoodList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedFoodList {
* @type {Array<Food>}
* @memberof PaginatedFoodList
*/
results?: Array<Food>;
results: Array<Food>;
}
/**
* Check if a given object implements the PaginatedFoodList interface.
*/
export function instanceOfPaginatedFoodList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedFoodListFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(FoodFromJSON)),
'results': ((json['results'] as Array<any>).map(FoodFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedFoodListToJSON(value?: PaginatedFoodList | null): any {
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(FoodToJSON)),
'results': ((value['results'] as Array<any>).map(FoodToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedImportLogList {
* @type {number}
* @memberof PaginatedImportLogList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedImportLogList {
* @type {Array<ImportLog>}
* @memberof PaginatedImportLogList
*/
results?: Array<ImportLog>;
results: Array<ImportLog>;
}
/**
* Check if a given object implements the PaginatedImportLogList interface.
*/
export function instanceOfPaginatedImportLogList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedImportLogListFromJSONTyped(json: any, ignoreDiscriminat
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ImportLogFromJSON)),
'results': ((json['results'] as Array<any>).map(ImportLogFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | nu
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ImportLogToJSON)),
'results': ((value['results'] as Array<any>).map(ImportLogToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedIngredientList {
* @type {number}
* @memberof PaginatedIngredientList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedIngredientList {
* @type {Array<Ingredient>}
* @memberof PaginatedIngredientList
*/
results?: Array<Ingredient>;
results: Array<Ingredient>;
}
/**
* Check if a given object implements the PaginatedIngredientList interface.
*/
export function instanceOfPaginatedIngredientList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedIngredientListFromJSONTyped(json: any, ignoreDiscrimina
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(IngredientFromJSON)),
'results': ((json['results'] as Array<any>).map(IngredientFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList |
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(IngredientToJSON)),
'results': ((value['results'] as Array<any>).map(IngredientToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedInviteLinkList {
* @type {number}
* @memberof PaginatedInviteLinkList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedInviteLinkList {
* @type {Array<InviteLink>}
* @memberof PaginatedInviteLinkList
*/
results?: Array<InviteLink>;
results: Array<InviteLink>;
}
/**
* Check if a given object implements the PaginatedInviteLinkList interface.
*/
export function instanceOfPaginatedInviteLinkList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedInviteLinkListFromJSONTyped(json: any, ignoreDiscrimina
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(InviteLinkFromJSON)),
'results': ((json['results'] as Array<any>).map(InviteLinkFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList |
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(InviteLinkToJSON)),
'results': ((value['results'] as Array<any>).map(InviteLinkToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedKeywordList {
* @type {number}
* @memberof PaginatedKeywordList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedKeywordList {
* @type {Array<Keyword>}
* @memberof PaginatedKeywordList
*/
results?: Array<Keyword>;
results: Array<Keyword>;
}
/**
* Check if a given object implements the PaginatedKeywordList interface.
*/
export function instanceOfPaginatedKeywordList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedKeywordListFromJSONTyped(json: any, ignoreDiscriminator
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(KeywordFromJSON)),
'results': ((json['results'] as Array<any>).map(KeywordFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null):
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(KeywordToJSON)),
'results': ((value['results'] as Array<any>).map(KeywordToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedMealPlanList {
* @type {number}
* @memberof PaginatedMealPlanList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedMealPlanList {
* @type {Array<MealPlan>}
* @memberof PaginatedMealPlanList
*/
results?: Array<MealPlan>;
results: Array<MealPlan>;
}
/**
* Check if a given object implements the PaginatedMealPlanList interface.
*/
export function instanceOfPaginatedMealPlanList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedMealPlanListFromJSONTyped(json: any, ignoreDiscriminato
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(MealPlanFromJSON)),
'results': ((json['results'] as Array<any>).map(MealPlanFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(MealPlanToJSON)),
'results': ((value['results'] as Array<any>).map(MealPlanToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedMealTypeList {
* @type {number}
* @memberof PaginatedMealTypeList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedMealTypeList {
* @type {Array<MealType>}
* @memberof PaginatedMealTypeList
*/
results?: Array<MealType>;
results: Array<MealType>;
}
/**
* Check if a given object implements the PaginatedMealTypeList interface.
*/
export function instanceOfPaginatedMealTypeList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedMealTypeListFromJSONTyped(json: any, ignoreDiscriminato
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(MealTypeFromJSON)),
'results': ((json['results'] as Array<any>).map(MealTypeFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(MealTypeToJSON)),
'results': ((value['results'] as Array<any>).map(MealTypeToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedPropertyList {
* @type {number}
* @memberof PaginatedPropertyList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedPropertyList {
* @type {Array<Property>}
* @memberof PaginatedPropertyList
*/
results?: Array<Property>;
results: Array<Property>;
}
/**
* Check if a given object implements the PaginatedPropertyList interface.
*/
export function instanceOfPaginatedPropertyList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminato
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PropertyFromJSON)),
'results': ((json['results'] as Array<any>).map(PropertyFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PropertyToJSON)),
'results': ((value['results'] as Array<any>).map(PropertyToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedPropertyTypeList {
* @type {number}
* @memberof PaginatedPropertyTypeList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedPropertyTypeList {
* @type {Array<PropertyType>}
* @memberof PaginatedPropertyTypeList
*/
results?: Array<PropertyType>;
results: Array<PropertyType>;
}
/**
* Check if a given object implements the PaginatedPropertyTypeList interface.
*/
export function instanceOfPaginatedPropertyTypeList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedPropertyTypeListFromJSONTyped(json: any, ignoreDiscrimi
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PropertyTypeFromJSON)),
'results': ((json['results'] as Array<any>).map(PropertyTypeFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeLis
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PropertyTypeToJSON)),
'results': ((value['results'] as Array<any>).map(PropertyTypeToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedRecipeBookEntryList {
* @type {number}
* @memberof PaginatedRecipeBookEntryList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedRecipeBookEntryList {
* @type {Array<RecipeBookEntry>}
* @memberof PaginatedRecipeBookEntryList
*/
results?: Array<RecipeBookEntry>;
results: Array<RecipeBookEntry>;
}
/**
* Check if a given object implements the PaginatedRecipeBookEntryList interface.
*/
export function instanceOfPaginatedRecipeBookEntryList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedRecipeBookEntryListFromJSONTyped(json: any, ignoreDiscr
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(RecipeBookEntryFromJSON)),
'results': ((json['results'] as Array<any>).map(RecipeBookEntryFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEn
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeBookEntryToJSON)),
'results': ((value['results'] as Array<any>).map(RecipeBookEntryToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedRecipeBookList {
* @type {number}
* @memberof PaginatedRecipeBookList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedRecipeBookList {
* @type {Array<RecipeBook>}
* @memberof PaginatedRecipeBookList
*/
results?: Array<RecipeBook>;
results: Array<RecipeBook>;
}
/**
* Check if a given object implements the PaginatedRecipeBookList interface.
*/
export function instanceOfPaginatedRecipeBookList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedRecipeBookListFromJSONTyped(json: any, ignoreDiscrimina
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(RecipeBookFromJSON)),
'results': ((json['results'] as Array<any>).map(RecipeBookFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList |
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeBookToJSON)),
'results': ((value['results'] as Array<any>).map(RecipeBookToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedRecipeOverviewList {
* @type {number}
* @memberof PaginatedRecipeOverviewList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedRecipeOverviewList {
* @type {Array<RecipeOverview>}
* @memberof PaginatedRecipeOverviewList
*/
results?: Array<RecipeOverview>;
results: Array<RecipeOverview>;
}
/**
* Check if a given object implements the PaginatedRecipeOverviewList interface.
*/
export function instanceOfPaginatedRecipeOverviewList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedRecipeOverviewListFromJSONTyped(json: any, ignoreDiscri
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(RecipeOverviewFromJSON)),
'results': ((json['results'] as Array<any>).map(RecipeOverviewFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedRecipeOverviewListToJSON(value?: PaginatedRecipeOvervie
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeOverviewToJSON)),
'results': ((value['results'] as Array<any>).map(RecipeOverviewToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedShoppingListEntryList {
* @type {number}
* @memberof PaginatedShoppingListEntryList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedShoppingListEntryList {
* @type {Array<ShoppingListEntry>}
* @memberof PaginatedShoppingListEntryList
*/
results?: Array<ShoppingListEntry>;
results: Array<ShoppingListEntry>;
}
/**
* Check if a given object implements the PaginatedShoppingListEntryList interface.
*/
export function instanceOfPaginatedShoppingListEntryList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedShoppingListEntryListFromJSONTyped(json: any, ignoreDis
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ShoppingListEntryFromJSON)),
'results': ((json['results'] as Array<any>).map(ShoppingListEntryFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingLi
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ShoppingListEntryToJSON)),
'results': ((value['results'] as Array<any>).map(ShoppingListEntryToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedShoppingListRecipeList {
* @type {number}
* @memberof PaginatedShoppingListRecipeList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedShoppingListRecipeList {
* @type {Array<ShoppingListRecipe>}
* @memberof PaginatedShoppingListRecipeList
*/
results?: Array<ShoppingListRecipe>;
results: Array<ShoppingListRecipe>;
}
/**
* Check if a given object implements the PaginatedShoppingListRecipeList interface.
*/
export function instanceOfPaginatedShoppingListRecipeList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedShoppingListRecipeListFromJSONTyped(json: any, ignoreDi
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ShoppingListRecipeFromJSON)),
'results': ((json['results'] as Array<any>).map(ShoppingListRecipeFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingL
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ShoppingListRecipeToJSON)),
'results': ((value['results'] as Array<any>).map(ShoppingListRecipeToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedStepList {
* @type {number}
* @memberof PaginatedStepList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedStepList {
* @type {Array<Step>}
* @memberof PaginatedStepList
*/
results?: Array<Step>;
results: Array<Step>;
}
/**
* Check if a given object implements the PaginatedStepList interface.
*/
export function instanceOfPaginatedStepList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedStepListFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(StepFromJSON)),
'results': ((json['results'] as Array<any>).map(StepFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedStepListToJSON(value?: PaginatedStepList | null): any {
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(StepToJSON)),
'results': ((value['results'] as Array<any>).map(StepToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedSupermarketCategoryList {
* @type {number}
* @memberof PaginatedSupermarketCategoryList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedSupermarketCategoryList {
* @type {Array<SupermarketCategory>}
* @memberof PaginatedSupermarketCategoryList
*/
results?: Array<SupermarketCategory>;
results: Array<SupermarketCategory>;
}
/**
* Check if a given object implements the PaginatedSupermarketCategoryList interface.
*/
export function instanceOfPaginatedSupermarketCategoryList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedSupermarketCategoryListFromJSONTyped(json: any, ignoreD
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SupermarketCategoryFromJSON)),
'results': ((json['results'] as Array<any>).map(SupermarketCategoryFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermar
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketCategoryToJSON)),
'results': ((value['results'] as Array<any>).map(SupermarketCategoryToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedSupermarketCategoryRelationList {
* @type {number}
* @memberof PaginatedSupermarketCategoryRelationList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedSupermarketCategoryRelationList {
* @type {Array<SupermarketCategoryRelation>}
* @memberof PaginatedSupermarketCategoryRelationList
*/
results?: Array<SupermarketCategoryRelation>;
results: Array<SupermarketCategoryRelation>;
}
/**
* Check if a given object implements the PaginatedSupermarketCategoryRelationList interface.
*/
export function instanceOfPaginatedSupermarketCategoryRelationList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedSupermarketCategoryRelationListFromJSONTyped(json: any,
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SupermarketCategoryRelationFromJSON)),
'results': ((json['results'] as Array<any>).map(SupermarketCategoryRelationFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedSupermarketCategoryRelationListToJSON(value?: Paginated
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketCategoryRelationToJSON)),
'results': ((value['results'] as Array<any>).map(SupermarketCategoryRelationToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedSupermarketList {
* @type {number}
* @memberof PaginatedSupermarketList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedSupermarketList {
* @type {Array<Supermarket>}
* @memberof PaginatedSupermarketList
*/
results?: Array<Supermarket>;
results: Array<Supermarket>;
}
/**
* Check if a given object implements the PaginatedSupermarketList interface.
*/
export function instanceOfPaginatedSupermarketList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedSupermarketListFromJSONTyped(json: any, ignoreDiscrimin
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SupermarketFromJSON)),
'results': ((json['results'] as Array<any>).map(SupermarketFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketToJSON)),
'results': ((value['results'] as Array<any>).map(SupermarketToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedSyncList {
* @type {number}
* @memberof PaginatedSyncList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedSyncList {
* @type {Array<Sync>}
* @memberof PaginatedSyncList
*/
results?: Array<Sync>;
results: Array<Sync>;
}
/**
* Check if a given object implements the PaginatedSyncList interface.
*/
export function instanceOfPaginatedSyncList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedSyncListFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SyncFromJSON)),
'results': ((json['results'] as Array<any>).map(SyncFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedSyncListToJSON(value?: PaginatedSyncList | null): any {
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SyncToJSON)),
'results': ((value['results'] as Array<any>).map(SyncToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedSyncLogList {
* @type {number}
* @memberof PaginatedSyncLogList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedSyncLogList {
* @type {Array<SyncLog>}
* @memberof PaginatedSyncLogList
*/
results?: Array<SyncLog>;
results: Array<SyncLog>;
}
/**
* Check if a given object implements the PaginatedSyncLogList interface.
*/
export function instanceOfPaginatedSyncLogList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedSyncLogListFromJSONTyped(json: any, ignoreDiscriminator
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SyncLogFromJSON)),
'results': ((json['results'] as Array<any>).map(SyncLogFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedSyncLogListToJSON(value?: PaginatedSyncLogList | null):
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SyncLogToJSON)),
'results': ((value['results'] as Array<any>).map(SyncLogToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedUnitConversionList {
* @type {number}
* @memberof PaginatedUnitConversionList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedUnitConversionList {
* @type {Array<UnitConversion>}
* @memberof PaginatedUnitConversionList
*/
results?: Array<UnitConversion>;
results: Array<UnitConversion>;
}
/**
* Check if a given object implements the PaginatedUnitConversionList interface.
*/
export function instanceOfPaginatedUnitConversionList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedUnitConversionListFromJSONTyped(json: any, ignoreDiscri
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(UnitConversionFromJSON)),
'results': ((json['results'] as Array<any>).map(UnitConversionFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedUnitConversionListToJSON(value?: PaginatedUnitConversio
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UnitConversionToJSON)),
'results': ((value['results'] as Array<any>).map(UnitConversionToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedUnitList {
* @type {number}
* @memberof PaginatedUnitList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedUnitList {
* @type {Array<Unit>}
* @memberof PaginatedUnitList
*/
results?: Array<Unit>;
results: Array<Unit>;
}
/**
* Check if a given object implements the PaginatedUnitList interface.
*/
export function instanceOfPaginatedUnitList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedUnitListFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(UnitFromJSON)),
'results': ((json['results'] as Array<any>).map(UnitFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedUnitListToJSON(value?: PaginatedUnitList | null): any {
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UnitToJSON)),
'results': ((value['results'] as Array<any>).map(UnitToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedUserFileList {
* @type {number}
* @memberof PaginatedUserFileList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedUserFileList {
* @type {Array<UserFile>}
* @memberof PaginatedUserFileList
*/
results?: Array<UserFile>;
results: Array<UserFile>;
}
/**
* Check if a given object implements the PaginatedUserFileList interface.
*/
export function instanceOfPaginatedUserFileList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedUserFileListFromJSONTyped(json: any, ignoreDiscriminato
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(UserFileFromJSON)),
'results': ((json['results'] as Array<any>).map(UserFileFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedUserFileListToJSON(value?: PaginatedUserFileList | null
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UserFileToJSON)),
'results': ((value['results'] as Array<any>).map(UserFileToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedUserSpaceList {
* @type {number}
* @memberof PaginatedUserSpaceList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedUserSpaceList {
* @type {Array<UserSpace>}
* @memberof PaginatedUserSpaceList
*/
results?: Array<UserSpace>;
results: Array<UserSpace>;
}
/**
* Check if a given object implements the PaginatedUserSpaceList interface.
*/
export function instanceOfPaginatedUserSpaceList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedUserSpaceListFromJSONTyped(json: any, ignoreDiscriminat
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(UserSpaceFromJSON)),
'results': ((json['results'] as Array<any>).map(UserSpaceFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedUserSpaceListToJSON(value?: PaginatedUserSpaceList | nu
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UserSpaceToJSON)),
'results': ((value['results'] as Array<any>).map(UserSpaceToJSON)),
};
}

View File

@@ -31,7 +31,7 @@ export interface PaginatedViewLogList {
* @type {number}
* @memberof PaginatedViewLogList
*/
count?: number;
count: number;
/**
*
* @type {string}
@@ -49,13 +49,15 @@ export interface PaginatedViewLogList {
* @type {Array<ViewLog>}
* @memberof PaginatedViewLogList
*/
results?: Array<ViewLog>;
results: Array<ViewLog>;
}
/**
* Check if a given object implements the PaginatedViewLogList interface.
*/
export function instanceOfPaginatedViewLogList(value: object): boolean {
if (!('count' in value)) return false;
if (!('results' in value)) return false;
return true;
}
@@ -69,10 +71,10 @@ export function PaginatedViewLogListFromJSONTyped(json: any, ignoreDiscriminator
}
return {
'count': json['count'] == null ? undefined : json['count'],
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ViewLogFromJSON)),
'results': ((json['results'] as Array<any>).map(ViewLogFromJSON)),
};
}
@@ -85,7 +87,7 @@ export function PaginatedViewLogListToJSON(value?: PaginatedViewLogList | null):
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ViewLogToJSON)),
'results': ((value['results'] as Array<any>).map(ViewLogToJSON)),
};
}

View File

@@ -26,6 +26,7 @@ export * from './IngredientString';
export * from './InviteLink';
export * from './Keyword';
export * from './KeywordLabel';
export * from './Localization';
export * from './MealPlan';
export * from './MealType';
export * from './MethodEnum';