Refactors video integrations (#1037)

* Fixes error types

* Type fixes

* Refactors video meeting handling

* More type fixes

* Type fixes

* More fixes

* Makes language non optional

* Adds missing translations

* Apply suggestions from code review

Co-authored-by: Alex Johansson <[email protected]>

* Feedback

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Alex Johansson <[email protected]>
This commit is contained in:
authored and GitHub committed 2021-10-26 10:17:24 -06:00
1 parent eabb096e14
commit e38086b8fe
17 files changed
+618 -612

No files matched your search

+6 -1
View File
@@ -2,12 +2,17 @@ import { Booking } from "@prisma/client";
import { LocationType } from "@lib/location";
export type BookingConfirmBody = {
confirmed: boolean;
id: number;
};
export type BookingCreateBody = {
email: string;
end: string;
eventTypeId: number;
guests: string[];
location?: LocationType;
location: LocationType;
name: string;
notes: string;
rescheduleUid?: string;
+2 -4
View File
@@ -1,5 +1,3 @@
export type RequiredNotNull<T> = {
[P in keyof T]: NonNullable<T[P]>;
export type Ensure<T, K extends keyof T> = Omit<T, K> & {
[EK in K]-?: NonNullable<T[EK]>;
};
export type Ensure<T, K extends keyof T> = T & RequiredNotNull<Pick<T, K>>;