mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 16:32:09 +00:00
Added inern app integration
This commit is contained in:
@@ -44,6 +44,8 @@ export type PokerRoom = {
|
||||
current_round: number;
|
||||
revealed: boolean;
|
||||
state_version: number;
|
||||
allow_participants_to_manage_rounds: boolean;
|
||||
is_persistent: boolean;
|
||||
statistics: RoomStatistics | null;
|
||||
deck: RoomDeck;
|
||||
players: RoomPlayer[];
|
||||
@@ -64,6 +66,23 @@ export type RoomPageProps = {
|
||||
currentPlayer: CurrentRoomPlayer;
|
||||
};
|
||||
|
||||
export type RoomExperienceProps = RoomPageProps & {
|
||||
embedded?: boolean;
|
||||
};
|
||||
|
||||
export type RoomSettings = Pick<
|
||||
PokerRoom,
|
||||
| 'id'
|
||||
| 'title'
|
||||
| 'join_code'
|
||||
| 'allow_participants_to_manage_rounds'
|
||||
| 'is_persistent'
|
||||
>;
|
||||
|
||||
export type RoomSettingsPageProps = {
|
||||
room: RoomSettings;
|
||||
};
|
||||
|
||||
export type CreateRoomPageProps = {
|
||||
decks: SelectableDeck[];
|
||||
defaultPlayerName: string | null;
|
||||
@@ -95,6 +114,8 @@ export type RoomHeaderProps = Pick<
|
||||
> & {
|
||||
canFavorite: boolean;
|
||||
presenterMode: boolean;
|
||||
embedded: boolean;
|
||||
playerName: string;
|
||||
};
|
||||
|
||||
export type RoomHeaderEmits = {
|
||||
@@ -138,13 +159,15 @@ export type RoomVoteDeckEmits = {
|
||||
|
||||
export type RoomStateChange =
|
||||
| 'player_joined'
|
||||
| 'player_updated'
|
||||
| 'vote_changed'
|
||||
| 'cards_revealed'
|
||||
| 'votes_reset'
|
||||
| 'next_round'
|
||||
| 'room_reopened'
|
||||
| 'room_closed'
|
||||
| 'room_deleted';
|
||||
| 'room_deleted'
|
||||
| 'room_settings_updated';
|
||||
|
||||
export type RoomStateChangedPayload = {
|
||||
version: number;
|
||||
@@ -157,6 +180,7 @@ export type RoomRealtimeState = Pick<
|
||||
| 'current_round'
|
||||
| 'revealed'
|
||||
| 'state_version'
|
||||
| 'allow_participants_to_manage_rounds'
|
||||
| 'statistics'
|
||||
| 'players'
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user