@@ -225,13 +225,6 @@ type Control implements Node {
|
||||
description: String!
|
||||
state: ControlState!
|
||||
|
||||
stateTransisions(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
last: Int
|
||||
before: CursorKey
|
||||
): ControlStateTransitionConnection! @goField(forceResolver: true)
|
||||
|
||||
tasks(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
@@ -243,25 +236,6 @@ type Control implements Node {
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type ControlStateTransitionConnection {
|
||||
edges: [ControlStateTransitionEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
}
|
||||
|
||||
type ControlStateTransitionEdge {
|
||||
cursor: CursorKey!
|
||||
node: ControlStateTransition!
|
||||
}
|
||||
|
||||
type ControlStateTransition {
|
||||
id: ID!
|
||||
fromState: ControlState
|
||||
toState: ControlState!
|
||||
reason: String
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type TaskConnection {
|
||||
edges: [TaskEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
@@ -274,17 +248,11 @@ type TaskEdge {
|
||||
|
||||
type Task implements Node {
|
||||
id: ID!
|
||||
version: Int!
|
||||
name: String!
|
||||
description: String!
|
||||
state: TaskState!
|
||||
|
||||
stateTransisions(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
last: Int
|
||||
before: CursorKey
|
||||
): TaskStateTransitionConnection! @goField(forceResolver: true)
|
||||
|
||||
evidences(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
@@ -296,25 +264,6 @@ type Task implements Node {
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type TaskStateTransitionConnection {
|
||||
edges: [TaskStateTransitionEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
}
|
||||
|
||||
type TaskStateTransitionEdge {
|
||||
cursor: CursorKey!
|
||||
node: TaskStateTransition!
|
||||
}
|
||||
|
||||
type TaskStateTransition {
|
||||
id: ID!
|
||||
fromState: TaskState
|
||||
toState: TaskState!
|
||||
reason: String
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type EvidenceConnection {
|
||||
edges: [EvidenceEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
@@ -333,32 +282,6 @@ type Evidence implements Node {
|
||||
state: EvidenceState!
|
||||
filename: String!
|
||||
|
||||
stateTransisions(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
last: Int
|
||||
before: CursorKey
|
||||
): EvidenceStateTransitionConnection! @goField(forceResolver: true)
|
||||
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type EvidenceStateTransitionConnection {
|
||||
edges: [EvidenceStateTransitionEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
}
|
||||
|
||||
type EvidenceStateTransitionEdge {
|
||||
cursor: CursorKey!
|
||||
node: EvidenceStateTransition!
|
||||
}
|
||||
|
||||
type EvidenceStateTransition {
|
||||
id: ID!
|
||||
fromState: EvidenceState
|
||||
toState: EvidenceState!
|
||||
reason: String
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
@@ -402,8 +325,8 @@ type Mutation {
|
||||
deleteOrganization(
|
||||
input: DeleteOrganizationInput!
|
||||
): DeleteOrganizationPayload!
|
||||
updateTaskState(input: UpdateTaskStateInput!): UpdateTaskStatePayload!
|
||||
createTask(input: CreateTaskInput!): CreateTaskPayload!
|
||||
updateTask(input: UpdateTaskInput!): UpdateTaskPayload!
|
||||
deleteTask(input: DeleteTaskInput!): DeleteTaskPayload!
|
||||
createFramework(input: CreateFrameworkInput!): CreateFrameworkPayload!
|
||||
createControl(input: CreateControlInput!): CreateControlPayload!
|
||||
@@ -534,15 +457,6 @@ type DeleteOrganizationPayload {
|
||||
deletedOrganizationId: ID!
|
||||
}
|
||||
|
||||
input UpdateTaskStateInput {
|
||||
taskId: ID!
|
||||
state: TaskState!
|
||||
}
|
||||
|
||||
type UpdateTaskStatePayload {
|
||||
task: Task!
|
||||
}
|
||||
|
||||
input CreateTaskInput {
|
||||
controlId: ID!
|
||||
name: String!
|
||||
@@ -700,3 +614,15 @@ type PolicyEdge {
|
||||
cursor: CursorKey!
|
||||
node: Policy!
|
||||
}
|
||||
|
||||
input UpdateTaskInput {
|
||||
taskId: ID!
|
||||
expectedVersion: Int!
|
||||
name: String
|
||||
description: String
|
||||
state: TaskState
|
||||
}
|
||||
|
||||
type UpdateTaskPayload {
|
||||
task: Task!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user