Expose alias field and set/remove mutations in console API
Adds an alias field to Document, Audit, and TrustCenterFile types. Introduces setTrustCenterAlias and removeTrustCenterAlias mutations with proper authorization and error handling. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -173,6 +173,7 @@ type Audit implements Node {
|
||||
): FindingConnection @goField(forceResolver: true)
|
||||
|
||||
trustCenterVisibility: TrustCenterVisibility!
|
||||
alias: String @goField(forceResolver: true)
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
|
||||
|
||||
@@ -269,6 +269,7 @@ type Document implements Node {
|
||||
currentPublishedMajor: Int
|
||||
currentPublishedMinor: Int
|
||||
trustCenterVisibility: TrustCenterVisibility!
|
||||
alias: String @goField(forceResolver: true)
|
||||
organization: Organization! @goField(forceResolver: true)
|
||||
|
||||
versions(
|
||||
|
||||
@@ -444,6 +444,7 @@ type TrustCenterFile implements Node {
|
||||
category: String!
|
||||
file: File! @goField(forceResolver: true)
|
||||
trustCenterVisibility: TrustCenterVisibility!
|
||||
alias: String @goField(forceResolver: true)
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
organization: Organization! @goField(forceResolver: true)
|
||||
@@ -549,6 +550,12 @@ extend type Mutation {
|
||||
deleteCustomDomain(
|
||||
input: DeleteCustomDomainInput!
|
||||
): DeleteCustomDomainPayload!
|
||||
setTrustCenterAlias(
|
||||
input: SetTrustCenterAliasInput!
|
||||
): SetTrustCenterAliasPayload!
|
||||
removeTrustCenterAlias(
|
||||
input: RemoveTrustCenterAliasInput!
|
||||
): RemoveTrustCenterAliasPayload!
|
||||
}
|
||||
|
||||
input UpdateTrustCenterInput {
|
||||
@@ -758,3 +765,26 @@ 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