You've already forked npm-core-sdk
295 lines
10 KiB
TypeScript
295 lines
10 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file orderQuery.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 { Order } from "./order_pb.js";
|
|
|
|
/**
|
|
* @generated from message api.OrderByIdQuery
|
|
*/
|
|
export class OrderByIdQuery extends Message<OrderByIdQuery> {
|
|
/**
|
|
* @generated from field: api.QueryProjectHeader Header = 1;
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.EntityID IDs = 2;
|
|
*/
|
|
IDs: EntityID[] = [];
|
|
|
|
constructor(data?: PartialMessage<OrderByIdQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.OrderByIdQuery";
|
|
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>): OrderByIdQuery {
|
|
return new OrderByIdQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrderByIdQuery {
|
|
return new OrderByIdQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrderByIdQuery {
|
|
return new OrderByIdQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: OrderByIdQuery | PlainMessage<OrderByIdQuery> | undefined, b: OrderByIdQuery | PlainMessage<OrderByIdQuery> | undefined): boolean {
|
|
return proto3.util.equals(OrderByIdQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.OrderByIdResult
|
|
*/
|
|
export class OrderByIdResult extends Message<OrderByIdResult> {
|
|
/**
|
|
* @generated from field: api.ResultHeader Header = 1;
|
|
*/
|
|
Header?: ResultHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.Order Objects = 2;
|
|
*/
|
|
Objects: Order[] = [];
|
|
|
|
constructor(data?: PartialMessage<OrderByIdResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.OrderByIdResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", T: Order, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrderByIdResult {
|
|
return new OrderByIdResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrderByIdResult {
|
|
return new OrderByIdResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrderByIdResult {
|
|
return new OrderByIdResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: OrderByIdResult | PlainMessage<OrderByIdResult> | undefined, b: OrderByIdResult | PlainMessage<OrderByIdResult> | undefined): boolean {
|
|
return proto3.util.equals(OrderByIdResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.OrderByFilterQuery
|
|
*/
|
|
export class OrderByFilterQuery extends Message<OrderByFilterQuery> {
|
|
/**
|
|
* @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<OrderByFilterQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.OrderByFilterQuery";
|
|
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>): OrderByFilterQuery {
|
|
return new OrderByFilterQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrderByFilterQuery {
|
|
return new OrderByFilterQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrderByFilterQuery {
|
|
return new OrderByFilterQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: OrderByFilterQuery | PlainMessage<OrderByFilterQuery> | undefined, b: OrderByFilterQuery | PlainMessage<OrderByFilterQuery> | undefined): boolean {
|
|
return proto3.util.equals(OrderByFilterQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.OrderByFilterResult
|
|
*/
|
|
export class OrderByFilterResult extends Message<OrderByFilterResult> {
|
|
/**
|
|
* @generated from field: api.ResultHeader Header = 1;
|
|
*/
|
|
Header?: ResultHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.Order Objects = 2;
|
|
*/
|
|
Objects: Order[] = [];
|
|
|
|
/**
|
|
* @generated from field: string queryContext = 3;
|
|
*/
|
|
queryContext = "";
|
|
|
|
constructor(data?: PartialMessage<OrderByFilterResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.OrderByFilterResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", T: Order, repeated: true },
|
|
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrderByFilterResult {
|
|
return new OrderByFilterResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrderByFilterResult {
|
|
return new OrderByFilterResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrderByFilterResult {
|
|
return new OrderByFilterResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: OrderByFilterResult | PlainMessage<OrderByFilterResult> | undefined, b: OrderByFilterResult | PlainMessage<OrderByFilterResult> | undefined): boolean {
|
|
return proto3.util.equals(OrderByFilterResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.OrderByMatchQuery
|
|
*/
|
|
export class OrderByMatchQuery extends Message<OrderByMatchQuery> {
|
|
/**
|
|
* @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<OrderByMatchQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.OrderByMatchQuery";
|
|
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>): OrderByMatchQuery {
|
|
return new OrderByMatchQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrderByMatchQuery {
|
|
return new OrderByMatchQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrderByMatchQuery {
|
|
return new OrderByMatchQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: OrderByMatchQuery | PlainMessage<OrderByMatchQuery> | undefined, b: OrderByMatchQuery | PlainMessage<OrderByMatchQuery> | undefined): boolean {
|
|
return proto3.util.equals(OrderByMatchQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.OrderByMatchResult
|
|
*/
|
|
export class OrderByMatchResult extends Message<OrderByMatchResult> {
|
|
/**
|
|
* @generated from field: repeated api.MatchFieldResult MatchResults = 2;
|
|
*/
|
|
MatchResults: MatchFieldResult[] = [];
|
|
|
|
constructor(data?: PartialMessage<OrderByMatchResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.OrderByMatchResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrderByMatchResult {
|
|
return new OrderByMatchResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrderByMatchResult {
|
|
return new OrderByMatchResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrderByMatchResult {
|
|
return new OrderByMatchResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: OrderByMatchResult | PlainMessage<OrderByMatchResult> | undefined, b: OrderByMatchResult | PlainMessage<OrderByMatchResult> | undefined): boolean {
|
|
return proto3.util.equals(OrderByMatchResult, a, b);
|
|
}
|
|
}
|
|
|