123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import type { ObjectManagerFrontendAttributesPayload } from '#shared/graphql/types.ts'
- export default (): ObjectManagerFrontendAttributesPayload => ({
- attributes: [
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'name',
- display: 'Name',
- dataType: 'input',
- dataOption: {
- type: 'text',
- maxlength: 150,
- null: false,
- item_class: 'formGroup--halfSize',
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'shared',
- display: 'Shared organization',
- dataType: 'boolean',
- dataOption: {
- null: true,
- default: true,
- note: "Customers in the organization can view each other's items.",
- item_class: 'formGroup--halfSize',
- options: {
- true: 'yes',
- false: 'no',
- },
- translate: true,
- permission: ['admin.organization'],
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'domain_assignment',
- display: 'Domain based assignment',
- dataType: 'boolean',
- dataOption: {
- null: true,
- default: false,
- note: 'Assign users based on user domain.',
- item_class: 'formGroup--halfSize',
- options: {
- true: 'yes',
- false: 'no',
- },
- translate: true,
- permission: ['admin.organization'],
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'domain',
- display: 'Domain',
- dataType: 'input',
- dataOption: {
- type: 'text',
- maxlength: 150,
- null: true,
- item_class: 'formGroup--halfSize',
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'note',
- display: 'Note',
- dataType: 'richtext',
- dataOption: {
- type: 'text',
- maxlength: 5000,
- null: true,
- note: 'Notes are visible to agents only, never to customers.',
- no_images: true,
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'active',
- display: 'Active',
- dataType: 'active',
- dataOption: {
- null: true,
- default: true,
- permission: ['admin.organization'],
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'vip',
- display: 'VIP',
- dataType: 'boolean',
- dataOption: {
- options: {
- true: 'yes',
- false: 'no',
- },
- null: true,
- default: false,
- permission: ['admin.organization'],
- },
- screens: {},
- isInternal: true,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'test',
- display: 'Test Field',
- dataType: 'input',
- dataOption: {
- default: '',
- type: 'text',
- maxlength: 120,
- linktemplate: '',
- null: true,
- options: {},
- relation: '',
- },
- screens: {},
- isInternal: false,
- },
- {
- __typename: 'ObjectManagerFrontendAttribute',
- name: 'textarea',
- display: 'Textarea Field',
- dataType: 'textarea',
- dataOption: {
- default: '',
- maxlength: 500,
- rows: 4,
- null: true,
- options: {},
- relation: '',
- },
- screens: {},
- isInternal: false,
- },
- ],
- screens: [
- {
- name: 'view',
- attributes: [
- 'name',
- 'shared',
- 'domain_assignment',
- 'domain',
- 'note',
- 'active',
- 'vip',
- 'test',
- 'textarea',
- ],
- },
- {
- name: 'edit',
- attributes: [
- 'name',
- 'shared',
- 'domain_assignment',
- 'domain',
- 'note',
- 'active',
- 'vip',
- 'test',
- 'textarea',
- ],
- },
- ],
- })
|