Refactoring

* Refactor workspace membership system
* Create setup endpoint
* Use Passport.js
* Several updates and fixes
This commit is contained in:
Philipinho
2024-03-16 22:58:12 +00:00
parent b42fe48e9b
commit a821e37028
87 changed files with 2703 additions and 2307 deletions
@@ -0,0 +1,19 @@
export interface StorageDriver {
upload(filePath: string, file: Buffer): Promise<void>;
read(filePath: string): Promise<Buffer>;
exists(filePath: string): Promise<boolean>;
getUrl(filePath: string): string;
getSignedUrl(filePath: string, expireIn: number): Promise<string>;
delete(filePath: string): Promise<void>;
getDriver(): any;
getDriverName(): string;
getConfig(): Record<string, any>;
}