migrate from ts-rs to tauri-specta
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AppEvents = "cursor-position" | "scene-interactive" | "app-data-refreshed" | "set-interaction-overlay" | "edit-doll" | "create-doll" | "user-status-changed" | "friend-cursor-position" | "friend-disconnected" | "friend-active-doll-changed" | "friend-user-status" | "interaction-received" | "interaction-delivery-failed" | "friend-request-received" | "friend-request-accepted" | "friend-request-denied" | "unfriended";
|
||||
@@ -1,24 +0,0 @@
|
||||
// Auto-generated constants - DO NOT EDIT
|
||||
// Generated from Rust AppEvents enum
|
||||
|
||||
export const AppEvents = {
|
||||
CursorPosition: "cursor-position",
|
||||
SceneInteractive: "scene-interactive",
|
||||
AppDataRefreshed: "app-data-refreshed",
|
||||
SetInteractionOverlay: "set-interaction-overlay",
|
||||
EditDoll: "edit-doll",
|
||||
CreateDoll: "create-doll",
|
||||
UserStatusChanged: "user-status-changed",
|
||||
FriendCursorPosition: "friend-cursor-position",
|
||||
FriendDisconnected: "friend-disconnected",
|
||||
FriendActiveDollChanged: "friend-active-doll-changed",
|
||||
FriendUserStatus: "friend-user-status",
|
||||
InteractionReceived: "interaction-received",
|
||||
InteractionDeliveryFailed: "interaction-delivery-failed",
|
||||
FriendRequestReceived: "friend-request-received",
|
||||
FriendRequestAccepted: "friend-request-accepted",
|
||||
FriendRequestDenied: "friend-request-denied",
|
||||
Unfriended: "unfriended",
|
||||
} as const;
|
||||
|
||||
export type AppEvents = typeof AppEvents[keyof typeof AppEvents];
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollConfigurationDto } from "./DollConfigurationDto";
|
||||
|
||||
export type CreateDollDto = { name: string, configuration: DollConfigurationDto | null, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// 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, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// 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, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type DollColorSchemeDto = { outline: string, body: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollColorSchemeDto } from "./DollColorSchemeDto";
|
||||
|
||||
export type DollConfigurationDto = { colorScheme: DollColorSchemeDto, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollConfigurationDto } from "./DollConfigurationDto";
|
||||
|
||||
export type DollDto = { id: string, name: string, configuration: DollConfigurationDto, createdAt: string, updatedAt: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollDto } from "./DollDto";
|
||||
|
||||
export type FriendActiveDollChangedPayload = { friendId: string, doll: DollDto | null, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type FriendDisconnectedPayload = { userId: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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 FriendRequestAcceptedPayload = { id: string, friend: UserBasicDto, acceptedAt: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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 FriendRequestDeniedPayload = { id: string, denier: UserBasicDto, deniedAt: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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 FriendRequestReceivedPayload = { id: string, sender: UserBasicDto, createdAt: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { UserStatusPayload } from "./UserStatusPayload";
|
||||
|
||||
export type FriendUserStatusPayload = { userId: string, status: UserStatusPayload, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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 | null, createdAt: string, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HealthResponseDto = { status: string, version: string, uptimeSecs: bigint, db: string, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type InteractionDeliveryFailedDto = { recipientUserId: string, reason: string, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type InteractionPayloadDto = { senderUserId: string, senderName: string, content: string, type: string, timestamp: string, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ModuleMetadata = { id: string, name: string, version: string, description: string | null, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type PresenceStatus = { title: string | null, subtitle: string | null, graphicsB64: string | null, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// 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, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// 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, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SendInteractionDto = { recipientUserId: string, content: string, type: string, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type UnfriendedPayload = { friendId: string, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollConfigurationDto } from "./DollConfigurationDto";
|
||||
|
||||
export type UpdateDollDto = { name: string | null, configuration: DollConfigurationDto | null, };
|
||||
@@ -1,4 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollDto } from "./DollDto";
|
||||
|
||||
export type UserBasicDto = { id: string, name: string, username: string | null, activeDoll: DollDto | null, };
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollDto } from "./DollDto";
|
||||
import type { FriendshipResponseDto } from "./FriendshipResponseDto";
|
||||
import type { SceneData } from "./SceneData";
|
||||
import type { UserProfile } from "./UserProfile";
|
||||
|
||||
export type UserData = { user: UserProfile | null, friends: Array<FriendshipResponseDto> | null, dolls: Array<DollDto> | null, scene: SceneData, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// 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 | null, roles: Array<string>, createdAt: string, updatedAt: string, lastLoginAt: string | null, activeDollId: string | null, };
|
||||
@@ -1,5 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { PresenceStatus } from "./PresenceStatus";
|
||||
import type { UserStatusState } from "./UserStatusState";
|
||||
|
||||
export type UserStatusPayload = { presenceStatus: PresenceStatus, state: UserStatusState, };
|
||||
@@ -1,3 +0,0 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type UserStatusState = "idle" | "resting";
|
||||
Reference in New Issue
Block a user