You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "stockQuery.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { FindKPIDataResult } from "./clickhouse";
|
||||
@@ -37,11 +37,11 @@ import { QueryProjectHeader } from "./shared";
|
||||
*/
|
||||
export interface StockByIdQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2 [json_name = "IDs"];
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2
|
||||
*/
|
||||
IDs: EntityID[];
|
||||
}
|
||||
@@ -50,11 +50,11 @@ export interface StockByIdQuery {
|
||||
*/
|
||||
export interface StockByIdResult {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.ResultHeader Header = 1
|
||||
*/
|
||||
Header?: ResultHeader;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Stock Objects = 2 [json_name = "Objects"];
|
||||
* @generated from protobuf field: repeated api.Stock Objects = 2
|
||||
*/
|
||||
Objects: Stock[];
|
||||
}
|
||||
@@ -63,23 +63,23 @@ export interface StockByIdResult {
|
||||
*/
|
||||
export interface StockByFilterQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* Number of maximum result
|
||||
*
|
||||
* @generated from protobuf field: string limitFilter = 4;
|
||||
* @generated from protobuf field: string limitFilter = 4
|
||||
*/
|
||||
limitFilter: string;
|
||||
/**
|
||||
* @generated from protobuf field: string queryContext = 5;
|
||||
* @generated from protobuf field: string queryContext = 5
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
*
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 7 [json_name = "BlockFilters"];
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 7
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
}
|
||||
@@ -88,15 +88,15 @@ export interface StockByFilterQuery {
|
||||
*/
|
||||
export interface StockByFilterResult {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.ResultHeader Header = 1
|
||||
*/
|
||||
Header?: ResultHeader;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Stock Objects = 2 [json_name = "Objects"];
|
||||
* @generated from protobuf field: repeated api.Stock Objects = 2
|
||||
*/
|
||||
Objects: Stock[];
|
||||
/**
|
||||
* @generated from protobuf field: string queryContext = 3;
|
||||
* @generated from protobuf field: string queryContext = 3
|
||||
*/
|
||||
queryContext: string;
|
||||
}
|
||||
@@ -105,19 +105,19 @@ export interface StockByFilterResult {
|
||||
*/
|
||||
export interface StockByMatchQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
*
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"];
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 5
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* MatchField list structure, for FindMatching query
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6 [json_name = "MatchFields"];
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
}
|
||||
@@ -126,7 +126,7 @@ export interface StockByMatchQuery {
|
||||
*/
|
||||
export interface StockByMatchResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];
|
||||
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2
|
||||
*/
|
||||
MatchResults: MatchFieldResult[];
|
||||
}
|
||||
@@ -150,10 +150,10 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.EntityID IDs = 2 [json_name = "IDs"];*/ 2:
|
||||
case /* repeated api.EntityID IDs */ 2:
|
||||
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -168,10 +168,10 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockByIdQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.EntityID IDs = 2 [json_name = "IDs"]; */
|
||||
/* repeated api.EntityID IDs = 2; */
|
||||
for (let i = 0; i < message.IDs.length; i++)
|
||||
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -204,10 +204,10 @@ class StockByIdResult$Type extends MessageType<StockByIdResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResultHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.ResultHeader Header */ 1:
|
||||
message.Header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.Stock Objects = 2 [json_name = "Objects"];*/ 2:
|
||||
case /* repeated api.Stock Objects */ 2:
|
||||
message.Objects.push(Stock.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -222,10 +222,10 @@ class StockByIdResult$Type extends MessageType<StockByIdResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockByIdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResultHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.ResultHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResultHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Stock Objects = 2 [json_name = "Objects"]; */
|
||||
/* repeated api.Stock Objects = 2; */
|
||||
for (let i = 0; i < message.Objects.length; i++)
|
||||
Stock.internalBinaryWrite(message.Objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -262,7 +262,7 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string limitFilter */ 4:
|
||||
@@ -271,7 +271,7 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
case /* string queryContext */ 5:
|
||||
message.queryContext = reader.string();
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters = 7 [json_name = "BlockFilters"];*/ 7:
|
||||
case /* repeated api.BlockFilter BlockFilters */ 7:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -286,7 +286,7 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockByFilterQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string limitFilter = 4; */
|
||||
@@ -295,7 +295,7 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
/* string queryContext = 5; */
|
||||
if (message.queryContext !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.queryContext);
|
||||
/* repeated api.BlockFilter BlockFilters = 7 [json_name = "BlockFilters"]; */
|
||||
/* repeated api.BlockFilter BlockFilters = 7; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -330,10 +330,10 @@ class StockByFilterResult$Type extends MessageType<StockByFilterResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResultHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.ResultHeader Header */ 1:
|
||||
message.Header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.Stock Objects = 2 [json_name = "Objects"];*/ 2:
|
||||
case /* repeated api.Stock Objects */ 2:
|
||||
message.Objects.push(Stock.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string queryContext */ 3:
|
||||
@@ -351,10 +351,10 @@ class StockByFilterResult$Type extends MessageType<StockByFilterResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockByFilterResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResultHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.ResultHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResultHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Stock Objects = 2 [json_name = "Objects"]; */
|
||||
/* repeated api.Stock Objects = 2; */
|
||||
for (let i = 0; i < message.Objects.length; i++)
|
||||
Stock.internalBinaryWrite(message.Objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string queryContext = 3; */
|
||||
@@ -392,13 +392,13 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"];*/ 5:
|
||||
case /* repeated api.BlockFilter BlockFilters */ 5:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.MatchField MatchFields = 6 [json_name = "MatchFields"];*/ 6:
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -413,13 +413,13 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"]; */
|
||||
/* repeated api.BlockFilter BlockFilters = 5; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MatchField MatchFields = 6 [json_name = "MatchFields"]; */
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -451,7 +451,7 @@ class StockByMatchResult$Type extends MessageType<StockByMatchResult> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];*/ 2:
|
||||
case /* repeated api.MatchFieldResult MatchResults */ 2:
|
||||
message.MatchResults.push(MatchFieldResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -466,7 +466,7 @@ class StockByMatchResult$Type extends MessageType<StockByMatchResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"]; */
|
||||
/* repeated api.MatchFieldResult MatchResults = 2; */
|
||||
for (let i = 0; i < message.MatchResults.length; i++)
|
||||
MatchFieldResult.internalBinaryWrite(message.MatchResults[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user