UserTaskbarItem.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import {
  3. EnumTaskbarEntity,
  4. EnumTaskbarEntityAccess,
  5. EnumTicketStateColorCode,
  6. type UserTaskbarItem,
  7. } from '#shared/graphql/types.ts'
  8. import { convertToGraphQLId } from '#shared/graphql/utils.ts'
  9. import type { DeepPartial } from '#shared/types/utils.ts'
  10. export default (): DeepPartial<UserTaskbarItem> => {
  11. return {
  12. __typename: 'UserTaskbarItem',
  13. id: convertToGraphQLId('Taskbar', 1),
  14. key: 'Ticket-1',
  15. callback: EnumTaskbarEntity.TicketZoom,
  16. entityAccess: EnumTaskbarEntityAccess.Granted,
  17. entity: {
  18. __typename: 'Ticket',
  19. id: convertToGraphQLId('Ticket', 1),
  20. internalId: 1,
  21. number: '53001',
  22. title: 'Welcome to Zammad!',
  23. stateColorCode: EnumTicketStateColorCode.Open,
  24. state: {
  25. __typename: 'TicketState',
  26. name: 'open',
  27. },
  28. updatedAt: '2024-07-29T09:39:03.000',
  29. checklist: null,
  30. referencingChecklistTickets: [],
  31. },
  32. dirty: true,
  33. formNewArticlePresent: false,
  34. }
  35. }