export const DATA_FIELD = `
    {
        id
        category
        preview
        name
        content
        type
        createdOn
        createdBy {
            id
            displayName
            type
        }
    }
` ; export const ERROR_FIELD = `
    {
        code
        data
        message
    }
` ; export const CREATE_PAGE_ELEMENT = `
    mutation CreatePageElement($data: PbPageElementInput!) {
        pageBuilder {
            createPageElement(data: $data) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const UPDATE_PAGE_ELEMENT = `
    mutation UpdatePageElement($id: ID!, $data: PbPageElementInput!) {
        pageBuilder {
            updatePageElement(id: $id, data: $data) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const LIST_PAGE_ELEMENTS = `
    query ListPageElements {
        pageBuilder {
            listPageElements {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const GET_PAGE_ELEMENT = `
    query GetPageElement($id: ID!) {
        pageBuilder {
            getPageElement(id: $id) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const DELETE_PAGE_ELEMENT = `
    mutation DeletePageElement($id: ID!) {
        pageBuilder {
            deletePageElement(id: $id) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ;