mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
added connector config ui
This commit is contained in:
@@ -10,7 +10,8 @@ models/AutomationTypeEnum.ts
|
||||
models/BaseUnitEnum.ts
|
||||
models/BookmarkletImport.ts
|
||||
models/BookmarkletImportList.ts
|
||||
models/ConnectorConfigConfig.ts
|
||||
models/ConnectorConfig.ts
|
||||
models/ConnectorConfigTypeEnum.ts
|
||||
models/CookLog.ts
|
||||
models/CustomFilter.ts
|
||||
models/DefaultPageEnum.ts
|
||||
@@ -52,6 +53,7 @@ models/OpenDataUnitTypeEnum.ts
|
||||
models/OpenDataVersion.ts
|
||||
models/PaginatedAutomationList.ts
|
||||
models/PaginatedBookmarkletImportListList.ts
|
||||
models/PaginatedConnectorConfigList.ts
|
||||
models/PaginatedCookLogList.ts
|
||||
models/PaginatedCustomFilterList.ts
|
||||
models/PaginatedExportLogList.ts
|
||||
@@ -87,7 +89,7 @@ models/ParsedIngredient.ts
|
||||
models/PatchedAccessToken.ts
|
||||
models/PatchedAutomation.ts
|
||||
models/PatchedBookmarkletImport.ts
|
||||
models/PatchedConnectorConfigConfig.ts
|
||||
models/PatchedConnectorConfig.ts
|
||||
models/PatchedCookLog.ts
|
||||
models/PatchedCustomFilter.ts
|
||||
models/PatchedExportLog.ts
|
||||
|
||||
@@ -19,7 +19,7 @@ import type {
|
||||
AutoMealPlan,
|
||||
Automation,
|
||||
BookmarkletImport,
|
||||
ConnectorConfigConfig,
|
||||
ConnectorConfig,
|
||||
CookLog,
|
||||
CustomFilter,
|
||||
ExportLog,
|
||||
@@ -49,6 +49,7 @@ import type {
|
||||
OpenDataVersion,
|
||||
PaginatedAutomationList,
|
||||
PaginatedBookmarkletImportListList,
|
||||
PaginatedConnectorConfigList,
|
||||
PaginatedCookLogList,
|
||||
PaginatedCustomFilterList,
|
||||
PaginatedExportLogList,
|
||||
@@ -84,7 +85,7 @@ import type {
|
||||
PatchedAccessToken,
|
||||
PatchedAutomation,
|
||||
PatchedBookmarkletImport,
|
||||
PatchedConnectorConfigConfig,
|
||||
PatchedConnectorConfig,
|
||||
PatchedCookLog,
|
||||
PatchedCustomFilter,
|
||||
PatchedExportLog,
|
||||
@@ -166,8 +167,8 @@ import {
|
||||
AutomationToJSON,
|
||||
BookmarkletImportFromJSON,
|
||||
BookmarkletImportToJSON,
|
||||
ConnectorConfigConfigFromJSON,
|
||||
ConnectorConfigConfigToJSON,
|
||||
ConnectorConfigFromJSON,
|
||||
ConnectorConfigToJSON,
|
||||
CookLogFromJSON,
|
||||
CookLogToJSON,
|
||||
CustomFilterFromJSON,
|
||||
@@ -226,6 +227,8 @@ import {
|
||||
PaginatedAutomationListToJSON,
|
||||
PaginatedBookmarkletImportListListFromJSON,
|
||||
PaginatedBookmarkletImportListListToJSON,
|
||||
PaginatedConnectorConfigListFromJSON,
|
||||
PaginatedConnectorConfigListToJSON,
|
||||
PaginatedCookLogListFromJSON,
|
||||
PaginatedCookLogListToJSON,
|
||||
PaginatedCustomFilterListFromJSON,
|
||||
@@ -296,8 +299,8 @@ import {
|
||||
PatchedAutomationToJSON,
|
||||
PatchedBookmarkletImportFromJSON,
|
||||
PatchedBookmarkletImportToJSON,
|
||||
PatchedConnectorConfigConfigFromJSON,
|
||||
PatchedConnectorConfigConfigToJSON,
|
||||
PatchedConnectorConfigFromJSON,
|
||||
PatchedConnectorConfigToJSON,
|
||||
PatchedCookLogFromJSON,
|
||||
PatchedCookLogToJSON,
|
||||
PatchedCustomFilterFromJSON,
|
||||
@@ -529,16 +532,21 @@ export interface ApiBookmarkletImportUpdateRequest {
|
||||
}
|
||||
|
||||
export interface ApiConnectorConfigCreateRequest {
|
||||
connectorConfigConfig: Omit<ConnectorConfigConfig, 'createdBy'>;
|
||||
connectorConfig: Omit<ConnectorConfig, 'createdBy'>;
|
||||
}
|
||||
|
||||
export interface ApiConnectorConfigDestroyRequest {
|
||||
id: number;
|
||||
}
|
||||
|
||||
export interface ApiConnectorConfigListRequest {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiConnectorConfigPartialUpdateRequest {
|
||||
id: number;
|
||||
patchedConnectorConfigConfig?: Omit<PatchedConnectorConfigConfig, 'createdBy'>;
|
||||
patchedConnectorConfig?: Omit<PatchedConnectorConfig, 'createdBy'>;
|
||||
}
|
||||
|
||||
export interface ApiConnectorConfigRetrieveRequest {
|
||||
@@ -547,7 +555,7 @@ export interface ApiConnectorConfigRetrieveRequest {
|
||||
|
||||
export interface ApiConnectorConfigUpdateRequest {
|
||||
id: number;
|
||||
connectorConfigConfig: Omit<ConnectorConfigConfig, 'createdBy'>;
|
||||
connectorConfig: Omit<ConnectorConfig, 'createdBy'>;
|
||||
}
|
||||
|
||||
export interface ApiCookLogCreateRequest {
|
||||
@@ -2628,11 +2636,11 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigCreateRaw(requestParameters: ApiConnectorConfigCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
if (requestParameters['connectorConfigConfig'] == null) {
|
||||
async apiConnectorConfigCreateRaw(requestParameters: ApiConnectorConfigCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfig>> {
|
||||
if (requestParameters['connectorConfig'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'connectorConfigConfig',
|
||||
'Required parameter "connectorConfigConfig" was null or undefined when calling apiConnectorConfigCreate().'
|
||||
'connectorConfig',
|
||||
'Required parameter "connectorConfig" was null or undefined when calling apiConnectorConfigCreate().'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2651,16 +2659,16 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ConnectorConfigConfigToJSON(requestParameters['connectorConfigConfig']),
|
||||
body: ConnectorConfigToJSON(requestParameters['connectorConfig']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigCreate(requestParameters: ApiConnectorConfigCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
async apiConnectorConfigCreate(requestParameters: ApiConnectorConfigCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfig> {
|
||||
const response = await this.apiConnectorConfigCreateRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
@@ -2704,9 +2712,17 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ConnectorConfigConfig>>> {
|
||||
async apiConnectorConfigListRaw(requestParameters: ApiConnectorConfigListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConnectorConfigList>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['page'] != null) {
|
||||
queryParameters['page'] = requestParameters['page'];
|
||||
}
|
||||
|
||||
if (requestParameters['pageSize'] != null) {
|
||||
queryParameters['page_size'] = requestParameters['pageSize'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.apiKey) {
|
||||
@@ -2720,21 +2736,21 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ConnectorConfigConfigFromJSON));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedConnectorConfigListFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConnectorConfigConfig>> {
|
||||
const response = await this.apiConnectorConfigListRaw(initOverrides);
|
||||
async apiConnectorConfigList(requestParameters: ApiConnectorConfigListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConnectorConfigList> {
|
||||
const response = await this.apiConnectorConfigListRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigPartialUpdateRaw(requestParameters: ApiConnectorConfigPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
async apiConnectorConfigPartialUpdateRaw(requestParameters: ApiConnectorConfigPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfig>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
@@ -2757,16 +2773,16 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
method: 'PATCH',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: PatchedConnectorConfigConfigToJSON(requestParameters['patchedConnectorConfigConfig']),
|
||||
body: PatchedConnectorConfigToJSON(requestParameters['patchedConnectorConfig']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigPartialUpdate(requestParameters: ApiConnectorConfigPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
async apiConnectorConfigPartialUpdate(requestParameters: ApiConnectorConfigPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfig> {
|
||||
const response = await this.apiConnectorConfigPartialUpdateRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
@@ -2774,7 +2790,7 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigRetrieveRaw(requestParameters: ApiConnectorConfigRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
async apiConnectorConfigRetrieveRaw(requestParameters: ApiConnectorConfigRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfig>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
@@ -2797,13 +2813,13 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigRetrieve(requestParameters: ApiConnectorConfigRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
async apiConnectorConfigRetrieve(requestParameters: ApiConnectorConfigRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfig> {
|
||||
const response = await this.apiConnectorConfigRetrieveRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
@@ -2811,7 +2827,7 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigUpdateRaw(requestParameters: ApiConnectorConfigUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
async apiConnectorConfigUpdateRaw(requestParameters: ApiConnectorConfigUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfig>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
@@ -2819,10 +2835,10 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['connectorConfigConfig'] == null) {
|
||||
if (requestParameters['connectorConfig'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'connectorConfigConfig',
|
||||
'Required parameter "connectorConfigConfig" was null or undefined when calling apiConnectorConfigUpdate().'
|
||||
'connectorConfig',
|
||||
'Required parameter "connectorConfig" was null or undefined when calling apiConnectorConfigUpdate().'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2841,16 +2857,16 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ConnectorConfigConfigToJSON(requestParameters['connectorConfigConfig']),
|
||||
body: ConnectorConfigToJSON(requestParameters['connectorConfig']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* logs request counts to redis cache total/per user/
|
||||
*/
|
||||
async apiConnectorConfigUpdate(requestParameters: ApiConnectorConfigUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
async apiConnectorConfigUpdate(requestParameters: ApiConnectorConfigUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfig> {
|
||||
const response = await this.apiConnectorConfigUpdateRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
156
vue3/src/openapi/models/ConnectorConfig.ts
Normal file
156
vue3/src/openapi/models/ConnectorConfig.ts
Normal file
@@ -0,0 +1,156 @@
|
||||
/* 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 { ConnectorConfigTypeEnum } from './ConnectorConfigTypeEnum';
|
||||
import {
|
||||
ConnectorConfigTypeEnumFromJSON,
|
||||
ConnectorConfigTypeEnumFromJSONTyped,
|
||||
ConnectorConfigTypeEnumToJSON,
|
||||
} from './ConnectorConfigTypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ConnectorConfig
|
||||
*/
|
||||
export interface ConnectorConfig {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {ConnectorConfigTypeEnum}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
type?: ConnectorConfigTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
url?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
todoEntity?: string;
|
||||
/**
|
||||
* Is Connector Enabled
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
onShoppingListEntryCreatedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
onShoppingListEntryUpdatedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
onShoppingListEntryDeletedEnabled?: boolean;
|
||||
/**
|
||||
* Does the todo entity support the description field
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
supportsDescriptionField?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ConnectorConfig
|
||||
*/
|
||||
readonly createdBy: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ConnectorConfig interface.
|
||||
*/
|
||||
export function instanceOfConnectorConfig(value: object): value is ConnectorConfig {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ConnectorConfigFromJSON(json: any): ConnectorConfig {
|
||||
return ConnectorConfigFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ConnectorConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectorConfig {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'type': json['type'] == null ? undefined : ConnectorConfigTypeEnumFromJSON(json['type']),
|
||||
'url': json['url'] == null ? undefined : json['url'],
|
||||
'token': json['token'] == null ? undefined : json['token'],
|
||||
'todoEntity': json['todo_entity'] == null ? undefined : json['todo_entity'],
|
||||
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
||||
'onShoppingListEntryCreatedEnabled': json['on_shopping_list_entry_created_enabled'] == null ? undefined : json['on_shopping_list_entry_created_enabled'],
|
||||
'onShoppingListEntryUpdatedEnabled': json['on_shopping_list_entry_updated_enabled'] == null ? undefined : json['on_shopping_list_entry_updated_enabled'],
|
||||
'onShoppingListEntryDeletedEnabled': json['on_shopping_list_entry_deleted_enabled'] == null ? undefined : json['on_shopping_list_entry_deleted_enabled'],
|
||||
'supportsDescriptionField': json['supports_description_field'] == null ? undefined : json['supports_description_field'],
|
||||
'createdBy': json['created_by'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ConnectorConfigToJSON(value?: Omit<ConnectorConfig, 'createdBy'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'type': ConnectorConfigTypeEnumToJSON(value['type']),
|
||||
'url': value['url'],
|
||||
'token': value['token'],
|
||||
'todo_entity': value['todoEntity'],
|
||||
'enabled': value['enabled'],
|
||||
'on_shopping_list_entry_created_enabled': value['onShoppingListEntryCreatedEnabled'],
|
||||
'on_shopping_list_entry_updated_enabled': value['onShoppingListEntryUpdatedEnabled'],
|
||||
'on_shopping_list_entry_deleted_enabled': value['onShoppingListEntryDeletedEnabled'],
|
||||
'supports_description_field': value['supportsDescriptionField'],
|
||||
};
|
||||
}
|
||||
|
||||
48
vue3/src/openapi/models/ConnectorConfigTypeEnum.ts
Normal file
48
vue3/src/openapi/models/ConnectorConfigTypeEnum.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* * `HomeAssistant` - HomeAssistant
|
||||
* @export
|
||||
*/
|
||||
export const ConnectorConfigTypeEnum = {
|
||||
HomeAssistant: 'HomeAssistant'
|
||||
} as const;
|
||||
export type ConnectorConfigTypeEnum = typeof ConnectorConfigTypeEnum[keyof typeof ConnectorConfigTypeEnum];
|
||||
|
||||
|
||||
export function instanceOfConnectorConfigTypeEnum(value: any): boolean {
|
||||
for (const key in ConnectorConfigTypeEnum) {
|
||||
if (Object.prototype.hasOwnProperty.call(ConnectorConfigTypeEnum, key)) {
|
||||
if (ConnectorConfigTypeEnum[key] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function ConnectorConfigTypeEnumFromJSON(json: any): ConnectorConfigTypeEnum {
|
||||
return ConnectorConfigTypeEnumFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ConnectorConfigTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectorConfigTypeEnum {
|
||||
return json as ConnectorConfigTypeEnum;
|
||||
}
|
||||
|
||||
export function ConnectorConfigTypeEnumToJSON(value?: ConnectorConfigTypeEnum | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
101
vue3/src/openapi/models/PaginatedConnectorConfigConfigList.ts
Normal file
101
vue3/src/openapi/models/PaginatedConnectorConfigConfigList.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
/* 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 { ConnectorConfigConfig } from './ConnectorConfigConfig';
|
||||
import {
|
||||
ConnectorConfigConfigFromJSON,
|
||||
ConnectorConfigConfigFromJSONTyped,
|
||||
ConnectorConfigConfigToJSON,
|
||||
} from './ConnectorConfigConfig';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedConnectorConfigConfigList
|
||||
*/
|
||||
export interface PaginatedConnectorConfigConfigList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedConnectorConfigConfigList
|
||||
*/
|
||||
count: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedConnectorConfigConfigList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedConnectorConfigConfigList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ConnectorConfigConfig>}
|
||||
* @memberof PaginatedConnectorConfigConfigList
|
||||
*/
|
||||
results: Array<ConnectorConfigConfig>;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof PaginatedConnectorConfigConfigList
|
||||
*/
|
||||
timestamp?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedConnectorConfigConfigList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedConnectorConfigConfigList(value: object): value is PaginatedConnectorConfigConfigList {
|
||||
if (!('count' in value) || value['count'] === undefined) return false;
|
||||
if (!('results' in value) || value['results'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedConnectorConfigConfigListFromJSON(json: any): PaginatedConnectorConfigConfigList {
|
||||
return PaginatedConnectorConfigConfigListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedConnectorConfigConfigListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConnectorConfigConfigList {
|
||||
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(ConnectorConfigConfigFromJSON)),
|
||||
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedConnectorConfigConfigListToJSON(value?: PaginatedConnectorConfigConfigList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': ((value['results'] as Array<any>).map(ConnectorConfigConfigToJSON)),
|
||||
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
101
vue3/src/openapi/models/PaginatedConnectorConfigList.ts
Normal file
101
vue3/src/openapi/models/PaginatedConnectorConfigList.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
/* 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 { ConnectorConfig } from './ConnectorConfig';
|
||||
import {
|
||||
ConnectorConfigFromJSON,
|
||||
ConnectorConfigFromJSONTyped,
|
||||
ConnectorConfigToJSON,
|
||||
} from './ConnectorConfig';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PaginatedConnectorConfigList
|
||||
*/
|
||||
export interface PaginatedConnectorConfigList {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PaginatedConnectorConfigList
|
||||
*/
|
||||
count: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedConnectorConfigList
|
||||
*/
|
||||
next?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedConnectorConfigList
|
||||
*/
|
||||
previous?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ConnectorConfig>}
|
||||
* @memberof PaginatedConnectorConfigList
|
||||
*/
|
||||
results: Array<ConnectorConfig>;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof PaginatedConnectorConfigList
|
||||
*/
|
||||
timestamp?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PaginatedConnectorConfigList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedConnectorConfigList(value: object): value is PaginatedConnectorConfigList {
|
||||
if (!('count' in value) || value['count'] === undefined) return false;
|
||||
if (!('results' in value) || value['results'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PaginatedConnectorConfigListFromJSON(json: any): PaginatedConnectorConfigList {
|
||||
return PaginatedConnectorConfigListFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PaginatedConnectorConfigListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConnectorConfigList {
|
||||
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(ConnectorConfigFromJSON)),
|
||||
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function PaginatedConnectorConfigListToJSON(value?: PaginatedConnectorConfigList | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value['count'],
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': ((value['results'] as Array<any>).map(ConnectorConfigToJSON)),
|
||||
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
154
vue3/src/openapi/models/PatchedConnectorConfig.ts
Normal file
154
vue3/src/openapi/models/PatchedConnectorConfig.ts
Normal file
@@ -0,0 +1,154 @@
|
||||
/* 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 { ConnectorConfigTypeEnum } from './ConnectorConfigTypeEnum';
|
||||
import {
|
||||
ConnectorConfigTypeEnumFromJSON,
|
||||
ConnectorConfigTypeEnumFromJSONTyped,
|
||||
ConnectorConfigTypeEnumToJSON,
|
||||
} from './ConnectorConfigTypeEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PatchedConnectorConfig
|
||||
*/
|
||||
export interface PatchedConnectorConfig {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {ConnectorConfigTypeEnum}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
type?: ConnectorConfigTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
url?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
todoEntity?: string;
|
||||
/**
|
||||
* Is Connector Enabled
|
||||
* @type {boolean}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
onShoppingListEntryCreatedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
onShoppingListEntryUpdatedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
onShoppingListEntryDeletedEnabled?: boolean;
|
||||
/**
|
||||
* Does the todo entity support the description field
|
||||
* @type {boolean}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
supportsDescriptionField?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PatchedConnectorConfig
|
||||
*/
|
||||
readonly createdBy?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PatchedConnectorConfig interface.
|
||||
*/
|
||||
export function instanceOfPatchedConnectorConfig(value: object): value is PatchedConnectorConfig {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PatchedConnectorConfigFromJSON(json: any): PatchedConnectorConfig {
|
||||
return PatchedConnectorConfigFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PatchedConnectorConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedConnectorConfig {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'type': json['type'] == null ? undefined : ConnectorConfigTypeEnumFromJSON(json['type']),
|
||||
'url': json['url'] == null ? undefined : json['url'],
|
||||
'token': json['token'] == null ? undefined : json['token'],
|
||||
'todoEntity': json['todo_entity'] == null ? undefined : json['todo_entity'],
|
||||
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
||||
'onShoppingListEntryCreatedEnabled': json['on_shopping_list_entry_created_enabled'] == null ? undefined : json['on_shopping_list_entry_created_enabled'],
|
||||
'onShoppingListEntryUpdatedEnabled': json['on_shopping_list_entry_updated_enabled'] == null ? undefined : json['on_shopping_list_entry_updated_enabled'],
|
||||
'onShoppingListEntryDeletedEnabled': json['on_shopping_list_entry_deleted_enabled'] == null ? undefined : json['on_shopping_list_entry_deleted_enabled'],
|
||||
'supportsDescriptionField': json['supports_description_field'] == null ? undefined : json['supports_description_field'],
|
||||
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PatchedConnectorConfigToJSON(value?: Omit<PatchedConnectorConfig, 'createdBy'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'type': ConnectorConfigTypeEnumToJSON(value['type']),
|
||||
'url': value['url'],
|
||||
'token': value['token'],
|
||||
'todo_entity': value['todoEntity'],
|
||||
'enabled': value['enabled'],
|
||||
'on_shopping_list_entry_created_enabled': value['onShoppingListEntryCreatedEnabled'],
|
||||
'on_shopping_list_entry_updated_enabled': value['onShoppingListEntryUpdatedEnabled'],
|
||||
'on_shopping_list_entry_deleted_enabled': value['onShoppingListEntryDeletedEnabled'],
|
||||
'supports_description_field': value['supportsDescriptionField'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,7 +8,8 @@ export * from './AutomationTypeEnum';
|
||||
export * from './BaseUnitEnum';
|
||||
export * from './BookmarkletImport';
|
||||
export * from './BookmarkletImportList';
|
||||
export * from './ConnectorConfigConfig';
|
||||
export * from './ConnectorConfig';
|
||||
export * from './ConnectorConfigTypeEnum';
|
||||
export * from './CookLog';
|
||||
export * from './CustomFilter';
|
||||
export * from './DefaultPageEnum';
|
||||
@@ -50,6 +51,7 @@ export * from './OpenDataUnitTypeEnum';
|
||||
export * from './OpenDataVersion';
|
||||
export * from './PaginatedAutomationList';
|
||||
export * from './PaginatedBookmarkletImportListList';
|
||||
export * from './PaginatedConnectorConfigList';
|
||||
export * from './PaginatedCookLogList';
|
||||
export * from './PaginatedCustomFilterList';
|
||||
export * from './PaginatedExportLogList';
|
||||
@@ -85,7 +87,7 @@ export * from './ParsedIngredient';
|
||||
export * from './PatchedAccessToken';
|
||||
export * from './PatchedAutomation';
|
||||
export * from './PatchedBookmarkletImport';
|
||||
export * from './PatchedConnectorConfigConfig';
|
||||
export * from './PatchedConnectorConfig';
|
||||
export * from './PatchedCookLog';
|
||||
export * from './PatchedCustomFilter';
|
||||
export * from './PatchedExportLog';
|
||||
|
||||
Reference in New Issue
Block a user