-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👽️ feat: 'small' type update(not finished)
- Loading branch information
1 parent
36f3b21
commit ebeca64
Showing
11 changed files
with
144 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./application.ts"; | ||
export * from "./team.ts"; | ||
export * from "./roleConnectionMetadata.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./poll.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { EmojiPayload } from "../emojis/emoij.ts"; | ||
import { UserPayload } from "../users/user.ts"; | ||
|
||
export interface PollPayload { | ||
question: PollMediaPayload; | ||
answers: PollAnswerPayload[]; | ||
expiry: string | null; | ||
allow_multiselect: boolean; | ||
layout_type: PollLayoutType; | ||
results?: PollResultPayload; | ||
} | ||
|
||
export interface PollCreateRequestPayload { | ||
question: PollMediaPayload; | ||
answers: PollAnswerPayload[]; | ||
expiry: string | null; | ||
allow_multiselect: boolean; | ||
layout_type?: PollLayoutType; | ||
} | ||
|
||
export enum PollLayoutType { | ||
DEFAULT = 1, | ||
} | ||
|
||
export interface PollMediaPayload { | ||
text?: string; | ||
emoji?: EmojiPayload; | ||
} | ||
|
||
export interface PollAnswerPayload { | ||
answer_id: number; | ||
poll_media: PollMediaPayload; | ||
} | ||
|
||
export interface PollResultPayload { | ||
is_finalized: boolean; | ||
answer_counts: PollAnswerCountPayload[]; | ||
} | ||
|
||
export interface PollAnswerCountPayload { | ||
id: number; | ||
count: number; | ||
me_voted: boolean; | ||
} | ||
|
||
export interface GetAnswerVotersParams { | ||
after?: string; | ||
limit?: number; | ||
} | ||
|
||
export interface GetAnswerVotersResponse { | ||
users: UserPayload[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./team.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters