@periskope/types 0.6.122 → 0.6.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
- package/types.ts +15 -0
package/dist/types.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
|
144
144
|
message_type: (typeof SUPPORTED_TYPES)[number];
|
|
145
145
|
media: MediaType | null;
|
|
146
146
|
flag_metadata: MessageFlagType | null;
|
|
147
|
+
poll_vote_info?: PollVoteInfoType | null;
|
|
147
148
|
}>;
|
|
148
149
|
export type MessageFlagType = {
|
|
149
150
|
status: boolean;
|
|
@@ -385,4 +386,15 @@ export type UserPreferences = {
|
|
|
385
386
|
right_sidepanel_open: boolean;
|
|
386
387
|
sync_wa_unread_count: boolean;
|
|
387
388
|
};
|
|
389
|
+
export type PollVoteInfoType = {
|
|
390
|
+
poll_id?: string;
|
|
391
|
+
poll_options: string[];
|
|
392
|
+
poll_results: [
|
|
393
|
+
{
|
|
394
|
+
id: number;
|
|
395
|
+
name: string;
|
|
396
|
+
votes: Record<string, string>;
|
|
397
|
+
}
|
|
398
|
+
];
|
|
399
|
+
};
|
|
388
400
|
export {};
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -171,6 +171,7 @@ export type MessageType = OverrideProperties<
|
|
|
171
171
|
message_type: (typeof SUPPORTED_TYPES)[number];
|
|
172
172
|
media: MediaType | null;
|
|
173
173
|
flag_metadata: MessageFlagType | null;
|
|
174
|
+
poll_vote_info?: PollVoteInfoType | null;
|
|
174
175
|
}
|
|
175
176
|
>;
|
|
176
177
|
|
|
@@ -532,3 +533,17 @@ export type UserPreferences = {
|
|
|
532
533
|
right_sidepanel_open: boolean;
|
|
533
534
|
sync_wa_unread_count: boolean;
|
|
534
535
|
};
|
|
536
|
+
|
|
537
|
+
/* ----------------------------- POLL VOTE INFO ----------------------------- */
|
|
538
|
+
|
|
539
|
+
export type PollVoteInfoType = {
|
|
540
|
+
poll_id?: string;
|
|
541
|
+
poll_options: string[];
|
|
542
|
+
poll_results: [
|
|
543
|
+
{
|
|
544
|
+
id: number;
|
|
545
|
+
name: string;
|
|
546
|
+
votes: Record<string, string>;
|
|
547
|
+
},
|
|
548
|
+
];
|
|
549
|
+
};
|