From 9f63299a1a173bfbce0d343668f3897ca6a6eac8 Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 20 Apr 2022 14:20:02 -0600 Subject: [PATCH] Fixes hubspot metadata --- .../hubspotothercalendar/_metadata.ts | 26 +++++++++++++++++++ .../app-store/hubspotothercalendar/index.ts | 26 +------------------ packages/app-store/metadata.ts | 2 ++ 3 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 packages/app-store/hubspotothercalendar/_metadata.ts diff --git a/packages/app-store/hubspotothercalendar/_metadata.ts b/packages/app-store/hubspotothercalendar/_metadata.ts new file mode 100644 index 00000000..391ee990 --- /dev/null +++ b/packages/app-store/hubspotothercalendar/_metadata.ts @@ -0,0 +1,26 @@ +import type { App } from "@calcom/types/App"; + +import _package from "./package.json"; + +export const metadata = { + name: "HubSpot CRM", + description: _package.description, + installed: !!(process.env.HUBSPOT_CLIENT_ID && process.env.HUBSPOT_CLIENT_SECRET), + type: "hubspot_other_calendar", + imageSrc: "/api/app-store/hubspotothercalendar/icon.svg", + variant: "other_calendar", + logo: "/api/app-store/hubspotothercalendar/icon.svg", + publisher: "Cal.com", + url: "https://hubspot.com/", + verified: true, + rating: 4.3, // TODO: placeholder for now, pull this from TrustPilot or G2 + reviews: 69, // TODO: placeholder for now, pull this from TrustPilot or G2 + category: "other", + label: "HubSpot CRM", + slug: "hubspot", + title: "HubSpot CRM", + trending: true, + email: "help@cal.com", +} as App; + +export default metadata; diff --git a/packages/app-store/hubspotothercalendar/index.ts b/packages/app-store/hubspotothercalendar/index.ts index 2dc5a578..5373eb04 100644 --- a/packages/app-store/hubspotothercalendar/index.ts +++ b/packages/app-store/hubspotothercalendar/index.ts @@ -1,27 +1,3 @@ -import type { App } from "@calcom/types/App"; - -import _package from "./package.json"; - -export const metadata = { - name: "HubSpot CRM", - description: _package.description, - installed: !!(process.env.HUBSPOT_CLIENT_ID && process.env.HUBSPOT_CLIENT_SECRET), - type: "hubspot_other_calendar", - imageSrc: "/api/app-store/hubspotothercalendar/icon.svg", - variant: "other_calendar", - logo: "/api/app-store/hubspotothercalendar/icon.svg", - publisher: "Cal.com", - url: "https://hubspot.com/", - verified: true, - rating: 4.3, // TODO: placeholder for now, pull this from TrustPilot or G2 - reviews: 69, // TODO: placeholder for now, pull this from TrustPilot or G2 - category: "other", - label: "HubSpot CRM", - slug: "hubspot", - title: "HubSpot CRM", - trending: true, - email: "help@cal.com", -} as App; - export * as api from "./api"; export * as lib from "./lib"; +export { metadata } from "./_metadata"; diff --git a/packages/app-store/metadata.ts b/packages/app-store/metadata.ts index cf09ca45..053bf8be 100644 --- a/packages/app-store/metadata.ts +++ b/packages/app-store/metadata.ts @@ -3,6 +3,7 @@ import { metadata as caldavcalendar } from "./caldavcalendar/_metadata"; import { metadata as dailyvideo } from "./dailyvideo/_metadata"; import { metadata as googlecalendar } from "./googlecalendar/_metadata"; import { metadata as googlevideo } from "./googlevideo/_metadata"; +import { metadata as hubspotothercalendar } from "./hubspotothercalendar/_metadata"; import { metadata as huddle01video } from "./huddle01video/_metadata"; import { metadata as jitsivideo } from "./jitsivideo/_metadata"; import { metadata as office365calendar } from "./office365calendar/_metadata"; @@ -19,6 +20,7 @@ export const appStoreMetadata = { dailyvideo, googlecalendar, googlevideo, + hubspotothercalendar, huddle01video, jitsivideo, office365calendar,