BOD-35 Refactored email screen to use TinyMCE + added templates schema + base level email generation

This commit is contained in:
Patrick Fic
2020-04-16 15:50:07 -07:00
parent 248665aa65
commit c9cafa7ab7
27 changed files with 650 additions and 1639 deletions

View File

@@ -24,6 +24,7 @@ export const QUERY_BODYSHOP = gql`
region_config
md_responsibility_centers
messagingservicesid
template_header
employees {
id
first_name

View File

@@ -0,0 +1,13 @@
import { gql } from "apollo-boost";
export const QUERY_TEMPLATES_BY_NAME = gql`
query QUERY_TEMPLATES_BY_NAME($name: String!) {
templates(where: { name: { _eq: $name } }) {
id
html
name
query
bodyshopid
}
}
`;