TypeScript bindings generation
This commit is contained in:
6
src-tauri/src/types/bindings/AppData.ts
Normal file
6
src-tauri/src/types/bindings/AppData.ts
Normal file
@@ -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<FriendshipResponseDto> | null, scene: SceneData, };
|
||||||
3
src-tauri/src/types/bindings/CursorPosition.ts
Normal file
3
src-tauri/src/types/bindings/CursorPosition.ts
Normal 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 CursorPosition = { x: number, y: number, };
|
||||||
4
src-tauri/src/types/bindings/CursorPositions.ts
Normal file
4
src-tauri/src/types/bindings/CursorPositions.ts
Normal 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 { CursorPosition } from "./CursorPosition";
|
||||||
|
|
||||||
|
export type CursorPositions = { raw: CursorPosition, mapped: CursorPosition, };
|
||||||
3
src-tauri/src/types/bindings/DisplayData.ts
Normal file
3
src-tauri/src/types/bindings/DisplayData.ts
Normal 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, };
|
||||||
4
src-tauri/src/types/bindings/FriendRequestResponseDto.ts
Normal file
4
src-tauri/src/types/bindings/FriendRequestResponseDto.ts
Normal 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 { UserBasicDto } from "./UserBasicDto";
|
||||||
|
|
||||||
|
export type FriendRequestResponseDto = { id: string, sender: UserBasicDto, receiver: UserBasicDto, status: string, createdAt: string, updatedAt: string, };
|
||||||
4
src-tauri/src/types/bindings/FriendshipResponseDto.ts
Normal file
4
src-tauri/src/types/bindings/FriendshipResponseDto.ts
Normal 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 { UserBasicDto } from "./UserBasicDto";
|
||||||
|
|
||||||
|
export type FriendshipResponseDto = { id: string, friend: UserBasicDto, createdAt: string, };
|
||||||
4
src-tauri/src/types/bindings/SceneData.ts
Normal file
4
src-tauri/src/types/bindings/SceneData.ts
Normal 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, };
|
||||||
3
src-tauri/src/types/bindings/SendFriendRequestDto.ts
Normal file
3
src-tauri/src/types/bindings/SendFriendRequestDto.ts
Normal 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 SendFriendRequestDto = { receiverId: string, };
|
||||||
3
src-tauri/src/types/bindings/UpdateUserDto.ts
Normal file
3
src-tauri/src/types/bindings/UpdateUserDto.ts
Normal 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>;
|
||||||
3
src-tauri/src/types/bindings/UserBasicDto.ts
Normal file
3
src-tauri/src/types/bindings/UserBasicDto.ts
Normal 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 UserBasicDto = { id: string, name: string, username: string | null, };
|
||||||
3
src-tauri/src/types/bindings/UserProfile.ts
Normal file
3
src-tauri/src/types/bindings/UserProfile.ts
Normal 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 UserProfile = { id: string, keycloakSub: string, name: string, email: string, username: string | null, roles: Array<string>, createdAt: string, updatedAt: string, lastLoginAt: string | null, };
|
||||||
Reference in New Issue
Block a user