feat: remove the layer filed for instance query (#81)

This commit is contained in:
Fine0830 2022-05-10 17:03:47 +08:00 committed by GitHub
parent 024a0fe44c
commit a0b57d0a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 32 deletions

View File

@ -20,10 +20,10 @@ export const Services = {
services: listServices(layer: $layer) { services: listServices(layer: $layer) {
id id
value: name value: name
label: name label: name
group group
layers layers
normal normal
} }
`, `,
}; };
@ -36,17 +36,16 @@ export const Instances = {
variable: "$serviceId: ID!, $duration: Duration!", variable: "$serviceId: ID!, $duration: Duration!",
query: ` query: `
pods: listInstances(duration: $duration, serviceId: $serviceId) { pods: listInstances(duration: $duration, serviceId: $serviceId) {
id id
value: name value: name
label: name label: name
language language
instanceUUID instanceUUID
layer attributes {
attributes { name
name value
value
}
} }
}
`, `,
}; };
export const Endpoints = { export const Endpoints = {
@ -66,10 +65,10 @@ export const getService = {
service: getService(serviceId: $serviceId) { service: getService(serviceId: $serviceId) {
id id
value: name value: name
label: name label: name
group group
layers layers
normal normal
} }
`, `,
}; };
@ -79,16 +78,15 @@ export const getInstance = {
query: ` query: `
instance: getInstance(instanceId: $instanceId) { instance: getInstance(instanceId: $instanceId) {
id id
value: name value: name
label: name label: name
language language
instanceUUID instanceUUID
layer attributes {
attributes { name
name value
value
}
} }
}
`, `,
}; };
@ -97,10 +95,10 @@ export const getEndpoint = {
query: ` query: `
endpoint: getEndpointInfo(endpointId: $endpointId) { endpoint: getEndpointInfo(endpointId: $endpointId) {
id id
value: name value: name
label: name label: name
serviceId serviceId
serviceName serviceName
} }
`, `,
}; };

View File

@ -26,7 +26,6 @@ export type Service = {
export type Instance = { export type Instance = {
value: string; value: string;
label: string; label: string;
layer?: string;
language?: string; language?: string;
instanceUUID?: string; instanceUUID?: string;
attributes?: { name: string; value: string }[]; attributes?: { name: string; value: string }[];