-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from DigiChanges/feat/NR/add-public-bucket
feat: add public bucket and delete endpoint
- Loading branch information
Showing
103 changed files
with
2,502 additions
and
2,321 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 |
---|---|---|
|
@@ -26,9 +26,10 @@ MINIO_ACCESS_KEY=minio | |
MINIO_SECRET_KEY=12345678 | ||
MINIO_USE_SSL=false | ||
MINIO_PORT=9000 | ||
MINIO_BUCKET_NAME=experience | ||
MINIO_PUBLIC_BUCKET=experience.private | ||
MINIO_PRIVATE_BUCKET=experience.public | ||
MINIO_REGION=us-east-1 | ||
FILLESYSTEM_DEFAULT=minio | ||
FILESYSTEM_DEFAULT=minio | ||
|
||
TZ=UTC | ||
|
||
|
@@ -42,7 +43,7 @@ SMTP_PORT=1025 | |
SMTP_USERNAME= | ||
SMTP_PASSWORD= | ||
SMTP_SECURE_SSL=false | ||
SMTP_SENDERNAME=Notifications | ||
SMTP_SENDER_NAME=Notifications | ||
SMTP_SENDER_EMAIL_DEFAULT=[email protected] | ||
|
||
URL_API=http://localhost:8089/api/ | ||
|
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 |
---|---|---|
|
@@ -19,14 +19,15 @@ CACHE_HOST=redis | |
CACHE_PORT=6379 | ||
CACHE_PASSWORD=ewsua132435 | ||
|
||
minio_HOST=minio | ||
minio_ACCESS_KEY=minio | ||
minio_SECRET_KEY=12345678 | ||
minio_USE_SSL=false | ||
minio_PORT=9000 | ||
MINIO_HOST=minio | ||
MINIO_ACCESS_KEY=minio | ||
MINIO_SECRET_KEY=12345678 | ||
MINIO_USE_SSL=false | ||
MINIO_PORT=9000 | ||
MINIO_REGION=us-east-1 | ||
S3_BUCKET_NAME=experience | ||
FILLESYSTEM_DEFAULT=minio | ||
MINIO_PUBLIC_BUCKET=experience.public | ||
MINIO_PRIVATE_BUCKET=experience.private | ||
FILESYSTEM_DEFAULT=minio | ||
|
||
TZ=UTC | ||
|
||
|
@@ -40,7 +41,7 @@ SMTP_PORT=25 | |
SMTP_USERNAME=yourusername | ||
SMTP_PASSWORD=yourpassword | ||
SMTP_SECURE_SSL=false | ||
SMTP_SENDERNAME=Notifications | ||
SMTP_SENDER_NAME=Notifications | ||
SMTP_SENDER_EMAIL_DEFAULT=[email protected] | ||
|
||
URL_API=http://localhost:80/api/ | ||
|
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
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ yarn command addUserRole --role SuperAdmin --email [email protected] --firstNa | |
yarn command activeUser --email [email protected] | ||
yarn command activeUser --email [email protected] | ||
yarn command syncRolesPermission | ||
yarn command createBucket --bucketName experience --region us-east-1 | ||
yarn command createBucket --name experience --region us-east-1 |
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ Bash dev.init.sh Content | |
npx ts-node src/command.ts addUserRole --role Admin --email [email protected] --firstName node --lastName node --password 12345678 --documentType DNI --documentNumber 12345678 --gender male --phone 541112345678 --country AR --address av.1234 --isSuperAdmin false --birthday 04/07/1990 | ||
npx ts-node src/command.ts addUserRole --role SuperAdmin --email [email protected] --firstName super --lastName admin --documentType DNI --documentNumber 12345679 --gender male --phone 541112345678 --country AR --address av.1234 --password 12345678 --birthday 05/07/1990 --isSuperAdmin true | ||
npx ts-node src/command.ts syncRolesPermission | ||
npx ts-node src/command.ts createBucket --bucketName experience --region us-east-1 | ||
npx ts-node src/command.ts createBucket --name experience --region us-east-1 | ||
``` | ||
|
||
Create Push Notifications Keys | ||
|
@@ -122,5 +122,5 @@ To change from Mongoose to TypeORM the following steps must be followed: | |
* ```npx ts-node src/command.ts addUserRole --role Admin --email [email protected] --firstName node --lastName node --password 12345678 --isSuperAdmin false``` | ||
* ```npx ts-node src/command.ts addUserRole --role SuperAdmin --email [email protected] --firstName super --lastName admin --password 12345678 --isSuperAdmin true``` | ||
* ```npx ts-node src/command.ts syncRolesPermission``` | ||
* ```npx ts-node src/command.ts createBucket --bucketName experience --region us-east-1``` | ||
* ```npx ts-node src/command.ts createBucket --name experience --region us-east-1``` | ||
* ```npx ts-node src/command.ts createVapID``` |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ Remember to generate the .env file for the system environment variables. You can | |
yarn command addUserRole --role Admin --email [email protected] --firstName node --lastName node --password 12345678 --documentType DNI --documentNumber 12345678 --gender male --phone 541112345678 --country AR --address av.1234 --isSuperAdmin false --birthday 04/07/1990 | ||
yarn command addUserRole --role SuperAdmin --email [email protected] --firstName super --lastName admin --documentType DNI --documentNumber 12345679 --gender male --phone 541112345678 --country AR --address av.1234 --password 12345678 --birthday 05/07/1990 --isSuperAdmin true | ||
yarn command syncRolesPermission | ||
yarn command createBucket --bucketName experience --region us-east-1 | ||
yarn command createBucket --name experience --region us-east-1 | ||
``` | ||
|
||
## Create Push Notifications Keys | ||
|
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
File renamed without changes.
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,7 @@ | ||
|
||
export type BasePropertiesTransformer = { id: string, createdAt: number, updatedAt: number }; | ||
type OmitPropertiesTransformer = 'createdAt' | 'updatedAt'; | ||
|
||
type BaseTransformer<T> = Partial<Omit<T, OmitPropertiesTransformer>>; | ||
|
||
export default BaseTransformer; |
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
File renamed without changes.
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,10 @@ | ||
|
||
interface CreateBucketPayload | ||
{ | ||
getName(): string; | ||
getRegion(): string; | ||
getPublicBucketPolicy(): string; | ||
getPrivateBucketPolicy(): string; | ||
} | ||
|
||
export default CreateBucketPayload; |
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,9 @@ | ||
import FileOptionsQueryPayload from './FileOptionsQueryPayload'; | ||
import FileRepPayload from './FileRepPayload'; | ||
|
||
interface FileBase64RepPayload extends FileRepPayload, FileOptionsQueryPayload | ||
{ | ||
getBase64(): string, | ||
} | ||
|
||
export default FileBase64RepPayload; |
2 changes: 1 addition & 1 deletion
2
...ile/InterfaceAdapters/Payloads/FileDTO.ts → src/File/Domain/Payloads/FileDTO.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
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,9 @@ | ||
import FileOptionsQueryPayload from './FileOptionsQueryPayload'; | ||
import FileRepPayload from './FileRepPayload'; | ||
|
||
interface FileMultipartRepPayload extends FileRepPayload, FileOptionsQueryPayload | ||
{ | ||
getFile(): any; | ||
} | ||
|
||
export default FileMultipartRepPayload; |
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,9 @@ | ||
|
||
interface FileOptionsQueryPayload | ||
{ | ||
getIsOriginalName(): boolean; | ||
getIsPublic(): boolean; | ||
getIsOverwrite(): boolean; | ||
} | ||
|
||
export default FileOptionsQueryPayload; |
Oops, something went wrong.