Add FileBlob and FileData
This commit is contained in:
parent
07197ee289
commit
b781524b7f
21
src/front/Api/Entities/types.ts
Normal file
21
src/front/Api/Entities/types.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/**
|
||||||
|
* FileBlob interface representing a file's binary data and metadata
|
||||||
|
* Used for file transmission and storage in the application
|
||||||
|
*/
|
||||||
|
export interface FileBlob {
|
||||||
|
/** MIME type of the file (e.g., "application/pdf", "image/jpeg") */
|
||||||
|
type: string;
|
||||||
|
/** Binary data of the file as Uint8Array */
|
||||||
|
data: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FileData interface representing a complete file object with blob and metadata
|
||||||
|
* Used when creating or updating files in the system
|
||||||
|
*/
|
||||||
|
export interface FileData {
|
||||||
|
/** The file blob containing type and binary data */
|
||||||
|
file_blob: FileBlob;
|
||||||
|
/** The name of the file */
|
||||||
|
file_name: string;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user