ticketAttributes.api.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { ObjectAttributeValuesFragmentDoc } from '../../../../graphql/fragments/objectAttributeValues.api';
  4. export const TicketAttributesFragmentDoc = gql`
  5. fragment ticketAttributes on Ticket {
  6. id
  7. internalId
  8. number
  9. title
  10. createdAt
  11. escalationAt
  12. updatedAt
  13. updatedBy {
  14. id
  15. }
  16. pendingTime
  17. owner {
  18. id
  19. internalId
  20. firstname
  21. lastname
  22. }
  23. customer {
  24. id
  25. internalId
  26. firstname
  27. lastname
  28. fullname
  29. phone
  30. mobile
  31. image
  32. vip
  33. active
  34. outOfOffice
  35. outOfOfficeStartAt
  36. outOfOfficeEndAt
  37. email
  38. organization {
  39. id
  40. internalId
  41. name
  42. active
  43. objectAttributeValues {
  44. ...objectAttributeValues
  45. }
  46. }
  47. hasSecondaryOrganizations
  48. policy {
  49. update
  50. }
  51. }
  52. organization {
  53. id
  54. internalId
  55. name
  56. vip
  57. active
  58. }
  59. state {
  60. id
  61. name
  62. stateType {
  63. id
  64. name
  65. }
  66. }
  67. group {
  68. id
  69. name
  70. emailAddress {
  71. name
  72. emailAddress
  73. }
  74. }
  75. priority {
  76. id
  77. name
  78. defaultCreate
  79. uiColor
  80. }
  81. objectAttributeValues {
  82. ...objectAttributeValues
  83. }
  84. policy {
  85. update
  86. agentReadAccess
  87. }
  88. tags
  89. timeUnit
  90. timeUnitsPerType {
  91. name
  92. timeUnit
  93. }
  94. subscribed
  95. preferences
  96. stateColorCode
  97. sharedDraftZoomId
  98. firstResponseEscalationAt
  99. closeEscalationAt
  100. updateEscalationAt
  101. initialChannel
  102. externalReferences {
  103. github
  104. gitlab
  105. }
  106. }
  107. ${ObjectAttributeValuesFragmentDoc}`;