feat: Introduce getAutomatischInfo graphQL query
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
import appConfig from '../../config/app';
|
||||||
|
|
||||||
|
const getAutomatischInfo = async () => {
|
||||||
|
return {
|
||||||
|
isCloud: appConfig.isCloud,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export default getAutomatischInfo;
|
@@ -1,11 +0,0 @@
|
|||||||
import checkLicense from '../../helpers/check-license.ee';
|
|
||||||
|
|
||||||
const getLicense = async () => {
|
|
||||||
const license = await checkLicense();
|
|
||||||
|
|
||||||
return {
|
|
||||||
type: license ? 'ee' : 'ce',
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export default getLicense;
|
|
@@ -11,7 +11,7 @@ import getExecutionSteps from './queries/get-execution-steps';
|
|||||||
import getDynamicData from './queries/get-dynamic-data';
|
import getDynamicData from './queries/get-dynamic-data';
|
||||||
import getDynamicFields from './queries/get-dynamic-fields';
|
import getDynamicFields from './queries/get-dynamic-fields';
|
||||||
import getCurrentUser from './queries/get-current-user';
|
import getCurrentUser from './queries/get-current-user';
|
||||||
import getLicense from './queries/get-license.ee';
|
import getAutomatischInfo from './queries/get-automatisch-info';
|
||||||
import healthcheck from './queries/healthcheck';
|
import healthcheck from './queries/healthcheck';
|
||||||
|
|
||||||
const queryResolvers = {
|
const queryResolvers = {
|
||||||
@@ -28,7 +28,7 @@ const queryResolvers = {
|
|||||||
getDynamicData,
|
getDynamicData,
|
||||||
getDynamicFields,
|
getDynamicFields,
|
||||||
getCurrentUser,
|
getCurrentUser,
|
||||||
getLicense,
|
getAutomatischInfo,
|
||||||
healthcheck,
|
healthcheck,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@ type Query {
|
|||||||
parameters: JSONObject
|
parameters: JSONObject
|
||||||
): [SubstepArgument]
|
): [SubstepArgument]
|
||||||
getCurrentUser: User
|
getCurrentUser: User
|
||||||
getLicense: GetLicense
|
getAutomatischInfo: GetAutomatischInfo
|
||||||
healthcheck: AppHealth
|
healthcheck: AppHealth
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -463,8 +463,8 @@ type AppHealth {
|
|||||||
version: String
|
version: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetLicense {
|
type GetAutomatischInfo {
|
||||||
type: String
|
isCloud: String
|
||||||
}
|
}
|
||||||
|
|
||||||
schema {
|
schema {
|
||||||
|
Reference in New Issue
Block a user