jr-common-micro 1.1.68 → 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.
|
@@ -61,6 +61,15 @@ export interface ChatMessageDto {
|
|
|
61
61
|
link_preview: ChatLinkPreviewDto | undefined;
|
|
62
62
|
forwarded_from: string;
|
|
63
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;
|
|
64
73
|
}
|
|
65
74
|
export interface ChatLinkPreviewDto {
|
|
66
75
|
url: string;
|
|
@@ -102,6 +102,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
102
102
|
linkPreview?: ChatLinkPreviewDto;
|
|
103
103
|
forwardedFrom: string;
|
|
104
104
|
forwardedFromGroup: string;
|
|
105
|
+
tickerCard?: ChatTickerCardDto;
|
|
105
106
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
106
107
|
static readonly runtime: typeof proto3;
|
|
107
108
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -111,6 +112,22 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
111
112
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageDto;
|
|
112
113
|
static equals(a: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined, b: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined): boolean;
|
|
113
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
|
+
}
|
|
114
131
|
export declare class ChatLinkPreviewDto extends Message<ChatLinkPreviewDto> {
|
|
115
132
|
url: string;
|
|
116
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 {
|
|
@@ -198,6 +198,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
198
198
|
linkPreview;
|
|
199
199
|
forwardedFrom = "";
|
|
200
200
|
forwardedFromGroup = "";
|
|
201
|
+
tickerCard;
|
|
201
202
|
constructor(data) {
|
|
202
203
|
super();
|
|
203
204
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -226,6 +227,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
226
227
|
{ no: 19, name: "link_preview", kind: "message", T: ChatLinkPreviewDto },
|
|
227
228
|
{ no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
|
|
228
229
|
{ no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
|
|
230
|
+
{ no: 22, name: "ticker_card", kind: "message", T: ChatTickerCardDto },
|
|
229
231
|
]);
|
|
230
232
|
static fromBinary(bytes, options) {
|
|
231
233
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -241,6 +243,41 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
241
243
|
}
|
|
242
244
|
}
|
|
243
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;
|
|
244
281
|
class ChatLinkPreviewDto extends protobuf_1.Message {
|
|
245
282
|
url = "";
|
|
246
283
|
siteName = "";
|
package/package.json
CHANGED
|
@@ -91,6 +91,20 @@ message ChatMessageDto {
|
|
|
91
91
|
string forwarded_from = 20;
|
|
92
92
|
// Name of the room it was forwarded from, shown beside the author.
|
|
93
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;
|
|
94
108
|
}
|
|
95
109
|
|
|
96
110
|
message ChatLinkPreviewDto {
|