fix(medusa-interfaces, medusa-file-*): flag for streaming to a private bucket (#4771)

* wip: unify file service api

* fix: flag type

* fix: update Spaces service

* fix: S3/Spaces - default to private

* fix: MinIO `isPrivate` for `getPresignedDownloadUrl`, add `isPrivate` to `GetUploadedFileType`

* chore: changeset
This commit is contained in:
Frane Polić
2023-08-22 13:05:30 +02:00
committed by GitHub
parent 80d603a63d
commit edf9ed4e59
5 changed files with 29 additions and 14 deletions
@@ -15,6 +15,7 @@ export type FileServiceGetUploadStreamResult = {
export type GetUploadedFileType = {
fileKey: string
isPrivate?: boolean
[x: string]: unknown
}
@@ -26,7 +27,7 @@ export type DeleteFileType = {
export type UploadStreamDescriptorType = {
name: string
ext?: string
acl?: string
isPrivate?: boolean
[x: string]: unknown
}