feat: add app connections w/ testing and deleting functions
This commit is contained in:
17
packages/web/src/graphql/queries/get-app-connections.ts
Normal file
17
packages/web/src/graphql/queries/get-app-connections.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_APP_CONNECTIONS = gql`
|
||||
query GetAppConnections($key: String!) {
|
||||
getApp(key: $key) {
|
||||
key
|
||||
connections {
|
||||
id
|
||||
key
|
||||
verified
|
||||
data {
|
||||
screenName
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
@@ -32,6 +32,9 @@ export const GET_APP = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
connections {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@@ -19,6 +19,9 @@ export const GET_APPS = gql`
|
||||
docUrl
|
||||
clickToCopy
|
||||
}
|
||||
connections {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
7
packages/web/src/graphql/queries/test-connection.ts
Normal file
7
packages/web/src/graphql/queries/test-connection.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const TEST_CONNECTION = gql`
|
||||
query TestConnection($id: String!) {
|
||||
testConnection(id: $id)
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user