@valueflows/vf-graphql
Version:
Reference GraphQL implementation of the ValueFlows spec
76 lines (59 loc) • 2.44 kB
JavaScript
// Generated by scripts/build.js - edit the *.gql file instead!
module.exports = `
##
#
# Agent <> Claim API
#
# Queries related to Claim data exposed within an agent context,
# and identifiers linking Agents to Claim record type.
#
# @package vf-graphql
# @since 2022-06-16
#
##
type Claim {
"The economic agent from whom the claim is expected."
provider: Agent
"The economic agent whom the claim is for."
receiver: Agent
"Grouping around something to create a boundary or context, used for documenting, accounting, planning."
inScopeOf: [AccountingScope!]
}
##
# API input and output types
##
input ClaimCreateParams {
"(\`Agent\`) The economic agent from whom the claim is expected."
provider: ID
"(\`Agent\`) The economic agent whom the claim is for."
receiver: ID
"(\`AccountingScope\`) Grouping around something to create a boundary or context, used for documenting, accounting, planning."
inScopeOf: [ID!]
}
input ClaimUpdateParams {
"(\`Agent\`) The economic agent from whom the claim is expected."
provider: ID
"(\`Agent\`) The economic agent whom the claim is for."
receiver: ID
"(\`AccountingScope\`) Grouping around something to create a boundary or context, used for documenting, accounting, planning."
inScopeOf: [ID!]
}
interface Agent {
claims(first: Int, after: String, last: Int, before: String): IntentConnection
claimsAsProvider(first: Int, after: String, last: Int, before: String): IntentConnection
claimsAsReceiver(first: Int, after: String, last: Int, before: String): IntentConnection
claimsInScope(first: Int, after: String, last: Int, before: String): IntentConnection
}
type Person implements Agent {
claims(first: Int, after: String, last: Int, before: String): IntentConnection
claimsAsProvider(first: Int, after: String, last: Int, before: String): IntentConnection
claimsAsReceiver(first: Int, after: String, last: Int, before: String): IntentConnection
claimsInScope(first: Int, after: String, last: Int, before: String): IntentConnection
}
type Organization implements Agent {
claims(first: Int, after: String, last: Int, before: String): IntentConnection
claimsAsProvider(first: Int, after: String, last: Int, before: String): IntentConnection
claimsAsReceiver(first: Int, after: String, last: Int, before: String): IntentConnection
claimsInScope(first: Int, after: String, last: Int, before: String): IntentConnection
}
`