block.graphql 659 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # ===============================================
  2. # BLOCKS
  3. # ===============================================
  4. extend type Query {
  5. blocks(
  6. siteId: UUID!
  7. ): [Block]
  8. }
  9. extend type Mutation {
  10. setBlocksState(
  11. siteId: UUID!
  12. states: [BlockStateInput]!
  13. ): DefaultResponse
  14. deleteBlock(
  15. id: UUID!
  16. ): DefaultResponse
  17. }
  18. # -----------------------------------------------
  19. # TYPES
  20. # -----------------------------------------------
  21. type Block {
  22. id: UUID
  23. block: String
  24. name: String
  25. description: String
  26. icon: String
  27. isEnabled: Boolean
  28. isCustom: Boolean
  29. config: JSON
  30. }
  31. input BlockStateInput {
  32. id: UUID!
  33. isEnabled: Boolean!
  34. }