You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -44,6 +44,10 @@ export interface StockByIdQuery {
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2
|
||||
*/
|
||||
IDs: EntityID[];
|
||||
/**
|
||||
* @generated from protobuf field: api.StockQueryOptions Options = 3
|
||||
*/
|
||||
Options?: StockQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockByIdResult
|
||||
@@ -82,6 +86,10 @@ export interface StockByFilterQuery {
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 7
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* @generated from protobuf field: api.StockQueryOptions Options = 8
|
||||
*/
|
||||
Options?: StockQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockByFilterResult
|
||||
@@ -100,6 +108,11 @@ export interface StockByFilterResult {
|
||||
*/
|
||||
queryContext: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockQueryOptions
|
||||
*/
|
||||
export interface StockQueryOptions {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockByMatchQuery
|
||||
*/
|
||||
@@ -120,6 +133,10 @@ export interface StockByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.StockQueryOptions Options = 7
|
||||
*/
|
||||
Options?: StockQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockByMatchResult
|
||||
@@ -135,7 +152,8 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
constructor() {
|
||||
super("api.StockByIdQuery", [
|
||||
{ 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, options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
}
|
||||
create(value?: PartialMessage<StockByIdQuery>): StockByIdQuery {
|
||||
@@ -156,6 +174,9 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
case /* repeated api.EntityID IDs */ 2:
|
||||
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.StockQueryOptions Options */ 3:
|
||||
message.Options = StockQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -174,6 +195,9 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
/* 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();
|
||||
/* api.StockQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
StockQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -245,7 +269,8 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
|
||||
{ no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }
|
||||
{ no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 8, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<StockByFilterQuery>): StockByFilterQuery {
|
||||
@@ -274,6 +299,9 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
case /* repeated api.BlockFilter BlockFilters */ 7:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.StockQueryOptions Options */ 8:
|
||||
message.Options = StockQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -298,6 +326,9 @@ class StockByFilterQuery$Type extends MessageType<StockByFilterQuery> {
|
||||
/* 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();
|
||||
/* api.StockQueryOptions Options = 8; */
|
||||
if (message.Options)
|
||||
StockQueryOptions.internalBinaryWrite(message.Options, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -371,12 +402,51 @@ class StockByFilterResult$Type extends MessageType<StockByFilterResult> {
|
||||
*/
|
||||
export const StockByFilterResult = new StockByFilterResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StockQueryOptions$Type extends MessageType<StockQueryOptions> {
|
||||
constructor() {
|
||||
super("api.StockQueryOptions", []);
|
||||
}
|
||||
create(value?: PartialMessage<StockQueryOptions>): StockQueryOptions {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StockQueryOptions>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockQueryOptions): StockQueryOptions {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockQueryOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.StockQueryOptions
|
||||
*/
|
||||
export const StockQueryOptions = new StockQueryOptions$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.StockByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }
|
||||
{ no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } },
|
||||
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<StockByMatchQuery>): StockByMatchQuery {
|
||||
@@ -401,6 +471,9 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.StockQueryOptions Options */ 7:
|
||||
message.Options = StockQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -422,6 +495,9 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
|
||||
/* 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();
|
||||
/* api.StockQueryOptions Options = 7; */
|
||||
if (message.Options)
|
||||
StockQueryOptions.internalBinaryWrite(message.Options, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user