OBJECT

Mutation

Mutation root

link GraphQL Schema definition

  • type Mutation {
  • # Add a new Company to the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # active: Is this company active.
  • # address: Street address of this company.
  • # adminUser: User ID of the Admin user for this company.
  • # city: City where this company is located.
  • # country: Country where this company is located.
  • # description: Description of this company.
  • # name: Name of this company.
  • # phone: Phone number of this company.
  • # postalCode: Postal Code of this company.
  • # state: State where this company is located.
  • # website: URL of website for this company.
  • addCompany(
  • active: Boolean!,
  • address: String,
  • adminUser: Int!,
  • city: String,
  • country: String,
  • description: String,
  • name: String,
  • phone: String,
  • postalCode: String,
  • state: String,
  • website: String
  • ): CompanyDto
  • # Add an item to the RealItems system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # earmarkedForUser: The ID of the Registered Owner of this item.
  • # forSale: Is this item public.
  • # itemId: The ID of the new item.
  • # productId: The product ID of the new item.
  • addItem(
  • earmarkedForUser: Int!,
  • forSale: Boolean!,
  • itemId: Int!,
  • productId: Int!
  • ): ItemDto
  • # Add a new Product to the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # blockchainId: Blockchain ID of this product. [1 - VeChain, 2 -
  • # Ethereum]
  • # companyId: Company ID of this product.
  • # componentName: Name of VueJs component used for displaying this
  • # product.
  • # data: The JSON formatted data representing this product.
  • # maxItems: Maximum number of items that can be created for this
  • # product.
  • # name: Name of this product.
  • # publicProduct: Is this product public?.
  • addProduct(
  • blockchainId: Int!,
  • companyId: Int!,
  • componentName: String,
  • data: String,
  • maxItems: Int!,
  • name: String,
  • publicProduct: Boolean!
  • ): ProductDto
  • # Add a new user to the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # country: Country where user is physically located.
  • # email: Email address of user.
  • # firstName: First name of user.
  • # lastName: Last name of user.
  • # mobile: Mobile phone number of user.
  • # password: Password of user.
  • addUser(
  • country: String,
  • email: String,
  • firstName: String,
  • lastName: String,
  • mobile: String,
  • password: String
  • ): UserDto
  • # Add a new Vechain wallet to the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # userId: The ID of the user who owns this wallet.
  • # walletAddress: The VeChain address of this wallet.
  • addWallet(userId: Int!, walletAddress: String): WalletDto
  • # Create a range of new items in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # count: The number of new items to create.
  • # productId: The product ID of the new items.
  • createItems(count: Int!, productId: Int!): Receipt
  • # Set the Registered Owner of an item. RBAC [STANDARD_USER].
  • #
  • # Arguments
  • # earmarkedForUser: The ID of the Registered Owner.
  • # itemId: The item ID to earmark.
  • earmarkItem(earmarkedForUser: Int!, itemId: Int!): ItemDto
  • # VeChain Address registers ownership of an item. RBAC [STANDARD_USER].
  • #
  • # Arguments
  • # itemId: The ID of the item.
  • # myAddress: The VeChain Address of the user.
  • registerOwnership(itemId: Int!, myAddress: String): Receipt
  • # Set an item to be public. RBAC [STANDARD_USER].
  • #
  • # Arguments
  • # forSale: TRUE or FALSE.
  • # itemId: The item ID.
  • setItemForSale(forSale: Boolean!, itemId: Int!): ItemDto
  • # Update a Company in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # active: Is this company active.
  • # address: Street addresss of this company.
  • # adminUser: User ID of the Admin user for this company.
  • # city: City where this company is located.
  • # country: Country where this company is located.
  • # description: Description of this company.
  • # id: ID of this company.
  • # name: Name of this company.
  • # phone: Phone number of this company.
  • # postalCode: Postal Code of this company.
  • # state: State where this company is located.
  • # website: URL of website for this company.
  • updateCompany(
  • active: Boolean!,
  • address: String,
  • adminUser: Int!,
  • city: String,
  • country: String,
  • description: String,
  • id: Int!,
  • name: String,
  • phone: String,
  • postalCode: String,
  • state: String,
  • website: String
  • ): CompanyDto
  • # Update an item in the RealItems system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # earmarkedForUser: The ID of the Registered Owner of this item.
  • # forSale: Is this item public.
  • # itemId: The ID of the new item.
  • # productId: The product ID of the new item.
  • updateItem(
  • earmarkedForUser: Int!,
  • forSale: Boolean!,
  • itemId: Int!,
  • productId: Int!
  • ): ItemDto
  • # Update a Product in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # blockchainId: Blockchain ID of this product. [1 - VeChain, 2 -
  • # Ethereum]
  • # companyId: Company ID of this product.
  • # componentName: Name of VueJs component used for displaying this
  • # product.
  • # data: The JSON formatted data representing this product.
  • # id: ID of this product.
  • # maxItems: Maximum number of items that can be created for this
  • # product.
  • # name: Name of this product.
  • # publicProduct: Is this product public?.
  • updateProduct(
  • blockchainId: Int!,
  • companyId: Int!,
  • componentName: String,
  • data: String,
  • id: Int!,
  • maxItems: Int!,
  • name: String,
  • publicProduct: Boolean!
  • ): ProductDto
  • # Update a user in the Real Items system. RBAC [ADMIN_USER].
  • #
  • # Arguments
  • # country: Country where user is physically located.
  • # email: Email address of user.
  • # firstName: First name of user.
  • # id: ID of user.
  • # lastName: Last name of user.
  • # mobile: Mobile phone number of user.
  • # password: Password of user.
  • updateUser(
  • country: String,
  • email: String,
  • firstName: String,
  • id: Int!,
  • lastName: String,
  • mobile: String,
  • password: String
  • ): UserDto
  • }

link Require by

This element is not required by anyone