Initial commit

This commit is contained in:
fraqtal
2026-07-12 08:15:46 +00:00
commit ee0fec0691
1397 changed files with 127242 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import type { IDataExport } from "./data-export.interface";
import type { DsrFormat, UserDataBundle } from "./dsr-types";
/**
* Volatile in-memory IDataExport. Returns an empty bundle with the correct
* shape.
*
* Used in dev-seed and storybook contexts where Payload is unavailable.
* Not a recording double — use RecordingDataExport from @repo/core-testing for
* call-assertion in unit tests.
*/
export class InMemoryDataExport implements IDataExport {
async exportSubjectData(
subjectId: string,
format: DsrFormat,
): Promise<UserDataBundle> {
return {
subjectId,
exportedAt: new Date().toISOString(),
format,
data: {},
};
}
}