Replace trust center alias with resource alias in console API
Drop the setTrustCenterAlias and removeTrustCenterAlias mutations and the alias field on Audit in favor of generic setResourceAlias and removeResourceAlias mutations backed by the resourcealias service. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -173,7 +173,6 @@ type Audit implements Node {
|
||||
): FindingConnection @goField(forceResolver: true)
|
||||
|
||||
trustCenterVisibility: TrustCenterVisibility!
|
||||
alias: String @goField(forceResolver: true)
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
|
||||
|
||||
30
pkg/server/api/console/v1/graphql/resource_alias.graphql
Normal file
30
pkg/server/api/console/v1/graphql/resource_alias.graphql
Normal file
@@ -0,0 +1,30 @@
|
||||
type ResourceAlias {
|
||||
resourceId: ID!
|
||||
alias: String!
|
||||
}
|
||||
|
||||
input SetResourceAliasInput {
|
||||
resourceId: ID!
|
||||
alias: String!
|
||||
}
|
||||
|
||||
input RemoveResourceAliasInput {
|
||||
resourceId: ID!
|
||||
}
|
||||
|
||||
type SetResourceAliasPayload {
|
||||
resourceAlias: ResourceAlias!
|
||||
}
|
||||
|
||||
type RemoveResourceAliasPayload {
|
||||
deletedResourceId: ID!
|
||||
}
|
||||
|
||||
extend type Mutation {
|
||||
setResourceAlias(
|
||||
input: SetResourceAliasInput!
|
||||
): SetResourceAliasPayload!
|
||||
removeResourceAlias(
|
||||
input: RemoveResourceAliasInput!
|
||||
): RemoveResourceAliasPayload!
|
||||
}
|
||||
@@ -550,12 +550,6 @@ extend type Mutation {
|
||||
deleteCustomDomain(
|
||||
input: DeleteCustomDomainInput!
|
||||
): DeleteCustomDomainPayload!
|
||||
setTrustCenterAlias(
|
||||
input: SetTrustCenterAliasInput!
|
||||
): SetTrustCenterAliasPayload!
|
||||
removeTrustCenterAlias(
|
||||
input: RemoveTrustCenterAliasInput!
|
||||
): RemoveTrustCenterAliasPayload!
|
||||
}
|
||||
|
||||
input UpdateTrustCenterInput {
|
||||
@@ -765,26 +759,3 @@ type CreateCustomDomainPayload {
|
||||
type DeleteCustomDomainPayload {
|
||||
deletedCustomDomainId: ID!
|
||||
}
|
||||
|
||||
input SetTrustCenterAliasInput {
|
||||
resourceId: ID!
|
||||
alias: String!
|
||||
}
|
||||
|
||||
input RemoveTrustCenterAliasInput {
|
||||
resourceId: ID!
|
||||
}
|
||||
|
||||
type TrustCenterAlias {
|
||||
resourceId: ID!
|
||||
alias: String!
|
||||
organization: Organization! @goField(forceResolver: true)
|
||||
}
|
||||
|
||||
type SetTrustCenterAliasPayload {
|
||||
alias: TrustCenterAlias!
|
||||
}
|
||||
|
||||
type RemoveTrustCenterAliasPayload {
|
||||
deletedResourceId: ID!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user