Skip to content

Commit b5245ad

Browse files
authored
Merge pull request #1629 from bcgov/dev
Relase DEV to TEST
2 parents ec248b2 + bb9a782 commit b5245ad

File tree

3 files changed

+334
-130
lines changed

3 files changed

+334
-130
lines changed

api/src/services/platform-service.interface.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,40 @@ export interface ISubmissionHistoryRow {
1515
createDate: string;
1616
submissionId?: number;
1717
}
18+
19+
export interface UploadPart {
20+
partNumber: number;
21+
url: string;
22+
partSizeBytes: number;
23+
}
24+
25+
export interface UploadPartByteRange extends UploadPart {
26+
start: number;
27+
end: number;
28+
}
29+
30+
export interface SubmissionUploadInitiateResult {
31+
uploadId: string;
32+
s3UploadId: string;
33+
key: string;
34+
presignedUrls: UploadPart[];
35+
partCount: number;
36+
submissionId: string;
37+
submissionUploadId: string;
38+
}
39+
40+
export interface SubmissionUploadInitiateResponse extends SubmissionUploadInitiateResult {
41+
uploadArchiveId: string;
42+
}
43+
44+
export interface UploadTarFilePartsOptions {
45+
concurrencyLimit?: number;
46+
}
47+
48+
/**
49+
* Interface for multipart upload result
50+
*/
51+
export interface UploadResult {
52+
PartNumber: number;
53+
ETag: string;
54+
}

0 commit comments

Comments
 (0)