jr-common-micro 1.1.67 → 1.1.69

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.
@@ -60,6 +60,16 @@ export interface ChatMessageDto {
60
60
  media: ChatMediaDto | undefined;
61
61
  link_preview: ChatLinkPreviewDto | undefined;
62
62
  forwarded_from: string;
63
+ forwarded_from_group: string;
64
+ ticker_card: ChatTickerCardDto | undefined;
65
+ }
66
+ export interface ChatTickerCardDto {
67
+ symbol: string;
68
+ name: string;
69
+ coin_id: string;
70
+ price: string;
71
+ change_24h: string;
72
+ captured_at: string;
63
73
  }
64
74
  export interface ChatLinkPreviewDto {
65
75
  url: string;
@@ -101,6 +101,8 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
101
101
  media?: ChatMediaDto;
102
102
  linkPreview?: ChatLinkPreviewDto;
103
103
  forwardedFrom: string;
104
+ forwardedFromGroup: string;
105
+ tickerCard?: ChatTickerCardDto;
104
106
  constructor(data?: PartialMessage<ChatMessageDto>);
105
107
  static readonly runtime: typeof proto3;
106
108
  static readonly typeName = "micro.v1.chat.ChatMessageDto";
@@ -110,6 +112,22 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
110
112
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageDto;
111
113
  static equals(a: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined, b: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined): boolean;
112
114
  }
115
+ export declare class ChatTickerCardDto extends Message<ChatTickerCardDto> {
116
+ symbol: string;
117
+ name: string;
118
+ coinId: string;
119
+ price: string;
120
+ change24h: string;
121
+ capturedAt: string;
122
+ constructor(data?: PartialMessage<ChatTickerCardDto>);
123
+ static readonly runtime: typeof proto3;
124
+ static readonly typeName = "micro.v1.chat.ChatTickerCardDto";
125
+ static readonly fields: FieldList;
126
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatTickerCardDto;
127
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatTickerCardDto;
128
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatTickerCardDto;
129
+ static equals(a: ChatTickerCardDto | PlainMessage<ChatTickerCardDto> | undefined, b: ChatTickerCardDto | PlainMessage<ChatTickerCardDto> | undefined): boolean;
130
+ }
113
131
  export declare class ChatLinkPreviewDto extends Message<ChatLinkPreviewDto> {
114
132
  url: string;
115
133
  siteName: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = exports.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.GroupPhotoResponse = exports.GroupPhotoSetRequest = exports.ChatMemberDto = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatReactionCountDto = exports.ChatPollDto = exports.ChatPollOptionDto = exports.ChatMediaGetResponse = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
3
+ exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = exports.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.GroupPhotoResponse = exports.GroupPhotoSetRequest = exports.ChatMemberDto = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatReactionCountDto = exports.ChatPollDto = exports.ChatPollOptionDto = exports.ChatMediaGetResponse = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatTickerCardDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
4
4
  const protobuf_1 = require("@bufbuild/protobuf");
5
5
  const general_pb_js_1 = require("../general_pb.js");
6
6
  class ChatGroupDto extends protobuf_1.Message {
@@ -197,6 +197,8 @@ class ChatMessageDto extends protobuf_1.Message {
197
197
  media;
198
198
  linkPreview;
199
199
  forwardedFrom = "";
200
+ forwardedFromGroup = "";
201
+ tickerCard;
200
202
  constructor(data) {
201
203
  super();
202
204
  protobuf_1.proto3.util.initPartial(data, this);
@@ -224,6 +226,8 @@ class ChatMessageDto extends protobuf_1.Message {
224
226
  { no: 18, name: "media", kind: "message", T: ChatMediaDto },
225
227
  { no: 19, name: "link_preview", kind: "message", T: ChatLinkPreviewDto },
226
228
  { no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
229
+ { no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
230
+ { no: 22, name: "ticker_card", kind: "message", T: ChatTickerCardDto },
227
231
  ]);
228
232
  static fromBinary(bytes, options) {
229
233
  return new ChatMessageDto().fromBinary(bytes, options);
@@ -239,6 +243,41 @@ class ChatMessageDto extends protobuf_1.Message {
239
243
  }
240
244
  }
241
245
  exports.ChatMessageDto = ChatMessageDto;
246
+ class ChatTickerCardDto extends protobuf_1.Message {
247
+ symbol = "";
248
+ name = "";
249
+ coinId = "";
250
+ price = "";
251
+ change24h = "";
252
+ capturedAt = "";
253
+ constructor(data) {
254
+ super();
255
+ protobuf_1.proto3.util.initPartial(data, this);
256
+ }
257
+ static runtime = protobuf_1.proto3;
258
+ static typeName = "micro.v1.chat.ChatTickerCardDto";
259
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
260
+ { no: 1, name: "symbol", kind: "scalar", T: 9 },
261
+ { no: 2, name: "name", kind: "scalar", T: 9 },
262
+ { no: 3, name: "coin_id", kind: "scalar", T: 9 },
263
+ { no: 4, name: "price", kind: "scalar", T: 9 },
264
+ { no: 5, name: "change_24h", kind: "scalar", T: 9 },
265
+ { no: 6, name: "captured_at", kind: "scalar", T: 9 },
266
+ ]);
267
+ static fromBinary(bytes, options) {
268
+ return new ChatTickerCardDto().fromBinary(bytes, options);
269
+ }
270
+ static fromJson(jsonValue, options) {
271
+ return new ChatTickerCardDto().fromJson(jsonValue, options);
272
+ }
273
+ static fromJsonString(jsonString, options) {
274
+ return new ChatTickerCardDto().fromJsonString(jsonString, options);
275
+ }
276
+ static equals(a, b) {
277
+ return protobuf_1.proto3.util.equals(ChatTickerCardDto, a, b);
278
+ }
279
+ }
280
+ exports.ChatTickerCardDto = ChatTickerCardDto;
242
281
  class ChatLinkPreviewDto extends protobuf_1.Message {
243
282
  url = "";
244
283
  siteName = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.67",
3
+ "version": "1.1.69",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -89,6 +89,22 @@ message ChatMessageDto {
89
89
  // Original author when this message was forwarded. Label only: the client
90
90
  // must not turn it into a link to a group the viewer may not be in.
91
91
  string forwarded_from = 20;
92
+ // Name of the room it was forwarded from, shown beside the author.
93
+ string forwarded_from_group = 21;
94
+ // Price card for a $SYMBOL mentioned in the text, captured when the
95
+ // message was sent (a snapshot with its own timestamp, never live).
96
+ ChatTickerCardDto ticker_card = 22;
97
+ }
98
+
99
+ message ChatTickerCardDto {
100
+ string symbol = 1;
101
+ string name = 2;
102
+ string coin_id = 3;
103
+ // Decimal strings, as the coin service reports them.
104
+ string price = 4;
105
+ string change_24h = 5;
106
+ // ISO timestamp of the snapshot.
107
+ string captured_at = 6;
92
108
  }
93
109
 
94
110
  message ChatLinkPreviewDto {