preperation for usage of grid_to_absolute_position

This commit is contained in:
2025-12-16 15:08:59 +08:00
parent df934afefa
commit c3268cf298
12 changed files with 162 additions and 97 deletions

View File

@@ -1,8 +1,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { UserProfile } from "./UserProfile.js";
import type { FriendshipResponseDto } from "./FriendshipResponseDto.js";
import type { FriendshipResponseDto } from "./FriendshipResponseDto";
import type { SceneData } from "./SceneData";
import type { UserProfile } from "./UserProfile";
export type AppData = {
user: UserProfile | null;
friends: Array<FriendshipResponseDto> | null;
};
export type AppData = { user: UserProfile | null, friends: Array<FriendshipResponseDto> | null, scene: SceneData, };

View File

@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type DisplayData = { screen_width: number, screen_height: number, monitor_scale_factor: number, };

View File

@@ -1,10 +1,4 @@
import type { UserBasicDto } from "./UserBasicDto.js";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { UserBasicDto } from "./UserBasicDto";
export type FriendRequestResponseDto = {
id: string;
sender: UserBasicDto;
receiver: UserBasicDto;
status: string;
createdAt: string;
updatedAt: string;
};
export type FriendRequestResponseDto = { id: string, sender: UserBasicDto, receiver: UserBasicDto, status: string, createdAt: string, updatedAt: string, };

View File

@@ -1,7 +1,4 @@
import type { UserBasicDto } from "./UserBasicDto.js";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { UserBasicDto } from "./UserBasicDto";
export type FriendshipResponseDto = {
id: string;
friend: UserBasicDto;
createdAt: string;
};
export type FriendshipResponseDto = { id: string, friend: UserBasicDto, createdAt: string, };

View File

@@ -0,0 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { DisplayData } from "./DisplayData";
export type SceneData = { display: DisplayData, grid_size: number, };

View File

@@ -1,3 +1,3 @@
export type SendFriendRequestDto = {
receiverId: string;
};
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type SendFriendRequestDto = { receiverId: string, };

View File

@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type UpdateUserDto = Record<string, never>;

View File

@@ -1,5 +1,3 @@
export type UserBasicDto = {
id: string;
name: string;
username: string | null;
};
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type UserBasicDto = { id: string, name: string, username: string | null, };

View File

@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type UserProfile = { id: string, name: string, email: string, username: string, createdAt: string, lastLoginAt: string, };
export type UserProfile = { id: string, keycloakSub: string, name: string, email: string, username: string | null, roles: Array<string>, createdAt: string, updatedAt: string, lastLoginAt: string | null, };