MCPcopy Index your code
hub / github.com/simstudioai/sim / buildPayload

Function buildPayload

apps/sim/lib/table/import-runner.test.ts:73–85  ·  view source on GitHub ↗
(overrides: Partial<TableImportPayload> = {})

Source from the content-addressed store, hash-verified

71}
72
73function buildPayload(overrides: Partial<TableImportPayload> = {}): TableImportPayload {
74 return {
75 importId: 'job_1',
76 tableId: 'tbl_1',
77 workspaceId: 'ws_1',
78 userId: 'user_1',
79 fileKey: 'workspace/ws_1/people.csv',
80 fileName: 'people.csv',
81 delimiter: ',',
82 mode: 'append',
83 ...overrides,
84 }
85}
86
87describe('runTableImport source-file cleanup', () => {
88 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected