MCPcopy
hub / github.com/1Panel-dev/MaxKB / exportDocumentZip

Function exportDocumentZip

ui/src/api/knowledge/document.ts:213–220  ·  view source on GitHub ↗
(document_name, knowledge_id, document_id, loading)

Source from the content-addressed store, hash-verified

211 document_id: string,
212 loading?: Ref<boolean>,
213) => Promise<any> = (document_name, knowledge_id, document_id, loading) => {
214 return exportFile(
215 document_name.trim() + '.zip',
216 `${prefix.value}/${knowledge_id}/document/${document_id}/export_zip`,
217 {},
218 loading,
219 )
220}
221
222const exportMulDocumentZip: (
223 document_name: string,

Callers

nothing calls this directly

Calls 1

exportFileFunction · 0.90

Tested by

no test coverage detected