Init payments message types

This commit is contained in:
Jamie Kyle
2022-11-30 13:47:54 -08:00
committed by GitHub
parent 0c4b52a125
commit 6198b02640
26 changed files with 741 additions and 185 deletions

3
ts/model-types.d.ts vendored
View File

@@ -33,6 +33,7 @@ import type { StickerType } from './types/Stickers';
import type { StorySendMode } from './types/Stories';
import type { MIMEType } from './types/MIME';
import type { DurationInSeconds } from './util/durations';
import type { AnyPaymentEvent } from './types/Payment';
import AccessRequiredEnum = Proto.AccessControl.AccessRequired;
import MemberRoleEnum = Proto.Member.Role;
@@ -76,6 +77,7 @@ export type QuotedMessageType = {
// TODO DESKTOP-3826
// eslint-disable-next-line @typescript-eslint/no-explicit-any
attachments: Array<any>;
payment?: AnyPaymentEvent;
// `author` is an old attribute that holds the author's E164. We shouldn't use it for
// new messages, but old messages might have this attribute.
author?: string;
@@ -145,6 +147,7 @@ export type MessageAttributesType = {
message?: unknown;
messageTimer?: unknown;
profileChange?: ProfileNameChangeType;
payment?: AnyPaymentEvent;
quote?: QuotedMessageType;
reactions?: ReadonlyArray<MessageReactionType>;
requiredProtocolVersion?: number;