// Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ import { i18n } from '@shared/i18n' import type { Role } from '@shared/graphql/types' import type { ActivityMessageBuilder } from '../types' // eslint-disable-next-line @typescript-eslint/no-unused-vars const path = (metaObject: Role) => { return '#' } const messageText = ( type: string, authorName: string, metaObject: Role, ): Maybe => { const objectTitle = metaObject.name || '-' switch (type) { case 'create': return i18n.t('%s created role |%s|', authorName, objectTitle) case 'update': return i18n.t('%s updated role |%s|', authorName, objectTitle) default: return null } } export default { messageText, path, model: 'Role', }