chore: Remove available apps enum type and use string instead

This commit is contained in:
Faruk AYDIN
2022-10-30 15:17:10 +01:00
parent 53bbde4314
commit 115a46d2e7
3 changed files with 4 additions and 21 deletions

View File

@@ -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!
}

View File

@@ -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 {

View File

@@ -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