@periskope/types 0.6.123 → 0.6.125
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 +6 -7
- package/package.json +1 -1
- package/types.ts +6 -7
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;
|
|
@@ -388,12 +389,10 @@ export type UserPreferences = {
|
|
|
388
389
|
export type PollVoteInfoType = {
|
|
389
390
|
poll_id?: string;
|
|
390
391
|
poll_options: string[];
|
|
391
|
-
poll_results:
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
];
|
|
392
|
+
poll_results: {
|
|
393
|
+
id: number;
|
|
394
|
+
name: string;
|
|
395
|
+
votes: Record<string, string>;
|
|
396
|
+
}[];
|
|
398
397
|
};
|
|
399
398
|
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
|
|
|
@@ -538,11 +539,9 @@ export type UserPreferences = {
|
|
|
538
539
|
export type PollVoteInfoType = {
|
|
539
540
|
poll_id?: string;
|
|
540
541
|
poll_options: string[];
|
|
541
|
-
poll_results:
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
},
|
|
547
|
-
];
|
|
542
|
+
poll_results: {
|
|
543
|
+
id: number;
|
|
544
|
+
name: string;
|
|
545
|
+
votes: Record<string, string>;
|
|
546
|
+
}[];
|
|
548
547
|
};
|