diff --git a/src/notebook/controller/serializer-types.ts b/src/notebook/controller/serializer-types.ts new file mode 100644 index 0000000..41687cb --- /dev/null +++ b/src/notebook/controller/serializer-types.ts @@ -0,0 +1,25 @@ +import type { ohq } from "@hpcc-js/observablehq-compiler"; + +export interface WUOutput { + configuration: string; + wuid: string; + results: { [id: string]: object }; +} + +export interface OJSCell { + nodeId: string | number; + ojsSource: string; +} + +export interface OJSOutput { + notebookId: string; + folder: string; + files: ohq.File[], // notebook: ohq.Notebook; + cell: OJSCell; + otherCells: OJSCell[]; +} + +export interface Meta { + notebook: { [id: string]: ohq.Notebook }, + node: { [id: string | number]: ohq.Node } +}