123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import type { ObjectManagerFrontendAttributesPayload } from '#shared/graphql/types.ts'
- export default (): ObjectManagerFrontendAttributesPayload => ({
- attributes: [
- {
- name: 'title',
- display: 'Title',
- dataType: 'input',
- dataOption: {
- type: 'text',
- maxlength: 200,
- null: false,
- translate: false,
- },
- isInternal: true,
- screens: {
- create_top: {
- null: false,
- },
- edit: {},
- },
- __typename: 'ObjectManagerFrontendAttribute',
- },
- {
- name: 'organization_id',
- display: 'Organization',
- dataType: 'autocompletion_ajax_customer_organization',
- dataOption: {
- relation: 'Organization',
- autocapitalize: false,
- multiple: false,
- null: true,
- translate: false,
- permission: ['ticket.agent', 'ticket.customer'],
- belongs_to: 'organization',
- },
- isInternal: true,
- screens: {
- create_top: {
- null: false,
- },
- edit: {},
- },
- __typename: 'ObjectManagerFrontendAttribute',
- },
- {
- name: 'group_id',
- display: 'Group',
- dataType: 'select',
- dataOption: {
- default: '',
- relation: 'Group',
- relation_condition: {
- access: 'full',
- },
- nulloption: true,
- multiple: false,
- null: false,
- translate: false,
- only_shown_if_selectable: true,
- permission: ['ticket.agent', 'ticket.customer'],
- maxlength: 255,
- belongs_to: 'group',
- },
- isInternal: true,
- screens: {
- create_middle: {
- null: false,
- item_class: 'column',
- },
- edit: {
- null: false,
- },
- },
- __typename: 'ObjectManagerFrontendAttribute',
- },
- {
- name: 'state_id',
- display: 'State',
- dataType: 'select',
- dataOption: {
- relation: 'TicketState',
- nulloption: true,
- multiple: false,
- null: false,
- default: 2,
- translate: true,
- filter: [2, 1, 3, 4, 6, 7],
- maxlength: 255,
- belongs_to: 'state',
- },
- isInternal: true,
- screens: {
- create_middle: {
- null: false,
- item_class: 'column',
- filter: [2, 1, 3, 4, 7],
- },
- edit: {
- nulloption: false,
- null: false,
- filter: [2, 3, 4, 7],
- },
- },
- __typename: 'ObjectManagerFrontendAttribute',
- },
- ],
- screens: [
- {
- name: 'create_top',
- attributes: ['title', 'organization_id'],
- __typename: 'ObjectManagerScreenAttributes',
- },
- {
- name: 'edit',
- attributes: ['group_id', 'state_id'],
- __typename: 'ObjectManagerScreenAttributes',
- },
- {
- name: 'create_middle',
- attributes: ['group_id', 'state_id'],
- __typename: 'ObjectManagerScreenAttributes',
- },
- {
- name: 'create_bottom',
- attributes: [],
- __typename: 'ObjectManagerScreenAttributes',
- },
- ],
- __typename: 'ObjectManagerFrontendAttributesPayload',
- })
|