mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
work on settings component
This commit is contained in:
93
vue3/src/openapi/models/PaginatedSpaceList.ts
Normal file
93
vue3/src/openapi/models/PaginatedSpaceList.ts
Normal file
@@ -0,0 +1,93 @@
|
||||
/* 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 { Space } from './Space';
|
||||
import {
|
||||
SpaceFromJSON,
|
||||
SpaceFromJSONTyped,
|
||||
SpaceToJSON,
|
||||
} from './Space';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedSpaceList
|
||||
*/
|
||||
export interface PaginatedSpaceList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedSpaceList
|
||||
*/
|
||||
count: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSpaceList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedSpaceList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Space>}
|
||||
* @memberof PaginatedSpaceList
|
||||
*/
|
||||
results: Array<Space>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedSpaceList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedSpaceList(value: object): boolean {
|
||||
if (!('count' in value)) return false;
|
||||
if (!('results' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedSpaceListFromJSON(json: any): PaginatedSpaceList {
|
||||
return PaginatedSpaceListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedSpaceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSpaceList {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': json['count'],
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': ((json['results'] as Array<any>).map(SpaceFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedSpaceListToJSON(value?: PaginatedSpaceList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': ((value['results'] as Array<any>).map(SpaceToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
115
vue3/src/openapi/models/ServerSettings.ts
Normal file
115
vue3/src/openapi/models/ServerSettings.ts
Normal file
@@ -0,0 +1,115 @@
|
||||
/* 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 ServerSettings
|
||||
*/
|
||||
export interface ServerSettings {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
shoppingMinAutosyncInterval: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
enablePdfExport: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
disableExternalConnectors: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
termsUrl: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
privacyUrl: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
imprintUrl: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ServerSettings
|
||||
*/
|
||||
hosted: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ServerSettings interface.
|
||||
*/
|
||||
export function instanceOfServerSettings(value: object): boolean {
|
||||
if (!('shoppingMinAutosyncInterval' in value)) return false;
|
||||
if (!('enablePdfExport' in value)) return false;
|
||||
if (!('disableExternalConnectors' in value)) return false;
|
||||
if (!('termsUrl' in value)) return false;
|
||||
if (!('privacyUrl' in value)) return false;
|
||||
if (!('imprintUrl' in value)) return false;
|
||||
if (!('hosted' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ServerSettingsFromJSON(json: any): ServerSettings {
|
||||
return ServerSettingsFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ServerSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerSettings {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'shoppingMinAutosyncInterval': json['shopping_min_autosync_interval'],
|
||||
'enablePdfExport': json['enable_pdf_export'],
|
||||
'disableExternalConnectors': json['disable_external_connectors'],
|
||||
'termsUrl': json['terms_url'],
|
||||
'privacyUrl': json['privacy_url'],
|
||||
'imprintUrl': json['imprint_url'],
|
||||
'hosted': json['hosted'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ServerSettingsToJSON(value?: ServerSettings | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'shopping_min_autosync_interval': value['shoppingMinAutosyncInterval'],
|
||||
'enable_pdf_export': value['enablePdfExport'],
|
||||
'disable_external_connectors': value['disableExternalConnectors'],
|
||||
'terms_url': value['termsUrl'],
|
||||
'privacy_url': value['privacyUrl'],
|
||||
'imprint_url': value['imprintUrl'],
|
||||
'hosted': value['hosted'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ export * from './PaginatedRecipeBookList';
|
||||
export * from './PaginatedRecipeOverviewList';
|
||||
export * from './PaginatedShoppingListEntryList';
|
||||
export * from './PaginatedShoppingListRecipeList';
|
||||
export * from './PaginatedSpaceList';
|
||||
export * from './PaginatedStepList';
|
||||
export * from './PaginatedSupermarketCategoryList';
|
||||
export * from './PaginatedSupermarketCategoryRelationList';
|
||||
@@ -123,6 +124,7 @@ export * from './RecipeImage';
|
||||
export * from './RecipeOverview';
|
||||
export * from './RecipeShoppingUpdate';
|
||||
export * from './RecipeSimple';
|
||||
export * from './ServerSettings';
|
||||
export * from './ShareLink';
|
||||
export * from './ShoppingListEntry';
|
||||
export * from './ShoppingListEntryBulk';
|
||||
|
||||
Reference in New Issue
Block a user