-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blokh/feat/implment-s-3-filemanager (#284)
* feat: added S3 client added S3 client. * feat: removed unnecessary variables * feat: merged with dev * update migration names and timeline * refactor(fixed pr comments): fixed pr comments * updated is_prefix to use boolean * update migration names and timeline * updated after PR comments, refactored names, tested logics * fixed error throwing of aws * merged with dev * removed unnecessary logs * updated private methods to be in the correct format * removed unnecessary export * Blokh/feat/File Service + File Provider Interface (#282) * process to process env to be more explicit * generated interface for file proviers. finalized S3 provier and http provider> TBD * added error with name to common * update common version * generate local mananager service file provider * generate file service logic * generate first streamable handling process * feat(file service): finalized file service provider and stracture * finalized file service module * finalized file service module * finalize file service - began working ontest * finalized file service via streamingm * finished the upload logic for local file manager, tested everything, updated package json --------- Co-authored-by: blokh <danielb@ballerine.com> * added more fixes --------- Co-authored-by: blokh <danielb@ballerine.com>
- Loading branch information
Showing
38 changed files
with
1,763 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/common': minor | ||
--- | ||
|
||
added error with name validation |
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
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,8 @@ | ||
import { z } from 'zod'; | ||
import { ObjectWithIdSchema } from '../utils/object-with-id'; | ||
export const FileInfoSchema = ObjectWithIdSchema.extend({ | ||
userId: z.string().nullable().default(''), | ||
fileNameOnDisk: z.string().default(''), | ||
uri: z.string().nullable().default(''), | ||
fileNameInBucket: z.string().default(''), | ||
}); |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
apps/backoffice-v2/src/utils/is-error-with-name/is-error-with-message.ts
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,6 @@ | ||
import { isObject } from '../is-object/is-object'; | ||
import { IErrorWithName } from './interfaces'; | ||
|
||
export const isErrorWithName = (error: unknown): error is IErrorWithName => { | ||
return isObject(error) && 'name' in error && typeof error.name === 'string'; | ||
}; |
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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { isErrorWithMessage } from './is-error-with-message'; | ||
export { isErrorWithName } from './is-error-with-name'; |
4 changes: 4 additions & 0 deletions
4
packages/common/src/utils/is-error-with-message/interfaces.ts
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
export interface IErrorWithMessage extends Error { | ||
message: string; | ||
} | ||
|
||
export interface IErrorWithName extends Error { | ||
name: string; | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/common/src/utils/is-error-with-message/is-error-with-name.ts
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,6 @@ | ||
import { isObject } from '@/utils'; | ||
import { IErrorWithName } from './interfaces'; | ||
|
||
export const isErrorWithName = (error: unknown): error is IErrorWithName => { | ||
return isObject(error) && 'name' in error && typeof error.name === 'string'; | ||
}; |
Oops, something went wrong.