Move routing forms outside of ee and use LicenseRequired component instead. (#7639)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
1 parent
dbf74890a5
commit
6d82e3f1b6
59 files changed
+22
-21
No files matched your search
+1
-1
@@ -30,4 +30,4 @@ packages/features/ee/workflows @CarinaWolli @calcom/core
|
||||
packages/features/tips @PeerRich @calcom/core
|
||||
packages/ui @calcom/ui
|
||||
packages/config @calcom/core
|
||||
packages/app-store/ee/routing-forms @hariombalhara @calcom/core
|
||||
packages/app-store/routing-forms @hariombalhara @calcom/core
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { GetServerSidePropsContext } from "next";
|
||||
import { useRouter } from "next/router";
|
||||
|
||||
import RoutingFormsRoutingConfig from "@calcom/app-store/ee/routing-forms/pages/app-routing.config";
|
||||
import RoutingFormsRoutingConfig from "@calcom/app-store/routing-forms/pages/app-routing.config";
|
||||
import TypeformRoutingConfig from "@calcom/app-store/typeform/pages/app-routing.config";
|
||||
import prisma from "@calcom/prisma";
|
||||
import type { AppGetServerSideProps } from "@calcom/types/AppGetServerSideProps";
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ const config: Config = {
|
||||
},
|
||||
{
|
||||
displayName: "@calcom/routing-forms",
|
||||
roots: ["<rootDir>/packages/app-store/ee/routing-forms"],
|
||||
roots: ["<rootDir>/packages/app-store/routing-forms"],
|
||||
testMatch: ["**/test/lib/**/*.(spec|test).(ts|tsx|js)"],
|
||||
transform: {
|
||||
"^.+\\.ts?$": "ts-jest",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
Don't modify this file manually.
|
||||
**/
|
||||
import { appKeysSchema as dailyvideo_zod_ts } from "./dailyvideo/zod";
|
||||
import { appKeysSchema as routing_forms_zod_ts } from "./ee/routing-forms/zod";
|
||||
import { appKeysSchema as fathom_zod_ts } from "./fathom/zod";
|
||||
import { appKeysSchema as ga4_zod_ts } from "./ga4/zod";
|
||||
import { appKeysSchema as giphy_zod_ts } from "./giphy/zod";
|
||||
@@ -15,6 +14,7 @@ import { appKeysSchema as office365video_zod_ts } from "./office365video/zod";
|
||||
import { appKeysSchema as plausible_zod_ts } from "./plausible/zod";
|
||||
import { appKeysSchema as qr_code_zod_ts } from "./qr_code/zod";
|
||||
import { appKeysSchema as rainbow_zod_ts } from "./rainbow/zod";
|
||||
import { appKeysSchema as routing_forms_zod_ts } from "./routing-forms/zod";
|
||||
import { appKeysSchema as salesforce_zod_ts } from "./salesforce/zod";
|
||||
import { appKeysSchema as stripepayment_zod_ts } from "./stripepayment/zod";
|
||||
import { appKeysSchema as tandemvideo_zod_ts } from "./tandemvideo/zod";
|
||||
@@ -27,7 +27,6 @@ import { appKeysSchema as zoomvideo_zod_ts } from "./zoomvideo/zod";
|
||||
|
||||
export const appKeysSchemas = {
|
||||
dailyvideo: dailyvideo_zod_ts,
|
||||
"routing-forms": routing_forms_zod_ts,
|
||||
fathom: fathom_zod_ts,
|
||||
ga4: ga4_zod_ts,
|
||||
giphy: giphy_zod_ts,
|
||||
@@ -39,6 +38,7 @@ export const appKeysSchemas = {
|
||||
plausible: plausible_zod_ts,
|
||||
qr_code: qr_code_zod_ts,
|
||||
rainbow: rainbow_zod_ts,
|
||||
"routing-forms": routing_forms_zod_ts,
|
||||
salesforce: salesforce_zod_ts,
|
||||
stripe: stripepayment_zod_ts,
|
||||
tandemvideo: tandemvideo_zod_ts,
|
||||
|
||||
@@ -10,7 +10,6 @@ import campfire_config_json from "./campfire/config.json";
|
||||
import closecom_config_json from "./closecom/config.json";
|
||||
import cron_config_json from "./cron/config.json";
|
||||
import { metadata as dailyvideo__metadata_ts } from "./dailyvideo/_metadata";
|
||||
import routing_forms_config_json from "./ee/routing-forms/config.json";
|
||||
import { metadata as exchange2013calendar__metadata_ts } from "./exchange2013calendar/_metadata";
|
||||
import { metadata as exchange2016calendar__metadata_ts } from "./exchange2016calendar/_metadata";
|
||||
import exchangecalendar_config_json from "./exchangecalendar/config.json";
|
||||
@@ -34,6 +33,7 @@ import qr_code_config_json from "./qr_code/config.json";
|
||||
import rainbow_config_json from "./rainbow/config.json";
|
||||
import raycast_config_json from "./raycast/config.json";
|
||||
import riverside_config_json from "./riverside/config.json";
|
||||
import routing_forms_config_json from "./routing-forms/config.json";
|
||||
import salesforce_config_json from "./salesforce/config.json";
|
||||
import sendgrid_config_json from "./sendgrid/config.json";
|
||||
import signal_config_json from "./signal/config.json";
|
||||
@@ -67,7 +67,6 @@ export const appStoreMetadata = {
|
||||
closecom: closecom_config_json,
|
||||
cron: cron_config_json,
|
||||
dailyvideo: dailyvideo__metadata_ts,
|
||||
"routing-forms": routing_forms_config_json,
|
||||
exchange2013calendar: exchange2013calendar__metadata_ts,
|
||||
exchange2016calendar: exchange2016calendar__metadata_ts,
|
||||
exchangecalendar: exchangecalendar_config_json,
|
||||
@@ -91,6 +90,7 @@ export const appStoreMetadata = {
|
||||
rainbow: rainbow_config_json,
|
||||
raycast: raycast_config_json,
|
||||
riverside: riverside_config_json,
|
||||
"routing-forms": routing_forms_config_json,
|
||||
salesforce: salesforce_config_json,
|
||||
sendgrid: sendgrid_config_json,
|
||||
signal: signal_config_json,
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
Don't modify this file manually.
|
||||
**/
|
||||
import { appDataSchema as dailyvideo_zod_ts } from "./dailyvideo/zod";
|
||||
import { appDataSchema as routing_forms_zod_ts } from "./ee/routing-forms/zod";
|
||||
import { appDataSchema as fathom_zod_ts } from "./fathom/zod";
|
||||
import { appDataSchema as ga4_zod_ts } from "./ga4/zod";
|
||||
import { appDataSchema as giphy_zod_ts } from "./giphy/zod";
|
||||
@@ -15,6 +14,7 @@ import { appDataSchema as office365video_zod_ts } from "./office365video/zod";
|
||||
import { appDataSchema as plausible_zod_ts } from "./plausible/zod";
|
||||
import { appDataSchema as qr_code_zod_ts } from "./qr_code/zod";
|
||||
import { appDataSchema as rainbow_zod_ts } from "./rainbow/zod";
|
||||
import { appDataSchema as routing_forms_zod_ts } from "./routing-forms/zod";
|
||||
import { appDataSchema as salesforce_zod_ts } from "./salesforce/zod";
|
||||
import { appDataSchema as stripepayment_zod_ts } from "./stripepayment/zod";
|
||||
import { appDataSchema as tandemvideo_zod_ts } from "./tandemvideo/zod";
|
||||
@@ -27,7 +27,6 @@ import { appDataSchema as zoomvideo_zod_ts } from "./zoomvideo/zod";
|
||||
|
||||
export const appDataSchemas = {
|
||||
dailyvideo: dailyvideo_zod_ts,
|
||||
"routing-forms": routing_forms_zod_ts,
|
||||
fathom: fathom_zod_ts,
|
||||
ga4: ga4_zod_ts,
|
||||
giphy: giphy_zod_ts,
|
||||
@@ -39,6 +38,7 @@ export const appDataSchemas = {
|
||||
plausible: plausible_zod_ts,
|
||||
qr_code: qr_code_zod_ts,
|
||||
rainbow: rainbow_zod_ts,
|
||||
"routing-forms": routing_forms_zod_ts,
|
||||
salesforce: salesforce_zod_ts,
|
||||
stripe: stripepayment_zod_ts,
|
||||
tandemvideo: tandemvideo_zod_ts,
|
||||
|
||||
@@ -10,7 +10,6 @@ export const apiHandlers = {
|
||||
campfire: import("./campfire/api"),
|
||||
closecom: import("./closecom/api"),
|
||||
cron: import("./cron/api"),
|
||||
"routing-forms": import("./ee/routing-forms/api"),
|
||||
exchange2013calendar: import("./exchange2013calendar/api"),
|
||||
exchange2016calendar: import("./exchange2016calendar/api"),
|
||||
exchangecalendar: import("./exchangecalendar/api"),
|
||||
@@ -34,6 +33,7 @@ export const apiHandlers = {
|
||||
rainbow: import("./rainbow/api"),
|
||||
raycast: import("./raycast/api"),
|
||||
riverside: import("./riverside/api"),
|
||||
"routing-forms": import("./routing-forms/api"),
|
||||
salesforce: import("./salesforce/api"),
|
||||
sendgrid: import("./sendgrid/api"),
|
||||
signal: import("./signal/api"),
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
---
|
||||
items:
|
||||
- /api/app-store/ee/routing-forms/1.jpg
|
||||
- /api/app-store/ee/routing-forms/2.jpg
|
||||
- /api/app-store/ee/routing-forms/3.jpg
|
||||
- /api/app-store/routing-forms/1.jpg
|
||||
- /api/app-store/routing-forms/2.jpg
|
||||
- /api/app-store/routing-forms/3.jpg
|
||||
---
|
||||
|
||||
It would allow a booker to connect with the right person or choose the right event, faster. It would work by taking inputs from the booker and using that data to route to the correct booker/event as configured by Cal user
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,5 +1,5 @@
|
||||
import type { Settings, Widgets, SelectWidgetProps } from "react-awesome-query-builder";
|
||||
// Figure out why ee/routing-forms/env.d.ts doesn't work
|
||||
// Figure out why routing-forms/env.d.ts doesn't work
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
//@ts-ignore
|
||||
import BasicConfig from "react-awesome-query-builder/lib/config/basic";
|
||||
File renamed without changes.
File renamed without changes.
+3
-2
@@ -4,13 +4,14 @@
|
||||
"title": "Routing Forms",
|
||||
"slug": "routing-forms",
|
||||
"type": "routing-forms_other",
|
||||
"imageSrc": "/api/app-store/ee/routing-forms/icon.svg",
|
||||
"logo": "/api/app-store/ee/routing-forms/icon.svg",
|
||||
"imageSrc": "/api/app-store/routing-forms/icon.svg",
|
||||
"logo": "/api/app-store/routing-forms/icon.svg",
|
||||
"url": "https://cal.com/apps/routing-forms",
|
||||
"variant": "other",
|
||||
"categories": ["other"],
|
||||
"publisher": "Cal.com",
|
||||
"email": "help@cal.com",
|
||||
"licenseRequired": true,
|
||||
"description": "It would allow a booker to connect with the right person or choose the right event, faster. It would work by taking inputs from the booker and using that data to route to the correct booker/event as configured by Cal user",
|
||||
"__createdUsingCli": true
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,7 +4,7 @@ import { expect } from "@playwright/test";
|
||||
import {
|
||||
addForm as addRoutingForm,
|
||||
addOneFieldAndDescriptionAndSaveForm,
|
||||
} from "@calcom/app-store/ee/routing-forms/playwright/tests/basic.e2e";
|
||||
} from "@calcom/app-store/routing-forms/playwright/tests/basic.e2e";
|
||||
import { CAL_URL } from "@calcom/lib/constants";
|
||||
import type { Fixtures } from "@calcom/web/playwright/lib/fixtures";
|
||||
import { test } from "@calcom/web/playwright/lib/fixtures";
|
||||
|
||||
@@ -19,4 +19,4 @@ export { OrganizerRescheduledEmail } from "./OrganizerRescheduledEmail";
|
||||
export { OrganizerScheduledEmail } from "./OrganizerScheduledEmail";
|
||||
export { TeamInviteEmail } from "./TeamInviteEmail";
|
||||
export { BrokenIntegrationEmail } from "./BrokenIntegrationEmail";
|
||||
export * from "@calcom/app-store/ee/routing-forms/emails/components";
|
||||
export * from "@calcom/app-store/routing-forms/emails/components";
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useEffect } from "react";
|
||||
import type { z } from "zod";
|
||||
|
||||
import Widgets from "@calcom/app-store/routing-forms/components/react-awesome-query-builder/widgets";
|
||||
import type {
|
||||
TextLikeComponentProps,
|
||||
SelectLikeComponentProps,
|
||||
} from "@calcom/app-store/ee/routing-forms/components/react-awesome-query-builder/widgets";
|
||||
import Widgets from "@calcom/app-store/ee/routing-forms/components/react-awesome-query-builder/widgets";
|
||||
} from "@calcom/app-store/routing-forms/components/react-awesome-query-builder/widgets";
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { BookingFieldType } from "@calcom/prisma/zod-utils";
|
||||
|
||||
@@ -5,8 +5,8 @@ import _ from "lodash";
|
||||
import { authenticator } from "otplib";
|
||||
import z from "zod";
|
||||
|
||||
import app_RoutingForms from "@calcom/app-store/ee/routing-forms/trpc-router";
|
||||
import ethRouter from "@calcom/app-store/rainbow/trpc/router";
|
||||
import app_RoutingForms from "@calcom/app-store/routing-forms/trpc-router";
|
||||
import { deleteStripeCustomer } from "@calcom/app-store/stripepayment/lib/customer";
|
||||
import stripe from "@calcom/app-store/stripepayment/lib/server";
|
||||
import { getPremiumPlanProductId } from "@calcom/app-store/stripepayment/lib/utils";
|
||||
|
||||
Reference in new issue
Block a user