mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
server/www: rename topic text field to transcript
This aleviate the current issue with vercel deployment
This commit is contained in:
@@ -132,7 +132,7 @@ export function TopicList({
|
||||
))}
|
||||
</>
|
||||
) : (
|
||||
<>{topic.text}</>
|
||||
<>{topic.transcript}</>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -9,7 +9,7 @@ export type Topic = {
|
||||
title: string;
|
||||
summary: string;
|
||||
id: string;
|
||||
text: string;
|
||||
transcript: string;
|
||||
segments: SegmentTopic[];
|
||||
};
|
||||
|
||||
|
||||
@@ -19,6 +19,12 @@ import { exists, mapValues } from "../runtime";
|
||||
* @interface GetTranscriptTopic
|
||||
*/
|
||||
export interface GetTranscriptTopic {
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopic
|
||||
*/
|
||||
id: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
@@ -42,7 +48,7 @@ export interface GetTranscriptTopic {
|
||||
* @type {any}
|
||||
* @memberof GetTranscriptTopic
|
||||
*/
|
||||
text: any | null;
|
||||
transcript: any | null;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
@@ -56,10 +62,11 @@ export interface GetTranscriptTopic {
|
||||
*/
|
||||
export function instanceOfGetTranscriptTopic(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "title" in value;
|
||||
isInstance = isInstance && "summary" in value;
|
||||
isInstance = isInstance && "timestamp" in value;
|
||||
isInstance = isInstance && "text" in value;
|
||||
isInstance = isInstance && "transcript" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -76,10 +83,11 @@ export function GetTranscriptTopicFromJSONTyped(
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
id: json["id"],
|
||||
title: json["title"],
|
||||
summary: json["summary"],
|
||||
timestamp: json["timestamp"],
|
||||
text: json["text"],
|
||||
transcript: json["transcript"],
|
||||
segments: !exists(json, "segments") ? undefined : json["segments"],
|
||||
};
|
||||
}
|
||||
@@ -94,10 +102,11 @@ export function GetTranscriptTopicToJSON(
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
id: value.id,
|
||||
title: value.title,
|
||||
summary: value.summary,
|
||||
timestamp: value.timestamp,
|
||||
text: value.text,
|
||||
transcript: value.transcript,
|
||||
segments: value.segments,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user