You've already forked npm-core-sdk
293 lines
11 KiB
TypeScript
293 lines
11 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file handlingunitQuery.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 { Handlingunit } from "./handlingunit_pb.js";
|
|
|
|
/**
|
|
* @generated from message api.HandlingunitByIdQuery
|
|
*/
|
|
export class HandlingunitByIdQuery extends Message<HandlingunitByIdQuery> {
|
|
/**
|
|
* @generated from field: api.QueryProjectHeader Header = 1;
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.EntityID IDs = 2;
|
|
*/
|
|
IDs: EntityID[] = [];
|
|
|
|
constructor(data?: PartialMessage<HandlingunitByIdQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.HandlingunitByIdQuery";
|
|
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>): HandlingunitByIdQuery {
|
|
return new HandlingunitByIdQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandlingunitByIdQuery {
|
|
return new HandlingunitByIdQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandlingunitByIdQuery {
|
|
return new HandlingunitByIdQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: HandlingunitByIdQuery | PlainMessage<HandlingunitByIdQuery> | undefined, b: HandlingunitByIdQuery | PlainMessage<HandlingunitByIdQuery> | undefined): boolean {
|
|
return proto3.util.equals(HandlingunitByIdQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.HandlingunitByIdResult
|
|
*/
|
|
export class HandlingunitByIdResult extends Message<HandlingunitByIdResult> {
|
|
/**
|
|
* @generated from field: api.ResultHeader Header = 1;
|
|
*/
|
|
Header?: ResultHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.Handlingunit Objects = 2;
|
|
*/
|
|
Objects: Handlingunit[] = [];
|
|
|
|
constructor(data?: PartialMessage<HandlingunitByIdResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.HandlingunitByIdResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", T: Handlingunit, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandlingunitByIdResult {
|
|
return new HandlingunitByIdResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandlingunitByIdResult {
|
|
return new HandlingunitByIdResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandlingunitByIdResult {
|
|
return new HandlingunitByIdResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: HandlingunitByIdResult | PlainMessage<HandlingunitByIdResult> | undefined, b: HandlingunitByIdResult | PlainMessage<HandlingunitByIdResult> | undefined): boolean {
|
|
return proto3.util.equals(HandlingunitByIdResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.HandlingunitByFilterQuery
|
|
*/
|
|
export class HandlingunitByFilterQuery extends Message<HandlingunitByFilterQuery> {
|
|
/**
|
|
* @generated from field: api.QueryProjectHeader Header = 1;
|
|
*/
|
|
Header?: QueryProjectHeader;
|
|
|
|
/**
|
|
* @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 = 7;
|
|
*/
|
|
BlockFilters: BlockFilter[] = [];
|
|
|
|
constructor(data?: PartialMessage<HandlingunitByFilterQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.HandlingunitByFilterQuery";
|
|
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: 7, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandlingunitByFilterQuery {
|
|
return new HandlingunitByFilterQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandlingunitByFilterQuery {
|
|
return new HandlingunitByFilterQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandlingunitByFilterQuery {
|
|
return new HandlingunitByFilterQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: HandlingunitByFilterQuery | PlainMessage<HandlingunitByFilterQuery> | undefined, b: HandlingunitByFilterQuery | PlainMessage<HandlingunitByFilterQuery> | undefined): boolean {
|
|
return proto3.util.equals(HandlingunitByFilterQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.HandlingunitByFilterResult
|
|
*/
|
|
export class HandlingunitByFilterResult extends Message<HandlingunitByFilterResult> {
|
|
/**
|
|
* @generated from field: api.ResultHeader Header = 1;
|
|
*/
|
|
Header?: ResultHeader;
|
|
|
|
/**
|
|
* @generated from field: repeated api.Handlingunit Objects = 2;
|
|
*/
|
|
Objects: Handlingunit[] = [];
|
|
|
|
/**
|
|
* @generated from field: string queryContext = 3;
|
|
*/
|
|
queryContext = "";
|
|
|
|
constructor(data?: PartialMessage<HandlingunitByFilterResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.HandlingunitByFilterResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", T: Handlingunit, repeated: true },
|
|
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandlingunitByFilterResult {
|
|
return new HandlingunitByFilterResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandlingunitByFilterResult {
|
|
return new HandlingunitByFilterResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandlingunitByFilterResult {
|
|
return new HandlingunitByFilterResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: HandlingunitByFilterResult | PlainMessage<HandlingunitByFilterResult> | undefined, b: HandlingunitByFilterResult | PlainMessage<HandlingunitByFilterResult> | undefined): boolean {
|
|
return proto3.util.equals(HandlingunitByFilterResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.HandlingunitByMatchQuery
|
|
*/
|
|
export class HandlingunitByMatchQuery extends Message<HandlingunitByMatchQuery> {
|
|
/**
|
|
* @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 = 5;
|
|
*/
|
|
BlockFilters: BlockFilter[] = [];
|
|
|
|
/**
|
|
* MatchField list structure, for FindMatching query
|
|
*
|
|
* @generated from field: repeated api.MatchField MatchFields = 6;
|
|
*/
|
|
MatchFields: MatchField[] = [];
|
|
|
|
constructor(data?: PartialMessage<HandlingunitByMatchQuery>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.HandlingunitByMatchQuery";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
|
|
{ no: 5, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
|
|
{ no: 6, name: "MatchFields", kind: "message", T: MatchField, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandlingunitByMatchQuery {
|
|
return new HandlingunitByMatchQuery().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandlingunitByMatchQuery {
|
|
return new HandlingunitByMatchQuery().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandlingunitByMatchQuery {
|
|
return new HandlingunitByMatchQuery().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: HandlingunitByMatchQuery | PlainMessage<HandlingunitByMatchQuery> | undefined, b: HandlingunitByMatchQuery | PlainMessage<HandlingunitByMatchQuery> | undefined): boolean {
|
|
return proto3.util.equals(HandlingunitByMatchQuery, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message api.HandlingunitByMatchResult
|
|
*/
|
|
export class HandlingunitByMatchResult extends Message<HandlingunitByMatchResult> {
|
|
/**
|
|
* @generated from field: repeated api.MatchFieldResult MatchResults = 2;
|
|
*/
|
|
MatchResults: MatchFieldResult[] = [];
|
|
|
|
constructor(data?: PartialMessage<HandlingunitByMatchResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.HandlingunitByMatchResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandlingunitByMatchResult {
|
|
return new HandlingunitByMatchResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandlingunitByMatchResult {
|
|
return new HandlingunitByMatchResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandlingunitByMatchResult {
|
|
return new HandlingunitByMatchResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: HandlingunitByMatchResult | PlainMessage<HandlingunitByMatchResult> | undefined, b: HandlingunitByMatchResult | PlainMessage<HandlingunitByMatchResult> | undefined): boolean {
|
|
return proto3.util.equals(HandlingunitByMatchResult, a, b);
|
|
}
|
|
}
|
|
|