mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-21 06:03:13 +02:00
initial commit
This commit is contained in:
15
src/types/Appwrite.type.ts
Normal file
15
src/types/Appwrite.type.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Models } from "node-appwrite";
|
||||
|
||||
export type ShareDocument = {
|
||||
securityID: string;
|
||||
createdAt: number;
|
||||
expiresAt: number;
|
||||
visitorCount: number;
|
||||
enabled: boolean;
|
||||
} & Models.Document;
|
||||
|
||||
|
||||
export type SecurityDocument = {
|
||||
password: string;
|
||||
maxVisitors: number;
|
||||
} & Models.Document;
|
||||
7
src/types/File.type.ts
Normal file
7
src/types/File.type.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Models } from "appwrite";
|
||||
|
||||
export type FileUpload = File & { uploadingState?: UploadState };
|
||||
export type UploadState = "finished" | "inProgress" | undefined;
|
||||
|
||||
export type AppwriteFileWithPreview = Models.File & { preview: Buffer };
|
||||
|
||||
Reference in New Issue
Block a user