@leosprograms/vf-graphql
Version:
Reference GraphQL implementation of the ValueFlows spec
99 lines (73 loc) • 2.78 kB
JavaScript
// Generated by scripts/build.js - edit the *.gql file instead!
module.exports = `
"""
Represents many-to-many relationships between commitments and economic events that fully or partially satisfy one or more commitments.
"""
type Fulfillment {
id: ID!
revisionId: ID!
"The economic event which completely or partially fulfills a commitment."
fulfilledBy: EconomicEvent!
"The commitment which is completely or partially fulfilled by an economic event."
fulfills: Commitment!
"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 FulfillmentCreateParams {
"(\`EconomicEvent\`) The economic event which completely or partially fulfills a commitment."
fulfilledBy: ID!
"(\`Commitment\`) The commitment which is completely or partially fulfilled by an economic event."
fulfills: 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 FulfillmentUpdateParams {
revisionId: ID!
"(\`EconomicEvent\`) The economic event which completely or partially fulfills a commitment."
fulfilledBy: ID
"(\`Commitment\`) The commitment which is completely or partially fulfilled by an economic event."
fulfills: 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 FulfillmentResponse {
fulfillment: Fulfillment!
}
type FulfillmentConnection {
edges: [FulfillmentEdge!]!
pageInfo: PageInfo!
}
type FulfillmentEdge {
node: Fulfillment!
cursor: String!
}
type Query {
fulfillment(id: ID!): Fulfillment
fulfillments(
first: Int
after: String
last: Int
before: String
): FulfillmentConnection!
}
type Mutation {
createFulfillment(fulfillment: FulfillmentCreateParams!): FulfillmentResponse!
updateFulfillment(fulfillment: FulfillmentUpdateParams!): FulfillmentResponse!
deleteFulfillment(revisionId: ID!): Boolean!
}
`