diff --git a/src-tauri/src/types/bindings/AppData.ts b/src-tauri/src/types/bindings/AppData.ts new file mode 100644 index 0000000..dda0b92 --- /dev/null +++ b/src-tauri/src/types/bindings/AppData.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { FriendshipResponseDto } from "./FriendshipResponseDto"; +import type { SceneData } from "./SceneData"; +import type { UserProfile } from "./UserProfile"; + +export type AppData = { user: UserProfile | null, friends: Array | null, scene: SceneData, }; diff --git a/src-tauri/src/types/bindings/CursorPosition.ts b/src-tauri/src/types/bindings/CursorPosition.ts new file mode 100644 index 0000000..ab9bae8 --- /dev/null +++ b/src-tauri/src/types/bindings/CursorPosition.ts @@ -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 CursorPosition = { x: number, y: number, }; diff --git a/src-tauri/src/types/bindings/CursorPositions.ts b/src-tauri/src/types/bindings/CursorPositions.ts new file mode 100644 index 0000000..f2a3aff --- /dev/null +++ b/src-tauri/src/types/bindings/CursorPositions.ts @@ -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 { CursorPosition } from "./CursorPosition"; + +export type CursorPositions = { raw: CursorPosition, mapped: CursorPosition, }; diff --git a/src-tauri/src/types/bindings/DisplayData.ts b/src-tauri/src/types/bindings/DisplayData.ts new file mode 100644 index 0000000..67bd38d --- /dev/null +++ b/src-tauri/src/types/bindings/DisplayData.ts @@ -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, }; diff --git a/src-tauri/src/types/bindings/FriendRequestResponseDto.ts b/src-tauri/src/types/bindings/FriendRequestResponseDto.ts new file mode 100644 index 0000000..d21a5c1 --- /dev/null +++ b/src-tauri/src/types/bindings/FriendRequestResponseDto.ts @@ -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 { UserBasicDto } from "./UserBasicDto"; + +export type FriendRequestResponseDto = { id: string, sender: UserBasicDto, receiver: UserBasicDto, status: string, createdAt: string, updatedAt: string, }; diff --git a/src-tauri/src/types/bindings/FriendshipResponseDto.ts b/src-tauri/src/types/bindings/FriendshipResponseDto.ts new file mode 100644 index 0000000..0dfca75 --- /dev/null +++ b/src-tauri/src/types/bindings/FriendshipResponseDto.ts @@ -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 { UserBasicDto } from "./UserBasicDto"; + +export type FriendshipResponseDto = { id: string, friend: UserBasicDto, createdAt: string, }; diff --git a/src-tauri/src/types/bindings/SceneData.ts b/src-tauri/src/types/bindings/SceneData.ts new file mode 100644 index 0000000..0fe91db --- /dev/null +++ b/src-tauri/src/types/bindings/SceneData.ts @@ -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, }; diff --git a/src-tauri/src/types/bindings/SendFriendRequestDto.ts b/src-tauri/src/types/bindings/SendFriendRequestDto.ts new file mode 100644 index 0000000..0156ca0 --- /dev/null +++ b/src-tauri/src/types/bindings/SendFriendRequestDto.ts @@ -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 SendFriendRequestDto = { receiverId: string, }; diff --git a/src-tauri/src/types/bindings/UpdateUserDto.ts b/src-tauri/src/types/bindings/UpdateUserDto.ts new file mode 100644 index 0000000..6eea6a4 --- /dev/null +++ b/src-tauri/src/types/bindings/UpdateUserDto.ts @@ -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; diff --git a/src-tauri/src/types/bindings/UserBasicDto.ts b/src-tauri/src/types/bindings/UserBasicDto.ts new file mode 100644 index 0000000..87566c2 --- /dev/null +++ b/src-tauri/src/types/bindings/UserBasicDto.ts @@ -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 UserBasicDto = { id: string, name: string, username: string | null, }; diff --git a/src-tauri/src/types/bindings/UserProfile.ts b/src-tauri/src/types/bindings/UserProfile.ts new file mode 100644 index 0000000..362562f --- /dev/null +++ b/src-tauri/src/types/bindings/UserProfile.ts @@ -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 UserProfile = { id: string, keycloakSub: string, name: string, email: string, username: string | null, roles: Array, createdAt: string, updatedAt: string, lastLoginAt: string | null, };