jr-common-micro 1.1.46 → 1.1.48
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/news/news_messages_nest.d.ts +3 -0
- package/dist/proto/micro/v1/news/news_messages_pb.d.ts +11 -0
- package/dist/proto/micro/v1/news/news_messages_pb.js +26 -1
- package/dist/proto/micro/v1/news/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/news/services_connect.js +6 -0
- package/dist/proto/micro/v1/news/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/news/services_nest.js +8 -1
- package/package.json +1 -1
- package/proto/micro/v1/news/news_messages.proto +2 -0
- package/proto/micro/v1/news/services.proto +1 -0
|
@@ -247,6 +247,9 @@ export interface NewsReadCategory_CategoryEntry {
|
|
|
247
247
|
export interface NewsReadCategories {
|
|
248
248
|
category: NewsReadCategory[];
|
|
249
249
|
}
|
|
250
|
+
export interface NewsReadTickers {
|
|
251
|
+
tickers: string[];
|
|
252
|
+
}
|
|
250
253
|
export interface TranslateRequest {
|
|
251
254
|
id: string;
|
|
252
255
|
language: string;
|
|
@@ -372,6 +372,17 @@ export declare class NewsReadCategories extends Message<NewsReadCategories> {
|
|
|
372
372
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewsReadCategories;
|
|
373
373
|
static equals(a: NewsReadCategories | PlainMessage<NewsReadCategories> | undefined, b: NewsReadCategories | PlainMessage<NewsReadCategories> | undefined): boolean;
|
|
374
374
|
}
|
|
375
|
+
export declare class NewsReadTickers extends Message<NewsReadTickers> {
|
|
376
|
+
tickers: string[];
|
|
377
|
+
constructor(data?: PartialMessage<NewsReadTickers>);
|
|
378
|
+
static readonly runtime: typeof proto3;
|
|
379
|
+
static readonly typeName = "micro.v1.news.NewsReadTickers";
|
|
380
|
+
static readonly fields: FieldList;
|
|
381
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewsReadTickers;
|
|
382
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewsReadTickers;
|
|
383
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewsReadTickers;
|
|
384
|
+
static equals(a: NewsReadTickers | PlainMessage<NewsReadTickers> | undefined, b: NewsReadTickers | PlainMessage<NewsReadTickers> | undefined): boolean;
|
|
385
|
+
}
|
|
375
386
|
export declare class TranslateRequest extends Message<TranslateRequest> {
|
|
376
387
|
id: string;
|
|
377
388
|
language: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewsAdminPaginateRequest = exports.OnlyTranslateRequest = exports.TranslateRequest = exports.NewsReadCategories = exports.NewsReadCategory = exports.NewsReadSlots = exports.NewsReadSlot = exports.NewsUpdateRequest = exports.NewsPublishRequest = exports.ReadRequest = exports.NewsStoreRequest = exports.OnlyTranslateResponse = exports.NewsReadCoin = exports.NewsReadCoins = exports.PublishedNewsPaginationAdminResponse = exports.PublishedNewsSingleAdminResponse = exports.NewsPaginateDateAdminResponse = exports.NewsPaginationAdminResponse = exports.NewsSingleAdminResponse = exports.CategoryNews = exports.SlotNews = exports.PublishedNewsAdminDto = exports.NewsPaginateDateAdminDto = exports.NewsAdminDto = exports.NewsPaginationResponse = exports.NewsSingleResponse = exports.NewsDto = void 0;
|
|
3
|
+
exports.NewsAdminPaginateRequest = exports.OnlyTranslateRequest = exports.TranslateRequest = exports.NewsReadTickers = exports.NewsReadCategories = exports.NewsReadCategory = exports.NewsReadSlots = exports.NewsReadSlot = exports.NewsUpdateRequest = exports.NewsPublishRequest = exports.ReadRequest = exports.NewsStoreRequest = exports.OnlyTranslateResponse = exports.NewsReadCoin = exports.NewsReadCoins = exports.PublishedNewsPaginationAdminResponse = exports.PublishedNewsSingleAdminResponse = exports.NewsPaginateDateAdminResponse = exports.NewsPaginationAdminResponse = exports.NewsSingleAdminResponse = exports.CategoryNews = exports.SlotNews = exports.PublishedNewsAdminDto = exports.NewsPaginateDateAdminDto = exports.NewsAdminDto = exports.NewsPaginationResponse = exports.NewsSingleResponse = exports.NewsDto = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class NewsDto extends protobuf_1.Message {
|
|
@@ -749,6 +749,31 @@ class NewsReadCategories extends protobuf_1.Message {
|
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
exports.NewsReadCategories = NewsReadCategories;
|
|
752
|
+
class NewsReadTickers extends protobuf_1.Message {
|
|
753
|
+
tickers = [];
|
|
754
|
+
constructor(data) {
|
|
755
|
+
super();
|
|
756
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
757
|
+
}
|
|
758
|
+
static runtime = protobuf_1.proto3;
|
|
759
|
+
static typeName = "micro.v1.news.NewsReadTickers";
|
|
760
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
761
|
+
{ no: 1, name: "tickers", kind: "scalar", T: 9, repeated: true },
|
|
762
|
+
]);
|
|
763
|
+
static fromBinary(bytes, options) {
|
|
764
|
+
return new NewsReadTickers().fromBinary(bytes, options);
|
|
765
|
+
}
|
|
766
|
+
static fromJson(jsonValue, options) {
|
|
767
|
+
return new NewsReadTickers().fromJson(jsonValue, options);
|
|
768
|
+
}
|
|
769
|
+
static fromJsonString(jsonString, options) {
|
|
770
|
+
return new NewsReadTickers().fromJsonString(jsonString, options);
|
|
771
|
+
}
|
|
772
|
+
static equals(a, b) {
|
|
773
|
+
return protobuf_1.proto3.util.equals(NewsReadTickers, a, b);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
exports.NewsReadTickers = NewsReadTickers;
|
|
752
777
|
class TranslateRequest extends protobuf_1.Message {
|
|
753
778
|
id = "";
|
|
754
779
|
language = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
|
|
2
2
|
import { SundownPaginationResponse, SundownSingleResponse } from "./sundown_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
|
-
import { NewsAdminPaginateRequest, NewsPaginateDateAdminResponse, NewsPaginationAdminResponse, NewsPaginationResponse, NewsPublishRequest, NewsReadCategories, NewsReadCoins, NewsReadSlots, NewsSingleAdminResponse, NewsSingleResponse, NewsStoreRequest, NewsUpdateRequest, OnlyTranslateRequest, OnlyTranslateResponse, ReadRequest, TranslateRequest } from "./news_messages_pb.js";
|
|
4
|
+
import { NewsAdminPaginateRequest, NewsPaginateDateAdminResponse, NewsPaginationAdminResponse, NewsPaginationResponse, NewsPublishRequest, NewsReadCategories, NewsReadCoins, NewsReadSlots, NewsReadTickers, NewsSingleAdminResponse, NewsSingleResponse, NewsStoreRequest, NewsUpdateRequest, OnlyTranslateRequest, OnlyTranslateResponse, ReadRequest, TranslateRequest } from "./news_messages_pb.js";
|
|
5
5
|
import { BlogPaginateDateAdminResponse, BlogPaginationAdminResponse, BlogPaginationResponse, BlogPublishRequest, BlogReadCategories, BlogReadSlots, BlogSingleAdminResponse, BlogSingleResponse, BlogUpdateRequest } from "./blog_messages_pb.js";
|
|
6
6
|
import { CalendarPaginateDateResponse, CalendarPaginationResponse, CalendarSingleResponse, CalendarStoreRequest } from "./calendar_messages_pb.js";
|
|
7
7
|
import { EconomicCalendarResponse, StoreEconomicCalendarRequest } from "./economic_calendar_messages_pb.js";
|
|
@@ -63,6 +63,12 @@ export declare const PNewsService: {
|
|
|
63
63
|
readonly O: typeof NewsReadCategories;
|
|
64
64
|
readonly kind: MethodKind.ServerStreaming;
|
|
65
65
|
};
|
|
66
|
+
readonly readTickers: {
|
|
67
|
+
readonly name: "ReadTickers";
|
|
68
|
+
readonly I: typeof EmptyRequest;
|
|
69
|
+
readonly O: typeof NewsReadTickers;
|
|
70
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
71
|
+
};
|
|
66
72
|
};
|
|
67
73
|
};
|
|
68
74
|
export declare const PBlogService: {
|
|
@@ -66,6 +66,12 @@ exports.PNewsService = {
|
|
|
66
66
|
O: news_messages_pb_js_1.NewsReadCategories,
|
|
67
67
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
68
68
|
},
|
|
69
|
+
readTickers: {
|
|
70
|
+
name: "ReadTickers",
|
|
71
|
+
I: general_pb_js_1.EmptyRequest,
|
|
72
|
+
O: news_messages_pb_js_1.NewsReadTickers,
|
|
73
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
74
|
+
},
|
|
69
75
|
}
|
|
70
76
|
};
|
|
71
77
|
exports.PBlogService = {
|
|
@@ -6,7 +6,7 @@ import { BlogPaginateDateAdminResponse, BlogPaginationAdminResponse, BlogPaginat
|
|
|
6
6
|
import { CalendarPaginateDateResponse, CalendarPaginationResponse, CalendarSingleResponse, CalendarStoreRequest } from "./calendar_messages_nest";
|
|
7
7
|
import { EconomicCalendarResponse, StoreEconomicCalendarRequest } from "./economic_calendar_messages_nest";
|
|
8
8
|
import { CheckSeoRequest, CheckSeoResponse, CheckSlugRequest, CheckSlugResponse, GenerateAiContentOnlyRequest, GenerateAiContentOnlyResponse, GenerateAiContentRequest, GenerateAiContentResponse, GenerateAiMetaOnlyRequest, GenerateAiMetaOnlyResponse, JrBlogCategoryCreateRequest, JrBlogCategoryResponse, JrBlogCreateRequest, JrBlogEditRequest, JrBlogListRequest, JrBlogListResponse, JrBlogPublishRequest, JrBlogReadCategories, JrBlogReadSlots, JrBlogSingleResponse, JrBlogSlotCreateRequest, JrBlogSlotResponse, SeoRequirementsResponse } from "./jr_blog_messages_nest";
|
|
9
|
-
import { NewsAdminPaginateRequest, NewsPaginateDateAdminResponse, NewsPaginationAdminResponse, NewsPaginationResponse, NewsPublishRequest, NewsReadCategories, NewsReadCoins, NewsReadSlots, NewsSingleAdminResponse, NewsSingleResponse, NewsStoreRequest, NewsUpdateRequest, OnlyTranslateRequest, OnlyTranslateResponse, ReadRequest, TranslateRequest } from "./news_messages_nest";
|
|
9
|
+
import { NewsAdminPaginateRequest, NewsPaginateDateAdminResponse, NewsPaginationAdminResponse, NewsPaginationResponse, NewsPublishRequest, NewsReadCategories, NewsReadCoins, NewsReadSlots, NewsReadTickers, NewsSingleAdminResponse, NewsSingleResponse, NewsStoreRequest, NewsUpdateRequest, OnlyTranslateRequest, OnlyTranslateResponse, ReadRequest, TranslateRequest } from "./news_messages_nest";
|
|
10
10
|
import { SundownPaginationResponse, SundownSingleResponse } from "./sundown_messages_nest";
|
|
11
11
|
export declare const protobufPackage = "micro.v1.news";
|
|
12
12
|
export declare const MICRO_V1_NEWS_PACKAGE_NAME = "micro.v1.news";
|
|
@@ -28,6 +28,7 @@ export interface PNewsServiceClient {
|
|
|
28
28
|
paginateFrom(request: PaginateFromRequest, metadata?: Metadata): Observable<NewsPaginationResponse>;
|
|
29
29
|
readAllByCoin(request: PaginateRequest, metadata?: Metadata): Observable<NewsPaginationResponse>;
|
|
30
30
|
readCategories(request: EmptyRequest, metadata?: Metadata): Observable<NewsReadCategories>;
|
|
31
|
+
readTickers(request: EmptyRequest, metadata?: Metadata): Observable<NewsReadTickers>;
|
|
31
32
|
}
|
|
32
33
|
export interface PNewsServiceController {
|
|
33
34
|
read(request: ByIdRequest, metadata?: Metadata): Observable<NewsSingleResponse>;
|
|
@@ -35,6 +36,7 @@ export interface PNewsServiceController {
|
|
|
35
36
|
paginateFrom(request: PaginateFromRequest, metadata?: Metadata): Observable<NewsPaginationResponse>;
|
|
36
37
|
readAllByCoin(request: PaginateRequest, metadata?: Metadata): Observable<NewsPaginationResponse>;
|
|
37
38
|
readCategories(request: EmptyRequest, metadata?: Metadata): Observable<NewsReadCategories>;
|
|
39
|
+
readTickers(request: EmptyRequest, metadata?: Metadata): Observable<NewsReadTickers>;
|
|
38
40
|
}
|
|
39
41
|
export declare function PNewsServiceControllerMethods(): (constructor: Function) => void;
|
|
40
42
|
export declare const P_NEWS_SERVICE_NAME = "PNewsService";
|
|
@@ -33,7 +33,14 @@ function PSundownServiceControllerMethods() {
|
|
|
33
33
|
exports.P_SUNDOWN_SERVICE_NAME = "PSundownService";
|
|
34
34
|
function PNewsServiceControllerMethods() {
|
|
35
35
|
return function (constructor) {
|
|
36
|
-
const grpcMethods = [
|
|
36
|
+
const grpcMethods = [
|
|
37
|
+
"read",
|
|
38
|
+
"paginate",
|
|
39
|
+
"paginateFrom",
|
|
40
|
+
"readAllByCoin",
|
|
41
|
+
"readCategories",
|
|
42
|
+
"readTickers",
|
|
43
|
+
];
|
|
37
44
|
for (const method of grpcMethods) {
|
|
38
45
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
39
46
|
(0, microservices_1.GrpcMethod)("PNewsService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ service PNewsService {
|
|
|
24
24
|
rpc PaginateFrom(PaginateFromRequest) returns(stream NewsPaginationResponse) {}
|
|
25
25
|
rpc ReadAllByCoin(PaginateRequest) returns(stream NewsPaginationResponse) {}
|
|
26
26
|
rpc ReadCategories(EmptyRequest) returns(stream NewsReadCategories) {}
|
|
27
|
+
rpc ReadTickers(EmptyRequest) returns(stream NewsReadTickers) {}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
service PBlogService {
|