Files
speckle-server/packages/server/modules/dashboards/domain/operations.ts
T
2025-09-01 14:24:17 +02:00

23 lines
634 B
TypeScript

import type { Dashboard } from '@/modules/dashboards/domain/types'
import type { Exact } from 'type-fest'
export type GetDashboardRecord = (args: {
id: string
}) => Promise<Dashboard | undefined>
export type DeleteDashboardRecord = (args: { id: string }) => Promise<number>
export type UpsertDashboardRecord = <T extends Exact<Dashboard, T>>(
item: T
) => Promise<void>
export type ListDashboardRecords = (args: {
workspaceId: string
filter?: {
updatedBefore: string | null
limit: number | null
}
}) => Promise<Dashboard[]>
export type CountDashboardRecords = (args: { workspaceId: string }) => Promise<number>