UNPKG

@valueflows/vf-graphql

Version:

Reference GraphQL implementation of the ValueFlows spec

76 lines (59 loc) 2.72 kB
// Generated by scripts/build.js - edit the *.gql file instead! module.exports = ` ## # # Agent <> Intent API # # Queries related to Intent data exposed within an agent context, # and identifiers linking Agents to Intent record type. # # @package vf-graphql # @since 2022-05-27 # ## type Intent { "The economic agent from whom the intent is initiated. This implies that the intent is an offer." provider: Agent "The economic agent whom the intent is for. This implies that the intent is a request." receiver: Agent "Grouping around something to create a boundary or context, used for documenting, accounting, planning." inScopeOf: [AccountingScope!] } ## # API input and output types ## input IntentCreateParams { "(\`Agent\`) The economic agent from whom the intent is initiated. This implies that the intent is an offer." provider: ID "(\`Agent\`) The economic agent whom the intent is for. This implies that the intent is a request." receiver: ID "(\`AccountingScope\`) Grouping around something to create a boundary or context, used for documenting, accounting, planning." inScopeOf: [ID!] } input IntentUpdateParams { "(\`Agent\`) The economic agent from whom the intent is initiated. This implies that the intent is an offer." provider: ID "(\`Agent\`) The economic agent whom the intent is for. This implies that the intent is a request." receiver: ID "(\`AccountingScope\`) Grouping around something to create a boundary or context, used for documenting, accounting, planning." inScopeOf: [ID!] } interface Agent { intents(first: Int, after: String, last: Int, before: String): IntentConnection intentsAsProvider(first: Int, after: String, last: Int, before: String): IntentConnection intentsAsReceiver(first: Int, after: String, last: Int, before: String): IntentConnection intentsInScope(first: Int, after: String, last: Int, before: String): IntentConnection } type Person implements Agent { intents(first: Int, after: String, last: Int, before: String): IntentConnection intentsAsProvider(first: Int, after: String, last: Int, before: String): IntentConnection intentsAsReceiver(first: Int, after: String, last: Int, before: String): IntentConnection intentsInScope(first: Int, after: String, last: Int, before: String): IntentConnection } type Organization implements Agent { intents(first: Int, after: String, last: Int, before: String): IntentConnection intentsAsProvider(first: Int, after: String, last: Int, before: String): IntentConnection intentsAsReceiver(first: Int, after: String, last: Int, before: String): IntentConnection intentsInScope(first: Int, after: String, last: Int, before: String): IntentConnection } `