entity.ts 472 B

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