@iveri/contracts 0.79.0 → 0.81.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.
@@ -47,8 +47,16 @@ export interface ChatConversationSummary {
47
47
  /** A line under the title, set by a product for a context conversation. */
48
48
  subtitle: Nullable<string>;
49
49
  avatar: Nullable<ChatImage>;
50
- /** The other person in a one-to-one conversation. */
50
+ /**
51
+ * The other person in a one-to-one conversation, and in a product's conversation that holds two people and
52
+ * is not a group.
53
+ */
51
54
  other: Nullable<ChatPersonCard>;
55
+ /**
56
+ * A conversation of many: a Baasi group, or a product's conversation opened with `isGroup`. It is drawn under
57
+ * its own title and never under one member's name, however many people are in it.
58
+ */
59
+ isGroup: boolean;
52
60
  context: Nullable<ChatContext>;
53
61
  memberCount: number;
54
62
  lastMessage: Nullable<ChatLastMessagePreview>;
@@ -28,6 +28,12 @@ export interface OpenEmbeddedChatRequest {
28
28
  title: string;
29
29
  subtitle?: Nullable<string>;
30
30
  participants: EmbeddedChatParticipant[];
31
+ /**
32
+ * A conversation of many, such as a team, whatever its size today. Without it a conversation that happens
33
+ * to hold two people is drawn as one person talking to the other, under that person's name. Sent on every
34
+ * `PUT`; omitted means false.
35
+ */
36
+ isGroup?: boolean;
31
37
  /** Sending ends here and reading stays. Omitted means until closed. */
32
38
  writableUntil?: Nullable<IsoDateTime>;
33
39
  link?: Nullable<{
@@ -32,8 +32,6 @@ export declare enum RealtimeEventType {
32
32
  RESTAURANT_BRANCH_UPDATED = "restaurant.branch.updated",
33
33
  /** One diner's order moved. */
34
34
  RESTAURANT_ORDER_UPDATED = "restaurant.order.updated",
35
- /** A member's conversations changed, so their inbox is stale. */
36
- SOCIAL_INBOX_UPDATED = "social.inbox.updated",
37
35
  /** Something new happened to a member, so their activity list and its count are stale. */
38
36
  SOCIAL_ACTIVITY_UPDATED = "social.activity.updated",
39
37
  /** Somebody came through a branch's door or a class changed, so staff screens refetch. */
@@ -33,8 +33,6 @@ export var RealtimeEventType;
33
33
  RealtimeEventType["RESTAURANT_BRANCH_UPDATED"] = "restaurant.branch.updated";
34
34
  /** One diner's order moved. */
35
35
  RealtimeEventType["RESTAURANT_ORDER_UPDATED"] = "restaurant.order.updated";
36
- /** A member's conversations changed, so their inbox is stale. */
37
- RealtimeEventType["SOCIAL_INBOX_UPDATED"] = "social.inbox.updated";
38
36
  /** Something new happened to a member, so their activity list and its count are stale. */
39
37
  RealtimeEventType["SOCIAL_ACTIVITY_UPDATED"] = "social.activity.updated";
40
38
  /** Somebody came through a branch's door or a class changed, so staff screens refetch. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.79.0",
3
+ "version": "0.81.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {