Users Phone Number Option (#2669)

* Users Phone Number Option

* Implemented improvments

* Add validation to form

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
This commit is contained in:
authored and GitHub committed 2022-05-16 09:50:12 -06:00
1 parent 3c37c2e774
commit 7fd149fd2e
7 files changed
+72 -6

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
export enum DefaultLocationType {
InPerson = "inPerson",
Phone = "phone",
UserPhone = "userPhone",
Link = "link",
}
+2 -1
View File
@@ -36,7 +36,8 @@ function translateLocations(locations: OptionTypeBase[], t: TFunction) {
const defaultLocations: OptionTypeBase[] = [
{ value: LocationType.InPerson, label: "in_person_meeting" },
{ value: LocationType.Link, label: "link_meeting" },
{ value: LocationType.Phone, label: "phone_call" },
{ value: LocationType.Phone, label: "attendee_phone_number" },
{ value: LocationType.UserPhone, label: "host_phone_number" },
];
export function getLocationOptions(integrations: AppMeta, t: TFunction) {
+1
View File
@@ -9,6 +9,7 @@ export const eventTypeLocations = z.array(
type: z.nativeEnum(LocationType),
address: z.string().optional(),
link: z.string().url().optional(),
hostPhoneNumber: z.string().optional(),
})
);