Skip to content

Commit 9a29201

Browse files
authored
Merge pull request #522 from companieshouse/BI-12506-create-model-types-in-api-sdk-node
Adding model types to represent file data
2 parents d29eabd + 337085f commit 9a29201

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
export interface File {
2+
fileName: string;
3+
body: ArrayBuffer;
4+
mimeType: string;
5+
size: number;
6+
extension: string
7+
}
8+
9+
export interface FileDetails {
10+
id: string;
11+
avTimestamp: string;
12+
avStatus: AvStatus;
13+
contentType: string;
14+
size: number;
15+
name: string;
16+
createdOn: string;
17+
links: FileLinks;
18+
}
19+
20+
export interface FileLinks {
21+
download: string;
22+
self: string;
23+
}
24+
25+
export enum AvStatus {
26+
INFECTED = "INFECTED",
27+
CLEAN = "CLEAN",
28+
NOT_SCANNED = "NOT_SCANNED"
29+
}

0 commit comments

Comments
 (0)