@valueflows/vf-graphql
Version:
Reference GraphQL implementation of the ValueFlows spec
130 lines (97 loc) • 3.22 kB
JavaScript
// Generated by scripts/build.js - edit the *.gql file instead!
module.exports = `
##
#
# Process module
#
# Processes are activities that transform inputs into outputs.
# The inputs and outputs are really made possible by enabling the Observation module so that
# is highly recommended to enable along with this.
#
# @package vf-graphql
# @since 2022-05-27
#
##
"""
An activity that changes inputs into outputs. It could transform or transport economic resource(s).
"""
type Process {
id: ID!
revisionId: ID!
"An informal or formal textual identifier for a process. Does not imply uniqueness."
name: String!
"The planned beginning of the process."
hasBeginning: DateTime
"The planned end of the process."
hasEnd: DateTime
"The process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done."
finished: Boolean
"References one or more concepts in a common taxonomy or other classification scheme for purposes of categorization or grouping."
classifiedAs: [URI!]
"A textual description or comment."
note: String
##############################################################################
# inverse relationships and queries
nextProcesses: [Process!]
previousProcesses: [Process!]
"The process can be safely deleted, has no dependent information."
deletable: Boolean
}
##
# API call input and output types
##
input ProcessCreateParams {
"An informal or formal textual identifier for a process. Does not imply uniqueness."
name: String!
"The planned beginning of the process."
hasBeginning: DateTime
"The planned end of the process."
hasEnd: DateTime
"The process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done."
finished: Boolean
"A textual description or comment."
note: String
"References one or more concepts in a common taxonomy or other classification scheme for purposes of categorization or grouping."
classifiedAs: [URI!]
}
input ProcessUpdateParams {
revisionId: ID!
"An informal or formal textual identifier for a process. Does not imply uniqueness."
name: String
"The planned beginning of the process."
hasBeginning: DateTime
"The planned end of the process."
hasEnd: DateTime
"The process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done."
finished: Boolean
"A textual description or comment."
note: String
"References one or more concepts in a common taxonomy or other classification scheme for purposes of categorization or grouping."
classifiedAs: [URI!]
}
type ProcessResponse {
process: Process!
}
type ProcessConnection {
edges: [ProcessEdge!]!
pageInfo: PageInfo!
}
type ProcessEdge {
node: Process!
cursor: String!
}
type Query {
process(id: ID!): Process
processes(
first: Int
after: String
last: Int
before: String
): ProcessConnection!
}
type Mutation {
createProcess(process: ProcessCreateParams!): ProcessResponse!
updateProcess(process: ProcessUpdateParams!): ProcessResponse!
deleteProcess(id: ID!): Boolean!
}
`