You've already forked npm-core-sdk
Latest generation
This commit is contained in:
106
itemQuery.ts
106
itemQuery.ts
@@ -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 "itemQuery.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { CountLinesResult } from "./shared";
|
||||
@@ -33,11 +33,11 @@ import { QueryProjectHeader } from "./shared";
|
||||
*/
|
||||
export interface ItemByIdQuery {
|
||||
/**
|
||||
* @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[];
|
||||
}
|
||||
@@ -46,13 +46,13 @@ export interface ItemByIdQuery {
|
||||
*/
|
||||
export interface ItemByIdResult {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.ResultHeader Header = 1
|
||||
*/
|
||||
Header?: ResultHeader;
|
||||
/**
|
||||
* Aggregation object message
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Item Objects = 2 [json_name = "Objects"];
|
||||
* @generated from protobuf field: repeated api.Item Objects = 2
|
||||
*/
|
||||
Objects: Item[];
|
||||
}
|
||||
@@ -61,23 +61,23 @@ export interface ItemByIdResult {
|
||||
*/
|
||||
export interface ItemByFilterQuery {
|
||||
/**
|
||||
* @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 = 6 [json_name = "BlockFilters"];
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 6
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
}
|
||||
@@ -86,15 +86,15 @@ export interface ItemByFilterQuery {
|
||||
*/
|
||||
export interface ItemByFilterResult {
|
||||
/**
|
||||
* @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.Item Objects = 2 [json_name = "Objects"];
|
||||
* @generated from protobuf field: repeated api.Item Objects = 2
|
||||
*/
|
||||
Objects: Item[];
|
||||
/**
|
||||
* @generated from protobuf field: string queryContext = 3;
|
||||
* @generated from protobuf field: string queryContext = 3
|
||||
*/
|
||||
queryContext: string;
|
||||
}
|
||||
@@ -103,19 +103,19 @@ export interface ItemByFilterResult {
|
||||
*/
|
||||
export interface ItemByMatchQuery {
|
||||
/**
|
||||
* @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[];
|
||||
}
|
||||
@@ -124,7 +124,7 @@ export interface ItemByMatchQuery {
|
||||
*/
|
||||
export interface ItemByMatchResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];
|
||||
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2
|
||||
*/
|
||||
MatchResults: MatchFieldResult[];
|
||||
}
|
||||
@@ -133,19 +133,19 @@ export interface ItemByMatchResult {
|
||||
*/
|
||||
export interface GetLVDetailedQuantityQuery {
|
||||
/**
|
||||
* @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: api.EntityID ID = 2 [json_name = "ID"];
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: string LVBranchID = 3 [json_name = "LVBranchID"];
|
||||
* @generated from protobuf field: string LVBranchID = 3
|
||||
*/
|
||||
LVBranchID: string;
|
||||
/**
|
||||
* @generated from protobuf field: float quantityInbaseLv = 4;
|
||||
* @generated from protobuf field: float quantityInbaseLv = 4
|
||||
*/
|
||||
quantityInbaseLv: number;
|
||||
}
|
||||
@@ -154,7 +154,7 @@ export interface GetLVDetailedQuantityQuery {
|
||||
*/
|
||||
export interface GetLVDetailedQuantityResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.LVDetailedQuantity LVDetailedQuantity = 1 [json_name = "LVDetailedQuantity"];
|
||||
* @generated from protobuf field: repeated api.LVDetailedQuantity LVDetailedQuantity = 1
|
||||
*/
|
||||
LVDetailedQuantity: LVDetailedQuantity[];
|
||||
}
|
||||
@@ -178,10 +178,10 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
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:
|
||||
@@ -196,10 +196,10 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ItemByIdQuery, 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;
|
||||
@@ -232,10 +232,10 @@ class ItemByIdResult$Type extends MessageType<ItemByIdResult> {
|
||||
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.Item Objects = 2 [json_name = "Objects"];*/ 2:
|
||||
case /* repeated api.Item Objects */ 2:
|
||||
message.Objects.push(Item.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -250,10 +250,10 @@ class ItemByIdResult$Type extends MessageType<ItemByIdResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ItemByIdResult, 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.Item Objects = 2 [json_name = "Objects"]; */
|
||||
/* repeated api.Item Objects = 2; */
|
||||
for (let i = 0; i < message.Objects.length; i++)
|
||||
Item.internalBinaryWrite(message.Objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -290,7 +290,7 @@ class ItemByFilterQuery$Type extends MessageType<ItemByFilterQuery> {
|
||||
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:
|
||||
@@ -299,7 +299,7 @@ class ItemByFilterQuery$Type extends MessageType<ItemByFilterQuery> {
|
||||
case /* string queryContext */ 5:
|
||||
message.queryContext = reader.string();
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"];*/ 6:
|
||||
case /* repeated api.BlockFilter BlockFilters */ 6:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -314,7 +314,7 @@ class ItemByFilterQuery$Type extends MessageType<ItemByFilterQuery> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ItemByFilterQuery, 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; */
|
||||
@@ -323,7 +323,7 @@ class ItemByFilterQuery$Type extends MessageType<ItemByFilterQuery> {
|
||||
/* string queryContext = 5; */
|
||||
if (message.queryContext !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.queryContext);
|
||||
/* repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"]; */
|
||||
/* repeated api.BlockFilter BlockFilters = 6; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -358,10 +358,10 @@ class ItemByFilterResult$Type extends MessageType<ItemByFilterResult> {
|
||||
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.Item Objects = 2 [json_name = "Objects"];*/ 2:
|
||||
case /* repeated api.Item Objects */ 2:
|
||||
message.Objects.push(Item.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string queryContext */ 3:
|
||||
@@ -379,10 +379,10 @@ class ItemByFilterResult$Type extends MessageType<ItemByFilterResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ItemByFilterResult, 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.Item Objects = 2 [json_name = "Objects"]; */
|
||||
/* repeated api.Item Objects = 2; */
|
||||
for (let i = 0; i < message.Objects.length; i++)
|
||||
Item.internalBinaryWrite(message.Objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string queryContext = 3; */
|
||||
@@ -420,13 +420,13 @@ class ItemByMatchQuery$Type extends MessageType<ItemByMatchQuery> {
|
||||
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:
|
||||
@@ -441,13 +441,13 @@ class ItemByMatchQuery$Type extends MessageType<ItemByMatchQuery> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ItemByMatchQuery, 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;
|
||||
@@ -479,7 +479,7 @@ class ItemByMatchResult$Type extends MessageType<ItemByMatchResult> {
|
||||
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:
|
||||
@@ -494,7 +494,7 @@ class ItemByMatchResult$Type extends MessageType<ItemByMatchResult> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ItemByMatchResult, 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;
|
||||
@@ -530,13 +530,13 @@ class GetLVDetailedQuantityQuery$Type extends MessageType<GetLVDetailedQuantityQ
|
||||
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 /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* string LVBranchID = 3 [json_name = "LVBranchID"];*/ 3:
|
||||
case /* string LVBranchID */ 3:
|
||||
message.LVBranchID = reader.string();
|
||||
break;
|
||||
case /* float quantityInbaseLv */ 4:
|
||||
@@ -554,13 +554,13 @@ class GetLVDetailedQuantityQuery$Type extends MessageType<GetLVDetailedQuantityQ
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetLVDetailedQuantityQuery, 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();
|
||||
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string LVBranchID = 3 [json_name = "LVBranchID"]; */
|
||||
/* string LVBranchID = 3; */
|
||||
if (message.LVBranchID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.LVBranchID);
|
||||
/* float quantityInbaseLv = 4; */
|
||||
@@ -595,7 +595,7 @@ class GetLVDetailedQuantityResult$Type extends MessageType<GetLVDetailedQuantity
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.LVDetailedQuantity LVDetailedQuantity = 1 [json_name = "LVDetailedQuantity"];*/ 1:
|
||||
case /* repeated api.LVDetailedQuantity LVDetailedQuantity */ 1:
|
||||
message.LVDetailedQuantity.push(LVDetailedQuantity.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -610,7 +610,7 @@ class GetLVDetailedQuantityResult$Type extends MessageType<GetLVDetailedQuantity
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetLVDetailedQuantityResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.LVDetailedQuantity LVDetailedQuantity = 1 [json_name = "LVDetailedQuantity"]; */
|
||||
/* repeated api.LVDetailedQuantity LVDetailedQuantity = 1; */
|
||||
for (let i = 0; i < message.LVDetailedQuantity.length; i++)
|
||||
LVDetailedQuantity.internalBinaryWrite(message.LVDetailedQuantity[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user