setting up basics of the links

This commit is contained in:
Arjun Patel
2022-01-18 16:24:20 -08:00
parent 5686d0fcb8
commit bf180f8334
9 changed files with 390 additions and 14 deletions
-8
View File
@@ -1,8 +0,0 @@
export default class Attachment {
id: string;
name: string;
description: string;
link: string;
constructor() {}
}
+30
View File
@@ -0,0 +1,30 @@
import { Timestamp } from "firebase/firestore";
export default class Link {
id: string;
name: string;
description: string;
link: string; //url for file
state: AttachmentState = AttachmentState.active;
isLoomScreenshare: boolean = false;
teamId: string;
// if it's not a teamAttachment, then have a list of members who it's for
createdByUserId: string;
createdDate: Timestamp;
constructor(id: string, name: string, description: string) {}
}
export enum AttachmentState {
active = "active",
archived = "archived",
}
export enum AttachmentType {
link = "link",
screenshare = "",
}