feat: add POST end point to mark calls as no-shows (#15690)

* feat: add POST end point to mark calls as no-shows

* fix: type

* feat: add v2 endpoint

* wip

* chore: type err

* chore: add permission

* chore: remove packae

* chore: remove v1 API endpoint

* fix: endpoint

* feat: add new version

* chore: change route

* chore: error msg

* fix: message

* fix: type err

* chore: output

* fix: type err

* chore: bump libraries to 0.0.17

* chore: add noShowHost

---------

Co-authored-by: Joe Au-Yeung <[email protected]>
Co-authored-by: Morgan <[email protected]>
Co-authored-by: Morgan Vernay <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-07-10 13:01:10 +00:00
1 parent 1263519973
commit 8ee27d3997
11 files changed
+294 -133

No files matched your search

@@ -692,7 +692,10 @@ const Attendee = (attendeeProps: AttendeeProps & NoShowProps) => {
const noShowMutation = trpc.viewer.public.noShow.useMutation({
onSuccess: async (data) => {
showToast(t(data.message, { x: name || email }), "success");
showToast(
t("messageKey" in data && data.messageKey ? data.messageKey : data.message, { x: name || email }),
"success"
);
},
onError: (err) => {
showToast(err.message, "error");
@@ -800,7 +803,7 @@ const GroupedAttendees = (groupedAttendeeProps: GroupedAttendeeProps) => {
const { t } = useLocale();
const noShowMutation = trpc.viewer.public.noShow.useMutation({
onSuccess: async (data) => {
showToast(t(data.message), "success");
showToast(t("messageKey" in data && data.messageKey ? data.messageKey : data.message), "success");
},
onError: (err) => {
showToast(err.message, "error");