/* EXPORT ENTITY TYPES */
export * from './notification-rule/notification-rule'
export * from './notification/notification'

/* IMPORT ENTITIES AND RESOLVERS */
import {
  entities as NotificationRuleEntities,
  resolvers as NotificationRuleResolvers,
  subscribers as NotificationRuleSubscribers
} from './notification-rule'
import {
  entities as NotificationEntities,
  typeDefs as NotificationTypeDefs,
  resolvers as NotificationResolvers,
  directives as NotificationDirectives
} from './notification'

export const entities = [
  /* ENTITIES */
  ...NotificationRuleEntities,
  ...NotificationEntities
]

export const subscribers = [
  /* SUBSCRIBERS */
  ...NotificationRuleSubscribers
]

export const schema = {
  typeDefs: {
    ...NotificationTypeDefs
  },
  resolverClasses: [
    /* RESOLVER CLASSES */
    ...NotificationRuleResolvers,
    ...NotificationResolvers,
    ...NotificationResolvers
  ],
  directives: {
    ...NotificationDirectives
  }
}
