30 lines
936 B
TypeScript
30 lines
936 B
TypeScript
import type { AccSyncItemStatus } from '@/modules/acc/domain/constants'
|
|
import type { AccSyncItem } from '@/modules/acc/domain/types'
|
|
|
|
export type UpsertAccSyncItem = (item: AccSyncItem) => Promise<void>
|
|
|
|
export type UpdateAccSyncItemStatus = (args: {
|
|
id: string
|
|
status: AccSyncItemStatus
|
|
}) => Promise<AccSyncItem | null>
|
|
|
|
export type GetAccSyncItemByUrn = (args: {
|
|
lineageUrn: string
|
|
}) => Promise<AccSyncItem | null>
|
|
|
|
export type GetAccSyncItemById = (args: { id: string }) => Promise<AccSyncItem | null>
|
|
|
|
export type ListAccSyncItems = (args: {
|
|
projectId: string
|
|
filter?: {
|
|
limit: number | null
|
|
updatedBefore: string | null
|
|
}
|
|
}) => Promise<AccSyncItem[]>
|
|
|
|
export type CountAccSyncItems = (args: { projectId: string }) => Promise<number>
|
|
|
|
export type DeleteAccSyncItemByUrn = (args: { lineageUrn: string }) => Promise<number>
|
|
|
|
export type QueryAllAccSyncItems = () => AsyncGenerator<AccSyncItem[], void, unknown>
|