view data fixes

This commit is contained in:
2026-01-23 15:30:23 +01:00
parent e22033be38
commit f8099f04bc
213 changed files with 3466 additions and 3003 deletions

View File

@@ -1,16 +1,16 @@
/**
* Record page view input view model
* Represents input data for recording a page view
*
* Note: No matching generated DTO available yet
*/
import { ViewModel } from "../contracts/view-models/ViewModel";
import type { RecordPageViewInputViewData } from "../view-data/RecordPageViewInputViewData";
export class RecordPageViewInputViewModel extends ViewModel {
path: string;
userId?: string;
constructor(data: { path: string; userId?: string }) {
constructor(data: RecordPageViewInputViewData) {
super();
this.path = data.path;
this.userId = data.userId;
}
@@ -24,4 +24,4 @@ export class RecordPageViewInputViewModel extends ViewModel {
get hasUserContext(): boolean {
return this.userId !== undefined && this.userId !== '';
}
}
}