entity.ts 431 B

1234567891011121314
  1. // Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. import { EnumObjectManagerObjects, type User } from '#shared/graphql/types.ts'
  3. import type { EntityPlugin } from '../useEntity.ts'
  4. // TODO: add Entity-Data types instead of direct usage from GQL
  5. const userEntity: EntityPlugin<User> = {
  6. name: EnumObjectManagerObjects.User,
  7. display: (object) => object.fullname || '',
  8. }
  9. export default userEntity