Files
speckle-server/packages/server/modules/activitystream/domain/operations.ts
T
2024-09-23 15:40:49 +02:00

32 lines
681 B
TypeScript

import { StreamActionType } from '@/modules/activitystream/domain/types'
import {
StreamActivityRecord,
StreamScopeActivity
} from '@/modules/activitystream/helpers/types'
export type GetActivity = (
streamId: string,
start: Date,
end: Date,
filteredUser: string | null
) => Promise<StreamScopeActivity[]>
export type GetActiveUserStreams = (
start: Date,
end: Date
) => Promise<
{
userId: string
streamIds: string[]
}[]
>
export type GetStreamActivity = (args: {
streamId: string
actionType: StreamActionType
after?: Date
before?: Date
cursor?: Date
limit?: number
}) => Promise<{ items: StreamActivityRecord[]; cursor: string | null }>