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