// Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ import { defineStore } from 'pinia' import { useObjectAttributesScreen } from '#shared/entities/object-attributes/composables/useObjectAttributesScreen.ts' import type { EntityStaticObjectAttributes } from '#shared/entities/object-attributes/types/store.ts' import { EnumObjectManagerObjects } from '#shared/graphql/types.ts' export const staticObjectAttributes: EntityStaticObjectAttributes = { name: EnumObjectManagerObjects.User, attributes: [ { name: 'created_by_id', display: __('Created by'), dataOption: { relation: 'User', }, dataType: 'autocomplete', isStatic: true, isInternal: true, }, { name: 'created_at', display: __('Created at'), dataType: 'datetime', isStatic: true, isInternal: true, }, { name: 'updated_by_id', display: __('Updated by'), dataOption: { relation: 'User', }, dataType: 'autocomplete', isStatic: true, isInternal: true, }, { name: 'updated_at', display: __('Updated at'), dataType: 'datetime', isStatic: true, isInternal: true, }, ], } export const useUserObjectAttributesStore = defineStore( 'userObjectAttributes', () => { const { screenAttributes: viewScreenAttributes } = useObjectAttributesScreen(EnumObjectManagerObjects.User, 'view') return { viewScreenAttributes, } }, )