|
|
@@ -1,5 +1,73 @@
|
|
|
+import { IStudio } from "../auth/Studio";
|
|
|
+import { IUser } from "../auth/User";
|
|
|
+
|
|
|
export interface TagNode {
|
|
|
id: string;
|
|
|
name: string;
|
|
|
description?: string;
|
|
|
}
|
|
|
+
|
|
|
+export interface ITagRequest {
|
|
|
+ id?: string;
|
|
|
+ name?: string;
|
|
|
+ description?: string | null;
|
|
|
+ color?: number;
|
|
|
+ studio?: string;
|
|
|
+ created_at?: string;
|
|
|
+ updated_at?: string;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagData {
|
|
|
+ id: string;
|
|
|
+ name: string;
|
|
|
+ description?: string | null;
|
|
|
+ color: number;
|
|
|
+ owner: IStudio;
|
|
|
+ created_at: string;
|
|
|
+ updated_at: string;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagResponse {
|
|
|
+ ok: boolean;
|
|
|
+ message: string;
|
|
|
+ data: ITagData;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagResponseList {
|
|
|
+ ok: boolean;
|
|
|
+ message: string;
|
|
|
+ data: { rows: ITagData[]; count: number };
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagMapRequest {
|
|
|
+ id?: string;
|
|
|
+ table_name?: string;
|
|
|
+ anchor_id?: string;
|
|
|
+ tag_id?: string;
|
|
|
+ studio?: string;
|
|
|
+ course?: string;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagMapData {
|
|
|
+ id: string;
|
|
|
+ table_name: string;
|
|
|
+ anchor_id: string;
|
|
|
+ tag_id: string;
|
|
|
+ title?: string;
|
|
|
+ editor: IUser;
|
|
|
+ owner: IStudio;
|
|
|
+ created_at: string;
|
|
|
+ updated_at: string;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagMapResponse {
|
|
|
+ ok: boolean;
|
|
|
+ message: string;
|
|
|
+ data: ITagMapData;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ITagMapResponseList {
|
|
|
+ ok: boolean;
|
|
|
+ message: string;
|
|
|
+ data: { rows: ITagMapData[]; count: number };
|
|
|
+}
|