MCPcopy
hub / github.com/simstudioai/sim / sourceRow

Function sourceRow

apps/sim/lib/workspaces/fork/copy/copy-resources.test.ts:359–368  ·  view source on GitHub ↗
(id: string, knowledgeBaseId: string)

Source from the content-addressed store, hash-verified

357
358describe('planForkMappedKbDocumentCopies', () => {
359 const sourceRow = (id: string, knowledgeBaseId: string) => ({
360 id,
361 knowledgeBaseId,
362 storageKey: `kb/${id}`,
363 filename: `${id}.pdf`,
364 mimeType: 'application/pdf',
365 connectorId: 'connector-1',
366 deletedAt: null,
367 archivedAt: null,
368 })
369
370 function makeTx(docs: ReturnType<typeof sourceRow>[]) {
371 const inserted: Array<Record<string, unknown>> = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected