UNPKG

@leosprograms/vf-graphql-holochain

Version:

GraphQL schema bindings for the Holochain implementation of ValueFlows

71 lines (59 loc) 1.22 kB
const associateMyAgentExtension = ` type Mutation { "Associates the Agent identified by agentId with the currently authenticated user. Can only be used once." associateMyAgent(agentId: ID!): Boolean! } `; const hasIds = ` type Measure { hasUnitId: ID! } type ResourceSpecification { defaultUnitOfResourceId: ID! } type Intent { providerId: ID! receiverId: ID! } type Commitment { providerId: ID! receiverId: ID! stageId: ID! } type EconomicEvent { providerId: ID! receiverId: ID! inputOfId: ID! outputOfId: ID! } type EconomicResource { stageId: ID! } `; const recipes = ` type RecipeProcess { processConformsToId: ID! recipeInputs: [RecipeFlow] recipeOutputs: [RecipeFlow] } type RecipeFlow { providerRole: String receiverRole: String instructions: String } input RecipeFlowCreateParams { providerRole: String receiverRole: String instructions: String } input RecipeFlowUpdateParams { providerRole: String receiverRole: String instructions: String } type RecipeExchange { recipeClauses: [RecipeFlow] recipeReciprocalClauses: [RecipeFlow] } ` export { associateMyAgentExtension, hasIds, recipes }