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:
17 files changed
+618
-612
No files matched your search
@@ -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
@@ -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>>;
|
||||
Reference in new issue
Block a user