mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 21:58:54 -05:00
add enum to filters that have Choice fields
This commit is contained in:
@@ -5,6 +5,7 @@ apis/index.ts
|
||||
index.ts
|
||||
models/AccessToken.ts
|
||||
models/AuthToken.ts
|
||||
models/AutoMealPlan.ts
|
||||
models/Automation.ts
|
||||
models/BookmarkletImport.ts
|
||||
models/BookmarkletImportList.ts
|
||||
@@ -29,18 +30,33 @@ models/MealType.ts
|
||||
models/MethodEnum.ts
|
||||
models/NutritionInformation.ts
|
||||
models/PaginatedAutomationList.ts
|
||||
models/PaginatedBookmarkletImportListList.ts
|
||||
models/PaginatedCookLogList.ts
|
||||
models/PaginatedCustomFilterList.ts
|
||||
models/PaginatedExportLogList.ts
|
||||
models/PaginatedFoodList.ts
|
||||
models/PaginatedImportLogList.ts
|
||||
models/PaginatedIngredientList.ts
|
||||
models/PaginatedInviteLinkList.ts
|
||||
models/PaginatedKeywordList.ts
|
||||
models/PaginatedMealPlanList.ts
|
||||
models/PaginatedMealTypeList.ts
|
||||
models/PaginatedPropertyList.ts
|
||||
models/PaginatedPropertyTypeList.ts
|
||||
models/PaginatedRecipeBookEntryList.ts
|
||||
models/PaginatedRecipeBookList.ts
|
||||
models/PaginatedRecipeOverviewList.ts
|
||||
models/PaginatedShoppingListEntryList.ts
|
||||
models/PaginatedShoppingListRecipeList.ts
|
||||
models/PaginatedStepList.ts
|
||||
models/PaginatedSupermarketCategoryList.ts
|
||||
models/PaginatedSupermarketCategoryRelationList.ts
|
||||
models/PaginatedSupermarketList.ts
|
||||
models/PaginatedSyncList.ts
|
||||
models/PaginatedSyncLogList.ts
|
||||
models/PaginatedUnitConversionList.ts
|
||||
models/PaginatedUnitList.ts
|
||||
models/PaginatedUserFileList.ts
|
||||
models/PaginatedUserSpaceList.ts
|
||||
models/PaginatedViewLogList.ts
|
||||
models/PatchedAccessToken.ts
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
121
vue3/models/AutoMealPlan.ts
Normal file
121
vue3/models/AutoMealPlan.ts
Normal file
@@ -0,0 +1,121 @@
|
||||
/* 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';
|
||||
import type { User } from './User';
|
||||
import {
|
||||
UserFromJSON,
|
||||
UserFromJSONTyped,
|
||||
UserToJSON,
|
||||
} from './User';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AutoMealPlan
|
||||
*/
|
||||
export interface AutoMealPlan {
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
startDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
endDate: Date;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
mealTypeId: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<any>}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
keywordIds: Array<any>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
servings: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<User>}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
shared?: Array<User>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AutoMealPlan
|
||||
*/
|
||||
addshopping: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AutoMealPlan interface.
|
||||
*/
|
||||
export function instanceOfAutoMealPlan(value: object): boolean {
|
||||
if (!('startDate' in value)) return false;
|
||||
if (!('endDate' in value)) return false;
|
||||
if (!('mealTypeId' in value)) return false;
|
||||
if (!('keywordIds' in value)) return false;
|
||||
if (!('servings' in value)) return false;
|
||||
if (!('addshopping' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AutoMealPlanFromJSON(json: any): AutoMealPlan {
|
||||
return AutoMealPlanFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AutoMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoMealPlan {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'startDate': (new Date(json['start_date'])),
|
||||
'endDate': (new Date(json['end_date'])),
|
||||
'mealTypeId': json['meal_type_id'],
|
||||
'keywordIds': json['keyword_ids'],
|
||||
'servings': json['servings'],
|
||||
'shared': json['shared'] == null ? undefined : ((json['shared'] as Array<any>).map(UserFromJSON)),
|
||||
'addshopping': json['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'start_date': ((value['startDate']).toISOString().substring(0,10)),
|
||||
'end_date': ((value['endDate']).toISOString().substring(0,10)),
|
||||
'meal_type_id': value['mealTypeId'],
|
||||
'keyword_ids': value['keywordIds'],
|
||||
'servings': value['servings'],
|
||||
'shared': value['shared'] == null ? undefined : ((value['shared'] as Array<any>).map(UserToJSON)),
|
||||
'addshopping': value['addshopping'],
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedBookmarkletImportListList.ts
Normal file
91
vue3/models/PaginatedBookmarkletImportListList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { BookmarkletImportList } from './BookmarkletImportList';
|
||||
import {
|
||||
BookmarkletImportListFromJSON,
|
||||
BookmarkletImportListFromJSONTyped,
|
||||
BookmarkletImportListToJSON,
|
||||
} from './BookmarkletImportList';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedBookmarkletImportListList
|
||||
*/
|
||||
export interface PaginatedBookmarkletImportListList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<BookmarkletImportList>}
|
||||
* @memberof PaginatedBookmarkletImportListList
|
||||
*/
|
||||
results?: Array<BookmarkletImportList>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedBookmarkletImportListList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedBookmarkletImportListList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedBookmarkletImportListListFromJSON(json: any): PaginatedBookmarkletImportListList {
|
||||
return PaginatedBookmarkletImportListListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBookmarkletImportListList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookmarkletImportListList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(BookmarkletImportListToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedInviteLinkList.ts
Normal file
91
vue3/models/PaginatedInviteLinkList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { InviteLink } from './InviteLink';
|
||||
import {
|
||||
InviteLinkFromJSON,
|
||||
InviteLinkFromJSONTyped,
|
||||
InviteLinkToJSON,
|
||||
} from './InviteLink';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedInviteLinkList
|
||||
*/
|
||||
export interface PaginatedInviteLinkList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<InviteLink>}
|
||||
* @memberof PaginatedInviteLinkList
|
||||
*/
|
||||
results?: Array<InviteLink>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedInviteLinkList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedInviteLinkList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedInviteLinkListFromJSON(json: any): PaginatedInviteLinkList {
|
||||
return PaginatedInviteLinkListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedInviteLinkListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedInviteLinkList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(InviteLinkToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedMealPlanList.ts
Normal file
91
vue3/models/PaginatedMealPlanList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { MealPlan } from './MealPlan';
|
||||
import {
|
||||
MealPlanFromJSON,
|
||||
MealPlanFromJSONTyped,
|
||||
MealPlanToJSON,
|
||||
} from './MealPlan';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedMealPlanList
|
||||
*/
|
||||
export interface PaginatedMealPlanList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MealPlan>}
|
||||
* @memberof PaginatedMealPlanList
|
||||
*/
|
||||
results?: Array<MealPlan>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedMealPlanList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedMealPlanList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedMealPlanListFromJSON(json: any): PaginatedMealPlanList {
|
||||
return PaginatedMealPlanListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedMealPlanListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMealPlanList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(MealPlanToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedMealTypeList.ts
Normal file
91
vue3/models/PaginatedMealTypeList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { MealType } from './MealType';
|
||||
import {
|
||||
MealTypeFromJSON,
|
||||
MealTypeFromJSONTyped,
|
||||
MealTypeToJSON,
|
||||
} from './MealType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedMealTypeList
|
||||
*/
|
||||
export interface PaginatedMealTypeList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MealType>}
|
||||
* @memberof PaginatedMealTypeList
|
||||
*/
|
||||
results?: Array<MealType>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedMealTypeList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedMealTypeList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedMealTypeListFromJSON(json: any): PaginatedMealTypeList {
|
||||
return PaginatedMealTypeListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedMealTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMealTypeList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(MealTypeToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedPropertyList.ts
Normal file
91
vue3/models/PaginatedPropertyList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { Property } from './Property';
|
||||
import {
|
||||
PropertyFromJSON,
|
||||
PropertyFromJSONTyped,
|
||||
PropertyToJSON,
|
||||
} from './Property';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedPropertyList
|
||||
*/
|
||||
export interface PaginatedPropertyList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Property>}
|
||||
* @memberof PaginatedPropertyList
|
||||
*/
|
||||
results?: Array<Property>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedPropertyList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedPropertyList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedPropertyListFromJSON(json: any): PaginatedPropertyList {
|
||||
return PaginatedPropertyListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PropertyToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedPropertyTypeList.ts
Normal file
91
vue3/models/PaginatedPropertyTypeList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { PropertyType } from './PropertyType';
|
||||
import {
|
||||
PropertyTypeFromJSON,
|
||||
PropertyTypeFromJSONTyped,
|
||||
PropertyTypeToJSON,
|
||||
} from './PropertyType';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedPropertyTypeList
|
||||
*/
|
||||
export interface PaginatedPropertyTypeList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PropertyType>}
|
||||
* @memberof PaginatedPropertyTypeList
|
||||
*/
|
||||
results?: Array<PropertyType>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedPropertyTypeList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedPropertyTypeList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedPropertyTypeListFromJSON(json: any): PaginatedPropertyTypeList {
|
||||
return PaginatedPropertyTypeListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedPropertyTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyTypeList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PropertyTypeToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedRecipeBookEntryList.ts
Normal file
91
vue3/models/PaginatedRecipeBookEntryList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { RecipeBookEntry } from './RecipeBookEntry';
|
||||
import {
|
||||
RecipeBookEntryFromJSON,
|
||||
RecipeBookEntryFromJSONTyped,
|
||||
RecipeBookEntryToJSON,
|
||||
} from './RecipeBookEntry';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedRecipeBookEntryList
|
||||
*/
|
||||
export interface PaginatedRecipeBookEntryList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeBookEntry>}
|
||||
* @memberof PaginatedRecipeBookEntryList
|
||||
*/
|
||||
results?: Array<RecipeBookEntry>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedRecipeBookEntryList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedRecipeBookEntryList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookEntryListFromJSON(json: any): PaginatedRecipeBookEntryList {
|
||||
return PaginatedRecipeBookEntryListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookEntryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecipeBookEntryList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEntryList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeBookEntryToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedRecipeBookList.ts
Normal file
91
vue3/models/PaginatedRecipeBookList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { RecipeBook } from './RecipeBook';
|
||||
import {
|
||||
RecipeBookFromJSON,
|
||||
RecipeBookFromJSONTyped,
|
||||
RecipeBookToJSON,
|
||||
} from './RecipeBook';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedRecipeBookList
|
||||
*/
|
||||
export interface PaginatedRecipeBookList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeBook>}
|
||||
* @memberof PaginatedRecipeBookList
|
||||
*/
|
||||
results?: Array<RecipeBook>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedRecipeBookList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedRecipeBookList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookListFromJSON(json: any): PaginatedRecipeBookList {
|
||||
return PaginatedRecipeBookListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecipeBookList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(RecipeBookToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedShoppingListEntryList.ts
Normal file
91
vue3/models/PaginatedShoppingListEntryList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { ShoppingListEntry } from './ShoppingListEntry';
|
||||
import {
|
||||
ShoppingListEntryFromJSON,
|
||||
ShoppingListEntryFromJSONTyped,
|
||||
ShoppingListEntryToJSON,
|
||||
} from './ShoppingListEntry';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedShoppingListEntryList
|
||||
*/
|
||||
export interface PaginatedShoppingListEntryList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ShoppingListEntry>}
|
||||
* @memberof PaginatedShoppingListEntryList
|
||||
*/
|
||||
results?: Array<ShoppingListEntry>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedShoppingListEntryList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedShoppingListEntryList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListEntryListFromJSON(json: any): PaginatedShoppingListEntryList {
|
||||
return PaginatedShoppingListEntryListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListEntryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedShoppingListEntryList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingListEntryList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ShoppingListEntryToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedShoppingListRecipeList.ts
Normal file
91
vue3/models/PaginatedShoppingListRecipeList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { ShoppingListRecipe } from './ShoppingListRecipe';
|
||||
import {
|
||||
ShoppingListRecipeFromJSON,
|
||||
ShoppingListRecipeFromJSONTyped,
|
||||
ShoppingListRecipeToJSON,
|
||||
} from './ShoppingListRecipe';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedShoppingListRecipeList
|
||||
*/
|
||||
export interface PaginatedShoppingListRecipeList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ShoppingListRecipe>}
|
||||
* @memberof PaginatedShoppingListRecipeList
|
||||
*/
|
||||
results?: Array<ShoppingListRecipe>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedShoppingListRecipeList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedShoppingListRecipeList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListRecipeListFromJSON(json: any): PaginatedShoppingListRecipeList {
|
||||
return PaginatedShoppingListRecipeListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListRecipeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedShoppingListRecipeList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingListRecipeList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ShoppingListRecipeToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedSupermarketCategoryList.ts
Normal file
91
vue3/models/PaginatedSupermarketCategoryList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { SupermarketCategory } from './SupermarketCategory';
|
||||
import {
|
||||
SupermarketCategoryFromJSON,
|
||||
SupermarketCategoryFromJSONTyped,
|
||||
SupermarketCategoryToJSON,
|
||||
} from './SupermarketCategory';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSupermarketCategoryList
|
||||
*/
|
||||
export interface PaginatedSupermarketCategoryList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<SupermarketCategory>}
|
||||
* @memberof PaginatedSupermarketCategoryList
|
||||
*/
|
||||
results?: Array<SupermarketCategory>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSupermarketCategoryList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSupermarketCategoryList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketCategoryListFromJSON(json: any): PaginatedSupermarketCategoryList {
|
||||
return PaginatedSupermarketCategoryListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketCategoryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupermarketCategoryList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermarketCategoryList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketCategoryToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedSupermarketList.ts
Normal file
91
vue3/models/PaginatedSupermarketList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { Supermarket } from './Supermarket';
|
||||
import {
|
||||
SupermarketFromJSON,
|
||||
SupermarketFromJSONTyped,
|
||||
SupermarketToJSON,
|
||||
} from './Supermarket';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSupermarketList
|
||||
*/
|
||||
export interface PaginatedSupermarketList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Supermarket>}
|
||||
* @memberof PaginatedSupermarketList
|
||||
*/
|
||||
results?: Array<Supermarket>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSupermarketList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSupermarketList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketListFromJSON(json: any): PaginatedSupermarketList {
|
||||
return PaginatedSupermarketListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupermarketList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SupermarketToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedSyncList.ts
Normal file
91
vue3/models/PaginatedSyncList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { Sync } from './Sync';
|
||||
import {
|
||||
SyncFromJSON,
|
||||
SyncFromJSONTyped,
|
||||
SyncToJSON,
|
||||
} from './Sync';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSyncList
|
||||
*/
|
||||
export interface PaginatedSyncList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Sync>}
|
||||
* @memberof PaginatedSyncList
|
||||
*/
|
||||
results?: Array<Sync>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSyncList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSyncList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSyncListFromJSON(json: any): PaginatedSyncList {
|
||||
return PaginatedSyncListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSyncListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSyncList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSyncListToJSON(value?: PaginatedSyncList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SyncToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedUnitConversionList.ts
Normal file
91
vue3/models/PaginatedUnitConversionList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { UnitConversion } from './UnitConversion';
|
||||
import {
|
||||
UnitConversionFromJSON,
|
||||
UnitConversionFromJSONTyped,
|
||||
UnitConversionToJSON,
|
||||
} from './UnitConversion';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedUnitConversionList
|
||||
*/
|
||||
export interface PaginatedUnitConversionList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UnitConversion>}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
results?: Array<UnitConversion>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedUnitConversionList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedUnitConversionList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedUnitConversionListFromJSON(json: any): PaginatedUnitConversionList {
|
||||
return PaginatedUnitConversionListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedUnitConversionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUnitConversionList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedUnitConversionListToJSON(value?: PaginatedUnitConversionList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UnitConversionToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
91
vue3/models/PaginatedUserFileList.ts
Normal file
91
vue3/models/PaginatedUserFileList.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* 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';
|
||||
import type { UserFile } from './UserFile';
|
||||
import {
|
||||
UserFileFromJSON,
|
||||
UserFileFromJSONTyped,
|
||||
UserFileToJSON,
|
||||
} from './UserFile';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedUserFileList
|
||||
*/
|
||||
export interface PaginatedUserFileList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserFile>}
|
||||
* @memberof PaginatedUserFileList
|
||||
*/
|
||||
results?: Array<UserFile>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedUserFileList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedUserFileList(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedUserFileListFromJSON(json: any): PaginatedUserFileList {
|
||||
return PaginatedUserFileListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedUserFileListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserFileList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'] == null ? undefined : 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)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedUserFileListToJSON(value?: PaginatedUserFileList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(UserFileToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/* eslint-disable */
|
||||
export * from './AccessToken';
|
||||
export * from './AuthToken';
|
||||
export * from './AutoMealPlan';
|
||||
export * from './Automation';
|
||||
export * from './BookmarkletImport';
|
||||
export * from './BookmarkletImportList';
|
||||
@@ -26,18 +27,33 @@ export * from './MealType';
|
||||
export * from './MethodEnum';
|
||||
export * from './NutritionInformation';
|
||||
export * from './PaginatedAutomationList';
|
||||
export * from './PaginatedBookmarkletImportListList';
|
||||
export * from './PaginatedCookLogList';
|
||||
export * from './PaginatedCustomFilterList';
|
||||
export * from './PaginatedExportLogList';
|
||||
export * from './PaginatedFoodList';
|
||||
export * from './PaginatedImportLogList';
|
||||
export * from './PaginatedIngredientList';
|
||||
export * from './PaginatedInviteLinkList';
|
||||
export * from './PaginatedKeywordList';
|
||||
export * from './PaginatedMealPlanList';
|
||||
export * from './PaginatedMealTypeList';
|
||||
export * from './PaginatedPropertyList';
|
||||
export * from './PaginatedPropertyTypeList';
|
||||
export * from './PaginatedRecipeBookEntryList';
|
||||
export * from './PaginatedRecipeBookList';
|
||||
export * from './PaginatedRecipeOverviewList';
|
||||
export * from './PaginatedShoppingListEntryList';
|
||||
export * from './PaginatedShoppingListRecipeList';
|
||||
export * from './PaginatedStepList';
|
||||
export * from './PaginatedSupermarketCategoryList';
|
||||
export * from './PaginatedSupermarketCategoryRelationList';
|
||||
export * from './PaginatedSupermarketList';
|
||||
export * from './PaginatedSyncList';
|
||||
export * from './PaginatedSyncLogList';
|
||||
export * from './PaginatedUnitConversionList';
|
||||
export * from './PaginatedUnitList';
|
||||
export * from './PaginatedUserFileList';
|
||||
export * from './PaginatedUserSpaceList';
|
||||
export * from './PaginatedViewLogList';
|
||||
export * from './PatchedAccessToken';
|
||||
|
||||
Reference in New Issue
Block a user