diff --git a/components/XDataTable.vue b/components/XDataTable.vue index fb15aa6e..6416518c 100644 --- a/components/XDataTable.vue +++ b/components/XDataTable.vue @@ -3,13 +3,21 @@ import type Dialog from 'primevue/dialog' import type DataTable from 'primevue/datatable' import { FilterMatchMode } from 'primevue/api'; import camelCaseToTitle from '~/utils/camelCaseToTitle.js'; -import { AuditLog } from '~/domain/application/index.js'; export type ViewFieldType = 'text' | 'textarea' | 'number' | 'date' | 'boolean' | 'hidden' | 'object' export type FormFieldType = 'text' | 'textarea' | { type: 'number', min: number, max: number } | 'date' | 'boolean' | 'hidden' | string[] | { type: 'requirement', options: { id: string, name: string }[] } +interface AuditLogViewModel { + id: string; + entityId: string; + entityName: string; + entity: string; + organizationSlug: string; + createdAt: Date; +} + const props = defineProps<{ datasource: RowType[] | null, entityName: string, @@ -60,7 +68,7 @@ const openEditDialog = (item: RowType) => { const openRecycleDialog = async () => { recycleDialogLoading.value = true recycleDialogVisible.value = true - const recycleBinItems = (await $fetch(`/api/audit-log/deleted`, { + const recycleBinItems = (await $fetch(`/api/audit-log/deleted`, { method: 'GET', query: { entityName: props.entityName, @@ -78,7 +86,7 @@ const openRecycleDialog = async () => { const openHistoryDialog = async (item: RowType) => { historyDialogLoading.value = true historyDialogVisible.value = true - const auditLog = (await $fetch(`/api/audit-log`, { + const auditLog = (await $fetch(`/api/audit-log`, { method: 'GET', query: { entityId: item.id, diff --git a/package-lock.json b/package-lock.json index d83d7bec..53b54a4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@final-hill/cathedral", - "version": "0.17.0", + "version": "0.18.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@final-hill/cathedral", - "version": "0.17.0", + "version": "0.18.0", "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { diff --git a/package.json b/package.json index b9694a33..737f9bf3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@final-hill/cathedral", - "version": "0.17.0", + "version": "0.18.0", "description": "Requirements management system", "keywords": [], "private": true, diff --git a/pages/o/[organization-slug]/[solution-slug]/environment/assumptions.client.vue b/pages/o/[organization-slug]/[solution-slug]/environment/assumptions.client.vue index 3e62c75c..014f88c8 100644 --- a/pages/o/[organization-slug]/[solution-slug]/environment/assumptions.client.vue +++ b/pages/o/[organization-slug]/[solution-slug]/environment/assumptions.client.vue @@ -1,6 +1,5 @@