* Creates a base DeepnoteFile structure with empty notebooks. * This is a helper to reduce duplication in conversion functions.
(projectName: string, idGenerator: () => string, projectId?: string)
| 373 | * This is a helper to reduce duplication in conversion functions. |
| 374 | */ |
| 375 | function createDeepnoteFileSkeleton(projectName: string, idGenerator: () => string, projectId?: string): DeepnoteFile { |
| 376 | return { |
| 377 | metadata: { |
| 378 | createdAt: new Date().toISOString(), |
| 379 | }, |
| 380 | project: { |
| 381 | id: projectId ?? idGenerator(), |
| 382 | integrations: [], |
| 383 | name: projectName, |
| 384 | notebooks: [], |
| 385 | settings: {}, |
| 386 | }, |
| 387 | version: '1.0.0', |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | /** |
| 392 | * Converts a single Marimo app object into a single-notebook Deepnote project file. |
no outgoing calls
no test coverage detected