@leosprograms/vf-graphql
Version:
Reference GraphQL implementation of the ValueFlows spec
120 lines (92 loc) • 3.17 kB
JavaScript
// Generated by scripts/build.js - edit the *.gql file instead!
module.exports = `
##
#
# Satisfaction Module
#
# Extend Intents with the ability to point at Commitments or EconomicEvents that "satisfy" the Intent.
#
# @depends measurement.gql
# @depends intent.gql
# @depends commitment.gql
# @depends observation.gql
# @package vf-graphql
# @since 2019-02-11
#
##
union EventOrCommitment = EconomicEvent | Commitment
"""
Represents many-to-many relationships between intents and commitments or events that partially or full satisfy one or more intents.
"""
type Satisfaction {
id: ID!
revisionId: ID!
"An intent satisfied fully or partially by an economic event or commitment."
satisfies: Intent!
"A commitment or economic event fully or partially satisfying an intent."
satisfiedBy: EventOrCommitment!
"The amount and unit of the economic resource counted or inventoried."
resourceQuantity: Measure
"The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness."
effortQuantity: Measure
"A textual description or comment."
note: String
}
##
# API input and output types
##
input SatisfactionCreateParams {
"(\`Intent\`) An intent satisfied fully or partially by an economic event or commitment."
satisfies: ID!
"(\`Commitment\`|\`EconomicEvent\`) A commitment or economic event fully or partially satisfying an intent."
satisfiedBy: ID!
"The amount and unit of the economic resource counted or inventoried."
resourceQuantity: IMeasure
"The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness."
effortQuantity: IMeasure
"A textual description or comment."
note: String
}
input SatisfactionUpdateParams {
revisionId: ID!
"(\`Intent\`) An intent satisfied fully or partially by an economic event or commitment."
satisfies: ID
"(\`Commitment\`|\`EconomicEvent\`) A commitment or economic event fully or partially satisfying an intent."
satisfiedBy: ID
"The amount and unit of the economic resource counted or inventoried."
resourceQuantity: IMeasure
"The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness."
effortQuantity: IMeasure
"A textual description or comment."
note: String
}
type SatisfactionResponse {
satisfaction: Satisfaction!
}
type SatisfactionConnection {
edges: [SatisfactionEdge!]!
pageInfo: PageInfo!
}
type SatisfactionEdge {
node: Satisfaction!
cursor: String!
}
type Query {
satisfaction(id: ID!): Satisfaction
satisfactions(
first: Int
after: String
last: Int
before: String
): SatisfactionConnection!
}
type Mutation {
createSatisfaction(
satisfaction: SatisfactionCreateParams!
): SatisfactionResponse!
updateSatisfaction(
satisfaction: SatisfactionUpdateParams!
): SatisfactionResponse!
deleteSatisfaction(revisionId: ID!): Boolean!
}
`