You've already forked npm-core-sdk
Latest generation
This commit is contained in:
18
itemQuery.ts
18
itemQuery.ts
@@ -18,13 +18,14 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { LVDetailedQuantity } from "./repositoryShared";
|
||||
import { EntityID } from "./shared";
|
||||
import { MatchFieldResult } from "./shared";
|
||||
import { MatchField } from "./shared";
|
||||
import { EntityType } from "./shared";
|
||||
import { BlockFilter } from "./shared";
|
||||
import { Item } from "./item";
|
||||
import { ResultHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { QueryEntityID } from "./shared";
|
||||
import { QueryProjectHeader } from "./shared";
|
||||
//
|
||||
// Query-server services
|
||||
@@ -38,10 +39,9 @@ export interface ItemByIdQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2 [deprecated = true]
|
||||
* @generated from protobuf field: repeated api.QueryEntityID IDs = 2
|
||||
*/
|
||||
IDs: EntityID[];
|
||||
IDs: QueryEntityID[];
|
||||
/**
|
||||
* @generated from protobuf field: api.ItemQueryOptions Options = 3
|
||||
*/
|
||||
@@ -206,7 +206,7 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
constructor() {
|
||||
super("api.ItemByIdQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID },
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ItemQueryOptions },
|
||||
{ no: 4, name: "RefIDs", kind: "scalar", localName: "RefIDs", jsonName: "RefIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
@@ -227,8 +227,8 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.EntityID IDs = 2 [deprecated = true] */ 2:
|
||||
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.QueryEntityID IDs */ 2:
|
||||
message.IDs.push(QueryEntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.ItemQueryOptions Options */ 3:
|
||||
message.Options = ItemQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
@@ -251,9 +251,9 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.EntityID IDs = 2 [deprecated = true]; */
|
||||
/* repeated api.QueryEntityID IDs = 2; */
|
||||
for (let i = 0; i < message.IDs.length; i++)
|
||||
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
QueryEntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ItemQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
ItemQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user