-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(album): envia email notificando sobre marcação em foto
- Loading branch information
Showing
35 changed files
with
335 additions
and
143 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 @@ | ||
<div> | ||
<h2>{{value}}</h2> | ||
<h3>{{value}}</h3> | ||
</div> | ||
|
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,12 @@ | ||
<div> | ||
<h3>Olá {{displayName}}, tudo beleza?</h3> | ||
|
||
<p> | ||
Você foi marcado(a) em uma foto da comunidade, acesse o album | ||
<a href="{{url}}">{{title}}</a> para ver | ||
</p> | ||
</div> | ||
|
||
<footer> | ||
<img src="https://devparana.mx/portal-devpr-mx.svg" alt="Portal devparana.mx"> | ||
</footer> |
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,5 +1,5 @@ | ||
import { provideFacades, provideServices, provideUseCases } from './providers'; | ||
import { provideAlbum, providePhoto } from './providers'; | ||
|
||
export function provideAlbums() { | ||
return [...provideServices(), ...provideUseCases(), ...provideFacades()]; | ||
return [...provideAlbum(), ...providePhoto()]; | ||
} |
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,6 +1,7 @@ | ||
export * from './album'; | ||
export * from './create-album'; | ||
export * from './create-photo'; | ||
export * from './photo'; | ||
export * from './update-album'; | ||
export * from './update-photo'; | ||
export * from './album'; | ||
export * from './create-album'; | ||
export * from './create-photo'; | ||
export * from './photo'; | ||
export * from './update-album'; | ||
export * from './update-photo-tags'; | ||
export * from './update-photo'; |
42 changes: 42 additions & 0 deletions
42
packages/album/data-source/src/lib/dtos/update-photo-tags.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,42 @@ | ||
import { IsNotEmpty, IsNumber, IsOptional } from 'class-validator'; | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { UserTagDto } from '@devmx/shared-data-source'; | ||
import { Exclude, Type } from 'class-transformer'; | ||
import { | ||
UserTag, | ||
ImageMimeType, | ||
UpdatePhotoTags, | ||
} from '@devmx/shared-api-interfaces'; | ||
|
||
export class UpdatePhotoTagsDto implements UpdatePhotoTags { | ||
id: string; | ||
|
||
@Exclude() | ||
data: string; | ||
|
||
@IsNumber() | ||
@ApiProperty() | ||
@Type(() => Number) | ||
width: number; | ||
|
||
@IsNumber() | ||
@ApiProperty() | ||
@Type(() => Number) | ||
height: number; | ||
|
||
@IsNotEmpty() | ||
album: string; | ||
|
||
@IsOptional() | ||
@ApiPropertyOptional() | ||
type: ImageMimeType; | ||
|
||
@IsOptional() | ||
@ApiPropertyOptional() | ||
caption?: string; | ||
|
||
@Type(() => UserTagDto) | ||
tags: UserTag[] = []; | ||
|
||
owner: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { provideAlbumsMongoService } from '../infrastructure'; | ||
import { provideAlbumsFacade } from '../application'; | ||
import { | ||
provideCreateAlbumUseCase, | ||
provideDeleteAlbumUseCase, | ||
provideFindAlbumByIDUseCase, | ||
provideFindAlbumsUseCase, | ||
provideUpdateAlbumUseCase, | ||
} from '@devmx/album-domain/server'; | ||
|
||
export function provideAlbum() { | ||
return [ | ||
provideAlbumsMongoService(), | ||
|
||
provideCreateAlbumUseCase(), | ||
provideFindAlbumsUseCase(), | ||
provideFindAlbumByIDUseCase(), | ||
provideUpdateAlbumUseCase(), | ||
provideDeleteAlbumUseCase(), | ||
|
||
provideAlbumsFacade() | ||
]; | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './facades'; | ||
export * from './services'; | ||
export * from './use-cases'; | ||
export * from './album'; | ||
export * from './photo'; |
Oops, something went wrong.