-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- changed folder structure to accommodate BE logic
- Loading branch information
1 parent
edfe2ea
commit b0da73a
Showing
72 changed files
with
759 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { S3ClientConfig } from '@aws-sdk/client-s3' | ||
import { Provider } from 'types/StorageSDK' | ||
|
||
export interface FileParams { | ||
name: string | ||
type: string | ||
size: number | ||
|
||
accept?: string | ||
maxFileSize?: number | ||
multiple?: boolean | ||
} | ||
|
||
interface UrlParams { | ||
fileParams: FileParams | ||
expiresIn?: number | ||
} | ||
|
||
export type S3PresignedUrlParams = UrlParams & { | ||
bucketName: string | ||
s3ClientConfig: S3ClientConfig | ||
origin: string | ||
provider: Provider | ||
} | ||
|
||
export type AzureSasUrlParams = UrlParams & { | ||
containerName: string | ||
credentials: AzureCredentials | ||
} | ||
|
||
export type AzureCredentials = { | ||
tenantId: string | ||
clientId: string | ||
clientSecret: string | ||
storageAccount: string | ||
} |
Oops, something went wrong.