mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
659 B
41 lines
659 B
# ===============================================
|
|
# BLOCKS
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
blocks(
|
|
siteId: UUID!
|
|
): [Block]
|
|
}
|
|
|
|
extend type Mutation {
|
|
setBlocksState(
|
|
siteId: UUID!
|
|
states: [BlockStateInput]!
|
|
): DefaultResponse
|
|
|
|
deleteBlock(
|
|
id: UUID!
|
|
): DefaultResponse
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# TYPES
|
|
# -----------------------------------------------
|
|
|
|
type Block {
|
|
id: UUID
|
|
block: String
|
|
name: String
|
|
description: String
|
|
icon: String
|
|
isEnabled: Boolean
|
|
isCustom: Boolean
|
|
config: JSON
|
|
}
|
|
|
|
input BlockStateInput {
|
|
id: UUID!
|
|
isEnabled: Boolean!
|
|
}
|