@iveri/contracts 0.141.0 → 0.142.0
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/README.md
CHANGED
|
@@ -322,6 +322,8 @@ Conduit's outbox.
|
|
|
322
322
|
`UniboxAgents` under `@iveri/contracts/unibox`, so the inbox picks agents by name.
|
|
323
323
|
- Version `0.139.0` adds a trainer's notes on a member: `GymTrainerNote`, `GymTrainerNotes`, `SaveGymTrainerNoteRequest`,
|
|
324
324
|
`GymMyTrainerNote` and the `GymRefusal` member `not-their-trainer` under `@iveri/contracts/gym`.
|
|
325
|
+
- Version `0.142.0` adds `isErased` on `ChatPersonCard`, `ChatParticipant` and `ChatMessageSender`, and
|
|
326
|
+
`senderIsErased` on `ChatLastMessagePreview` and `ChatReplyPreview`, so a client can say "Deleted account".
|
|
325
327
|
- Version `0.141.0` adds `TranslationMemory`, `TranslationMemorySuggestion`, `TranslationUse`, the
|
|
326
328
|
`TranslationConsistencyPage`/`Group`/`Variant` shapes and the `TranslationMatchKind` enum under
|
|
327
329
|
`@iveri/contracts/localization`, for translation memory and the consistency report.
|
|
@@ -35,6 +35,8 @@ export interface ChatLastMessagePreview {
|
|
|
35
35
|
*/
|
|
36
36
|
systemVariables: Nullable<Record<string, string>>;
|
|
37
37
|
senderName: Nullable<string>;
|
|
38
|
+
/** The sender deleted their Baasi account, so `senderName` is empty; see {@link ChatPersonCard.isErased}. */
|
|
39
|
+
senderIsErased: boolean;
|
|
38
40
|
isOwn: boolean;
|
|
39
41
|
isDeleted: boolean;
|
|
40
42
|
sentAt: IsoDateTime;
|
|
@@ -96,6 +98,11 @@ export interface ChatParticipant {
|
|
|
96
98
|
lastReadSeq: Nullable<number>;
|
|
97
99
|
lastActiveAt: Nullable<IsoDateTime>;
|
|
98
100
|
isMe: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* They deleted their Baasi account: their name and photograph are gone, so `displayName` is empty and a client says
|
|
103
|
+
* "Deleted account" in its own words. Never true of an outside app's user, whose app may bring the same id back.
|
|
104
|
+
*/
|
|
105
|
+
isErased: boolean;
|
|
99
106
|
}
|
|
100
107
|
export interface ChatConversation extends ChatConversationSummary {
|
|
101
108
|
participants: ChatParticipant[];
|
|
@@ -8,12 +8,19 @@ export interface ChatMessageSender {
|
|
|
8
8
|
/** The name this conversation shows: a product's label for an embedded one. */
|
|
9
9
|
displayName: string;
|
|
10
10
|
avatar: Nullable<ChatImage>;
|
|
11
|
+
/**
|
|
12
|
+
* They deleted their Baasi account: their name and photograph are gone, so `displayName` is empty and a client says
|
|
13
|
+
* "Deleted account" in its own words. Never true of an outside app's user, whose app may bring the same id back.
|
|
14
|
+
*/
|
|
15
|
+
isErased: boolean;
|
|
11
16
|
}
|
|
12
17
|
/** The message a reply points at, enough to draw the quote above it. */
|
|
13
18
|
export interface ChatReplyPreview {
|
|
14
19
|
id: UUID;
|
|
15
20
|
seq: number;
|
|
16
21
|
senderName: Nullable<string>;
|
|
22
|
+
/** The sender deleted their Baasi account, so `senderName` is empty; see {@link ChatMessageSender.isErased}. */
|
|
23
|
+
senderIsErased: boolean;
|
|
17
24
|
kind: ChatMessageKind;
|
|
18
25
|
excerpt: Nullable<string>;
|
|
19
26
|
isDeleted: boolean;
|
|
@@ -14,6 +14,11 @@ export interface ChatPersonCard {
|
|
|
14
14
|
avatar: Nullable<ChatImage>;
|
|
15
15
|
/** Null when they hide it, or when the reader shares no conversation with them. */
|
|
16
16
|
lastActiveAt: Nullable<IsoDateTime>;
|
|
17
|
+
/**
|
|
18
|
+
* They deleted their Baasi account: their name and photograph are gone, so `displayName` is empty and a client says
|
|
19
|
+
* "Deleted account" in its own words. Never true of an outside app's user, whose app may bring the same id back.
|
|
20
|
+
*/
|
|
21
|
+
isErased: boolean;
|
|
17
22
|
}
|
|
18
23
|
export interface ChatSettings {
|
|
19
24
|
/** Whether people who share a conversation with me can see when I was last active. */
|