feat: introduce app configs with shared auth clients (#1213)
This commit is contained in:
13
packages/web/src/graphql/queries/get-app-auth-client.ee.ts
Normal file
13
packages/web/src/graphql/queries/get-app-auth-client.ee.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_APP_AUTH_CLIENT = gql`
|
||||
query GetAppAuthClient($id: String!) {
|
||||
getAppAuthClient(id: $id) {
|
||||
id
|
||||
appConfigId
|
||||
name
|
||||
active
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
13
packages/web/src/graphql/queries/get-app-auth-clients.ee.ts
Normal file
13
packages/web/src/graphql/queries/get-app-auth-clients.ee.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_APP_AUTH_CLIENTS = gql`
|
||||
query GetAppAuthClients($appKey: String!, $active: Boolean) {
|
||||
getAppAuthClients(appKey: $appKey, active: $active) {
|
||||
id
|
||||
appConfigId
|
||||
name
|
||||
active
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
16
packages/web/src/graphql/queries/get-app-config.ee.ts
Normal file
16
packages/web/src/graphql/queries/get-app-config.ee.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_APP_CONFIG = gql`
|
||||
query GetAppConfig($key: String!) {
|
||||
getAppConfig(key: $key) {
|
||||
id
|
||||
key
|
||||
allowCustomConnection
|
||||
canConnect
|
||||
canCustomConnect
|
||||
shared
|
||||
disabled
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@@ -7,6 +7,8 @@ export const GET_APP_CONNECTIONS = gql`
|
||||
connections {
|
||||
id
|
||||
key
|
||||
reconnectable
|
||||
appAuthClientId
|
||||
verified
|
||||
flowCount
|
||||
formattedData {
|
||||
|
@@ -39,6 +39,19 @@ export const GET_APP = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
sharedAuthenticationSteps {
|
||||
type
|
||||
name
|
||||
arguments {
|
||||
name
|
||||
value
|
||||
type
|
||||
properties {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
reconnectionSteps {
|
||||
type
|
||||
name
|
||||
@@ -52,6 +65,19 @@ export const GET_APP = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
sharedReconnectionSteps {
|
||||
type
|
||||
name
|
||||
arguments {
|
||||
name
|
||||
value
|
||||
type
|
||||
properties {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
connections {
|
||||
id
|
||||
|
@@ -49,6 +49,19 @@ export const GET_APPS = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
sharedAuthenticationSteps {
|
||||
type
|
||||
name
|
||||
arguments {
|
||||
name
|
||||
value
|
||||
type
|
||||
properties {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
reconnectionSteps {
|
||||
type
|
||||
name
|
||||
@@ -62,6 +75,19 @@ export const GET_APPS = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
sharedReconnectionSteps {
|
||||
type
|
||||
name
|
||||
arguments {
|
||||
name
|
||||
value
|
||||
type
|
||||
properties {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
triggers {
|
||||
name
|
||||
|
Reference in New Issue
Block a user