-
Notifications
You must be signed in to change notification settings - Fork 14
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 #543 from Onlineberatung/feat/VIC-786-advice-seeke…
…r-books-meeting feat: vic-786 advice seeker books meeting
- Loading branch information
Showing
58 changed files
with
2,257 additions
and
356 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,19 @@ | ||
import { config } from '../resources/scripts/config'; | ||
import { FETCH_METHODS, fetchData } from './fetchData'; | ||
|
||
export const apiAppointmentServiceSet = async ( | ||
content: object, | ||
sessionId: number | ||
): Promise<void> => { | ||
const appointmentSuccessfullySetMessage = { | ||
...content, | ||
messageType: 'APPOINTMENT_SET' | ||
}; | ||
const url = config.endpoints.appointmentBaseNew(sessionId); | ||
return fetchData({ | ||
url, | ||
rcValidation: true, | ||
method: FETCH_METHODS.POST, | ||
bodyData: JSON.stringify(appointmentSuccessfullySetMessage) | ||
}); | ||
}; |
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,13 @@ | ||
import { config } from '../resources/scripts/config'; | ||
import { fetchData, FETCH_METHODS } from './fetchData'; | ||
|
||
export const getCounselorAppointmentLink = async ( | ||
userId: string | ||
): Promise<{ slug: string }> => { | ||
const url = config.endpoints.appointmentServiceEventTypes(userId); | ||
|
||
return fetchData({ | ||
url, | ||
method: FETCH_METHODS.GET | ||
}); | ||
}; |
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,13 @@ | ||
import { config } from '../resources/scripts/config'; | ||
import { fetchData, FETCH_METHODS } from './fetchData'; | ||
//TODO Andre: same here regarding renaming and frontend-theme | ||
export const getTeamAppointmentLink = async ( | ||
agencyId: number | ||
): Promise<{ slug: string }> => { | ||
const url = config.endpoints.appointmentServiceMeetingLink(agencyId); | ||
|
||
return fetchData({ | ||
url, | ||
method: FETCH_METHODS.GET | ||
}); | ||
}; |
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,15 @@ | ||
import { BookingEventsInterface } from '../globalState/interfaces/BookingDataInterface'; | ||
import { config } from '../resources/scripts/config'; | ||
import { fetchData, FETCH_METHODS } from './fetchData'; | ||
|
||
export const apiAppointmentsServiceBookingEventsByAskerId = async ( | ||
userId: string | ||
): Promise<BookingEventsInterface[]> => { | ||
const url = | ||
config.endpoints.appointmentsServiceBookingEventsByUserId(userId); | ||
|
||
return fetchData({ | ||
url, | ||
method: FETCH_METHODS.GET | ||
}); | ||
}; |
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,14 @@ | ||
import { BookingEventsInterface } from '../globalState/interfaces/BookingDataInterface'; | ||
import { config } from '../resources/scripts/config'; | ||
import { fetchData, FETCH_METHODS } from './fetchData'; | ||
|
||
export const apiGetConsultantAppointments = async ( | ||
userId: string | ||
): Promise<BookingEventsInterface[]> => { | ||
const url = config.endpoints.appointmentsServiceConsultantBookings(userId); | ||
|
||
return fetchData({ | ||
url, | ||
method: FETCH_METHODS.GET | ||
}); | ||
}; |
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.