jr-common-micro 1.1.141 → 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.
@@ -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;
@@ -68,5 +68,6 @@ export interface CoinLiveData {
68
68
  market_cap_change_percentage_24h: number;
69
69
  coinmarketcap_id: string;
70
70
  coingecko_id: string;
71
+ logo_url?: string | undefined;
71
72
  }
72
73
  export declare const MICRO_V1_COIN_PACKAGE_NAME = "micro.v1.coin";
@@ -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 = ["read", "store", "update", "remove", "paginate", "paginateFrom"];
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);
@@ -106,6 +106,8 @@ export interface TaskInfo {
106
106
  effect_days: number;
107
107
  ends_at: string;
108
108
  test: boolean;
109
+ reviewing: boolean;
110
+ review_ends_at: string;
109
111
  }
110
112
  export interface TaskBlock {
111
113
  type: string;
@@ -168,6 +170,8 @@ export interface TaskEventResponse {
168
170
  status: ResponseStatus | undefined;
169
171
  completed_task_id: string;
170
172
  data?: MiningState | undefined;
173
+ reviewing: boolean;
174
+ review_ends_at: string;
171
175
  }
172
176
  export interface ReferralItem {
173
177
  user_id: string;
@@ -409,6 +413,7 @@ export interface AdminTaskItem {
409
413
  starts_at: string;
410
414
  ends_at: string;
411
415
  published_at: string;
416
+ review_minutes: number;
412
417
  }
413
418
  export interface AdminTaskItem_TitlesEntry {
414
419
  key: string;
@@ -485,6 +490,7 @@ export interface AdminSaveTaskRequest {
485
490
  effect_days: number;
486
491
  starts_at: string;
487
492
  ends_at: string;
493
+ review_minutes: number;
488
494
  }
489
495
  export interface AdminSaveTaskRequest_TitlesEntry {
490
496
  key: string;
@@ -717,6 +723,7 @@ export interface AdminSetTaskRequest {
717
723
  titles: {
718
724
  [key: string]: string;
719
725
  };
726
+ review_minutes?: number | undefined;
720
727
  }
721
728
  export interface AdminSetTaskRequest_TitlesEntry {
722
729
  key: string;
@@ -163,6 +163,8 @@ export declare class TaskInfo extends Message<TaskInfo> {
163
163
  effectDays: number;
164
164
  endsAt: string;
165
165
  test: boolean;
166
+ reviewing: boolean;
167
+ reviewEndsAt: string;
166
168
  constructor(data?: PartialMessage<TaskInfo>);
167
169
  static readonly runtime: typeof proto3;
168
170
  static readonly typeName = "micro.v1.mining.TaskInfo";
@@ -289,6 +291,8 @@ export declare class TaskEventResponse extends Message<TaskEventResponse> {
289
291
  status?: ResponseStatus;
290
292
  completedTaskId: string;
291
293
  data?: MiningState;
294
+ reviewing: boolean;
295
+ reviewEndsAt: string;
292
296
  constructor(data?: PartialMessage<TaskEventResponse>);
293
297
  static readonly runtime: typeof proto3;
294
298
  static readonly typeName = "micro.v1.mining.TaskEventResponse";
@@ -794,6 +798,7 @@ export declare class AdminTaskItem extends Message<AdminTaskItem> {
794
798
  startsAt: string;
795
799
  endsAt: string;
796
800
  publishedAt: string;
801
+ reviewMinutes: number;
797
802
  constructor(data?: PartialMessage<AdminTaskItem>);
798
803
  static readonly runtime: typeof proto3;
799
804
  static readonly typeName = "micro.v1.mining.AdminTaskItem";
@@ -874,6 +879,7 @@ export declare class AdminSaveTaskRequest extends Message<AdminSaveTaskRequest>
874
879
  effectDays: number;
875
880
  startsAt: string;
876
881
  endsAt: string;
882
+ reviewMinutes: number;
877
883
  constructor(data?: PartialMessage<AdminSaveTaskRequest>);
878
884
  static readonly runtime: typeof proto3;
879
885
  static readonly typeName = "micro.v1.mining.AdminSaveTaskRequest";
@@ -1314,6 +1320,7 @@ export declare class AdminSetTaskRequest extends Message<AdminSetTaskRequest> {
1314
1320
  titles: {
1315
1321
  [key: string]: string;
1316
1322
  };
1323
+ reviewMinutes?: number;
1317
1324
  constructor(data?: PartialMessage<AdminSetTaskRequest>);
1318
1325
  static readonly runtime: typeof proto3;
1319
1326
  static readonly typeName = "micro.v1.mining.AdminSetTaskRequest";
@@ -322,6 +322,8 @@ class TaskInfo extends protobuf_1.Message {
322
322
  effectDays = 0;
323
323
  endsAt = "";
324
324
  test = false;
325
+ reviewing = false;
326
+ reviewEndsAt = "";
325
327
  constructor(data) {
326
328
  super();
327
329
  protobuf_1.proto3.util.initPartial(data, this);
@@ -355,6 +357,8 @@ class TaskInfo extends protobuf_1.Message {
355
357
  { no: 24, name: "effect_days", kind: "scalar", T: 5 },
356
358
  { no: 25, name: "ends_at", kind: "scalar", T: 9 },
357
359
  { no: 26, name: "test", kind: "scalar", T: 8 },
360
+ { no: 27, name: "reviewing", kind: "scalar", T: 8 },
361
+ { no: 28, name: "review_ends_at", kind: "scalar", T: 9 },
358
362
  ]);
359
363
  static fromBinary(bytes, options) {
360
364
  return new TaskInfo().fromBinary(bytes, options);
@@ -621,6 +625,8 @@ class TaskEventResponse extends protobuf_1.Message {
621
625
  status;
622
626
  completedTaskId = "";
623
627
  data;
628
+ reviewing = false;
629
+ reviewEndsAt = "";
624
630
  constructor(data) {
625
631
  super();
626
632
  protobuf_1.proto3.util.initPartial(data, this);
@@ -631,6 +637,8 @@ class TaskEventResponse extends protobuf_1.Message {
631
637
  { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
632
638
  { no: 2, name: "completed_task_id", kind: "scalar", T: 9 },
633
639
  { no: 3, name: "data", kind: "message", T: MiningState, opt: true },
640
+ { no: 4, name: "reviewing", kind: "scalar", T: 8 },
641
+ { no: 5, name: "review_ends_at", kind: "scalar", T: 9 },
634
642
  ]);
635
643
  static fromBinary(bytes, options) {
636
644
  return new TaskEventResponse().fromBinary(bytes, options);
@@ -1694,6 +1702,7 @@ class AdminTaskItem extends protobuf_1.Message {
1694
1702
  startsAt = "";
1695
1703
  endsAt = "";
1696
1704
  publishedAt = "";
1705
+ reviewMinutes = 0;
1697
1706
  constructor(data) {
1698
1707
  super();
1699
1708
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1728,6 +1737,7 @@ class AdminTaskItem extends protobuf_1.Message {
1728
1737
  { no: 25, name: "starts_at", kind: "scalar", T: 9 },
1729
1738
  { no: 26, name: "ends_at", kind: "scalar", T: 9 },
1730
1739
  { no: 27, name: "published_at", kind: "scalar", T: 9 },
1740
+ { no: 28, name: "review_minutes", kind: "scalar", T: 5 },
1731
1741
  ]);
1732
1742
  static fromBinary(bytes, options) {
1733
1743
  return new AdminTaskItem().fromBinary(bytes, options);
@@ -1850,6 +1860,7 @@ class AdminSaveTaskRequest extends protobuf_1.Message {
1850
1860
  effectDays = 0;
1851
1861
  startsAt = "";
1852
1862
  endsAt = "";
1863
+ reviewMinutes = 0;
1853
1864
  constructor(data) {
1854
1865
  super();
1855
1866
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1872,6 +1883,7 @@ class AdminSaveTaskRequest extends protobuf_1.Message {
1872
1883
  { no: 13, name: "effect_days", kind: "scalar", T: 5 },
1873
1884
  { no: 14, name: "starts_at", kind: "scalar", T: 9 },
1874
1885
  { no: 15, name: "ends_at", kind: "scalar", T: 9 },
1886
+ { no: 16, name: "review_minutes", kind: "scalar", T: 5 },
1875
1887
  ]);
1876
1888
  static fromBinary(bytes, options) {
1877
1889
  return new AdminSaveTaskRequest().fromBinary(bytes, options);
@@ -2813,6 +2825,7 @@ class AdminSetTaskRequest extends protobuf_1.Message {
2813
2825
  maxCount;
2814
2826
  sort;
2815
2827
  titles = {};
2828
+ reviewMinutes;
2816
2829
  constructor(data) {
2817
2830
  super();
2818
2831
  protobuf_1.proto3.util.initPartial(data, this);
@@ -2828,6 +2841,7 @@ class AdminSetTaskRequest extends protobuf_1.Message {
2828
2841
  { no: 6, name: "max_count", kind: "scalar", T: 5, opt: true },
2829
2842
  { no: 7, name: "sort", kind: "scalar", T: 5, opt: true },
2830
2843
  { no: 8, name: "titles", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
2844
+ { no: 9, name: "review_minutes", kind: "scalar", T: 5, opt: true },
2831
2845
  ]);
2832
2846
  static fromBinary(bytes, options) {
2833
2847
  return new AdminSetTaskRequest().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.141",
3
+ "version": "1.1.143",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -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
+ }
@@ -78,6 +78,7 @@ message CoinLiveData {
78
78
  double market_cap_change_percentage_24h = 20;
79
79
  string coinmarketcap_id = 21;
80
80
  string coingecko_id = 22;
81
+ optional string logo_url = 23;
81
82
  }
82
83
 
83
84
 
@@ -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 {
@@ -188,6 +188,13 @@ message TaskInfo {
188
188
  string ends_at = 25;
189
189
  // Being tested: only admins get it.
190
190
  bool test = 26;
191
+ // Done, but "waiting for approval" until review_ends_at (a delay the
192
+ // panel set on the task; nothing is reviewed). done stays false and the
193
+ // layer starts counting at review_ends_at; the app shows the row as
194
+ // waiting and reads the tasks again once that moment has passed.
195
+ bool reviewing = 27;
196
+ // RFC 3339; '' when not reviewing.
197
+ string review_ends_at = 28;
191
198
  }
192
199
 
193
200
  // One block of a custom task's page, in the reader's language. Plain text
@@ -276,6 +283,10 @@ message TaskEventResponse {
276
283
  // Task completed by this event ('' when nothing changed).
277
284
  string completed_task_id = 2;
278
285
  optional MiningState data = 3;
286
+ // The completed task now waits "for approval" (its review delay; only
287
+ // for an app that said it can show it): it counts at review_ends_at.
288
+ bool reviewing = 4;
289
+ string review_ends_at = 5;
279
290
  }
280
291
 
281
292
  message ReferralItem {
@@ -610,6 +621,10 @@ message AdminTaskItem {
610
621
  // First publication ('' = never): from then on the repeat and the
611
622
  // validity are fixed.
612
623
  string published_at = 27;
624
+ // Minutes a completion waits "for approval" before it counts (0 = none).
625
+ // Only for tasks the person reports (custom tasks and built-in tasks
626
+ // with an app event, not the exchange ones).
627
+ int32 review_minutes = 28;
613
628
  }
614
629
 
615
630
  // A language → text map (tr, en, es, ...).
@@ -659,6 +674,8 @@ message AdminSaveTaskRequest {
659
674
  int32 effect_days = 13;
660
675
  string starts_at = 14;
661
676
  string ends_at = 15;
677
+ // 0 (none) or one of 1, 3, 5, 10, 15.
678
+ int32 review_minutes = 16;
662
679
  }
663
680
 
664
681
  message AdminTaskActionRequest {
@@ -988,6 +1005,9 @@ message AdminSetTaskRequest {
988
1005
  // replaces them all ('' = that language reads title_en); none sent
989
1006
  // leaves them as they are.
990
1007
  map<string, string> titles = 8;
1008
+ // 0 (none) or one of 1, 3, 5, 10, 15; not sent = unchanged. Refused on a
1009
+ // task the person does not report (server-completed or exchange).
1010
+ optional int32 review_minutes = 9;
991
1011
  }
992
1012
 
993
1013
  // ---- admin gifts ------------------------------------------------------------