( orgSlug: string, req: DocumentCollectionCreateRequest, )
| 15 | import { DocumentCollectionResponse, Id, DocumentResponse, DataSource } from "@repo/core"; |
| 16 | |
| 17 | export const createDocumentCollection = async ( |
| 18 | orgSlug: string, |
| 19 | req: DocumentCollectionCreateRequest, |
| 20 | ): Promise<DocumentCollectionResponse> => { |
| 21 | return ( |
| 22 | await post<DocumentCollectionCreateRequest, DocumentCollectionResponse>( |
| 23 | postOrganizationsIdOrSlugDocumentCollectionApiPath(orgSlug), |
| 24 | req, |
| 25 | ) |
| 26 | ).response; |
| 27 | }; |
| 28 | |
| 29 | export const updateDocumentCollection = async ( |
| 30 | documentCollectionId: Id<DocumentCollectionResponse>, |
no test coverage detected