Implemented API from code generated by OpenAPI

This commit is contained in:
Koper
2023-08-10 18:33:50 +07:00
parent e1b33b6857
commit e8c054b4ca
24 changed files with 3331 additions and 36 deletions

View File

@@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface CreateTranscript
*/
export interface CreateTranscript {
/**
*
* @type {any}
* @memberof CreateTranscript
*/
name: any | null;
}
/**
* Check if a given object implements the CreateTranscript interface.
*/
export function instanceOfCreateTranscript(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "name" in value;
return isInstance;
}
export function CreateTranscriptFromJSON(json: any): CreateTranscript {
return CreateTranscriptFromJSONTyped(json, false);
}
export function CreateTranscriptFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): CreateTranscript {
if (json === undefined || json === null) {
return json;
}
return {
name: json["name"],
};
}
export function CreateTranscriptToJSON(value?: CreateTranscript | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
name: value.name,
};
}

View File

@@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface DeletionStatus
*/
export interface DeletionStatus {
/**
*
* @type {any}
* @memberof DeletionStatus
*/
status: any | null;
}
/**
* Check if a given object implements the DeletionStatus interface.
*/
export function instanceOfDeletionStatus(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "status" in value;
return isInstance;
}
export function DeletionStatusFromJSON(json: any): DeletionStatus {
return DeletionStatusFromJSONTyped(json, false);
}
export function DeletionStatusFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): DeletionStatus {
if (json === undefined || json === null) {
return json;
}
return {
status: json["status"],
};
}
export function DeletionStatusToJSON(value?: DeletionStatus | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
status: value.status,
};
}

View File

@@ -0,0 +1,111 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface GetTranscript
*/
export interface GetTranscript {
/**
*
* @type {any}
* @memberof GetTranscript
*/
id: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
name: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
status: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
locked: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
duration: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
createdAt: any | null;
}
/**
* Check if a given object implements the GetTranscript interface.
*/
export function instanceOfGetTranscript(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "status" in value;
isInstance = isInstance && "locked" in value;
isInstance = isInstance && "duration" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
export function GetTranscriptFromJSON(json: any): GetTranscript {
return GetTranscriptFromJSONTyped(json, false);
}
export function GetTranscriptFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): GetTranscript {
if (json === undefined || json === null) {
return json;
}
return {
id: json["id"],
name: json["name"],
status: json["status"],
locked: json["locked"],
duration: json["duration"],
createdAt: json["created_at"],
};
}
export function GetTranscriptToJSON(value?: GetTranscript | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
id: value.id,
name: value.name,
status: value.status,
locked: value.locked,
duration: value.duration,
created_at: value.createdAt,
};
}

View File

@@ -0,0 +1,67 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface HTTPValidationError
*/
export interface HTTPValidationError {
/**
*
* @type {any}
* @memberof HTTPValidationError
*/
detail?: any | null;
}
/**
* Check if a given object implements the HTTPValidationError interface.
*/
export function instanceOfHTTPValidationError(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
return HTTPValidationErrorFromJSONTyped(json, false);
}
export function HTTPValidationErrorFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): HTTPValidationError {
if (json === undefined || json === null) {
return json;
}
return {
detail: !exists(json, "detail") ? undefined : json["detail"],
};
}
export function HTTPValidationErrorToJSON(
value?: HTTPValidationError | null,
): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
detail: value.detail,
};
}

View File

@@ -0,0 +1,101 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface PageGetTranscript
*/
export interface PageGetTranscript {
/**
*
* @type {any}
* @memberof PageGetTranscript
*/
items: any | null;
/**
*
* @type {any}
* @memberof PageGetTranscript
*/
total: any | null;
/**
*
* @type {any}
* @memberof PageGetTranscript
*/
page: any | null;
/**
*
* @type {any}
* @memberof PageGetTranscript
*/
size: any | null;
/**
*
* @type {any}
* @memberof PageGetTranscript
*/
pages?: any | null;
}
/**
* Check if a given object implements the PageGetTranscript interface.
*/
export function instanceOfPageGetTranscript(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "items" in value;
isInstance = isInstance && "total" in value;
isInstance = isInstance && "page" in value;
isInstance = isInstance && "size" in value;
return isInstance;
}
export function PageGetTranscriptFromJSON(json: any): PageGetTranscript {
return PageGetTranscriptFromJSONTyped(json, false);
}
export function PageGetTranscriptFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): PageGetTranscript {
if (json === undefined || json === null) {
return json;
}
return {
items: json["items"],
total: json["total"],
page: json["page"],
size: json["size"],
pages: !exists(json, "pages") ? undefined : json["pages"],
};
}
export function PageGetTranscriptToJSON(value?: PageGetTranscript | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
items: value.items,
total: value.total,
page: value.page,
size: value.size,
pages: value.pages,
};
}

View File

@@ -0,0 +1,75 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface RtcOffer
*/
export interface RtcOffer {
/**
*
* @type {any}
* @memberof RtcOffer
*/
sdp: any | null;
/**
*
* @type {any}
* @memberof RtcOffer
*/
type: any | null;
}
/**
* Check if a given object implements the RtcOffer interface.
*/
export function instanceOfRtcOffer(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "sdp" in value;
isInstance = isInstance && "type" in value;
return isInstance;
}
export function RtcOfferFromJSON(json: any): RtcOffer {
return RtcOfferFromJSONTyped(json, false);
}
export function RtcOfferFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): RtcOffer {
if (json === undefined || json === null) {
return json;
}
return {
sdp: json["sdp"],
type: json["type"],
};
}
export function RtcOfferToJSON(value?: RtcOffer | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
sdp: value.sdp,
type: value.type,
};
}

View File

@@ -0,0 +1,101 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface TranscriptTopic
*/
export interface TranscriptTopic {
/**
*
* @type {any}
* @memberof TranscriptTopic
*/
id?: any | null;
/**
*
* @type {any}
* @memberof TranscriptTopic
*/
title: any | null;
/**
*
* @type {any}
* @memberof TranscriptTopic
*/
summary: any | null;
/**
*
* @type {any}
* @memberof TranscriptTopic
*/
transcript: any | null;
/**
*
* @type {any}
* @memberof TranscriptTopic
*/
timestamp: any | null;
}
/**
* Check if a given object implements the TranscriptTopic interface.
*/
export function instanceOfTranscriptTopic(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "title" in value;
isInstance = isInstance && "summary" in value;
isInstance = isInstance && "transcript" in value;
isInstance = isInstance && "timestamp" in value;
return isInstance;
}
export function TranscriptTopicFromJSON(json: any): TranscriptTopic {
return TranscriptTopicFromJSONTyped(json, false);
}
export function TranscriptTopicFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): TranscriptTopic {
if (json === undefined || json === null) {
return json;
}
return {
id: !exists(json, "id") ? undefined : json["id"],
title: json["title"],
summary: json["summary"],
transcript: json["transcript"],
timestamp: json["timestamp"],
};
}
export function TranscriptTopicToJSON(value?: TranscriptTopic | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
id: value.id,
title: value.title,
summary: value.summary,
transcript: value.transcript,
timestamp: value.timestamp,
};
}

View File

@@ -0,0 +1,73 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface UpdateTranscript
*/
export interface UpdateTranscript {
/**
*
* @type {any}
* @memberof UpdateTranscript
*/
name?: any | null;
/**
*
* @type {any}
* @memberof UpdateTranscript
*/
locked?: any | null;
}
/**
* Check if a given object implements the UpdateTranscript interface.
*/
export function instanceOfUpdateTranscript(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateTranscriptFromJSON(json: any): UpdateTranscript {
return UpdateTranscriptFromJSONTyped(json, false);
}
export function UpdateTranscriptFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): UpdateTranscript {
if (json === undefined || json === null) {
return json;
}
return {
name: !exists(json, "name") ? undefined : json["name"],
locked: !exists(json, "locked") ? undefined : json["locked"],
};
}
export function UpdateTranscriptToJSON(value?: UpdateTranscript | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
name: value.name,
locked: value.locked,
};
}

View File

@@ -0,0 +1,84 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.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 { exists, mapValues } from "../runtime";
/**
*
* @export
* @interface ValidationError
*/
export interface ValidationError {
/**
*
* @type {any}
* @memberof ValidationError
*/
loc: any | null;
/**
*
* @type {any}
* @memberof ValidationError
*/
msg: any | null;
/**
*
* @type {any}
* @memberof ValidationError
*/
type: any | null;
}
/**
* Check if a given object implements the ValidationError interface.
*/
export function instanceOfValidationError(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "loc" in value;
isInstance = isInstance && "msg" in value;
isInstance = isInstance && "type" in value;
return isInstance;
}
export function ValidationErrorFromJSON(json: any): ValidationError {
return ValidationErrorFromJSONTyped(json, false);
}
export function ValidationErrorFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ValidationError {
if (json === undefined || json === null) {
return json;
}
return {
loc: json["loc"],
msg: json["msg"],
type: json["type"],
};
}
export function ValidationErrorToJSON(value?: ValidationError | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
loc: value.loc,
msg: value.msg,
type: value.type,
};
}

View File

@@ -0,0 +1,11 @@
/* tslint:disable */
/* eslint-disable */
export * from "./CreateTranscript";
export * from "./DeletionStatus";
export * from "./GetTranscript";
export * from "./HTTPValidationError";
export * from "./PageGetTranscript";
export * from "./RtcOffer";
export * from "./TranscriptTopic";
export * from "./UpdateTranscript";
export * from "./ValidationError";