jr-common-micro 1.1.69 → 1.1.71
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,7 +61,7 @@ export interface ChatMessageDto {
|
|
|
61
61
|
link_preview: ChatLinkPreviewDto | undefined;
|
|
62
62
|
forwarded_from: string;
|
|
63
63
|
forwarded_from_group: string;
|
|
64
|
-
|
|
64
|
+
ticker_cards: ChatTickerCardDto[];
|
|
65
65
|
}
|
|
66
66
|
export interface ChatTickerCardDto {
|
|
67
67
|
symbol: string;
|
|
@@ -70,6 +70,7 @@ export interface ChatTickerCardDto {
|
|
|
70
70
|
price: string;
|
|
71
71
|
change_24h: string;
|
|
72
72
|
captured_at: string;
|
|
73
|
+
coinmarketcap_id: string;
|
|
73
74
|
}
|
|
74
75
|
export interface ChatLinkPreviewDto {
|
|
75
76
|
url: string;
|
|
@@ -102,7 +102,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
102
102
|
linkPreview?: ChatLinkPreviewDto;
|
|
103
103
|
forwardedFrom: string;
|
|
104
104
|
forwardedFromGroup: string;
|
|
105
|
-
|
|
105
|
+
tickerCards: ChatTickerCardDto[];
|
|
106
106
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
107
107
|
static readonly runtime: typeof proto3;
|
|
108
108
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -119,6 +119,7 @@ export declare class ChatTickerCardDto extends Message<ChatTickerCardDto> {
|
|
|
119
119
|
price: string;
|
|
120
120
|
change24h: string;
|
|
121
121
|
capturedAt: string;
|
|
122
|
+
coinmarketcapId: string;
|
|
122
123
|
constructor(data?: PartialMessage<ChatTickerCardDto>);
|
|
123
124
|
static readonly runtime: typeof proto3;
|
|
124
125
|
static readonly typeName = "micro.v1.chat.ChatTickerCardDto";
|
|
@@ -198,7 +198,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
198
198
|
linkPreview;
|
|
199
199
|
forwardedFrom = "";
|
|
200
200
|
forwardedFromGroup = "";
|
|
201
|
-
|
|
201
|
+
tickerCards = [];
|
|
202
202
|
constructor(data) {
|
|
203
203
|
super();
|
|
204
204
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -227,7 +227,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
227
227
|
{ no: 19, name: "link_preview", kind: "message", T: ChatLinkPreviewDto },
|
|
228
228
|
{ no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
|
|
229
229
|
{ no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
|
|
230
|
-
{ no: 22, name: "
|
|
230
|
+
{ no: 22, name: "ticker_cards", kind: "message", T: ChatTickerCardDto, repeated: true },
|
|
231
231
|
]);
|
|
232
232
|
static fromBinary(bytes, options) {
|
|
233
233
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -250,6 +250,7 @@ class ChatTickerCardDto extends protobuf_1.Message {
|
|
|
250
250
|
price = "";
|
|
251
251
|
change24h = "";
|
|
252
252
|
capturedAt = "";
|
|
253
|
+
coinmarketcapId = "";
|
|
253
254
|
constructor(data) {
|
|
254
255
|
super();
|
|
255
256
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -263,6 +264,7 @@ class ChatTickerCardDto extends protobuf_1.Message {
|
|
|
263
264
|
{ no: 4, name: "price", kind: "scalar", T: 9 },
|
|
264
265
|
{ no: 5, name: "change_24h", kind: "scalar", T: 9 },
|
|
265
266
|
{ no: 6, name: "captured_at", kind: "scalar", T: 9 },
|
|
267
|
+
{ no: 7, name: "coinmarketcap_id", kind: "scalar", T: 9 },
|
|
266
268
|
]);
|
|
267
269
|
static fromBinary(bytes, options) {
|
|
268
270
|
return new ChatTickerCardDto().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -91,9 +91,10 @@ 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
|
|
95
|
-
// message was sent
|
|
96
|
-
|
|
94
|
+
// Price cards for the $SYMBOLs mentioned in the text (up to three),
|
|
95
|
+
// captured when the message was sent — snapshots with their own
|
|
96
|
+
// timestamp, never live.
|
|
97
|
+
repeated ChatTickerCardDto ticker_cards = 22;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
message ChatTickerCardDto {
|
|
@@ -105,6 +106,9 @@ message ChatTickerCardDto {
|
|
|
105
106
|
string change_24h = 5;
|
|
106
107
|
// ISO timestamp of the snapshot.
|
|
107
108
|
string captured_at = 6;
|
|
109
|
+
// CoinMarketCap id: our own icon set does not cover every coin, CMC's CDN
|
|
110
|
+
// does, so the client can fall back to it.
|
|
111
|
+
string coinmarketcap_id = 7;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
message ChatLinkPreviewDto {
|