Something went wrong. Try again.
A social knowledge tool for research trails, built on ATProto semble.so
research-tool social-network tools-for-thought atproto
Something went wrong. Try again.
TypeScript
at development
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576export interface CollectionQueryOptions { page: number; limit: number; sortBy: CollectionSortField; sortOrder: SortOrder; searchText?: string;}
export interface PaginatedQueryResult<T> { items: T[]; totalCount: number; hasMore: boolean;}
export enum CollectionSortField { NAME = 'name', CREATED_AT = 'createdAt', UPDATED_AT = 'updatedAt', CARD_COUNT = 'cardCount',}
export enum SortOrder { ASC = 'asc', DESC = 'desc',}
export interface CollectionQueryResultDTO { id: string; uri?: string; name: string; description?: string; updatedAt: Date; createdAt: Date; cardCount: number; authorId: string;}
export interface CollectionContainingCardDTO { id: string; uri?: string; name: string; description?: string;}
export interface CollectionForUrlDTO { id: string; uri?: string; name: string; description?: string; authorId: string;}
export interface CollectionForUrlQueryOptions { page: number; limit: number; sortBy: CollectionSortField; sortOrder: SortOrder;}
export interface ICollectionQueryRepository { findByCreator( curatorId: string, options: CollectionQueryOptions, ): Promise<PaginatedQueryResult<CollectionQueryResultDTO>>;
getCollectionsContainingCardForUser( cardId: string, curatorId: string, ): Promise<CollectionContainingCardDTO[]>;
getCollectionsWithUrl( url: string, options: CollectionForUrlQueryOptions, ): Promise<PaginatedQueryResult<CollectionForUrlDTO>>;}