objectAttributes.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { EntityStaticObjectAttributes } from '#shared/entities/object-attributes/types/store.ts'
  3. import { EnumObjectManagerObjects } from '#shared/graphql/types.ts'
  4. export const staticObjectAttributes: EntityStaticObjectAttributes = {
  5. name: EnumObjectManagerObjects.Ticket,
  6. attributes: [
  7. {
  8. name: 'number',
  9. display: '#',
  10. dataType: 'input',
  11. isStatic: true,
  12. isInternal: true,
  13. },
  14. {
  15. name: 'time_unit',
  16. display: __('Accounted Time'),
  17. dataType: 'input',
  18. isStatic: true,
  19. isInternal: true,
  20. },
  21. {
  22. name: 'escalation_at',
  23. display: __('Escalation at'),
  24. dataType: 'datetime',
  25. isStatic: true,
  26. isInternal: true,
  27. },
  28. {
  29. name: 'first_response_escalation_at',
  30. display: __('Escalation at (First Response Time)'),
  31. dataType: 'datetime',
  32. isStatic: true,
  33. isInternal: true,
  34. },
  35. {
  36. name: 'update_escalation_at',
  37. display: __('Escalation at (Update Time)'),
  38. dataType: 'datetime',
  39. isStatic: true,
  40. isInternal: true,
  41. },
  42. {
  43. name: 'close_escalation_at',
  44. display: __('Escalation at (Close Time)'),
  45. dataType: 'datetime',
  46. isStatic: true,
  47. isInternal: true,
  48. },
  49. {
  50. name: 'last_contact_at',
  51. display: __('Last contact'),
  52. dataType: 'datetime',
  53. isStatic: true,
  54. isInternal: true,
  55. },
  56. {
  57. name: 'last_contact_agent_at',
  58. display: __('Last contact (agent)'),
  59. dataType: 'datetime',
  60. isStatic: true,
  61. isInternal: true,
  62. },
  63. {
  64. name: 'last_contact_customer_at',
  65. display: __('Last contact (customer)'),
  66. dataType: 'datetime',
  67. isStatic: true,
  68. isInternal: true,
  69. },
  70. {
  71. name: 'first_response_at',
  72. display: __('First response'),
  73. dataType: 'datetime',
  74. isStatic: true,
  75. isInternal: true,
  76. },
  77. {
  78. name: 'close_at',
  79. display: __('Closing time'),
  80. dataType: 'datetime',
  81. isStatic: true,
  82. isInternal: true,
  83. },
  84. {
  85. name: 'last_close_at',
  86. display: __('Last closing time'),
  87. dataType: 'datetime',
  88. isStatic: true,
  89. isInternal: true,
  90. },
  91. {
  92. name: 'created_by_id',
  93. display: __('Created by'),
  94. dataOption: {
  95. relation: 'User',
  96. },
  97. dataType: 'autocomplete',
  98. isStatic: true,
  99. isInternal: true,
  100. },
  101. {
  102. name: 'created_at',
  103. display: __('Created at'),
  104. dataType: 'datetime',
  105. isStatic: true,
  106. isInternal: true,
  107. },
  108. {
  109. name: 'updated_by_id',
  110. display: __('Updated by'),
  111. dataOption: {
  112. relation: 'User',
  113. },
  114. dataType: 'autocomplete',
  115. isStatic: true,
  116. isInternal: true,
  117. },
  118. {
  119. name: 'updated_at',
  120. display: __('Updated at'),
  121. dataType: 'datetime',
  122. isStatic: true,
  123. isInternal: true,
  124. },
  125. {
  126. name: 'last_owner_update_at',
  127. display: __('Last owner update'),
  128. dataType: 'datetime',
  129. isStatic: true,
  130. isInternal: true,
  131. },
  132. ],
  133. }