friends system (Testing WIP)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
// 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";
|
||||
import type { UserProfile } from "./UserProfile.js";
|
||||
import type { FriendshipResponseDto } from "./FriendshipResponseDto.js";
|
||||
|
||||
export type AppData = { user: UserProfile | null, };
|
||||
export type AppData = {
|
||||
user: UserProfile | null;
|
||||
friends: Array<FriendshipResponseDto> | null;
|
||||
};
|
||||
|
||||
10
src/types/bindings/FriendRequestResponseDto.ts
Normal file
10
src/types/bindings/FriendRequestResponseDto.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { UserBasicDto } from "./UserBasicDto.js";
|
||||
|
||||
export type FriendRequestResponseDto = {
|
||||
id: string;
|
||||
sender: UserBasicDto;
|
||||
receiver: UserBasicDto;
|
||||
status: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
};
|
||||
7
src/types/bindings/FriendshipResponseDto.ts
Normal file
7
src/types/bindings/FriendshipResponseDto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { UserBasicDto } from "./UserBasicDto.js";
|
||||
|
||||
export type FriendshipResponseDto = {
|
||||
id: string;
|
||||
friend: UserBasicDto;
|
||||
createdAt: string;
|
||||
};
|
||||
3
src/types/bindings/SendFriendRequestDto.ts
Normal file
3
src/types/bindings/SendFriendRequestDto.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export type SendFriendRequestDto = {
|
||||
receiverId: string;
|
||||
};
|
||||
5
src/types/bindings/UserBasicDto.ts
Normal file
5
src/types/bindings/UserBasicDto.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type UserBasicDto = {
|
||||
id: string;
|
||||
name: string;
|
||||
username: string | null;
|
||||
};
|
||||
Reference in New Issue
Block a user