You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -39,6 +39,10 @@ export interface PartnerByIdQuery {
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2
|
||||
*/
|
||||
IDs: EntityID[];
|
||||
/**
|
||||
* @generated from protobuf field: api.PartnerQueryOptions Options = 3
|
||||
*/
|
||||
Options?: PartnerQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.PartnerByIdResult
|
||||
@@ -77,6 +81,10 @@ export interface PartnerByFilterQuery {
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 6
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* @generated from protobuf field: api.PartnerQueryOptions Options = 7
|
||||
*/
|
||||
Options?: PartnerQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.PartnerByFilterResult
|
||||
@@ -95,6 +103,11 @@ export interface PartnerByFilterResult {
|
||||
*/
|
||||
queryContext: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.PartnerQueryOptions
|
||||
*/
|
||||
export interface PartnerQueryOptions {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.PartnerByMatchQuery
|
||||
*/
|
||||
@@ -130,7 +143,8 @@ class PartnerByIdQuery$Type extends MessageType<PartnerByIdQuery> {
|
||||
constructor() {
|
||||
super("api.PartnerByIdQuery", [
|
||||
{ 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: () => PartnerQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
}
|
||||
create(value?: PartialMessage<PartnerByIdQuery>): PartnerByIdQuery {
|
||||
@@ -151,6 +165,9 @@ class PartnerByIdQuery$Type extends MessageType<PartnerByIdQuery> {
|
||||
case /* repeated api.EntityID IDs */ 2:
|
||||
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.PartnerQueryOptions Options */ 3:
|
||||
message.Options = PartnerQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -169,6 +186,9 @@ class PartnerByIdQuery$Type extends MessageType<PartnerByIdQuery> {
|
||||
/* 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.PartnerQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
PartnerQueryOptions.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);
|
||||
@@ -240,7 +260,8 @@ class PartnerByFilterQuery$Type extends MessageType<PartnerByFilterQuery> {
|
||||
{ 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: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }
|
||||
{ no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => PartnerQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<PartnerByFilterQuery>): PartnerByFilterQuery {
|
||||
@@ -269,6 +290,9 @@ class PartnerByFilterQuery$Type extends MessageType<PartnerByFilterQuery> {
|
||||
case /* repeated api.BlockFilter BlockFilters */ 6:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.PartnerQueryOptions Options */ 7:
|
||||
message.Options = PartnerQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -293,6 +317,9 @@ class PartnerByFilterQuery$Type extends MessageType<PartnerByFilterQuery> {
|
||||
/* 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();
|
||||
/* api.PartnerQueryOptions Options = 7; */
|
||||
if (message.Options)
|
||||
PartnerQueryOptions.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);
|
||||
@@ -366,6 +393,44 @@ class PartnerByFilterResult$Type extends MessageType<PartnerByFilterResult> {
|
||||
*/
|
||||
export const PartnerByFilterResult = new PartnerByFilterResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class PartnerQueryOptions$Type extends MessageType<PartnerQueryOptions> {
|
||||
constructor() {
|
||||
super("api.PartnerQueryOptions", []);
|
||||
}
|
||||
create(value?: PartialMessage<PartnerQueryOptions>): PartnerQueryOptions {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PartnerQueryOptions>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerQueryOptions): PartnerQueryOptions {
|
||||
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: PartnerQueryOptions, 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.PartnerQueryOptions
|
||||
*/
|
||||
export const PartnerQueryOptions = new PartnerQueryOptions$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class PartnerByMatchQuery$Type extends MessageType<PartnerByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.PartnerByMatchQuery", [
|
||||
|
||||
Reference in New Issue
Block a user