jr-common-micro 1.1.142 → 1.1.143
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/dist/proto/micro/v1/coin/analytics_messages_nest.d.ts +2 -0
- package/dist/proto/micro/v1/coin/analytics_messages_pb.d.ts +2 -0
- package/dist/proto/micro/v1/coin/analytics_messages_pb.js +4 -0
- package/dist/proto/micro/v1/coin/coin_messages_nest.d.ts +27 -0
- package/dist/proto/micro/v1/coin/coin_messages_pb.d.ts +67 -0
- package/dist/proto/micro/v1/coin/coin_messages_pb.js +150 -1
- package/dist/proto/micro/v1/coin/coin_websocket_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/coin/coin_websocket_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/coin/coin_websocket_messages_pb.js +2 -0
- package/dist/proto/micro/v1/coin/services_connect.d.ts +13 -1
- package/dist/proto/micro/v1/coin/services_connect.js +12 -0
- package/dist/proto/micro/v1/coin/services_nest.d.ts +5 -1
- package/dist/proto/micro/v1/coin/services_nest.js +10 -1
- package/package.json +1 -1
- package/proto/micro/v1/coin/analytics_messages.proto +2 -0
- package/proto/micro/v1/coin/coin_messages.proto +38 -0
- package/proto/micro/v1/coin/coin_websocket_messages.proto +1 -0
- package/proto/micro/v1/coin/services.proto +2 -0
|
@@ -53,6 +53,7 @@ export interface CoinDetailDto {
|
|
|
53
53
|
title: Title[];
|
|
54
54
|
about: About[];
|
|
55
55
|
info: Info | undefined;
|
|
56
|
+
logo_url?: string | undefined;
|
|
56
57
|
}
|
|
57
58
|
export interface CoinDetailDto_AllTimePrice {
|
|
58
59
|
price: string;
|
|
@@ -306,6 +307,7 @@ export interface CurrenciesNewDto {
|
|
|
306
307
|
coinglass_spot_id: string;
|
|
307
308
|
coinglass_futures_id: string;
|
|
308
309
|
url_id: string;
|
|
310
|
+
logo_url?: string | undefined;
|
|
309
311
|
}
|
|
310
312
|
export interface CurrenciesNewResponse {
|
|
311
313
|
status: ResponseStatus | undefined;
|
|
@@ -53,6 +53,7 @@ export declare class CoinDetailDto extends Message<CoinDetailDto> {
|
|
|
53
53
|
title: Title[];
|
|
54
54
|
about: About[];
|
|
55
55
|
info?: Info;
|
|
56
|
+
logoUrl?: string;
|
|
56
57
|
constructor(data?: PartialMessage<CoinDetailDto>);
|
|
57
58
|
static readonly runtime: typeof proto3;
|
|
58
59
|
static readonly typeName = "micro.v1.coin.CoinDetailDto";
|
|
@@ -602,6 +603,7 @@ export declare class CurrenciesNewDto extends Message<CurrenciesNewDto> {
|
|
|
602
603
|
coinglassSpotId: string;
|
|
603
604
|
coinglassFuturesId: string;
|
|
604
605
|
urlId: string;
|
|
606
|
+
logoUrl?: string;
|
|
605
607
|
constructor(data?: PartialMessage<CurrenciesNewDto>);
|
|
606
608
|
static readonly runtime: typeof proto3;
|
|
607
609
|
static readonly typeName = "micro.v1.coin.CurrenciesNewDto";
|
|
@@ -63,6 +63,7 @@ class CoinDetailDto extends protobuf_1.Message {
|
|
|
63
63
|
title = [];
|
|
64
64
|
about = [];
|
|
65
65
|
info;
|
|
66
|
+
logoUrl;
|
|
66
67
|
constructor(data) {
|
|
67
68
|
super();
|
|
68
69
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -106,6 +107,7 @@ class CoinDetailDto extends protobuf_1.Message {
|
|
|
106
107
|
{ no: 36, name: "title", kind: "message", T: Title, repeated: true },
|
|
107
108
|
{ no: 37, name: "about", kind: "message", T: About, repeated: true },
|
|
108
109
|
{ no: 38, name: "info", kind: "message", T: Info },
|
|
110
|
+
{ no: 39, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
109
111
|
]);
|
|
110
112
|
static fromBinary(bytes, options) {
|
|
111
113
|
return new CoinDetailDto().fromBinary(bytes, options);
|
|
@@ -1290,6 +1292,7 @@ class CurrenciesNewDto extends protobuf_1.Message {
|
|
|
1290
1292
|
coinglassSpotId = "";
|
|
1291
1293
|
coinglassFuturesId = "";
|
|
1292
1294
|
urlId = "";
|
|
1295
|
+
logoUrl;
|
|
1293
1296
|
constructor(data) {
|
|
1294
1297
|
super();
|
|
1295
1298
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1313,6 +1316,7 @@ class CurrenciesNewDto extends protobuf_1.Message {
|
|
|
1313
1316
|
{ no: 14, name: "coinglass_spot_id", kind: "scalar", T: 9 },
|
|
1314
1317
|
{ no: 15, name: "coinglass_futures_id", kind: "scalar", T: 9 },
|
|
1315
1318
|
{ no: 16, name: "url_id", kind: "scalar", T: 9 },
|
|
1319
|
+
{ no: 17, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
1316
1320
|
]);
|
|
1317
1321
|
static fromBinary(bytes, options) {
|
|
1318
1322
|
return new CurrenciesNewDto().fromBinary(bytes, options);
|
|
@@ -6,6 +6,7 @@ export interface CoinDto {
|
|
|
6
6
|
name: string;
|
|
7
7
|
created_at: string;
|
|
8
8
|
updated_at?: string | undefined;
|
|
9
|
+
logo_url?: string | undefined;
|
|
9
10
|
}
|
|
10
11
|
export interface FavoriteCoinDto {
|
|
11
12
|
id: string;
|
|
@@ -24,6 +25,7 @@ export interface FavoriteCoinDto {
|
|
|
24
25
|
coinglass_futures_id: string;
|
|
25
26
|
created_at: string;
|
|
26
27
|
updated_at?: string | undefined;
|
|
28
|
+
logo_url?: string | undefined;
|
|
27
29
|
}
|
|
28
30
|
export interface GetFavoriteCoinsResponse {
|
|
29
31
|
status: ResponseStatus | undefined;
|
|
@@ -107,4 +109,29 @@ export interface GetFearGreedHistoryResponse {
|
|
|
107
109
|
status: ResponseStatus | undefined;
|
|
108
110
|
data: FearGreedHistoryItem[];
|
|
109
111
|
}
|
|
112
|
+
export interface CoinLogoSearchRequest {
|
|
113
|
+
q: string;
|
|
114
|
+
limit?: number | undefined;
|
|
115
|
+
}
|
|
116
|
+
export interface CoinLogoRow {
|
|
117
|
+
id: string;
|
|
118
|
+
symbol: string;
|
|
119
|
+
name: string;
|
|
120
|
+
url_id: string;
|
|
121
|
+
rank: number;
|
|
122
|
+
logo_url?: string | undefined;
|
|
123
|
+
logo_source?: string | undefined;
|
|
124
|
+
}
|
|
125
|
+
export interface CoinLogoSearchResponse {
|
|
126
|
+
status: ResponseStatus | undefined;
|
|
127
|
+
data: CoinLogoRow[];
|
|
128
|
+
}
|
|
129
|
+
export interface CoinLogoSetRequest {
|
|
130
|
+
id: string;
|
|
131
|
+
logo_url?: string | undefined;
|
|
132
|
+
}
|
|
133
|
+
export interface CoinLogoSetResponse {
|
|
134
|
+
status: ResponseStatus | undefined;
|
|
135
|
+
data: CoinLogoRow | undefined;
|
|
136
|
+
}
|
|
110
137
|
export declare const MICRO_V1_COIN_PACKAGE_NAME = "micro.v1.coin";
|
|
@@ -7,6 +7,7 @@ export declare class CoinDto extends Message<CoinDto> {
|
|
|
7
7
|
name: string;
|
|
8
8
|
createdAt: string;
|
|
9
9
|
updatedAt?: string;
|
|
10
|
+
logoUrl?: string;
|
|
10
11
|
constructor(data?: PartialMessage<CoinDto>);
|
|
11
12
|
static readonly runtime: typeof proto3;
|
|
12
13
|
static readonly typeName = "micro.v1.coin.CoinDto";
|
|
@@ -33,6 +34,7 @@ export declare class FavoriteCoinDto extends Message<FavoriteCoinDto> {
|
|
|
33
34
|
coinglassFuturesId: string;
|
|
34
35
|
createdAt: string;
|
|
35
36
|
updatedAt?: string;
|
|
37
|
+
logoUrl?: string;
|
|
36
38
|
constructor(data?: PartialMessage<FavoriteCoinDto>);
|
|
37
39
|
static readonly runtime: typeof proto3;
|
|
38
40
|
static readonly typeName = "micro.v1.coin.FavoriteCoinDto";
|
|
@@ -256,3 +258,68 @@ export declare class GetFearGreedHistoryResponse extends Message<GetFearGreedHis
|
|
|
256
258
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetFearGreedHistoryResponse;
|
|
257
259
|
static equals(a: GetFearGreedHistoryResponse | PlainMessage<GetFearGreedHistoryResponse> | undefined, b: GetFearGreedHistoryResponse | PlainMessage<GetFearGreedHistoryResponse> | undefined): boolean;
|
|
258
260
|
}
|
|
261
|
+
export declare class CoinLogoSearchRequest extends Message<CoinLogoSearchRequest> {
|
|
262
|
+
q: string;
|
|
263
|
+
limit?: number;
|
|
264
|
+
constructor(data?: PartialMessage<CoinLogoSearchRequest>);
|
|
265
|
+
static readonly runtime: typeof proto3;
|
|
266
|
+
static readonly typeName = "micro.v1.coin.CoinLogoSearchRequest";
|
|
267
|
+
static readonly fields: FieldList;
|
|
268
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CoinLogoSearchRequest;
|
|
269
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CoinLogoSearchRequest;
|
|
270
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CoinLogoSearchRequest;
|
|
271
|
+
static equals(a: CoinLogoSearchRequest | PlainMessage<CoinLogoSearchRequest> | undefined, b: CoinLogoSearchRequest | PlainMessage<CoinLogoSearchRequest> | undefined): boolean;
|
|
272
|
+
}
|
|
273
|
+
export declare class CoinLogoRow extends Message<CoinLogoRow> {
|
|
274
|
+
id: string;
|
|
275
|
+
symbol: string;
|
|
276
|
+
name: string;
|
|
277
|
+
urlId: string;
|
|
278
|
+
rank: number;
|
|
279
|
+
logoUrl?: string;
|
|
280
|
+
logoSource?: string;
|
|
281
|
+
constructor(data?: PartialMessage<CoinLogoRow>);
|
|
282
|
+
static readonly runtime: typeof proto3;
|
|
283
|
+
static readonly typeName = "micro.v1.coin.CoinLogoRow";
|
|
284
|
+
static readonly fields: FieldList;
|
|
285
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CoinLogoRow;
|
|
286
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CoinLogoRow;
|
|
287
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CoinLogoRow;
|
|
288
|
+
static equals(a: CoinLogoRow | PlainMessage<CoinLogoRow> | undefined, b: CoinLogoRow | PlainMessage<CoinLogoRow> | undefined): boolean;
|
|
289
|
+
}
|
|
290
|
+
export declare class CoinLogoSearchResponse extends Message<CoinLogoSearchResponse> {
|
|
291
|
+
status?: ResponseStatus;
|
|
292
|
+
data: CoinLogoRow[];
|
|
293
|
+
constructor(data?: PartialMessage<CoinLogoSearchResponse>);
|
|
294
|
+
static readonly runtime: typeof proto3;
|
|
295
|
+
static readonly typeName = "micro.v1.coin.CoinLogoSearchResponse";
|
|
296
|
+
static readonly fields: FieldList;
|
|
297
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CoinLogoSearchResponse;
|
|
298
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CoinLogoSearchResponse;
|
|
299
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CoinLogoSearchResponse;
|
|
300
|
+
static equals(a: CoinLogoSearchResponse | PlainMessage<CoinLogoSearchResponse> | undefined, b: CoinLogoSearchResponse | PlainMessage<CoinLogoSearchResponse> | undefined): boolean;
|
|
301
|
+
}
|
|
302
|
+
export declare class CoinLogoSetRequest extends Message<CoinLogoSetRequest> {
|
|
303
|
+
id: string;
|
|
304
|
+
logoUrl?: string;
|
|
305
|
+
constructor(data?: PartialMessage<CoinLogoSetRequest>);
|
|
306
|
+
static readonly runtime: typeof proto3;
|
|
307
|
+
static readonly typeName = "micro.v1.coin.CoinLogoSetRequest";
|
|
308
|
+
static readonly fields: FieldList;
|
|
309
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CoinLogoSetRequest;
|
|
310
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CoinLogoSetRequest;
|
|
311
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CoinLogoSetRequest;
|
|
312
|
+
static equals(a: CoinLogoSetRequest | PlainMessage<CoinLogoSetRequest> | undefined, b: CoinLogoSetRequest | PlainMessage<CoinLogoSetRequest> | undefined): boolean;
|
|
313
|
+
}
|
|
314
|
+
export declare class CoinLogoSetResponse extends Message<CoinLogoSetResponse> {
|
|
315
|
+
status?: ResponseStatus;
|
|
316
|
+
data?: CoinLogoRow;
|
|
317
|
+
constructor(data?: PartialMessage<CoinLogoSetResponse>);
|
|
318
|
+
static readonly runtime: typeof proto3;
|
|
319
|
+
static readonly typeName = "micro.v1.coin.CoinLogoSetResponse";
|
|
320
|
+
static readonly fields: FieldList;
|
|
321
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CoinLogoSetResponse;
|
|
322
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CoinLogoSetResponse;
|
|
323
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CoinLogoSetResponse;
|
|
324
|
+
static equals(a: CoinLogoSetResponse | PlainMessage<CoinLogoSetResponse> | undefined, b: CoinLogoSetResponse | PlainMessage<CoinLogoSetResponse> | undefined): boolean;
|
|
325
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetFearGreedHistoryResponse = exports.FearGreedHistoryItem = exports.GetFearGreedHistoryRequest = exports.GetFearGreedIndexResponse = exports.CoinAdminStoreRequest = exports.CoinAdminUpdateRequest = exports.CoinPriceAlertPaginationResponse = exports.CoinPaginationResponse = exports.CoinSingleResponseWithCoinGeckoId = exports.CoinSingleResponse = exports.CoinStoreRequest = exports.CoinDtoWithCoinGeckoId = exports.SaveCoinPriceAlertRequest = exports.CoinPriceAlertDto = exports.IsFavoriteCoinResponse = exports.IsFavoriteCoinRequest = exports.GetFavoriteCoinsResponse = exports.FavoriteCoinDto = exports.CoinDto = void 0;
|
|
3
|
+
exports.CoinLogoSetResponse = exports.CoinLogoSetRequest = exports.CoinLogoSearchResponse = exports.CoinLogoRow = exports.CoinLogoSearchRequest = exports.GetFearGreedHistoryResponse = exports.FearGreedHistoryItem = exports.GetFearGreedHistoryRequest = exports.GetFearGreedIndexResponse = exports.CoinAdminStoreRequest = exports.CoinAdminUpdateRequest = exports.CoinPriceAlertPaginationResponse = exports.CoinPaginationResponse = exports.CoinSingleResponseWithCoinGeckoId = exports.CoinSingleResponse = exports.CoinStoreRequest = exports.CoinDtoWithCoinGeckoId = exports.SaveCoinPriceAlertRequest = exports.CoinPriceAlertDto = exports.IsFavoriteCoinResponse = exports.IsFavoriteCoinRequest = exports.GetFavoriteCoinsResponse = exports.FavoriteCoinDto = exports.CoinDto = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class CoinDto extends protobuf_1.Message {
|
|
@@ -9,6 +9,7 @@ class CoinDto extends protobuf_1.Message {
|
|
|
9
9
|
name = "";
|
|
10
10
|
createdAt = "";
|
|
11
11
|
updatedAt;
|
|
12
|
+
logoUrl;
|
|
12
13
|
constructor(data) {
|
|
13
14
|
super();
|
|
14
15
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -21,6 +22,7 @@ class CoinDto extends protobuf_1.Message {
|
|
|
21
22
|
{ no: 3, name: "name", kind: "scalar", T: 9 },
|
|
22
23
|
{ no: 4, name: "created_at", kind: "scalar", T: 9 },
|
|
23
24
|
{ no: 5, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
25
|
+
{ no: 6, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
24
26
|
]);
|
|
25
27
|
static fromBinary(bytes, options) {
|
|
26
28
|
return new CoinDto().fromBinary(bytes, options);
|
|
@@ -53,6 +55,7 @@ class FavoriteCoinDto extends protobuf_1.Message {
|
|
|
53
55
|
coinglassFuturesId = "";
|
|
54
56
|
createdAt = "";
|
|
55
57
|
updatedAt;
|
|
58
|
+
logoUrl;
|
|
56
59
|
constructor(data) {
|
|
57
60
|
super();
|
|
58
61
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -76,6 +79,7 @@ class FavoriteCoinDto extends protobuf_1.Message {
|
|
|
76
79
|
{ no: 14, name: "coinglass_futures_id", kind: "scalar", T: 9 },
|
|
77
80
|
{ no: 15, name: "created_at", kind: "scalar", T: 9 },
|
|
78
81
|
{ no: 16, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
82
|
+
{ no: 17, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
79
83
|
]);
|
|
80
84
|
static fromBinary(bytes, options) {
|
|
81
85
|
return new FavoriteCoinDto().fromBinary(bytes, options);
|
|
@@ -566,3 +570,148 @@ class GetFearGreedHistoryResponse extends protobuf_1.Message {
|
|
|
566
570
|
}
|
|
567
571
|
}
|
|
568
572
|
exports.GetFearGreedHistoryResponse = GetFearGreedHistoryResponse;
|
|
573
|
+
class CoinLogoSearchRequest extends protobuf_1.Message {
|
|
574
|
+
q = "";
|
|
575
|
+
limit;
|
|
576
|
+
constructor(data) {
|
|
577
|
+
super();
|
|
578
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
579
|
+
}
|
|
580
|
+
static runtime = protobuf_1.proto3;
|
|
581
|
+
static typeName = "micro.v1.coin.CoinLogoSearchRequest";
|
|
582
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
583
|
+
{ no: 1, name: "q", kind: "scalar", T: 9 },
|
|
584
|
+
{ no: 2, name: "limit", kind: "scalar", T: 5, opt: true },
|
|
585
|
+
]);
|
|
586
|
+
static fromBinary(bytes, options) {
|
|
587
|
+
return new CoinLogoSearchRequest().fromBinary(bytes, options);
|
|
588
|
+
}
|
|
589
|
+
static fromJson(jsonValue, options) {
|
|
590
|
+
return new CoinLogoSearchRequest().fromJson(jsonValue, options);
|
|
591
|
+
}
|
|
592
|
+
static fromJsonString(jsonString, options) {
|
|
593
|
+
return new CoinLogoSearchRequest().fromJsonString(jsonString, options);
|
|
594
|
+
}
|
|
595
|
+
static equals(a, b) {
|
|
596
|
+
return protobuf_1.proto3.util.equals(CoinLogoSearchRequest, a, b);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
exports.CoinLogoSearchRequest = CoinLogoSearchRequest;
|
|
600
|
+
class CoinLogoRow extends protobuf_1.Message {
|
|
601
|
+
id = "";
|
|
602
|
+
symbol = "";
|
|
603
|
+
name = "";
|
|
604
|
+
urlId = "";
|
|
605
|
+
rank = 0;
|
|
606
|
+
logoUrl;
|
|
607
|
+
logoSource;
|
|
608
|
+
constructor(data) {
|
|
609
|
+
super();
|
|
610
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
611
|
+
}
|
|
612
|
+
static runtime = protobuf_1.proto3;
|
|
613
|
+
static typeName = "micro.v1.coin.CoinLogoRow";
|
|
614
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
615
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
616
|
+
{ no: 2, name: "symbol", kind: "scalar", T: 9 },
|
|
617
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 },
|
|
618
|
+
{ no: 4, name: "url_id", kind: "scalar", T: 9 },
|
|
619
|
+
{ no: 5, name: "rank", kind: "scalar", T: 5 },
|
|
620
|
+
{ no: 6, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
621
|
+
{ no: 7, name: "logo_source", kind: "scalar", T: 9, opt: true },
|
|
622
|
+
]);
|
|
623
|
+
static fromBinary(bytes, options) {
|
|
624
|
+
return new CoinLogoRow().fromBinary(bytes, options);
|
|
625
|
+
}
|
|
626
|
+
static fromJson(jsonValue, options) {
|
|
627
|
+
return new CoinLogoRow().fromJson(jsonValue, options);
|
|
628
|
+
}
|
|
629
|
+
static fromJsonString(jsonString, options) {
|
|
630
|
+
return new CoinLogoRow().fromJsonString(jsonString, options);
|
|
631
|
+
}
|
|
632
|
+
static equals(a, b) {
|
|
633
|
+
return protobuf_1.proto3.util.equals(CoinLogoRow, a, b);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
exports.CoinLogoRow = CoinLogoRow;
|
|
637
|
+
class CoinLogoSearchResponse extends protobuf_1.Message {
|
|
638
|
+
status;
|
|
639
|
+
data = [];
|
|
640
|
+
constructor(data) {
|
|
641
|
+
super();
|
|
642
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
643
|
+
}
|
|
644
|
+
static runtime = protobuf_1.proto3;
|
|
645
|
+
static typeName = "micro.v1.coin.CoinLogoSearchResponse";
|
|
646
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
647
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
648
|
+
{ no: 2, name: "data", kind: "message", T: CoinLogoRow, repeated: true },
|
|
649
|
+
]);
|
|
650
|
+
static fromBinary(bytes, options) {
|
|
651
|
+
return new CoinLogoSearchResponse().fromBinary(bytes, options);
|
|
652
|
+
}
|
|
653
|
+
static fromJson(jsonValue, options) {
|
|
654
|
+
return new CoinLogoSearchResponse().fromJson(jsonValue, options);
|
|
655
|
+
}
|
|
656
|
+
static fromJsonString(jsonString, options) {
|
|
657
|
+
return new CoinLogoSearchResponse().fromJsonString(jsonString, options);
|
|
658
|
+
}
|
|
659
|
+
static equals(a, b) {
|
|
660
|
+
return protobuf_1.proto3.util.equals(CoinLogoSearchResponse, a, b);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
exports.CoinLogoSearchResponse = CoinLogoSearchResponse;
|
|
664
|
+
class CoinLogoSetRequest extends protobuf_1.Message {
|
|
665
|
+
id = "";
|
|
666
|
+
logoUrl;
|
|
667
|
+
constructor(data) {
|
|
668
|
+
super();
|
|
669
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
670
|
+
}
|
|
671
|
+
static runtime = protobuf_1.proto3;
|
|
672
|
+
static typeName = "micro.v1.coin.CoinLogoSetRequest";
|
|
673
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
674
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
675
|
+
{ no: 2, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
676
|
+
]);
|
|
677
|
+
static fromBinary(bytes, options) {
|
|
678
|
+
return new CoinLogoSetRequest().fromBinary(bytes, options);
|
|
679
|
+
}
|
|
680
|
+
static fromJson(jsonValue, options) {
|
|
681
|
+
return new CoinLogoSetRequest().fromJson(jsonValue, options);
|
|
682
|
+
}
|
|
683
|
+
static fromJsonString(jsonString, options) {
|
|
684
|
+
return new CoinLogoSetRequest().fromJsonString(jsonString, options);
|
|
685
|
+
}
|
|
686
|
+
static equals(a, b) {
|
|
687
|
+
return protobuf_1.proto3.util.equals(CoinLogoSetRequest, a, b);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
exports.CoinLogoSetRequest = CoinLogoSetRequest;
|
|
691
|
+
class CoinLogoSetResponse extends protobuf_1.Message {
|
|
692
|
+
status;
|
|
693
|
+
data;
|
|
694
|
+
constructor(data) {
|
|
695
|
+
super();
|
|
696
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
697
|
+
}
|
|
698
|
+
static runtime = protobuf_1.proto3;
|
|
699
|
+
static typeName = "micro.v1.coin.CoinLogoSetResponse";
|
|
700
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
701
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
702
|
+
{ no: 2, name: "data", kind: "message", T: CoinLogoRow },
|
|
703
|
+
]);
|
|
704
|
+
static fromBinary(bytes, options) {
|
|
705
|
+
return new CoinLogoSetResponse().fromBinary(bytes, options);
|
|
706
|
+
}
|
|
707
|
+
static fromJson(jsonValue, options) {
|
|
708
|
+
return new CoinLogoSetResponse().fromJson(jsonValue, options);
|
|
709
|
+
}
|
|
710
|
+
static fromJsonString(jsonString, options) {
|
|
711
|
+
return new CoinLogoSetResponse().fromJsonString(jsonString, options);
|
|
712
|
+
}
|
|
713
|
+
static equals(a, b) {
|
|
714
|
+
return protobuf_1.proto3.util.equals(CoinLogoSetResponse, a, b);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
exports.CoinLogoSetResponse = CoinLogoSetResponse;
|
|
@@ -117,6 +117,7 @@ export declare class CoinLiveData extends Message<CoinLiveData> {
|
|
|
117
117
|
marketCapChangePercentage24h: number;
|
|
118
118
|
coinmarketcapId: string;
|
|
119
119
|
coingeckoId: string;
|
|
120
|
+
logoUrl?: string;
|
|
120
121
|
constructor(data?: PartialMessage<CoinLiveData>);
|
|
121
122
|
static readonly runtime: typeof proto3;
|
|
122
123
|
static readonly typeName = "micro.v1.coin.CoinLiveData";
|
|
@@ -230,6 +230,7 @@ class CoinLiveData extends protobuf_1.Message {
|
|
|
230
230
|
marketCapChangePercentage24h = 0;
|
|
231
231
|
coinmarketcapId = "";
|
|
232
232
|
coingeckoId = "";
|
|
233
|
+
logoUrl;
|
|
233
234
|
constructor(data) {
|
|
234
235
|
super();
|
|
235
236
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -259,6 +260,7 @@ class CoinLiveData extends protobuf_1.Message {
|
|
|
259
260
|
{ no: 20, name: "market_cap_change_percentage_24h", kind: "scalar", T: 1 },
|
|
260
261
|
{ no: 21, name: "coinmarketcap_id", kind: "scalar", T: 9 },
|
|
261
262
|
{ no: 22, name: "coingecko_id", kind: "scalar", T: 9 },
|
|
263
|
+
{ no: 23, name: "logo_url", kind: "scalar", T: 9, opt: true },
|
|
262
264
|
]);
|
|
263
265
|
static fromBinary(bytes, options) {
|
|
264
266
|
return new CoinLiveData().fromBinary(bytes, options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
|
|
2
|
-
import { CoinAdminStoreRequest, CoinAdminUpdateRequest, CoinPaginationResponse, CoinPriceAlertPaginationResponse, CoinSingleResponse, CoinSingleResponseWithCoinGeckoId, GetFavoriteCoinsResponse, GetFearGreedHistoryRequest, GetFearGreedHistoryResponse, GetFearGreedIndexResponse, IsFavoriteCoinRequest, IsFavoriteCoinResponse, SaveCoinPriceAlertRequest } from "./coin_messages_pb.js";
|
|
2
|
+
import { CoinAdminStoreRequest, CoinAdminUpdateRequest, CoinLogoSearchRequest, CoinLogoSearchResponse, CoinLogoSetRequest, CoinLogoSetResponse, CoinPaginationResponse, CoinPriceAlertPaginationResponse, CoinSingleResponse, CoinSingleResponseWithCoinGeckoId, GetFavoriteCoinsResponse, GetFearGreedHistoryRequest, GetFearGreedHistoryResponse, GetFearGreedIndexResponse, IsFavoriteCoinRequest, IsFavoriteCoinResponse, SaveCoinPriceAlertRequest } from "./coin_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
import { AnalyticsCategoriesResponse, AnalyticsChainsResponse, AnalyticsCoinsWeeklyDataBulkResponse, AnalyticsCoinWeeklyDataResponse, AnalyticsCurrenciesResponse, AnalyticsExchangeResponse, AnalyticsHighlightsResponse, BlockchainGlobalDataResponse, CoinsWeeklyDataBulkRequest, CurrenciesByCategoryRequest, CurrenciesByCategoryResponse, CurrenciesByChainRequest, CurrenciesByChainResponse, CurrenciesNewResponse, CurrenciesNewsChangeRequest, CurrenciesNewsChangeResponse, NavbarDataResponse, PaginateRequestCurrency, PassiveCurrenciesRequest, PassiveCurrenciesResponse } from "./analytics_messages_pb.js";
|
|
5
5
|
import { LiveCoinRequest, LiveCoinResponse } from "./coin_websocket_messages_pb.js";
|
|
@@ -371,6 +371,18 @@ export declare const PCoinAdminService: {
|
|
|
371
371
|
readonly O: typeof CoinPaginationResponse;
|
|
372
372
|
readonly kind: MethodKind.ServerStreaming;
|
|
373
373
|
};
|
|
374
|
+
readonly searchLogos: {
|
|
375
|
+
readonly name: "SearchLogos";
|
|
376
|
+
readonly I: typeof CoinLogoSearchRequest;
|
|
377
|
+
readonly O: typeof CoinLogoSearchResponse;
|
|
378
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
379
|
+
};
|
|
380
|
+
readonly setLogo: {
|
|
381
|
+
readonly name: "SetLogo";
|
|
382
|
+
readonly I: typeof CoinLogoSetRequest;
|
|
383
|
+
readonly O: typeof CoinLogoSetResponse;
|
|
384
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
385
|
+
};
|
|
374
386
|
};
|
|
375
387
|
};
|
|
376
388
|
export declare const PCoinCronService: {
|
|
@@ -374,6 +374,18 @@ exports.PCoinAdminService = {
|
|
|
374
374
|
O: coin_messages_pb_js_1.CoinPaginationResponse,
|
|
375
375
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
376
376
|
},
|
|
377
|
+
searchLogos: {
|
|
378
|
+
name: "SearchLogos",
|
|
379
|
+
I: coin_messages_pb_js_1.CoinLogoSearchRequest,
|
|
380
|
+
O: coin_messages_pb_js_1.CoinLogoSearchResponse,
|
|
381
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
382
|
+
},
|
|
383
|
+
setLogo: {
|
|
384
|
+
name: "SetLogo",
|
|
385
|
+
I: coin_messages_pb_js_1.CoinLogoSetRequest,
|
|
386
|
+
O: coin_messages_pb_js_1.CoinLogoSetResponse,
|
|
387
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
388
|
+
},
|
|
377
389
|
}
|
|
378
390
|
};
|
|
379
391
|
exports.PCoinCronService = {
|
|
@@ -2,7 +2,7 @@ import type { Metadata } from "@grpc/grpc-js";
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_nest";
|
|
4
4
|
import { AnalyticsCategoriesResponse, AnalyticsChainsResponse, AnalyticsCoinsWeeklyDataBulkResponse, AnalyticsCoinWeeklyDataResponse, AnalyticsCurrenciesResponse, AnalyticsExchangeResponse, AnalyticsHighlightsResponse, BlockchainGlobalDataResponse, CoinsWeeklyDataBulkRequest, CurrenciesByCategoryRequest, CurrenciesByCategoryResponse, CurrenciesByChainRequest, CurrenciesByChainResponse, CurrenciesNewResponse, CurrenciesNewsChangeRequest, CurrenciesNewsChangeResponse, NavbarDataResponse, PaginateRequestCurrency, PassiveCurrenciesRequest, PassiveCurrenciesResponse } from "./analytics_messages_nest";
|
|
5
|
-
import { CoinAdminStoreRequest, CoinAdminUpdateRequest, CoinPaginationResponse, CoinPriceAlertPaginationResponse, CoinSingleResponse, CoinSingleResponseWithCoinGeckoId, GetFavoriteCoinsResponse, GetFearGreedHistoryRequest, GetFearGreedHistoryResponse, GetFearGreedIndexResponse, IsFavoriteCoinRequest, IsFavoriteCoinResponse, SaveCoinPriceAlertRequest } from "./coin_messages_nest";
|
|
5
|
+
import { CoinAdminStoreRequest, CoinAdminUpdateRequest, CoinLogoSearchRequest, CoinLogoSearchResponse, CoinLogoSetRequest, CoinLogoSetResponse, CoinPaginationResponse, CoinPriceAlertPaginationResponse, CoinSingleResponse, CoinSingleResponseWithCoinGeckoId, GetFavoriteCoinsResponse, GetFearGreedHistoryRequest, GetFearGreedHistoryResponse, GetFearGreedIndexResponse, IsFavoriteCoinRequest, IsFavoriteCoinResponse, SaveCoinPriceAlertRequest } from "./coin_messages_nest";
|
|
6
6
|
import { LiveCoinRequest, LiveCoinResponse } from "./coin_websocket_messages_nest";
|
|
7
7
|
import { CoinBalanceRequest, CoinExchangeBalanceFlowResponse, CoinExchangeBalanceResponse, ExchangesAssetsTransparencyResponse } from "./data_general_messages_nest";
|
|
8
8
|
import { GetAllCoinsDbResponse, GetCoinMarketCapRequest, GetCoinMarketCapResponse, GetWithoutAboutCoinsResponse } from "./data_microservice_messages_nest";
|
|
@@ -157,6 +157,8 @@ export interface PCoinAdminServiceClient {
|
|
|
157
157
|
remove(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
158
158
|
paginate(request: PaginateRequest, metadata?: Metadata): Observable<CoinPaginationResponse>;
|
|
159
159
|
paginateFrom(request: PaginateFromRequest, metadata?: Metadata): Observable<CoinPaginationResponse>;
|
|
160
|
+
searchLogos(request: CoinLogoSearchRequest, metadata?: Metadata): Observable<CoinLogoSearchResponse>;
|
|
161
|
+
setLogo(request: CoinLogoSetRequest, metadata?: Metadata): Observable<CoinLogoSetResponse>;
|
|
160
162
|
}
|
|
161
163
|
export interface PCoinAdminServiceController {
|
|
162
164
|
read(request: ByIdRequest, metadata?: Metadata): Observable<CoinSingleResponse>;
|
|
@@ -165,6 +167,8 @@ export interface PCoinAdminServiceController {
|
|
|
165
167
|
remove(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
166
168
|
paginate(request: PaginateRequest, metadata?: Metadata): Observable<CoinPaginationResponse>;
|
|
167
169
|
paginateFrom(request: PaginateFromRequest, metadata?: Metadata): Observable<CoinPaginationResponse>;
|
|
170
|
+
searchLogos(request: CoinLogoSearchRequest, metadata?: Metadata): Observable<CoinLogoSearchResponse>;
|
|
171
|
+
setLogo(request: CoinLogoSetRequest, metadata?: Metadata): Observable<CoinLogoSetResponse>;
|
|
168
172
|
}
|
|
169
173
|
export declare function PCoinAdminServiceControllerMethods(): (constructor: Function) => void;
|
|
170
174
|
export declare const P_COIN_ADMIN_SERVICE_NAME = "PCoinAdminService";
|
|
@@ -171,7 +171,16 @@ function PAnalyticsServiceControllerMethods() {
|
|
|
171
171
|
exports.P_ANALYTICS_SERVICE_NAME = "PAnalyticsService";
|
|
172
172
|
function PCoinAdminServiceControllerMethods() {
|
|
173
173
|
return function (constructor) {
|
|
174
|
-
const grpcMethods = [
|
|
174
|
+
const grpcMethods = [
|
|
175
|
+
"read",
|
|
176
|
+
"store",
|
|
177
|
+
"update",
|
|
178
|
+
"remove",
|
|
179
|
+
"paginate",
|
|
180
|
+
"paginateFrom",
|
|
181
|
+
"searchLogos",
|
|
182
|
+
"setLogo",
|
|
183
|
+
];
|
|
175
184
|
for (const method of grpcMethods) {
|
|
176
185
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
177
186
|
(0, microservices_1.GrpcMethod)("PCoinAdminService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ message CoinDetailDto {
|
|
|
85
85
|
repeated Title title = 36;
|
|
86
86
|
repeated About about = 37;
|
|
87
87
|
Info info = 38;
|
|
88
|
+
optional string logo_url = 39;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
message Info {
|
|
@@ -341,6 +342,7 @@ message CurrenciesNewDto {
|
|
|
341
342
|
string coinglass_spot_id = 14;
|
|
342
343
|
string coinglass_futures_id = 15;
|
|
343
344
|
string url_id = 16;
|
|
345
|
+
optional string logo_url = 17;
|
|
344
346
|
}
|
|
345
347
|
|
|
346
348
|
message CurrenciesNewResponse {
|
|
@@ -12,6 +12,8 @@ message CoinDto {
|
|
|
12
12
|
|
|
13
13
|
string created_at = 4;
|
|
14
14
|
optional string updated_at = 5;
|
|
15
|
+
// Resolved coin logo (admin upload > our icon > CoinGecko > CMC).
|
|
16
|
+
optional string logo_url = 6;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
message FavoriteCoinDto {
|
|
@@ -31,6 +33,7 @@ message FavoriteCoinDto {
|
|
|
31
33
|
string coinglass_futures_id = 14;
|
|
32
34
|
string created_at = 15;
|
|
33
35
|
optional string updated_at = 16;
|
|
36
|
+
optional string logo_url = 17;
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
message GetFavoriteCoinsResponse {
|
|
@@ -124,3 +127,38 @@ message GetFearGreedHistoryResponse {
|
|
|
124
127
|
ResponseStatus status = 1;
|
|
125
128
|
repeated FearGreedHistoryItem data = 2;
|
|
126
129
|
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
// Admin: coin logos. A logo set here wins over the automatic choice
|
|
133
|
+
// (our icon > CoinGecko > CMC) until it is cleared.
|
|
134
|
+
message CoinLogoSearchRequest {
|
|
135
|
+
string q = 1;
|
|
136
|
+
optional int32 limit = 2;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message CoinLogoRow {
|
|
140
|
+
string id = 1;
|
|
141
|
+
string symbol = 2;
|
|
142
|
+
string name = 3;
|
|
143
|
+
string url_id = 4;
|
|
144
|
+
int32 rank = 5;
|
|
145
|
+
optional string logo_url = 6;
|
|
146
|
+
// admin | icon | coingecko | cmc
|
|
147
|
+
optional string logo_source = 7;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message CoinLogoSearchResponse {
|
|
151
|
+
ResponseStatus status = 1;
|
|
152
|
+
repeated CoinLogoRow data = 2;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message CoinLogoSetRequest {
|
|
156
|
+
string id = 1;
|
|
157
|
+
// Empty or missing: back to the automatic logo.
|
|
158
|
+
optional string logo_url = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message CoinLogoSetResponse {
|
|
162
|
+
ResponseStatus status = 1;
|
|
163
|
+
CoinLogoRow data = 2;
|
|
164
|
+
}
|
|
@@ -91,6 +91,8 @@ service PCoinAdminService {
|
|
|
91
91
|
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
92
92
|
rpc Paginate(PaginateRequest) returns(stream CoinPaginationResponse) {}
|
|
93
93
|
rpc PaginateFrom(PaginateFromRequest) returns(stream CoinPaginationResponse) {}
|
|
94
|
+
rpc SearchLogos(CoinLogoSearchRequest) returns(stream CoinLogoSearchResponse) {}
|
|
95
|
+
rpc SetLogo(CoinLogoSetRequest) returns(stream CoinLogoSetResponse) {}
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
service PCoinCronService {
|