ticket-article-customer-object-attributes.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { ObjectManagerFrontendAttributesPayload } from '#shared/graphql/types.ts'
  3. export default (): ObjectManagerFrontendAttributesPayload => ({
  4. attributes: [
  5. {
  6. name: 'body',
  7. display: 'Text',
  8. dataType: 'richtext',
  9. dataOption: {
  10. type: 'richtext',
  11. maxlength: 150000,
  12. upload: true,
  13. rows: 8,
  14. null: true,
  15. },
  16. isInternal: true,
  17. screens: {
  18. create_top: {
  19. null: false,
  20. },
  21. edit: {
  22. null: true,
  23. },
  24. },
  25. __typename: 'ObjectManagerFrontendAttribute',
  26. },
  27. ],
  28. screens: [
  29. {
  30. name: 'create_middle',
  31. attributes: [],
  32. __typename: 'ObjectManagerScreenAttributes',
  33. },
  34. {
  35. name: 'edit',
  36. attributes: ['body'],
  37. __typename: 'ObjectManagerScreenAttributes',
  38. },
  39. {
  40. name: 'create_top',
  41. attributes: ['body'],
  42. __typename: 'ObjectManagerScreenAttributes',
  43. },
  44. ],
  45. __typename: 'ObjectManagerFrontendAttributesPayload',
  46. })