regenerate openapi

This commit is contained in:
smilerz
2024-03-27 08:20:26 -05:00
parent ccbbebccef
commit 54ad7db2c1
8 changed files with 125 additions and 1844 deletions

View File

@@ -6,17 +6,17 @@ index.ts
models/AccessToken.ts models/AccessToken.ts
models/AuthToken.ts models/AuthToken.ts
models/Automation.ts models/Automation.ts
models/AutomationTypeEnum.ts
models/BaseUnitEnum.ts
models/BookmarkletImport.ts models/BookmarkletImport.ts
models/BookmarkletImportList.ts models/BookmarkletImportList.ts
models/ConnectorConfigConfig.ts models/ConnectorConfigConfig.ts
models/CookLog.ts models/CookLog.ts
models/CustomFilter.ts models/CustomFilter.ts
models/DefaultPageEnum.ts models/DefaultPageEnum.ts
models/DeleteEnum.ts
models/ExportLog.ts models/ExportLog.ts
models/Food.ts models/Food.ts
models/FoodInheritField.ts models/FoodInheritField.ts
models/FoodShoppingUpdate.ts
models/FoodSimple.ts models/FoodSimple.ts
models/Group.ts models/Group.ts
models/ImportLog.ts models/ImportLog.ts
@@ -28,16 +28,6 @@ models/MealPlan.ts
models/MealType.ts models/MealType.ts
models/MethodEnum.ts models/MethodEnum.ts
models/NutritionInformation.ts models/NutritionInformation.ts
models/OpenDataCategory.ts
models/OpenDataConversion.ts
models/OpenDataFood.ts
models/OpenDataFoodProperty.ts
models/OpenDataProperty.ts
models/OpenDataStore.ts
models/OpenDataStoreCategory.ts
models/OpenDataUnit.ts
models/OpenDataUnitTypeEnum.ts
models/OpenDataVersion.ts
models/PaginatedAutomationList.ts models/PaginatedAutomationList.ts
models/PaginatedCookLogList.ts models/PaginatedCookLogList.ts
models/PaginatedCustomFilterList.ts models/PaginatedCustomFilterList.ts
@@ -67,13 +57,6 @@ models/PatchedInviteLink.ts
models/PatchedKeyword.ts models/PatchedKeyword.ts
models/PatchedMealPlan.ts models/PatchedMealPlan.ts
models/PatchedMealType.ts models/PatchedMealType.ts
models/PatchedOpenDataCategory.ts
models/PatchedOpenDataConversion.ts
models/PatchedOpenDataFood.ts
models/PatchedOpenDataProperty.ts
models/PatchedOpenDataStore.ts
models/PatchedOpenDataUnit.ts
models/PatchedOpenDataVersion.ts
models/PatchedProperty.ts models/PatchedProperty.ts
models/PatchedPropertyType.ts models/PatchedPropertyType.ts
models/PatchedRecipe.ts models/PatchedRecipe.ts
@@ -118,6 +101,7 @@ models/SupermarketCategoryRelation.ts
models/Sync.ts models/Sync.ts
models/SyncLog.ts models/SyncLog.ts
models/ThemeEnum.ts models/ThemeEnum.ts
models/TypeEnum.ts
models/Unit.ts models/Unit.ts
models/UnitConversion.ts models/UnitConversion.ts
models/User.ts models/User.ts

File diff suppressed because it is too large Load Diff

View File

@@ -13,12 +13,12 @@
*/ */
import { mapValues } from '../runtime'; import { mapValues } from '../runtime';
import type { AutomationTypeEnum } from './AutomationTypeEnum'; import type { TypeEnum } from './TypeEnum';
import { import {
AutomationTypeEnumFromJSON, TypeEnumFromJSON,
AutomationTypeEnumFromJSONTyped, TypeEnumFromJSONTyped,
AutomationTypeEnumToJSON, TypeEnumToJSON,
} from './AutomationTypeEnum'; } from './TypeEnum';
/** /**
* *
@@ -34,10 +34,10 @@ export interface Automation {
readonly id: number; readonly id: number;
/** /**
* *
* @type {AutomationTypeEnum} * @type {TypeEnum}
* @memberof Automation * @memberof Automation
*/ */
type: AutomationTypeEnum; type: TypeEnum;
/** /**
* *
* @type {string} * @type {string}
@@ -109,7 +109,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
return { return {
'id': json['id'], 'id': json['id'],
'type': AutomationTypeEnumFromJSON(json['type']), 'type': TypeEnumFromJSON(json['type']),
'name': json['name'] == null ? undefined : json['name'], 'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'], 'description': json['description'] == null ? undefined : json['description'],
'param1': json['param_1'] == null ? undefined : json['param_1'], 'param1': json['param_1'] == null ? undefined : json['param_1'],
@@ -127,7 +127,7 @@ export function AutomationToJSON(value?: Automation | null): any {
} }
return { return {
'type': AutomationTypeEnumToJSON(value['type']), 'type': TypeEnumToJSON(value['type']),
'name': value['name'], 'name': value['name'],
'description': value['description'], 'description': value['description'],
'param_1': value['param1'], 'param_1': value['param1'],

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *
@@ -12,13 +12,13 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { exists, mapValues } from '../runtime'; import { mapValues } from '../runtime';
import type { FoodShoppingUpdateDelete } from './FoodShoppingUpdateDelete'; import type { DeleteEnum } from './DeleteEnum';
import { import {
FoodShoppingUpdateDeleteFromJSON, DeleteEnumFromJSON,
FoodShoppingUpdateDeleteFromJSONTyped, DeleteEnumFromJSONTyped,
FoodShoppingUpdateDeleteToJSON, DeleteEnumToJSON,
} from './FoodShoppingUpdateDelete'; } from './DeleteEnum';
/** /**
* *
@@ -37,30 +37,30 @@ export interface FoodShoppingUpdate {
* @type {number} * @type {number}
* @memberof FoodShoppingUpdate * @memberof FoodShoppingUpdate
*/ */
amount?: number | null; amount?: number;
/** /**
* ID of unit to use for the shopping list * ID of unit to use for the shopping list
* @type {number} * @type {number}
* @memberof FoodShoppingUpdate * @memberof FoodShoppingUpdate
*/ */
unit?: number | null; unit?: number;
/** /**
* When set to true will delete all food from active shopping lists.
* *
* @type {FoodShoppingUpdateDelete} * * `true` - true
* @type {DeleteEnum}
* @memberof FoodShoppingUpdate * @memberof FoodShoppingUpdate
*/ */
_delete: FoodShoppingUpdateDelete | null; _delete: DeleteEnum | null;
} }
/** /**
* Check if a given object implements the FoodShoppingUpdate interface. * Check if a given object implements the FoodShoppingUpdate interface.
*/ */
export function instanceOfFoodShoppingUpdate(value: object): boolean { export function instanceOfFoodShoppingUpdate(value: object): boolean {
let isInstance = true; if (!('id' in value)) return false;
isInstance = isInstance && "id" in value; if (!('_delete' in value)) return false;
isInstance = isInstance && "_delete" in value; return true;
return isInstance;
} }
export function FoodShoppingUpdateFromJSON(json: any): FoodShoppingUpdate { export function FoodShoppingUpdateFromJSON(json: any): FoodShoppingUpdate {
@@ -68,30 +68,27 @@ export function FoodShoppingUpdateFromJSON(json: any): FoodShoppingUpdate {
} }
export function FoodShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodShoppingUpdate { export function FoodShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FoodShoppingUpdate {
if ((json === undefined) || (json === null)) { if (json == null) {
return json; return json;
} }
return { return {
'id': json['id'], 'id': json['id'],
'amount': !exists(json, 'amount') ? undefined : json['amount'], 'amount': json['amount'] == null ? undefined : json['amount'],
'unit': !exists(json, 'unit') ? undefined : json['unit'], 'unit': json['unit'] == null ? undefined : json['unit'],
'_delete': FoodShoppingUpdateDeleteFromJSON(json['delete']), '_delete': DeleteEnumFromJSON(json['delete']),
}; };
} }
export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any { export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any {
if (value === undefined) { if (value == null) {
return undefined; return value;
}
if (value === null) {
return null;
} }
return { return {
'amount': value.amount, 'amount': value['amount'],
'unit': value.unit, 'unit': value['unit'],
'delete': FoodShoppingUpdateDeleteToJSON(value._delete), 'delete': DeleteEnumToJSON(value['_delete']),
}; };
} }

View File

@@ -13,12 +13,12 @@
*/ */
import { mapValues } from '../runtime'; import { mapValues } from '../runtime';
import type { AutomationTypeEnum } from './AutomationTypeEnum'; import type { TypeEnum } from './TypeEnum';
import { import {
AutomationTypeEnumFromJSON, TypeEnumFromJSON,
AutomationTypeEnumFromJSONTyped, TypeEnumFromJSONTyped,
AutomationTypeEnumToJSON, TypeEnumToJSON,
} from './AutomationTypeEnum'; } from './TypeEnum';
/** /**
* *
@@ -34,10 +34,10 @@ export interface PatchedAutomation {
readonly id?: number; readonly id?: number;
/** /**
* *
* @type {AutomationTypeEnum} * @type {TypeEnum}
* @memberof PatchedAutomation * @memberof PatchedAutomation
*/ */
type?: AutomationTypeEnum; type?: TypeEnum;
/** /**
* *
* @type {string} * @type {string}
@@ -106,7 +106,7 @@ export function PatchedAutomationFromJSONTyped(json: any, ignoreDiscriminator: b
return { return {
'id': json['id'] == null ? undefined : json['id'], 'id': json['id'] == null ? undefined : json['id'],
'type': json['type'] == null ? undefined : AutomationTypeEnumFromJSON(json['type']), 'type': json['type'] == null ? undefined : TypeEnumFromJSON(json['type']),
'name': json['name'] == null ? undefined : json['name'], 'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'], 'description': json['description'] == null ? undefined : json['description'],
'param1': json['param_1'] == null ? undefined : json['param_1'], 'param1': json['param_1'] == null ? undefined : json['param_1'],
@@ -124,7 +124,7 @@ export function PatchedAutomationToJSON(value?: PatchedAutomation | null): any {
} }
return { return {
'type': AutomationTypeEnumToJSON(value['type']), 'type': TypeEnumToJSON(value['type']),
'name': value['name'], 'name': value['name'],
'description': value['description'], 'description': value['description'],
'param_1': value['param1'], 'param_1': value['param1'],

View File

@@ -1,8 +1,8 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
/** /**
* * Tandoor
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Tandoor API Docs
* *
* The version of the OpenAPI document: 0.0.0 * The version of the OpenAPI document: 0.0.0
* *

View File

@@ -3,17 +3,17 @@
export * from './AccessToken'; export * from './AccessToken';
export * from './AuthToken'; export * from './AuthToken';
export * from './Automation'; export * from './Automation';
export * from './AutomationTypeEnum';
export * from './BaseUnitEnum';
export * from './BookmarkletImport'; export * from './BookmarkletImport';
export * from './BookmarkletImportList'; export * from './BookmarkletImportList';
export * from './ConnectorConfigConfig'; export * from './ConnectorConfigConfig';
export * from './CookLog'; export * from './CookLog';
export * from './CustomFilter'; export * from './CustomFilter';
export * from './DefaultPageEnum'; export * from './DefaultPageEnum';
export * from './DeleteEnum';
export * from './ExportLog'; export * from './ExportLog';
export * from './Food'; export * from './Food';
export * from './FoodInheritField'; export * from './FoodInheritField';
export * from './FoodShoppingUpdate';
export * from './FoodSimple'; export * from './FoodSimple';
export * from './Group'; export * from './Group';
export * from './ImportLog'; export * from './ImportLog';
@@ -25,16 +25,6 @@ export * from './MealPlan';
export * from './MealType'; export * from './MealType';
export * from './MethodEnum'; export * from './MethodEnum';
export * from './NutritionInformation'; export * from './NutritionInformation';
export * from './OpenDataCategory';
export * from './OpenDataConversion';
export * from './OpenDataFood';
export * from './OpenDataFoodProperty';
export * from './OpenDataProperty';
export * from './OpenDataStore';
export * from './OpenDataStoreCategory';
export * from './OpenDataUnit';
export * from './OpenDataUnitTypeEnum';
export * from './OpenDataVersion';
export * from './PaginatedAutomationList'; export * from './PaginatedAutomationList';
export * from './PaginatedCookLogList'; export * from './PaginatedCookLogList';
export * from './PaginatedCustomFilterList'; export * from './PaginatedCustomFilterList';
@@ -64,13 +54,6 @@ export * from './PatchedInviteLink';
export * from './PatchedKeyword'; export * from './PatchedKeyword';
export * from './PatchedMealPlan'; export * from './PatchedMealPlan';
export * from './PatchedMealType'; export * from './PatchedMealType';
export * from './PatchedOpenDataCategory';
export * from './PatchedOpenDataConversion';
export * from './PatchedOpenDataFood';
export * from './PatchedOpenDataProperty';
export * from './PatchedOpenDataStore';
export * from './PatchedOpenDataUnit';
export * from './PatchedOpenDataVersion';
export * from './PatchedProperty'; export * from './PatchedProperty';
export * from './PatchedPropertyType'; export * from './PatchedPropertyType';
export * from './PatchedRecipe'; export * from './PatchedRecipe';
@@ -115,6 +98,7 @@ export * from './SupermarketCategoryRelation';
export * from './Sync'; export * from './Sync';
export * from './SyncLog'; export * from './SyncLog';
export * from './ThemeEnum'; export * from './ThemeEnum';
export * from './TypeEnum';
export * from './Unit'; export * from './Unit';
export * from './UnitConversion'; export * from './UnitConversion';
export * from './User'; export * from './User';