You've already forked npm-core-sdk
295 lines
11 KiB
TypeScript
295 lines
11 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file partnerQuery.proto (package api, syntax proto3)
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
import { BlockFilter, EntityID, MatchField, MatchFieldResult, QueryProjectHeader, ResultHeader } from "./shared_pb.js";
|
|
import { Partner } from "./partner_pb.js";
|
|
|
|
/**
|
|
* @generated from message api.PartnerByIdQuery
|
|
*/
|
|
export class PartnerByIdQuery extends Message<PartnerByIdQuery> {
|
|
/**
|
|
* @generated from field: api.QueryProjectHeader Header = 1;
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.EntityID IDs = 2;
|
|
*/
|
|
IDs: EntityID[] = [];
|
|
|
|
constructor(data?: PartialMessage<PartnerByIdQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.PartnerByIdQuery";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
|
|
{ no: 2, name: "IDs", kind: "message", T: EntityID, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PartnerByIdQuery {
|
|
return new PartnerByIdQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PartnerByIdQuery {
|
|
return new PartnerByIdQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PartnerByIdQuery {
|
|
return new PartnerByIdQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PartnerByIdQuery | PlainMessage<PartnerByIdQuery> | undefined, b: PartnerByIdQuery | PlainMessage<PartnerByIdQuery> | undefined): boolean {
|
|
return proto3.util.equals(PartnerByIdQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.PartnerByIdResult
|
|
*/
|
|
export class PartnerByIdResult extends Message<PartnerByIdResult> {
|
|
/**
|
|
* @generated from field: api.ResultHeader Header = 1;
|
|
*/
|
|
Header?: ResultHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.Partner Objects = 2;
|
|
*/
|
|
Objects: Partner[] = [];
|
|
|
|
constructor(data?: PartialMessage<PartnerByIdResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.PartnerByIdResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", T: Partner, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PartnerByIdResult {
|
|
return new PartnerByIdResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PartnerByIdResult {
|
|
return new PartnerByIdResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PartnerByIdResult {
|
|
return new PartnerByIdResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PartnerByIdResult | PlainMessage<PartnerByIdResult> | undefined, b: PartnerByIdResult | PlainMessage<PartnerByIdResult> | undefined): boolean {
|
|
return proto3.util.equals(PartnerByIdResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.PartnerByFilterQuery
|
|
*/
|
|
export class PartnerByFilterQuery extends Message<PartnerByFilterQuery> {
|
|
/**
|
|
* @generated from field: api.QueryProjectHeader Header = 1;
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
|
|
/**
|
|
* Number of maximum result
|
|
*
|
|
* @generated from field: string limitFilter = 4;
|
|
*/
|
|
limitFilter = "";
|
|
|
|
/**
|
|
* @generated from field: string queryContext = 5;
|
|
*/
|
|
queryContext = "";
|
|
|
|
/**
|
|
* 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 field: repeated api.BlockFilter BlockFilters = 6;
|
|
*/
|
|
BlockFilters: BlockFilter[] = [];
|
|
|
|
constructor(data?: PartialMessage<PartnerByFilterQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.PartnerByFilterQuery";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
|
|
{ no: 4, name: "limitFilter", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 5, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 6, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PartnerByFilterQuery {
|
|
return new PartnerByFilterQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PartnerByFilterQuery {
|
|
return new PartnerByFilterQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PartnerByFilterQuery {
|
|
return new PartnerByFilterQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PartnerByFilterQuery | PlainMessage<PartnerByFilterQuery> | undefined, b: PartnerByFilterQuery | PlainMessage<PartnerByFilterQuery> | undefined): boolean {
|
|
return proto3.util.equals(PartnerByFilterQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.PartnerByFilterResult
|
|
*/
|
|
export class PartnerByFilterResult extends Message<PartnerByFilterResult> {
|
|
/**
|
|
* @generated from field: api.ResultHeader Header = 1;
|
|
*/
|
|
Header?: ResultHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.Partner Objects = 2;
|
|
*/
|
|
Objects: Partner[] = [];
|
|
|
|
/**
|
|
* @generated from field: string queryContext = 3;
|
|
*/
|
|
queryContext = "";
|
|
|
|
constructor(data?: PartialMessage<PartnerByFilterResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.PartnerByFilterResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", T: Partner, repeated: true },
|
|
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PartnerByFilterResult {
|
|
return new PartnerByFilterResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PartnerByFilterResult {
|
|
return new PartnerByFilterResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PartnerByFilterResult {
|
|
return new PartnerByFilterResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PartnerByFilterResult | PlainMessage<PartnerByFilterResult> | undefined, b: PartnerByFilterResult | PlainMessage<PartnerByFilterResult> | undefined): boolean {
|
|
return proto3.util.equals(PartnerByFilterResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.PartnerByMatchQuery
|
|
*/
|
|
export class PartnerByMatchQuery extends Message<PartnerByMatchQuery> {
|
|
/**
|
|
* @generated from 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 field: repeated api.BlockFilter BlockFilters = 7;
|
|
*/
|
|
BlockFilters: BlockFilter[] = [];
|
|
|
|
/**
|
|
* MatchField list structure, for FindMatching query
|
|
*
|
|
* @generated from field: repeated api.MatchField MatchFields = 8;
|
|
*/
|
|
MatchFields: MatchField[] = [];
|
|
|
|
constructor(data?: PartialMessage<PartnerByMatchQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.PartnerByMatchQuery";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
|
|
{ no: 7, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
|
|
{ no: 8, name: "MatchFields", kind: "message", T: MatchField, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PartnerByMatchQuery {
|
|
return new PartnerByMatchQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PartnerByMatchQuery {
|
|
return new PartnerByMatchQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PartnerByMatchQuery {
|
|
return new PartnerByMatchQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PartnerByMatchQuery | PlainMessage<PartnerByMatchQuery> | undefined, b: PartnerByMatchQuery | PlainMessage<PartnerByMatchQuery> | undefined): boolean {
|
|
return proto3.util.equals(PartnerByMatchQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.PartnerByMatchResult
|
|
*/
|
|
export class PartnerByMatchResult extends Message<PartnerByMatchResult> {
|
|
/**
|
|
* @generated from field: repeated api.MatchFieldResult MatchResults = 2;
|
|
*/
|
|
MatchResults: MatchFieldResult[] = [];
|
|
|
|
constructor(data?: PartialMessage<PartnerByMatchResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.PartnerByMatchResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PartnerByMatchResult {
|
|
return new PartnerByMatchResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PartnerByMatchResult {
|
|
return new PartnerByMatchResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PartnerByMatchResult {
|
|
return new PartnerByMatchResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PartnerByMatchResult | PlainMessage<PartnerByMatchResult> | undefined, b: PartnerByMatchResult | PlainMessage<PartnerByMatchResult> | undefined): boolean {
|
|
return proto3.util.equals(PartnerByMatchResult, a, b);
|
|
}
|
|
}
|
|
|