This commit is contained in:
Alan Mosko
2023-01-11 23:58:29 -03:00
parent 5041be776e
commit 78f04d8714
18 changed files with 405 additions and 253 deletions

View File

@@ -79,6 +79,12 @@ type WithDimensions = {
height?: number
}
export type PollMessageOptions = {
name: string
selectableCount?: number
values: Array<string>
}
export type MediaType = keyof typeof MEDIA_HKDF_KEY_MAPPING
export type AnyMediaMessageContent = (
({
@@ -127,6 +133,9 @@ export type AnyRegularMessageContent = (
}
& Mentionable & Buttonable & Templatable & Listable)
| AnyMediaMessageContent
| ({
poll: PollMessageOptions
} & Mentionable & Buttonable & Templatable)
| {
contacts: {
displayName?: string

View File

@@ -70,15 +70,4 @@ export type OrderProduct = {
export type OrderDetails = {
price: OrderPrice
products: OrderProduct[]
}
export type CatalogCursor = string
export type GetCatalogOptions = {
/** cursor to start from */
cursor?: CatalogCursor
/** number of products to fetch */
limit?: number
jid?: string
}