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 onlyWithTriggers: Boolean
onlyWithActions: Boolean onlyWithActions: Boolean
): [App] ): [App]
getApp(key: AvailableAppsEnumType!): App getApp(key: String!): App
getConnectedApps(name: String): [App] getConnectedApps(name: String): [App]
testConnection(id: String!): Connection testConnection(id: String!): Connection
getFlow(id: String!): Flow getFlow(id: String!): Flow
@@ -148,23 +148,6 @@ type AuthLink {
url: String url: String
} }
enum AvailableAppsEnumType {
discord
firebase
flickr
github
gitlab
postgresql
rss
scheduler
slack
smtp
twilio
twitch
twitter
typeform
}
type Connection { type Connection {
id: String id: String
key: String key: String
@@ -239,7 +222,7 @@ type Execution {
} }
input CreateConnectionInput { input CreateConnectionInput {
key: AvailableAppsEnumType! key: String!
formattedData: JSONObject! formattedData: JSONObject!
} }

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client'; import { gql } from '@apollo/client';
export const GET_APP_CONNECTIONS = gql` export const GET_APP_CONNECTIONS = gql`
query GetAppConnections($key: AvailableAppsEnumType!) { query GetAppConnections($key: String!) {
getApp(key: $key) { getApp(key: $key) {
key key
connections { connections {

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client'; import { gql } from '@apollo/client';
export const GET_APP = gql` export const GET_APP = gql`
query GetApp($key: AvailableAppsEnumType!) { query GetApp($key: String!) {
getApp(key: $key) { getApp(key: $key) {
name name
key key