chore: Remove available apps enum type and use string instead
This commit is contained in:
@@ -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!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user