-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: some changes updated regarding to reviews
- Loading branch information
1 parent
935d3ed
commit 286305a
Showing
19 changed files
with
166 additions
and
199 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 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
2 changes: 1 addition & 1 deletion
2
src/contact/domain/models/Contact.ts → src/contact/domain/models/ContactResponse.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,4 +1,4 @@ | ||
export interface Contact { | ||
export interface ContactResponse { | ||
subject: string | ||
body: string | ||
fromEmail: 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { FeedbackDTO } from '../useCases/FeedbackDTO' | ||
import { Contact } from '../models/Contact' | ||
import { ContactResponse } from '../models/ContactResponse' | ||
|
||
export interface ContactRepository { | ||
sendFeedbacktoOwners: (feedbackDTO: FeedbackDTO) => Promise<Contact[]> | ||
sendFeedbacktoOwners: (feedbackDTO: FeedbackDTO) => Promise<ContactResponse[]> | ||
} |
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,10 +1,10 @@ | ||
import { submitContactInfo } from '@iqss/dataverse-client-javascript' | ||
import { Contact } from '../domain/models/Contact' | ||
import { ContactResponse } from '../domain/models/ContactResponse' | ||
import { ContactRepository } from '../domain/repositories/ContactRepository' | ||
import { FeedbackDTO } from '../domain/useCases/FeedbackDTO' | ||
|
||
export class ContactJSDataverseRepository implements ContactRepository { | ||
async sendFeedbacktoOwners(feedbackDTO: FeedbackDTO): Promise<Contact[]> { | ||
return submitContactInfo.execute(feedbackDTO).then((response: Contact[]) => response) | ||
async sendFeedbacktoOwners(feedbackDTO: FeedbackDTO): Promise<ContactResponse[]> { | ||
return submitContactInfo.execute(feedbackDTO).then((response: ContactResponse[]) => response) | ||
} | ||
} |
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
Oops, something went wrong.