Moves locations to App Store and Core
parent
68454ce883
commit
903f7eb7ac
|
@ -1 +1 @@
|
|||
export * from "@calcom/lib/location";
|
||||
export * from "@calcom/core/location";
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
/** TODO: These should all come from each individual App Store package, and merge them here. */
|
||||
export enum LocationType {
|
||||
export enum DefaultLocationType {
|
||||
InPerson = "inPerson",
|
||||
Phone = "phone",
|
||||
Link = "link",
|
||||
}
|
||||
|
||||
/** If your App has a location option, add it here */
|
||||
export enum AppStoreLocationType {
|
||||
GoogleMeet = "integrations:google:meet",
|
||||
Zoom = "integrations:zoom",
|
||||
Daily = "integrations:daily",
|
||||
|
@ -11,3 +14,6 @@ export enum LocationType {
|
|||
Tandem = "integrations:tandem",
|
||||
Teams = "integrations:office365_video",
|
||||
}
|
||||
|
||||
export const LocationType = { ...DefaultLocationType, ...AppStoreLocationType };
|
||||
export type LocationType = DefaultLocationType | AppStoreLocationType;
|
|
@ -1,10 +1,10 @@
|
|||
import { Prisma } from "@prisma/client";
|
||||
import { TFunction } from "next-i18next";
|
||||
|
||||
import { LocationType } from "@calcom/lib/location";
|
||||
import type { App } from "@calcom/types/App";
|
||||
|
||||
import appStore from ".";
|
||||
import { LocationType } from "./locations";
|
||||
|
||||
const ALL_APPS_MAP = Object.keys(appStore).reduce((store, key) => {
|
||||
store[key] = appStore[key as keyof typeof appStore].metadata;
|
||||
|
|
|
@ -4,7 +4,6 @@ import merge from "lodash/merge";
|
|||
import { v5 as uuidv5 } from "uuid";
|
||||
|
||||
import getApps from "@calcom/app-store/utils";
|
||||
import { LocationType } from "@calcom/lib/location";
|
||||
import prisma from "@calcom/prisma";
|
||||
import type { AdditionInformation, CalendarEvent } from "@calcom/types/Calendar";
|
||||
import type {
|
||||
|
@ -16,6 +15,7 @@ import type {
|
|||
import type { VideoCallData } from "@calcom/types/VideoApiAdapter";
|
||||
|
||||
import { createEvent, updateEvent } from "./CalendarManager";
|
||||
import { LocationType } from "./location";
|
||||
import { createMeeting, updateMeeting } from "./videoClient";
|
||||
|
||||
export type Event = AdditionInformation & VideoCallData;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from "@calcom/app-store/locations";
|
|
@ -1,6 +1,6 @@
|
|||
import { z } from "zod";
|
||||
|
||||
import { LocationType } from "@calcom/lib/location";
|
||||
import { LocationType } from "@calcom/core/location";
|
||||
import { slugify } from "@calcom/lib/slugify";
|
||||
|
||||
export const eventTypeLocations = z.array(
|
||||
|
|
Loading…
Reference in New Issue