diff --git a/packages/backend/src/graphql/schema.graphql b/packages/backend/src/graphql/schema.graphql index e8c208f6..2808552f 100644 --- a/packages/backend/src/graphql/schema.graphql +++ b/packages/backend/src/graphql/schema.graphql @@ -4,7 +4,7 @@ type Query { onlyWithTriggers: Boolean onlyWithActions: Boolean ): [App] - getApp(key: AvailableAppsEnumType!): App + getApp(key: String!): App getConnectedApps(name: String): [App] testConnection(id: String!): Connection getFlow(id: String!): Flow @@ -148,23 +148,6 @@ type AuthLink { url: String } -enum AvailableAppsEnumType { - discord - firebase - flickr - github - gitlab - postgresql - rss - scheduler - slack - smtp - twilio - twitch - twitter - typeform -} - type Connection { id: String key: String @@ -239,7 +222,7 @@ type Execution { } input CreateConnectionInput { - key: AvailableAppsEnumType! + key: String! formattedData: JSONObject! } diff --git a/packages/web/src/graphql/queries/get-app-connections.ts b/packages/web/src/graphql/queries/get-app-connections.ts index 1151d3a6..a2603c0f 100644 --- a/packages/web/src/graphql/queries/get-app-connections.ts +++ b/packages/web/src/graphql/queries/get-app-connections.ts @@ -1,7 +1,7 @@ import { gql } from '@apollo/client'; export const GET_APP_CONNECTIONS = gql` - query GetAppConnections($key: AvailableAppsEnumType!) { + query GetAppConnections($key: String!) { getApp(key: $key) { key connections { diff --git a/packages/web/src/graphql/queries/get-app.ts b/packages/web/src/graphql/queries/get-app.ts index aadbbf6a..bacb5f0f 100644 --- a/packages/web/src/graphql/queries/get-app.ts +++ b/packages/web/src/graphql/queries/get-app.ts @@ -1,7 +1,7 @@ import { gql } from '@apollo/client'; export const GET_APP = gql` - query GetApp($key: AvailableAppsEnumType!) { + query GetApp($key: String!) { getApp(key: $key) { name key