You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -18,8 +18,6 @@ import type { UpdateKpiTableStructureResult } from "./kpi";
|
|||||||
import type { UpdateKpiTableStructureRequest } from "./kpi";
|
import type { UpdateKpiTableStructureRequest } from "./kpi";
|
||||||
import type { GetKpiTableStructureResult } from "./kpi";
|
import type { GetKpiTableStructureResult } from "./kpi";
|
||||||
import type { GetKpiTableStructureRequest } from "./kpi";
|
import type { GetKpiTableStructureRequest } from "./kpi";
|
||||||
import type { GetProjectKpisResult } from "./kpi";
|
|
||||||
import type { GetProjectKpisRequest } from "./kpi";
|
|
||||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { GetKpisResult } from "./kpi";
|
import type { GetKpisResult } from "./kpi";
|
||||||
import type { GetKpisRequest } from "./kpi";
|
import type { GetKpisRequest } from "./kpi";
|
||||||
@@ -30,14 +28,9 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|||||||
*/
|
*/
|
||||||
export interface IKpiServiceClient {
|
export interface IKpiServiceClient {
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetKpis
|
* @generated from protobuf rpc: GetKpis
|
||||||
*/
|
*/
|
||||||
getKpis(input: GetKpisRequest, options?: RpcOptions): UnaryCall<GetKpisRequest, GetKpisResult>;
|
getKpis(input: GetKpisRequest, options?: RpcOptions): UnaryCall<GetKpisRequest, GetKpisResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectKpis
|
|
||||||
*/
|
|
||||||
getProjectKpis(input: GetProjectKpisRequest, options?: RpcOptions): UnaryCall<GetProjectKpisRequest, GetProjectKpisResult>;
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetKpiTableStructure
|
* @generated from protobuf rpc: GetKpiTableStructure
|
||||||
*/
|
*/
|
||||||
@@ -77,67 +70,59 @@ export class KpiServiceClient implements IKpiServiceClient, ServiceInfo {
|
|||||||
constructor(private readonly _transport: RpcTransport) {
|
constructor(private readonly _transport: RpcTransport) {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetKpis
|
* @generated from protobuf rpc: GetKpis
|
||||||
*/
|
*/
|
||||||
getKpis(input: GetKpisRequest, options?: RpcOptions): UnaryCall<GetKpisRequest, GetKpisResult> {
|
getKpis(input: GetKpisRequest, options?: RpcOptions): UnaryCall<GetKpisRequest, GetKpisResult> {
|
||||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetKpisRequest, GetKpisResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetKpisRequest, GetKpisResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectKpis
|
|
||||||
*/
|
|
||||||
getProjectKpis(input: GetProjectKpisRequest, options?: RpcOptions): UnaryCall<GetProjectKpisRequest, GetProjectKpisResult> {
|
|
||||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectKpisRequest, GetProjectKpisResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetKpiTableStructure
|
* @generated from protobuf rpc: GetKpiTableStructure
|
||||||
*/
|
*/
|
||||||
getKpiTableStructure(input: GetKpiTableStructureRequest, options?: RpcOptions): UnaryCall<GetKpiTableStructureRequest, GetKpiTableStructureResult> {
|
getKpiTableStructure(input: GetKpiTableStructureRequest, options?: RpcOptions): UnaryCall<GetKpiTableStructureRequest, GetKpiTableStructureResult> {
|
||||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetKpiTableStructureRequest, GetKpiTableStructureResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetKpiTableStructureRequest, GetKpiTableStructureResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: UpdateKpiTableStructure
|
* @generated from protobuf rpc: UpdateKpiTableStructure
|
||||||
*/
|
*/
|
||||||
updateKpiTableStructure(input: UpdateKpiTableStructureRequest, options?: RpcOptions): UnaryCall<UpdateKpiTableStructureRequest, UpdateKpiTableStructureResult> {
|
updateKpiTableStructure(input: UpdateKpiTableStructureRequest, options?: RpcOptions): UnaryCall<UpdateKpiTableStructureRequest, UpdateKpiTableStructureResult> {
|
||||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<UpdateKpiTableStructureRequest, UpdateKpiTableStructureResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateKpiTableStructureRequest, UpdateKpiTableStructureResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetKpiEntities
|
* @generated from protobuf rpc: GetKpiEntities
|
||||||
*/
|
*/
|
||||||
getKpiEntities(input: GetKpiEntitiesRequest, options?: RpcOptions): UnaryCall<GetKpiEntitiesRequest, GetKpiEntitiesResult> {
|
getKpiEntities(input: GetKpiEntitiesRequest, options?: RpcOptions): UnaryCall<GetKpiEntitiesRequest, GetKpiEntitiesResult> {
|
||||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetKpiEntitiesRequest, GetKpiEntitiesResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetKpiEntitiesRequest, GetKpiEntitiesResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: ClearKpiEntity
|
* @generated from protobuf rpc: ClearKpiEntity
|
||||||
*/
|
*/
|
||||||
clearKpiEntity(input: ClearKpiEntityRequest, options?: RpcOptions): UnaryCall<ClearKpiEntityRequest, ClearKpiEntityResult> {
|
clearKpiEntity(input: ClearKpiEntityRequest, options?: RpcOptions): UnaryCall<ClearKpiEntityRequest, ClearKpiEntityResult> {
|
||||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<ClearKpiEntityRequest, ClearKpiEntityResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<ClearKpiEntityRequest, ClearKpiEntityResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: CreateMV
|
* @generated from protobuf rpc: CreateMV
|
||||||
*/
|
*/
|
||||||
createMV(input: CreateMVRequest, options?: RpcOptions): UnaryCall<CreateMVRequest, CreateMVResult> {
|
createMV(input: CreateMVRequest, options?: RpcOptions): UnaryCall<CreateMVRequest, CreateMVResult> {
|
||||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<CreateMVRequest, CreateMVResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<CreateMVRequest, CreateMVResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: DropMV
|
* @generated from protobuf rpc: DropMV
|
||||||
*/
|
*/
|
||||||
dropMV(input: DropMVRequest, options?: RpcOptions): UnaryCall<DropMVRequest, DropMVResult> {
|
dropMV(input: DropMVRequest, options?: RpcOptions): UnaryCall<DropMVRequest, DropMVResult> {
|
||||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<DropMVRequest, DropMVResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<DropMVRequest, DropMVResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: PopulateMV
|
* @generated from protobuf rpc: PopulateMV
|
||||||
*/
|
*/
|
||||||
populateMV(input: PopulateMVRequest, options?: RpcOptions): UnaryCall<PopulateMVRequest, PopulateMVResult> {
|
populateMV(input: PopulateMVRequest, options?: RpcOptions): UnaryCall<PopulateMVRequest, PopulateMVResult> {
|
||||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<PopulateMVRequest, PopulateMVResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<PopulateMVRequest, PopulateMVResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
204
kpi.ts
204
kpi.ts
@@ -88,7 +88,6 @@ export interface KpiExpression {
|
|||||||
Query: string;
|
Query: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetKpisRequest
|
* @generated from protobuf message api.GetKpisRequest
|
||||||
*/
|
*/
|
||||||
export interface GetKpisRequest {
|
export interface GetKpisRequest {
|
||||||
@@ -128,7 +127,6 @@ export interface GetKpisRequest {
|
|||||||
OnlyQueryable: boolean;
|
OnlyQueryable: boolean;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetKpisResult
|
* @generated from protobuf message api.GetKpisResult
|
||||||
*/
|
*/
|
||||||
export interface GetKpisResult {
|
export interface GetKpisResult {
|
||||||
@@ -137,54 +135,6 @@ export interface GetKpisResult {
|
|||||||
*/
|
*/
|
||||||
Kpis: Kpi[];
|
Kpis: Kpi[];
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectKpisRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectKpisRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Domain = 2
|
|
||||||
*/
|
|
||||||
Domain: string;
|
|
||||||
/**
|
|
||||||
* Widget analysis criterion, executionflow for Order and stock for Stock
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Group = 3
|
|
||||||
*/
|
|
||||||
Group: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool isMetric = 4
|
|
||||||
*/
|
|
||||||
isMetric: boolean;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool isDimension = 5
|
|
||||||
*/
|
|
||||||
isDimension: boolean;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool isDate = 6
|
|
||||||
*/
|
|
||||||
isDate: boolean;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool isCount = 7
|
|
||||||
*/
|
|
||||||
isCount: boolean;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool OnlyQueryable = 8
|
|
||||||
*/
|
|
||||||
OnlyQueryable: boolean;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectKpisResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectKpisResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.Kpi Kpis = 1
|
|
||||||
*/
|
|
||||||
Kpis: Kpi[];
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.GetKpiTableStructureRequest
|
* @generated from protobuf message api.GetKpiTableStructureRequest
|
||||||
*/
|
*/
|
||||||
@@ -651,7 +601,6 @@ class GetKpisRequest$Type extends MessageType<GetKpisRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetKpisRequest
|
* @generated MessageType for protobuf message api.GetKpisRequest
|
||||||
*/
|
*/
|
||||||
export const GetKpisRequest = new GetKpisRequest$Type();
|
export const GetKpisRequest = new GetKpisRequest$Type();
|
||||||
@@ -699,160 +648,10 @@ class GetKpisResult$Type extends MessageType<GetKpisResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetKpisResult
|
* @generated MessageType for protobuf message api.GetKpisResult
|
||||||
*/
|
*/
|
||||||
export const GetKpisResult = new GetKpisResult$Type();
|
export const GetKpisResult = new GetKpisResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class GetProjectKpisRequest$Type extends MessageType<GetProjectKpisRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectKpisRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab"] } } } },
|
|
||||||
{ no: 3, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Widget analysis criterion, executionflow, stock, movement or handlingunit", example: "\"executionflow\"" }, "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim"] } } } },
|
|
||||||
{ no: 4, name: "isMetric", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
||||||
{ no: 5, name: "isDimension", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
||||||
{ no: 6, name: "isDate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
||||||
{ no: 7, name: "isCount", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
||||||
{ no: 8, name: "OnlyQueryable", kind: "scalar", localName: "OnlyQueryable", jsonName: "OnlyQueryable", T: 8 /*ScalarType.BOOL*/ }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectKpisRequest>): GetProjectKpisRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Domain = "";
|
|
||||||
message.Group = "";
|
|
||||||
message.isMetric = false;
|
|
||||||
message.isDimension = false;
|
|
||||||
message.isDate = false;
|
|
||||||
message.isCount = false;
|
|
||||||
message.OnlyQueryable = false;
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectKpisRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectKpisRequest): GetProjectKpisRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 1:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* string Domain */ 2:
|
|
||||||
message.Domain = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Group */ 3:
|
|
||||||
message.Group = reader.string();
|
|
||||||
break;
|
|
||||||
case /* bool isMetric */ 4:
|
|
||||||
message.isMetric = reader.bool();
|
|
||||||
break;
|
|
||||||
case /* bool isDimension */ 5:
|
|
||||||
message.isDimension = reader.bool();
|
|
||||||
break;
|
|
||||||
case /* bool isDate */ 6:
|
|
||||||
message.isDate = reader.bool();
|
|
||||||
break;
|
|
||||||
case /* bool isCount */ 7:
|
|
||||||
message.isCount = reader.bool();
|
|
||||||
break;
|
|
||||||
case /* bool OnlyQueryable */ 8:
|
|
||||||
message.OnlyQueryable = reader.bool();
|
|
||||||
break;
|
|
||||||
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: GetProjectKpisRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.RequestProjectHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* string Domain = 2; */
|
|
||||||
if (message.Domain !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
||||||
/* string Group = 3; */
|
|
||||||
if (message.Group !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Group);
|
|
||||||
/* bool isMetric = 4; */
|
|
||||||
if (message.isMetric !== false)
|
|
||||||
writer.tag(4, WireType.Varint).bool(message.isMetric);
|
|
||||||
/* bool isDimension = 5; */
|
|
||||||
if (message.isDimension !== false)
|
|
||||||
writer.tag(5, WireType.Varint).bool(message.isDimension);
|
|
||||||
/* bool isDate = 6; */
|
|
||||||
if (message.isDate !== false)
|
|
||||||
writer.tag(6, WireType.Varint).bool(message.isDate);
|
|
||||||
/* bool isCount = 7; */
|
|
||||||
if (message.isCount !== false)
|
|
||||||
writer.tag(7, WireType.Varint).bool(message.isCount);
|
|
||||||
/* bool OnlyQueryable = 8; */
|
|
||||||
if (message.OnlyQueryable !== false)
|
|
||||||
writer.tag(8, WireType.Varint).bool(message.OnlyQueryable);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectKpisRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectKpisRequest = new GetProjectKpisRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectKpisResult$Type extends MessageType<GetProjectKpisResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectKpisResult", [
|
|
||||||
{ no: 1, name: "Kpis", kind: "message", localName: "Kpis", jsonName: "Kpis", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Kpi }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectKpisResult>): GetProjectKpisResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Kpis = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectKpisResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectKpisResult): GetProjectKpisResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated api.Kpi Kpis */ 1:
|
|
||||||
message.Kpis.push(Kpi.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
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: GetProjectKpisResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated api.Kpi Kpis = 1; */
|
|
||||||
for (let i = 0; i < message.Kpis.length; i++)
|
|
||||||
Kpi.internalBinaryWrite(message.Kpis[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectKpisResult
|
|
||||||
*/
|
|
||||||
export const GetProjectKpisResult = new GetProjectKpisResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureRequest> {
|
class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetKpiTableStructureRequest", [
|
super("api.GetKpiTableStructureRequest", [
|
||||||
@@ -1525,8 +1324,7 @@ export const PopulateMVResult = new PopulateMVResult$Type();
|
|||||||
* @generated ServiceType for protobuf service api.KpiService
|
* @generated ServiceType for protobuf service api.KpiService
|
||||||
*/
|
*/
|
||||||
export const KpiService = new ServiceType("api.KpiService", [
|
export const KpiService = new ServiceType("api.KpiService", [
|
||||||
{ name: "GetKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "DEPRECATED : replaced by GetProjectKpis. Get the KPIs analysis possibilities" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetKpisRequest, O: GetKpisResult },
|
{ name: "GetKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the KPIs analysis possibilities" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetKpisRequest, O: GetKpisResult },
|
||||||
{ name: "GetProjectKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the project KPIs analysis possibilities" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectKpisRequest, O: GetProjectKpisResult },
|
|
||||||
{ name: "GetKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKpiTableStructureRequest, O: GetKpiTableStructureResult },
|
{ name: "GetKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKpiTableStructureRequest, O: GetKpiTableStructureResult },
|
||||||
{ name: "UpdateKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Update KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateKpiTableStructureRequest, O: UpdateKpiTableStructureResult },
|
{ name: "UpdateKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Update KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateKpiTableStructureRequest, O: UpdateKpiTableStructureResult },
|
||||||
{ name: "GetKpiEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the entities with KPIs" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKpiEntitiesRequest, O: GetKpiEntitiesResult },
|
{ name: "GetKpiEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the entities with KPIs" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKpiEntitiesRequest, O: GetKpiEntitiesResult },
|
||||||
|
|||||||
@@ -6,18 +6,6 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|||||||
import { MetadataService } from "./metadatadef";
|
import { MetadataService } from "./metadatadef";
|
||||||
import type { RestoreMetadatasResult } from "./metadatadef";
|
import type { RestoreMetadatasResult } from "./metadatadef";
|
||||||
import type { RestoreMetadatasRequest } from "./metadatadef";
|
import type { RestoreMetadatasRequest } from "./metadatadef";
|
||||||
import type { GetProjectTransitiveMetadatasResult } from "./metadatadef";
|
|
||||||
import type { GetProjectTransitiveMetadatasRequest } from "./metadatadef";
|
|
||||||
import type { GetProjectMetadataCountResult } from "./metadatadef";
|
|
||||||
import type { GetProjectMetadataCountRequest } from "./metadatadef";
|
|
||||||
import type { DeleteProjectMetadatasResult } from "./metadatadef";
|
|
||||||
import type { DeleteProjectMetadatasRequest } from "./metadatadef";
|
|
||||||
import type { GetProjectMetadatasResult } from "./metadatadef";
|
|
||||||
import type { GetProjectMetadatasRequest } from "./metadatadef";
|
|
||||||
import type { UpdateProjectMetadataResult } from "./metadatadef";
|
|
||||||
import type { UpdateProjectMetadataRequest } from "./metadatadef";
|
|
||||||
import type { CreateProjectMetadataResult } from "./metadatadef";
|
|
||||||
import type { CreateProjectMetadataRequest } from "./metadatadef";
|
|
||||||
import type { GetTransitiveMetadatasResult } from "./metadatadef";
|
import type { GetTransitiveMetadatasResult } from "./metadatadef";
|
||||||
import type { GetTransitiveMetadatasRequest } from "./metadatadef";
|
import type { GetTransitiveMetadatasRequest } from "./metadatadef";
|
||||||
import type { GetMetadataCountResult } from "./metadatadef";
|
import type { GetMetadataCountResult } from "./metadatadef";
|
||||||
@@ -38,59 +26,29 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|||||||
*/
|
*/
|
||||||
export interface IMetadataServiceClient {
|
export interface IMetadataServiceClient {
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: CreateMetadata
|
* @generated from protobuf rpc: CreateMetadata
|
||||||
*/
|
*/
|
||||||
createMetadata(input: CreateMetadataRequest, options?: RpcOptions): UnaryCall<CreateMetadataRequest, CreateMetadataResult>;
|
createMetadata(input: CreateMetadataRequest, options?: RpcOptions): UnaryCall<CreateMetadataRequest, CreateMetadataResult>;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: UpdateMetadata
|
* @generated from protobuf rpc: UpdateMetadata
|
||||||
*/
|
*/
|
||||||
updateMetadata(input: UpdateMetadataRequest, options?: RpcOptions): UnaryCall<UpdateMetadataRequest, UpdateMetadataResult>;
|
updateMetadata(input: UpdateMetadataRequest, options?: RpcOptions): UnaryCall<UpdateMetadataRequest, UpdateMetadataResult>;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetMetadatas
|
* @generated from protobuf rpc: GetMetadatas
|
||||||
*/
|
*/
|
||||||
getMetadatas(input: GetMetadatasRequest, options?: RpcOptions): UnaryCall<GetMetadatasRequest, GetMetadatasResult>;
|
getMetadatas(input: GetMetadatasRequest, options?: RpcOptions): UnaryCall<GetMetadatasRequest, GetMetadatasResult>;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: DeleteMetadatas
|
* @generated from protobuf rpc: DeleteMetadatas
|
||||||
*/
|
*/
|
||||||
deleteMetadatas(input: DeleteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteMetadatasRequest, DeleteMetadatasResult>;
|
deleteMetadatas(input: DeleteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteMetadatasRequest, DeleteMetadatasResult>;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetMetadataCount
|
* @generated from protobuf rpc: GetMetadataCount
|
||||||
*/
|
*/
|
||||||
getMetadataCount(input: GetMetadataCountRequest, options?: RpcOptions): UnaryCall<GetMetadataCountRequest, GetMetadataCountResult>;
|
getMetadataCount(input: GetMetadataCountRequest, options?: RpcOptions): UnaryCall<GetMetadataCountRequest, GetMetadataCountResult>;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetTransitiveMetadatas
|
* @generated from protobuf rpc: GetTransitiveMetadatas
|
||||||
*/
|
*/
|
||||||
getTransitiveMetadatas(input: GetTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult>;
|
getTransitiveMetadatas(input: GetTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateProjectMetadata
|
|
||||||
*/
|
|
||||||
createProjectMetadata(input: CreateProjectMetadataRequest, options?: RpcOptions): UnaryCall<CreateProjectMetadataRequest, CreateProjectMetadataResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateProjectMetadata
|
|
||||||
*/
|
|
||||||
updateProjectMetadata(input: UpdateProjectMetadataRequest, options?: RpcOptions): UnaryCall<UpdateProjectMetadataRequest, UpdateProjectMetadataResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectMetadatas
|
|
||||||
*/
|
|
||||||
getProjectMetadatas(input: GetProjectMetadatasRequest, options?: RpcOptions): UnaryCall<GetProjectMetadatasRequest, GetProjectMetadatasResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteProjectMetadatas
|
|
||||||
*/
|
|
||||||
deleteProjectMetadatas(input: DeleteProjectMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteProjectMetadatasRequest, DeleteProjectMetadatasResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectMetadataCount
|
|
||||||
*/
|
|
||||||
getProjectMetadataCount(input: GetProjectMetadataCountRequest, options?: RpcOptions): UnaryCall<GetProjectMetadataCountRequest, GetProjectMetadataCountResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectTransitiveMetadatas
|
|
||||||
*/
|
|
||||||
getProjectTransitiveMetadatas(input: GetProjectTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetProjectTransitiveMetadatasRequest, GetProjectTransitiveMetadatasResult>;
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: RestoreMetadatas
|
* @generated from protobuf rpc: RestoreMetadatas
|
||||||
*/
|
*/
|
||||||
@@ -106,7 +64,6 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
|
|||||||
constructor(private readonly _transport: RpcTransport) {
|
constructor(private readonly _transport: RpcTransport) {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: CreateMetadata
|
* @generated from protobuf rpc: CreateMetadata
|
||||||
*/
|
*/
|
||||||
createMetadata(input: CreateMetadataRequest, options?: RpcOptions): UnaryCall<CreateMetadataRequest, CreateMetadataResult> {
|
createMetadata(input: CreateMetadataRequest, options?: RpcOptions): UnaryCall<CreateMetadataRequest, CreateMetadataResult> {
|
||||||
@@ -114,7 +71,6 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
|
|||||||
return stackIntercept<CreateMetadataRequest, CreateMetadataResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<CreateMetadataRequest, CreateMetadataResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: UpdateMetadata
|
* @generated from protobuf rpc: UpdateMetadata
|
||||||
*/
|
*/
|
||||||
updateMetadata(input: UpdateMetadataRequest, options?: RpcOptions): UnaryCall<UpdateMetadataRequest, UpdateMetadataResult> {
|
updateMetadata(input: UpdateMetadataRequest, options?: RpcOptions): UnaryCall<UpdateMetadataRequest, UpdateMetadataResult> {
|
||||||
@@ -122,7 +78,6 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
|
|||||||
return stackIntercept<UpdateMetadataRequest, UpdateMetadataResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateMetadataRequest, UpdateMetadataResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetMetadatas
|
* @generated from protobuf rpc: GetMetadatas
|
||||||
*/
|
*/
|
||||||
getMetadatas(input: GetMetadatasRequest, options?: RpcOptions): UnaryCall<GetMetadatasRequest, GetMetadatasResult> {
|
getMetadatas(input: GetMetadatasRequest, options?: RpcOptions): UnaryCall<GetMetadatasRequest, GetMetadatasResult> {
|
||||||
@@ -130,7 +85,6 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
|
|||||||
return stackIntercept<GetMetadatasRequest, GetMetadatasResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetMetadatasRequest, GetMetadatasResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: DeleteMetadatas
|
* @generated from protobuf rpc: DeleteMetadatas
|
||||||
*/
|
*/
|
||||||
deleteMetadatas(input: DeleteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteMetadatasRequest, DeleteMetadatasResult> {
|
deleteMetadatas(input: DeleteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteMetadatasRequest, DeleteMetadatasResult> {
|
||||||
@@ -138,7 +92,6 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
|
|||||||
return stackIntercept<DeleteMetadatasRequest, DeleteMetadatasResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<DeleteMetadatasRequest, DeleteMetadatasResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetMetadataCount
|
* @generated from protobuf rpc: GetMetadataCount
|
||||||
*/
|
*/
|
||||||
getMetadataCount(input: GetMetadataCountRequest, options?: RpcOptions): UnaryCall<GetMetadataCountRequest, GetMetadataCountResult> {
|
getMetadataCount(input: GetMetadataCountRequest, options?: RpcOptions): UnaryCall<GetMetadataCountRequest, GetMetadataCountResult> {
|
||||||
@@ -146,60 +99,17 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
|
|||||||
return stackIntercept<GetMetadataCountRequest, GetMetadataCountResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetMetadataCountRequest, GetMetadataCountResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetTransitiveMetadatas
|
* @generated from protobuf rpc: GetTransitiveMetadatas
|
||||||
*/
|
*/
|
||||||
getTransitiveMetadatas(input: GetTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult> {
|
getTransitiveMetadatas(input: GetTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult> {
|
||||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: CreateProjectMetadata
|
|
||||||
*/
|
|
||||||
createProjectMetadata(input: CreateProjectMetadataRequest, options?: RpcOptions): UnaryCall<CreateProjectMetadataRequest, CreateProjectMetadataResult> {
|
|
||||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<CreateProjectMetadataRequest, CreateProjectMetadataResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: UpdateProjectMetadata
|
|
||||||
*/
|
|
||||||
updateProjectMetadata(input: UpdateProjectMetadataRequest, options?: RpcOptions): UnaryCall<UpdateProjectMetadataRequest, UpdateProjectMetadataResult> {
|
|
||||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<UpdateProjectMetadataRequest, UpdateProjectMetadataResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectMetadatas
|
|
||||||
*/
|
|
||||||
getProjectMetadatas(input: GetProjectMetadatasRequest, options?: RpcOptions): UnaryCall<GetProjectMetadatasRequest, GetProjectMetadatasResult> {
|
|
||||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectMetadatasRequest, GetProjectMetadatasResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: DeleteProjectMetadatas
|
|
||||||
*/
|
|
||||||
deleteProjectMetadatas(input: DeleteProjectMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteProjectMetadatasRequest, DeleteProjectMetadatasResult> {
|
|
||||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<DeleteProjectMetadatasRequest, DeleteProjectMetadatasResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectMetadataCount
|
|
||||||
*/
|
|
||||||
getProjectMetadataCount(input: GetProjectMetadataCountRequest, options?: RpcOptions): UnaryCall<GetProjectMetadataCountRequest, GetProjectMetadataCountResult> {
|
|
||||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectMetadataCountRequest, GetProjectMetadataCountResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectTransitiveMetadatas
|
|
||||||
*/
|
|
||||||
getProjectTransitiveMetadatas(input: GetProjectTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetProjectTransitiveMetadatasRequest, GetProjectTransitiveMetadatasResult> {
|
|
||||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectTransitiveMetadatasRequest, GetProjectTransitiveMetadatasResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: RestoreMetadatas
|
* @generated from protobuf rpc: RestoreMetadatas
|
||||||
*/
|
*/
|
||||||
restoreMetadatas(input: RestoreMetadatasRequest, options?: RpcOptions): UnaryCall<RestoreMetadatasRequest, RestoreMetadatasResult> {
|
restoreMetadatas(input: RestoreMetadatasRequest, options?: RpcOptions): UnaryCall<RestoreMetadatasRequest, RestoreMetadatasResult> {
|
||||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<RestoreMetadatasRequest, RestoreMetadatasResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<RestoreMetadatasRequest, RestoreMetadatasResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
825
metadatadef.ts
825
metadatadef.ts
@@ -195,7 +195,6 @@ export interface PrjMetadatasByDomain {
|
|||||||
Total: bigint;
|
Total: bigint;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.CreateMetadataRequest
|
* @generated from protobuf message api.CreateMetadataRequest
|
||||||
*/
|
*/
|
||||||
export interface CreateMetadataRequest {
|
export interface CreateMetadataRequest {
|
||||||
@@ -211,7 +210,6 @@ export interface CreateMetadataRequest {
|
|||||||
Metadata?: PrjMetadata;
|
Metadata?: PrjMetadata;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.CreateMetadataResult
|
* @generated from protobuf message api.CreateMetadataResult
|
||||||
*/
|
*/
|
||||||
export interface CreateMetadataResult {
|
export interface CreateMetadataResult {
|
||||||
@@ -221,7 +219,6 @@ export interface CreateMetadataResult {
|
|||||||
Metadata?: PrjMetadata;
|
Metadata?: PrjMetadata;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.UpdateMetadataRequest
|
* @generated from protobuf message api.UpdateMetadataRequest
|
||||||
*/
|
*/
|
||||||
export interface UpdateMetadataRequest {
|
export interface UpdateMetadataRequest {
|
||||||
@@ -237,7 +234,6 @@ export interface UpdateMetadataRequest {
|
|||||||
Metadata?: PrjMetadata;
|
Metadata?: PrjMetadata;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.UpdateMetadataResult
|
* @generated from protobuf message api.UpdateMetadataResult
|
||||||
*/
|
*/
|
||||||
export interface UpdateMetadataResult {
|
export interface UpdateMetadataResult {
|
||||||
@@ -247,7 +243,6 @@ export interface UpdateMetadataResult {
|
|||||||
Metadata?: PrjMetadata;
|
Metadata?: PrjMetadata;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.DeleteMetadatasRequest
|
* @generated from protobuf message api.DeleteMetadatasRequest
|
||||||
*/
|
*/
|
||||||
export interface DeleteMetadatasRequest {
|
export interface DeleteMetadatasRequest {
|
||||||
@@ -261,13 +256,11 @@ export interface DeleteMetadatasRequest {
|
|||||||
Filters?: PrjMetadataFilters;
|
Filters?: PrjMetadataFilters;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.DeleteMetadatasResult
|
* @generated from protobuf message api.DeleteMetadatasResult
|
||||||
*/
|
*/
|
||||||
export interface DeleteMetadatasResult {
|
export interface DeleteMetadatasResult {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetMetadatasRequest
|
* @generated from protobuf message api.GetMetadatasRequest
|
||||||
*/
|
*/
|
||||||
export interface GetMetadatasRequest {
|
export interface GetMetadatasRequest {
|
||||||
@@ -281,7 +274,6 @@ export interface GetMetadatasRequest {
|
|||||||
Filters?: PrjMetadataFilters;
|
Filters?: PrjMetadataFilters;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetMetadatasResult
|
* @generated from protobuf message api.GetMetadatasResult
|
||||||
*/
|
*/
|
||||||
export interface GetMetadatasResult {
|
export interface GetMetadatasResult {
|
||||||
@@ -291,7 +283,6 @@ export interface GetMetadatasResult {
|
|||||||
Metadatas: PrjMetadata[];
|
Metadatas: PrjMetadata[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetMetadataCountRequest
|
* @generated from protobuf message api.GetMetadataCountRequest
|
||||||
*/
|
*/
|
||||||
export interface GetMetadataCountRequest {
|
export interface GetMetadataCountRequest {
|
||||||
@@ -312,7 +303,6 @@ export interface GetMetadataCountRequest {
|
|||||||
IsSegmentationKey: boolean;
|
IsSegmentationKey: boolean;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetMetadataCountResult
|
* @generated from protobuf message api.GetMetadataCountResult
|
||||||
*/
|
*/
|
||||||
export interface GetMetadataCountResult {
|
export interface GetMetadataCountResult {
|
||||||
@@ -328,7 +318,6 @@ export interface GetMetadataCountResult {
|
|||||||
Total: bigint;
|
Total: bigint;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetTransitiveMetadatasRequest
|
* @generated from protobuf message api.GetTransitiveMetadatasRequest
|
||||||
*/
|
*/
|
||||||
export interface GetTransitiveMetadatasRequest {
|
export interface GetTransitiveMetadatasRequest {
|
||||||
@@ -353,7 +342,6 @@ export interface GetTransitiveMetadatasRequest {
|
|||||||
Entity: string;
|
Entity: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetTransitiveMetadatasResult
|
* @generated from protobuf message api.GetTransitiveMetadatasResult
|
||||||
*/
|
*/
|
||||||
export interface GetTransitiveMetadatasResult {
|
export interface GetTransitiveMetadatasResult {
|
||||||
@@ -362,162 +350,6 @@ export interface GetTransitiveMetadatasResult {
|
|||||||
*/
|
*/
|
||||||
MetadataTransitive: PrjMetadataTransitive[];
|
MetadataTransitive: PrjMetadataTransitive[];
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.CreateProjectMetadataRequest
|
|
||||||
*/
|
|
||||||
export interface CreateProjectMetadataRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 2
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: api.PrjMetadata Metadata = 1
|
|
||||||
*/
|
|
||||||
Metadata?: PrjMetadata;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.CreateProjectMetadataResult
|
|
||||||
*/
|
|
||||||
export interface CreateProjectMetadataResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.PrjMetadata Metadata = 1
|
|
||||||
*/
|
|
||||||
Metadata?: PrjMetadata;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.UpdateProjectMetadataRequest
|
|
||||||
*/
|
|
||||||
export interface UpdateProjectMetadataRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 2
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: api.PrjMetadata Metadata = 1
|
|
||||||
*/
|
|
||||||
Metadata?: PrjMetadata;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.UpdateProjectMetadataResult
|
|
||||||
*/
|
|
||||||
export interface UpdateProjectMetadataResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.PrjMetadata Metadata = 1
|
|
||||||
*/
|
|
||||||
Metadata?: PrjMetadata;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.DeleteProjectMetadatasRequest
|
|
||||||
*/
|
|
||||||
export interface DeleteProjectMetadatasRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 2
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.PrjMetadataFilters Filters = 1
|
|
||||||
*/
|
|
||||||
Filters?: PrjMetadataFilters;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.DeleteProjectMetadatasResult
|
|
||||||
*/
|
|
||||||
export interface DeleteProjectMetadatasResult {
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectMetadatasRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectMetadatasRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 2
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.PrjMetadataFilters Filters = 1
|
|
||||||
*/
|
|
||||||
Filters?: PrjMetadataFilters;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectMetadatasResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectMetadatasResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.PrjMetadata Metadatas = 1
|
|
||||||
*/
|
|
||||||
Metadatas: PrjMetadata[];
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectMetadataCountRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectMetadataCountRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 3
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
// string Project = 1
|
|
||||||
// [
|
|
||||||
// (validate.rules).string.min_len = 1
|
|
||||||
// ];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: bool IsSegmentationKey = 2
|
|
||||||
*/
|
|
||||||
IsSegmentationKey: boolean;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectMetadataCountResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectMetadataCountResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: map<string, api.PrjMetadatasByDomain> Domains = 1
|
|
||||||
*/
|
|
||||||
Domains: {
|
|
||||||
[key: string]: PrjMetadatasByDomain;
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: int64 Total = 2
|
|
||||||
*/
|
|
||||||
Total: bigint;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectTransitiveMetadatasRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectTransitiveMetadatasRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 4
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
// string Project = 1
|
|
||||||
// [
|
|
||||||
// (validate.rules).string.min_len = 1
|
|
||||||
// ];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Domain = 2
|
|
||||||
*/
|
|
||||||
Domain: string;
|
|
||||||
/**
|
|
||||||
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Entity = 3
|
|
||||||
*/
|
|
||||||
Entity: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectTransitiveMetadatasResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectTransitiveMetadatasResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.PrjMetadataTransitive MetadataTransitive = 1
|
|
||||||
*/
|
|
||||||
MetadataTransitive: PrjMetadataTransitive[];
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.RestoreMetadatasRequest
|
* @generated from protobuf message api.RestoreMetadatasRequest
|
||||||
*/
|
*/
|
||||||
@@ -1014,7 +846,6 @@ class CreateMetadataRequest$Type extends MessageType<CreateMetadataRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.CreateMetadataRequest
|
* @generated MessageType for protobuf message api.CreateMetadataRequest
|
||||||
*/
|
*/
|
||||||
export const CreateMetadataRequest = new CreateMetadataRequest$Type();
|
export const CreateMetadataRequest = new CreateMetadataRequest$Type();
|
||||||
@@ -1061,7 +892,6 @@ class CreateMetadataResult$Type extends MessageType<CreateMetadataResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.CreateMetadataResult
|
* @generated MessageType for protobuf message api.CreateMetadataResult
|
||||||
*/
|
*/
|
||||||
export const CreateMetadataResult = new CreateMetadataResult$Type();
|
export const CreateMetadataResult = new CreateMetadataResult$Type();
|
||||||
@@ -1115,7 +945,6 @@ class UpdateMetadataRequest$Type extends MessageType<UpdateMetadataRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.UpdateMetadataRequest
|
* @generated MessageType for protobuf message api.UpdateMetadataRequest
|
||||||
*/
|
*/
|
||||||
export const UpdateMetadataRequest = new UpdateMetadataRequest$Type();
|
export const UpdateMetadataRequest = new UpdateMetadataRequest$Type();
|
||||||
@@ -1162,7 +991,6 @@ class UpdateMetadataResult$Type extends MessageType<UpdateMetadataResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.UpdateMetadataResult
|
* @generated MessageType for protobuf message api.UpdateMetadataResult
|
||||||
*/
|
*/
|
||||||
export const UpdateMetadataResult = new UpdateMetadataResult$Type();
|
export const UpdateMetadataResult = new UpdateMetadataResult$Type();
|
||||||
@@ -1216,7 +1044,6 @@ class DeleteMetadatasRequest$Type extends MessageType<DeleteMetadatasRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.DeleteMetadatasRequest
|
* @generated MessageType for protobuf message api.DeleteMetadatasRequest
|
||||||
*/
|
*/
|
||||||
export const DeleteMetadatasRequest = new DeleteMetadatasRequest$Type();
|
export const DeleteMetadatasRequest = new DeleteMetadatasRequest$Type();
|
||||||
@@ -1255,7 +1082,6 @@ class DeleteMetadatasResult$Type extends MessageType<DeleteMetadatasResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.DeleteMetadatasResult
|
* @generated MessageType for protobuf message api.DeleteMetadatasResult
|
||||||
*/
|
*/
|
||||||
export const DeleteMetadatasResult = new DeleteMetadatasResult$Type();
|
export const DeleteMetadatasResult = new DeleteMetadatasResult$Type();
|
||||||
@@ -1309,7 +1135,6 @@ class GetMetadatasRequest$Type extends MessageType<GetMetadatasRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetMetadatasRequest
|
* @generated MessageType for protobuf message api.GetMetadatasRequest
|
||||||
*/
|
*/
|
||||||
export const GetMetadatasRequest = new GetMetadatasRequest$Type();
|
export const GetMetadatasRequest = new GetMetadatasRequest$Type();
|
||||||
@@ -1357,7 +1182,6 @@ class GetMetadatasResult$Type extends MessageType<GetMetadatasResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetMetadatasResult
|
* @generated MessageType for protobuf message api.GetMetadatasResult
|
||||||
*/
|
*/
|
||||||
export const GetMetadatasResult = new GetMetadatasResult$Type();
|
export const GetMetadatasResult = new GetMetadatasResult$Type();
|
||||||
@@ -1412,7 +1236,6 @@ class GetMetadataCountRequest$Type extends MessageType<GetMetadataCountRequest>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetMetadataCountRequest
|
* @generated MessageType for protobuf message api.GetMetadataCountRequest
|
||||||
*/
|
*/
|
||||||
export const GetMetadataCountRequest = new GetMetadataCountRequest$Type();
|
export const GetMetadataCountRequest = new GetMetadataCountRequest$Type();
|
||||||
@@ -1488,7 +1311,6 @@ class GetMetadataCountResult$Type extends MessageType<GetMetadataCountResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetMetadataCountResult
|
* @generated MessageType for protobuf message api.GetMetadataCountResult
|
||||||
*/
|
*/
|
||||||
export const GetMetadataCountResult = new GetMetadataCountResult$Type();
|
export const GetMetadataCountResult = new GetMetadataCountResult$Type();
|
||||||
@@ -1551,7 +1373,6 @@ class GetTransitiveMetadatasRequest$Type extends MessageType<GetTransitiveMetada
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetTransitiveMetadatasRequest
|
* @generated MessageType for protobuf message api.GetTransitiveMetadatasRequest
|
||||||
*/
|
*/
|
||||||
export const GetTransitiveMetadatasRequest = new GetTransitiveMetadatasRequest$Type();
|
export const GetTransitiveMetadatasRequest = new GetTransitiveMetadatasRequest$Type();
|
||||||
@@ -1599,638 +1420,10 @@ class GetTransitiveMetadatasResult$Type extends MessageType<GetTransitiveMetadat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetTransitiveMetadatasResult
|
* @generated MessageType for protobuf message api.GetTransitiveMetadatasResult
|
||||||
*/
|
*/
|
||||||
export const GetTransitiveMetadatasResult = new GetTransitiveMetadatasResult$Type();
|
export const GetTransitiveMetadatasResult = new GetTransitiveMetadatasResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class CreateProjectMetadataRequest$Type extends MessageType<CreateProjectMetadataRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.CreateProjectMetadataRequest", [
|
|
||||||
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "validate.rules": { message: { required: true } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<CreateProjectMetadataRequest>): CreateProjectMetadataRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<CreateProjectMetadataRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectMetadataRequest): CreateProjectMetadataRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 2:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* api.PrjMetadata Metadata */ 1:
|
|
||||||
message.Metadata = PrjMetadata.internalBinaryRead(reader, reader.uint32(), options, message.Metadata);
|
|
||||||
break;
|
|
||||||
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: CreateProjectMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.PrjMetadata Metadata = 1; */
|
|
||||||
if (message.Metadata)
|
|
||||||
PrjMetadata.internalBinaryWrite(message.Metadata, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* api.RequestProjectHeader Header = 2; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.CreateProjectMetadataRequest
|
|
||||||
*/
|
|
||||||
export const CreateProjectMetadataRequest = new CreateProjectMetadataRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class CreateProjectMetadataResult$Type extends MessageType<CreateProjectMetadataResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.CreateProjectMetadataResult", [
|
|
||||||
{ no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<CreateProjectMetadataResult>): CreateProjectMetadataResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<CreateProjectMetadataResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectMetadataResult): CreateProjectMetadataResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.PrjMetadata Metadata */ 1:
|
|
||||||
message.Metadata = PrjMetadata.internalBinaryRead(reader, reader.uint32(), options, message.Metadata);
|
|
||||||
break;
|
|
||||||
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: CreateProjectMetadataResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.PrjMetadata Metadata = 1; */
|
|
||||||
if (message.Metadata)
|
|
||||||
PrjMetadata.internalBinaryWrite(message.Metadata, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.CreateProjectMetadataResult
|
|
||||||
*/
|
|
||||||
export const CreateProjectMetadataResult = new CreateProjectMetadataResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class UpdateProjectMetadataRequest$Type extends MessageType<UpdateProjectMetadataRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.UpdateProjectMetadataRequest", [
|
|
||||||
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "validate.rules": { message: { required: true } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<UpdateProjectMetadataRequest>): UpdateProjectMetadataRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<UpdateProjectMetadataRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectMetadataRequest): UpdateProjectMetadataRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 2:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* api.PrjMetadata Metadata */ 1:
|
|
||||||
message.Metadata = PrjMetadata.internalBinaryRead(reader, reader.uint32(), options, message.Metadata);
|
|
||||||
break;
|
|
||||||
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: UpdateProjectMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.PrjMetadata Metadata = 1; */
|
|
||||||
if (message.Metadata)
|
|
||||||
PrjMetadata.internalBinaryWrite(message.Metadata, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* api.RequestProjectHeader Header = 2; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.UpdateProjectMetadataRequest
|
|
||||||
*/
|
|
||||||
export const UpdateProjectMetadataRequest = new UpdateProjectMetadataRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class UpdateProjectMetadataResult$Type extends MessageType<UpdateProjectMetadataResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.UpdateProjectMetadataResult", [
|
|
||||||
{ no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<UpdateProjectMetadataResult>): UpdateProjectMetadataResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<UpdateProjectMetadataResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectMetadataResult): UpdateProjectMetadataResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.PrjMetadata Metadata */ 1:
|
|
||||||
message.Metadata = PrjMetadata.internalBinaryRead(reader, reader.uint32(), options, message.Metadata);
|
|
||||||
break;
|
|
||||||
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: UpdateProjectMetadataResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.PrjMetadata Metadata = 1; */
|
|
||||||
if (message.Metadata)
|
|
||||||
PrjMetadata.internalBinaryWrite(message.Metadata, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.UpdateProjectMetadataResult
|
|
||||||
*/
|
|
||||||
export const UpdateProjectMetadataResult = new UpdateProjectMetadataResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class DeleteProjectMetadatasRequest$Type extends MessageType<DeleteProjectMetadatasRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.DeleteProjectMetadatasRequest", [
|
|
||||||
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 1, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => PrjMetadataFilters, options: { "validate.rules": { message: { required: true } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<DeleteProjectMetadatasRequest>): DeleteProjectMetadatasRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<DeleteProjectMetadatasRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectMetadatasRequest): DeleteProjectMetadatasRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 2:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* api.PrjMetadataFilters Filters */ 1:
|
|
||||||
message.Filters = PrjMetadataFilters.internalBinaryRead(reader, reader.uint32(), options, message.Filters);
|
|
||||||
break;
|
|
||||||
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: DeleteProjectMetadatasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.PrjMetadataFilters Filters = 1; */
|
|
||||||
if (message.Filters)
|
|
||||||
PrjMetadataFilters.internalBinaryWrite(message.Filters, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* api.RequestProjectHeader Header = 2; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.DeleteProjectMetadatasRequest
|
|
||||||
*/
|
|
||||||
export const DeleteProjectMetadatasRequest = new DeleteProjectMetadatasRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class DeleteProjectMetadatasResult$Type extends MessageType<DeleteProjectMetadatasResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.DeleteProjectMetadatasResult", []);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<DeleteProjectMetadatasResult>): DeleteProjectMetadatasResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<DeleteProjectMetadatasResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectMetadatasResult): DeleteProjectMetadatasResult {
|
|
||||||
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: DeleteProjectMetadatasResult, 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.DeleteProjectMetadatasResult
|
|
||||||
*/
|
|
||||||
export const DeleteProjectMetadatasResult = new DeleteProjectMetadatasResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectMetadatasRequest$Type extends MessageType<GetProjectMetadatasRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectMetadatasRequest", [
|
|
||||||
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 1, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => PrjMetadataFilters, options: { "validate.rules": { message: { required: true } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectMetadatasRequest>): GetProjectMetadatasRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectMetadatasRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectMetadatasRequest): GetProjectMetadatasRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 2:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* api.PrjMetadataFilters Filters */ 1:
|
|
||||||
message.Filters = PrjMetadataFilters.internalBinaryRead(reader, reader.uint32(), options, message.Filters);
|
|
||||||
break;
|
|
||||||
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: GetProjectMetadatasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.PrjMetadataFilters Filters = 1; */
|
|
||||||
if (message.Filters)
|
|
||||||
PrjMetadataFilters.internalBinaryWrite(message.Filters, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* api.RequestProjectHeader Header = 2; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectMetadatasRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectMetadatasRequest = new GetProjectMetadatasRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectMetadatasResult$Type extends MessageType<GetProjectMetadatasResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectMetadatasResult", [
|
|
||||||
{ no: 1, name: "Metadatas", kind: "message", localName: "Metadatas", jsonName: "Metadatas", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectMetadatasResult>): GetProjectMetadatasResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Metadatas = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectMetadatasResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectMetadatasResult): GetProjectMetadatasResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated api.PrjMetadata Metadatas */ 1:
|
|
||||||
message.Metadatas.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
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: GetProjectMetadatasResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated api.PrjMetadata Metadatas = 1; */
|
|
||||||
for (let i = 0; i < message.Metadatas.length; i++)
|
|
||||||
PrjMetadata.internalBinaryWrite(message.Metadatas[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectMetadatasResult
|
|
||||||
*/
|
|
||||||
export const GetProjectMetadatasResult = new GetProjectMetadatasResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectMetadataCountRequest$Type extends MessageType<GetProjectMetadataCountRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectMetadataCountRequest", [
|
|
||||||
{ no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectMetadataCountRequest>): GetProjectMetadataCountRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.IsSegmentationKey = false;
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectMetadataCountRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectMetadataCountRequest): GetProjectMetadataCountRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 3:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* bool IsSegmentationKey */ 2:
|
|
||||||
message.IsSegmentationKey = reader.bool();
|
|
||||||
break;
|
|
||||||
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: GetProjectMetadataCountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* bool IsSegmentationKey = 2; */
|
|
||||||
if (message.IsSegmentationKey !== false)
|
|
||||||
writer.tag(2, WireType.Varint).bool(message.IsSegmentationKey);
|
|
||||||
/* api.RequestProjectHeader Header = 3; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectMetadataCountRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectMetadataCountRequest = new GetProjectMetadataCountRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectMetadataCountResult$Type extends MessageType<GetProjectMetadataCountResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectMetadataCountResult", [
|
|
||||||
{ no: 1, name: "Domains", kind: "map", localName: "Domains", jsonName: "Domains", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => PrjMetadatasByDomain } },
|
|
||||||
{ no: 2, name: "Total", kind: "scalar", localName: "Total", jsonName: "Total", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectMetadataCountResult>): GetProjectMetadataCountResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Domains = {};
|
|
||||||
message.Total = 0n;
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectMetadataCountResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectMetadataCountResult): GetProjectMetadataCountResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* map<string, api.PrjMetadatasByDomain> Domains */ 1:
|
|
||||||
this.binaryReadMap1(message.Domains, reader, options);
|
|
||||||
break;
|
|
||||||
case /* int64 Total */ 2:
|
|
||||||
message.Total = reader.int64().toBigInt();
|
|
||||||
break;
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
private binaryReadMap1(map: GetProjectMetadataCountResult["Domains"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
||||||
let len = reader.uint32(), end = reader.pos + len, key: keyof GetProjectMetadataCountResult["Domains"] | undefined, val: GetProjectMetadataCountResult["Domains"][any] | undefined;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case 1:
|
|
||||||
key = reader.string();
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
val = PrjMetadatasByDomain.internalBinaryRead(reader, reader.uint32(), options);
|
|
||||||
break;
|
|
||||||
default: throw new globalThis.Error("unknown map entry field for api.GetProjectMetadataCountResult.Domains");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
map[key ?? ""] = val ?? PrjMetadatasByDomain.create();
|
|
||||||
}
|
|
||||||
internalBinaryWrite(message: GetProjectMetadataCountResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* map<string, api.PrjMetadatasByDomain> Domains = 1; */
|
|
||||||
for (let k of globalThis.Object.keys(message.Domains)) {
|
|
||||||
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
||||||
writer.tag(2, WireType.LengthDelimited).fork();
|
|
||||||
PrjMetadatasByDomain.internalBinaryWrite(message.Domains[k], writer, options);
|
|
||||||
writer.join().join();
|
|
||||||
}
|
|
||||||
/* int64 Total = 2; */
|
|
||||||
if (message.Total !== 0n)
|
|
||||||
writer.tag(2, WireType.Varint).int64(message.Total);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectMetadataCountResult
|
|
||||||
*/
|
|
||||||
export const GetProjectMetadataCountResult = new GetProjectMetadataCountResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectTransitiveMetadatasRequest$Type extends MessageType<GetProjectTransitiveMetadatasRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectTransitiveMetadatasRequest", [
|
|
||||||
{ no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab"] } } } },
|
|
||||||
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" }, "validate.rules": { string: { minLen: "1" } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Entity"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectTransitiveMetadatasRequest>): GetProjectTransitiveMetadatasRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Domain = "";
|
|
||||||
message.Entity = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectTransitiveMetadatasRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectTransitiveMetadatasRequest): GetProjectTransitiveMetadatasRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 4:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* string Domain */ 2:
|
|
||||||
message.Domain = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Entity */ 3:
|
|
||||||
message.Entity = reader.string();
|
|
||||||
break;
|
|
||||||
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: GetProjectTransitiveMetadatasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string Domain = 2; */
|
|
||||||
if (message.Domain !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
||||||
/* string Entity = 3; */
|
|
||||||
if (message.Entity !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Entity);
|
|
||||||
/* api.RequestProjectHeader Header = 4; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectTransitiveMetadatasRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectTransitiveMetadatasRequest = new GetProjectTransitiveMetadatasRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectTransitiveMetadatasResult$Type extends MessageType<GetProjectTransitiveMetadatasResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectTransitiveMetadatasResult", [
|
|
||||||
{ no: 1, name: "MetadataTransitive", kind: "message", localName: "MetadataTransitive", jsonName: "MetadataTransitive", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadataTransitive }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectTransitiveMetadatasResult>): GetProjectTransitiveMetadatasResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.MetadataTransitive = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectTransitiveMetadatasResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectTransitiveMetadatasResult): GetProjectTransitiveMetadatasResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated api.PrjMetadataTransitive MetadataTransitive */ 1:
|
|
||||||
message.MetadataTransitive.push(PrjMetadataTransitive.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
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: GetProjectTransitiveMetadatasResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated api.PrjMetadataTransitive MetadataTransitive = 1; */
|
|
||||||
for (let i = 0; i < message.MetadataTransitive.length; i++)
|
|
||||||
PrjMetadataTransitive.internalBinaryWrite(message.MetadataTransitive[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectTransitiveMetadatasResult
|
|
||||||
*/
|
|
||||||
export const GetProjectTransitiveMetadatasResult = new GetProjectTransitiveMetadatasResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class RestoreMetadatasRequest$Type extends MessageType<RestoreMetadatasRequest> {
|
class RestoreMetadatasRequest$Type extends MessageType<RestoreMetadatasRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.RestoreMetadatasRequest", [
|
super("api.RestoreMetadatasRequest", [
|
||||||
@@ -2327,17 +1520,11 @@ export const RestoreMetadatasResult = new RestoreMetadatasResult$Type();
|
|||||||
* @generated ServiceType for protobuf service api.MetadataService
|
* @generated ServiceType for protobuf service api.MetadataService
|
||||||
*/
|
*/
|
||||||
export const MetadataService = new ServiceType("api.MetadataService", [
|
export const MetadataService = new ServiceType("api.MetadataService", [
|
||||||
{ name: "CreateMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "DEPRECATED : replaced by CreateProjectMetadata. Create metadata" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateMetadataRequest, O: CreateMetadataResult },
|
{ name: "CreateMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Create metadata" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateMetadataRequest, O: CreateMetadataResult },
|
||||||
{ name: "UpdateMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "DEPRECATED : replaced by UpdateProjectMetadata. Update metadata" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateMetadataRequest, O: UpdateMetadataResult },
|
{ name: "UpdateMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Update metadata" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateMetadataRequest, O: UpdateMetadataResult },
|
||||||
{ name: "GetMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "DEPRECATED : replaced by GetProjectMetadata. Get metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMetadatasRequest, O: GetMetadatasResult },
|
{ name: "GetMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Get metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMetadatasRequest, O: GetMetadatasResult },
|
||||||
{ name: "DeleteMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "DEPRECATED : replaced by DeleteProjectMetadata. Delete metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteMetadatasRequest, O: DeleteMetadatasResult },
|
{ name: "DeleteMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Delete metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteMetadatasRequest, O: DeleteMetadatasResult },
|
||||||
{ name: "GetMetadataCount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "DEPRECATED : replaced by GetProjectMetadataCount. Get metadata count" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMetadataCountRequest, O: GetMetadataCountResult },
|
{ name: "GetMetadataCount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Get metadata count" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMetadataCountRequest, O: GetMetadataCountResult },
|
||||||
{ name: "GetTransitiveMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "DEPRECATED : replaced by GetprojectTransistiveMetadatas. Get transitive metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: GetTransitiveMetadatasRequest, O: GetTransitiveMetadatasResult },
|
{ name: "GetTransitiveMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Get transitive metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: GetTransitiveMetadatasRequest, O: GetTransitiveMetadatasResult },
|
||||||
{ name: "CreateProjectMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Create project metadata" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateProjectMetadataRequest, O: CreateProjectMetadataResult },
|
|
||||||
{ name: "UpdateProjectMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Update project metadata" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateProjectMetadataRequest, O: UpdateProjectMetadataResult },
|
|
||||||
{ name: "GetProjectMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Get project metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectMetadatasRequest, O: GetProjectMetadatasResult },
|
|
||||||
{ name: "DeleteProjectMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Delete project metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteProjectMetadatasRequest, O: DeleteProjectMetadatasResult },
|
|
||||||
{ name: "GetProjectMetadataCount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Get project metadata count" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectMetadataCountRequest, O: GetProjectMetadataCountResult },
|
|
||||||
{ name: "GetProjectTransitiveMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata"], description: "Get project transitive metadata" }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectTransitiveMetadatasRequest, O: GetProjectTransitiveMetadatasResult },
|
|
||||||
{ name: "RestoreMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "Restore metadatas" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: RestoreMetadatasRequest, O: RestoreMetadatasResult }
|
{ name: "RestoreMetadatas", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "Restore metadatas" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Metadata", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: RestoreMetadatasRequest, O: RestoreMetadatasResult }
|
||||||
], { "api.k8sService": "project-model-server" });
|
], { "api.k8sService": "project-model-server" });
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|||||||
import { ModelService } from "./model";
|
import { ModelService } from "./model";
|
||||||
import type { GetEntitiesResult } from "./model";
|
import type { GetEntitiesResult } from "./model";
|
||||||
import type { GetEntitiesRequest } from "./model";
|
import type { GetEntitiesRequest } from "./model";
|
||||||
import type { GetProjectEntityModelResult } from "./model";
|
|
||||||
import type { GetProjectEntityModelRequest } from "./model";
|
|
||||||
import type { GetProjectDataModelResult } from "./model";
|
|
||||||
import type { GetProjectDataModelRequest } from "./model";
|
|
||||||
import type { GetEntityModelResult } from "./model";
|
import type { GetEntityModelResult } from "./model";
|
||||||
import type { GetEntityModelRequest } from "./model";
|
import type { GetEntityModelRequest } from "./model";
|
||||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||||
@@ -22,23 +18,13 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|||||||
*/
|
*/
|
||||||
export interface IModelServiceClient {
|
export interface IModelServiceClient {
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetDataModel
|
* @generated from protobuf rpc: GetDataModel
|
||||||
*/
|
*/
|
||||||
getDataModel(input: GetDataModelRequest, options?: RpcOptions): UnaryCall<GetDataModelRequest, GetDataModelResult>;
|
getDataModel(input: GetDataModelRequest, options?: RpcOptions): UnaryCall<GetDataModelRequest, GetDataModelResult>;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetEntityModel
|
* @generated from protobuf rpc: GetEntityModel
|
||||||
*/
|
*/
|
||||||
getEntityModel(input: GetEntityModelRequest, options?: RpcOptions): UnaryCall<GetEntityModelRequest, GetEntityModelResult>;
|
getEntityModel(input: GetEntityModelRequest, options?: RpcOptions): UnaryCall<GetEntityModelRequest, GetEntityModelResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectDataModel
|
|
||||||
*/
|
|
||||||
getProjectDataModel(input: GetProjectDataModelRequest, options?: RpcOptions): UnaryCall<GetProjectDataModelRequest, GetProjectDataModelResult>;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectEntityModel
|
|
||||||
*/
|
|
||||||
getProjectEntityModel(input: GetProjectEntityModelRequest, options?: RpcOptions): UnaryCall<GetProjectEntityModelRequest, GetProjectEntityModelResult>;
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetEntities
|
* @generated from protobuf rpc: GetEntities
|
||||||
*/
|
*/
|
||||||
@@ -62,7 +48,6 @@ export class ModelServiceClient implements IModelServiceClient, ServiceInfo {
|
|||||||
constructor(private readonly _transport: RpcTransport) {
|
constructor(private readonly _transport: RpcTransport) {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetDataModel
|
* @generated from protobuf rpc: GetDataModel
|
||||||
*/
|
*/
|
||||||
getDataModel(input: GetDataModelRequest, options?: RpcOptions): UnaryCall<GetDataModelRequest, GetDataModelResult> {
|
getDataModel(input: GetDataModelRequest, options?: RpcOptions): UnaryCall<GetDataModelRequest, GetDataModelResult> {
|
||||||
@@ -70,46 +55,31 @@ export class ModelServiceClient implements IModelServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<GetDataModelRequest, GetDataModelResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetDataModelRequest, GetDataModelResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetEntityModel
|
* @generated from protobuf rpc: GetEntityModel
|
||||||
*/
|
*/
|
||||||
getEntityModel(input: GetEntityModelRequest, options?: RpcOptions): UnaryCall<GetEntityModelRequest, GetEntityModelResult> {
|
getEntityModel(input: GetEntityModelRequest, options?: RpcOptions): UnaryCall<GetEntityModelRequest, GetEntityModelResult> {
|
||||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetEntityModelRequest, GetEntityModelResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetEntityModelRequest, GetEntityModelResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectDataModel
|
|
||||||
*/
|
|
||||||
getProjectDataModel(input: GetProjectDataModelRequest, options?: RpcOptions): UnaryCall<GetProjectDataModelRequest, GetProjectDataModelResult> {
|
|
||||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectDataModelRequest, GetProjectDataModelResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectEntityModel
|
|
||||||
*/
|
|
||||||
getProjectEntityModel(input: GetProjectEntityModelRequest, options?: RpcOptions): UnaryCall<GetProjectEntityModelRequest, GetProjectEntityModelResult> {
|
|
||||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectEntityModelRequest, GetProjectEntityModelResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetEntities
|
* @generated from protobuf rpc: GetEntities
|
||||||
*/
|
*/
|
||||||
getEntities(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
|
getEntities(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
|
||||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetEntitiesWithMetadata
|
* @generated from protobuf rpc: GetEntitiesWithMetadata
|
||||||
*/
|
*/
|
||||||
getEntitiesWithMetadata(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
|
getEntitiesWithMetadata(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
|
||||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: GetEntitiesWithDataRestriction
|
* @generated from protobuf rpc: GetEntitiesWithDataRestriction
|
||||||
*/
|
*/
|
||||||
getEntitiesWithDataRestriction(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
|
getEntitiesWithDataRestriction(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
|
||||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
271
model.ts
271
model.ts
@@ -64,7 +64,6 @@ export interface DataFilters {
|
|||||||
Screen: string;
|
Screen: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetDataModelRequest
|
* @generated from protobuf message api.GetDataModelRequest
|
||||||
*/
|
*/
|
||||||
export interface GetDataModelRequest {
|
export interface GetDataModelRequest {
|
||||||
@@ -78,7 +77,6 @@ export interface GetDataModelRequest {
|
|||||||
Filters?: DataFilters;
|
Filters?: DataFilters;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetDataModelResult
|
* @generated from protobuf message api.GetDataModelResult
|
||||||
*/
|
*/
|
||||||
export interface GetDataModelResult {
|
export interface GetDataModelResult {
|
||||||
@@ -87,28 +85,6 @@ export interface GetDataModelResult {
|
|||||||
*/
|
*/
|
||||||
DataModel: string[];
|
DataModel: string[];
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectDataModelRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectDataModelRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.DataFilters Filters = 2
|
|
||||||
*/
|
|
||||||
Filters?: DataFilters;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectDataModelResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectDataModelResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated string DataModel = 1
|
|
||||||
*/
|
|
||||||
DataModel: string[];
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.GetSiteDataModelRequest
|
* @generated from protobuf message api.GetSiteDataModelRequest
|
||||||
*/
|
*/
|
||||||
@@ -132,7 +108,6 @@ export interface GetSiteDataModelResult {
|
|||||||
DataModel: string[];
|
DataModel: string[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetEntityModelRequest
|
* @generated from protobuf message api.GetEntityModelRequest
|
||||||
*/
|
*/
|
||||||
export interface GetEntityModelRequest {
|
export interface GetEntityModelRequest {
|
||||||
@@ -150,7 +125,6 @@ export interface GetEntityModelRequest {
|
|||||||
Domain: string;
|
Domain: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetEntityModelResult
|
* @generated from protobuf message api.GetEntityModelResult
|
||||||
*/
|
*/
|
||||||
export interface GetEntityModelResult {
|
export interface GetEntityModelResult {
|
||||||
@@ -159,32 +133,6 @@ export interface GetEntityModelResult {
|
|||||||
*/
|
*/
|
||||||
JsonFormatModel: string;
|
JsonFormatModel: string;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectEntityModelRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectEntityModelRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Entity = 2
|
|
||||||
*/
|
|
||||||
Entity: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Domain = 3
|
|
||||||
*/
|
|
||||||
Domain: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectEntityModelResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectEntityModelResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string JsonFormatModel = 1
|
|
||||||
*/
|
|
||||||
JsonFormatModel: string;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.GetSiteEntityModelRequest
|
* @generated from protobuf message api.GetSiteEntityModelRequest
|
||||||
*/
|
*/
|
||||||
@@ -342,7 +290,6 @@ class GetDataModelRequest$Type extends MessageType<GetDataModelRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetDataModelRequest
|
* @generated MessageType for protobuf message api.GetDataModelRequest
|
||||||
*/
|
*/
|
||||||
export const GetDataModelRequest = new GetDataModelRequest$Type();
|
export const GetDataModelRequest = new GetDataModelRequest$Type();
|
||||||
@@ -390,111 +337,10 @@ class GetDataModelResult$Type extends MessageType<GetDataModelResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetDataModelResult
|
* @generated MessageType for protobuf message api.GetDataModelResult
|
||||||
*/
|
*/
|
||||||
export const GetDataModelResult = new GetDataModelResult$Type();
|
export const GetDataModelResult = new GetDataModelResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class GetProjectDataModelRequest$Type extends MessageType<GetProjectDataModelRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectDataModelRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "validate.rules": { message: { required: true } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filters"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectDataModelRequest>): GetProjectDataModelRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectDataModelRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectDataModelRequest): GetProjectDataModelRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 1:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* api.DataFilters Filters */ 2:
|
|
||||||
message.Filters = DataFilters.internalBinaryRead(reader, reader.uint32(), options, message.Filters);
|
|
||||||
break;
|
|
||||||
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: GetProjectDataModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.RequestProjectHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* api.DataFilters Filters = 2; */
|
|
||||||
if (message.Filters)
|
|
||||||
DataFilters.internalBinaryWrite(message.Filters, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectDataModelRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectDataModelRequest = new GetProjectDataModelRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectDataModelResult$Type extends MessageType<GetProjectDataModelResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectDataModelResult", [
|
|
||||||
{ no: 1, name: "DataModel", kind: "scalar", localName: "DataModel", jsonName: "DataModel", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectDataModelResult>): GetProjectDataModelResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.DataModel = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectDataModelResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectDataModelResult): GetProjectDataModelResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated string DataModel */ 1:
|
|
||||||
message.DataModel.push(reader.string());
|
|
||||||
break;
|
|
||||||
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: GetProjectDataModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated string DataModel = 1; */
|
|
||||||
for (let i = 0; i < message.DataModel.length; i++)
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.DataModel[i]);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectDataModelResult
|
|
||||||
*/
|
|
||||||
export const GetProjectDataModelResult = new GetProjectDataModelResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteDataModelRequest$Type extends MessageType<GetSiteDataModelRequest> {
|
class GetSiteDataModelRequest$Type extends MessageType<GetSiteDataModelRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetSiteDataModelRequest", [
|
super("api.GetSiteDataModelRequest", [
|
||||||
@@ -653,7 +499,6 @@ class GetEntityModelRequest$Type extends MessageType<GetEntityModelRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetEntityModelRequest
|
* @generated MessageType for protobuf message api.GetEntityModelRequest
|
||||||
*/
|
*/
|
||||||
export const GetEntityModelRequest = new GetEntityModelRequest$Type();
|
export const GetEntityModelRequest = new GetEntityModelRequest$Type();
|
||||||
@@ -701,120 +546,10 @@ class GetEntityModelResult$Type extends MessageType<GetEntityModelResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetEntityModelResult
|
* @generated MessageType for protobuf message api.GetEntityModelResult
|
||||||
*/
|
*/
|
||||||
export const GetEntityModelResult = new GetEntityModelResult$Type();
|
export const GetEntityModelResult = new GetEntityModelResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class GetProjectEntityModelRequest$Type extends MessageType<GetProjectEntityModelRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectEntityModelRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" }, "validate.rules": { string: { in: ["trade", "collab"] } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectEntityModelRequest>): GetProjectEntityModelRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Entity = "";
|
|
||||||
message.Domain = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectEntityModelRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectEntityModelRequest): GetProjectEntityModelRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 1:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* string Entity */ 2:
|
|
||||||
message.Entity = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Domain */ 3:
|
|
||||||
message.Domain = reader.string();
|
|
||||||
break;
|
|
||||||
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: GetProjectEntityModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.RequestProjectHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* string Entity = 2; */
|
|
||||||
if (message.Entity !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Entity);
|
|
||||||
/* string Domain = 3; */
|
|
||||||
if (message.Domain !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Domain);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectEntityModelRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectEntityModelRequest = new GetProjectEntityModelRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectEntityModelResult$Type extends MessageType<GetProjectEntityModelResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectEntityModelResult", [
|
|
||||||
{ no: 1, name: "JsonFormatModel", kind: "scalar", localName: "JsonFormatModel", jsonName: "JsonFormatModel", T: 9 /*ScalarType.STRING*/ }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectEntityModelResult>): GetProjectEntityModelResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.JsonFormatModel = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectEntityModelResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectEntityModelResult): GetProjectEntityModelResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* string JsonFormatModel */ 1:
|
|
||||||
message.JsonFormatModel = reader.string();
|
|
||||||
break;
|
|
||||||
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: GetProjectEntityModelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* string JsonFormatModel = 1; */
|
|
||||||
if (message.JsonFormatModel !== "")
|
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.JsonFormatModel);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectEntityModelResult
|
|
||||||
*/
|
|
||||||
export const GetProjectEntityModelResult = new GetProjectEntityModelResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteEntityModelRequest$Type extends MessageType<GetSiteEntityModelRequest> {
|
class GetSiteEntityModelRequest$Type extends MessageType<GetSiteEntityModelRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetSiteEntityModelRequest", [
|
super("api.GetSiteEntityModelRequest", [
|
||||||
@@ -1021,10 +756,8 @@ export const GetEntitiesResult = new GetEntitiesResult$Type();
|
|||||||
* @generated ServiceType for protobuf service api.ModelService
|
* @generated ServiceType for protobuf service api.ModelService
|
||||||
*/
|
*/
|
||||||
export const ModelService = new ServiceType("api.ModelService", [
|
export const ModelService = new ServiceType("api.ModelService", [
|
||||||
{ name: "GetDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "DEPRECATED : replaced by GetProjectDataModel. Get project data model" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetDataModelRequest, O: GetDataModelResult },
|
{ name: "GetDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get project data model" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetDataModelRequest, O: GetDataModelResult },
|
||||||
{ name: "GetEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "DEPRECATED : replaced by GetProjectEntityModel. Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntityModelRequest, O: GetEntityModelResult },
|
{ name: "GetEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntityModelRequest, O: GetEntityModelResult },
|
||||||
{ name: "GetProjectDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get project data model" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectDataModelRequest, O: GetProjectDataModelResult },
|
|
||||||
{ name: "GetProjectEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with project metadata in Json Format" }, "api.rscType": "Project", "api.roles": "Platform.Project-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectEntityModelRequest, O: GetProjectEntityModelResult },
|
|
||||||
{ name: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
|
{ name: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
|
||||||
{ name: "GetEntitiesWithMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with metadata" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
|
{ name: "GetEntitiesWithMetadata", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with metadata" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult },
|
||||||
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult }
|
{ name: "GetEntitiesWithDataRestriction", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-core-sdk",
|
"name": "@reflex-platform/npm-core-sdk",
|
||||||
"version": "1.12.0-SNAPSHOT-251118103055",
|
"version": "1.12.0-SNAPSHOT-251118135424",
|
||||||
"description": "npm libs from core model proto files",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
import { ViewService } from "./view";
|
import { ViewService } from "./view";
|
||||||
import type { GetProjectViewFieldsResult } from "./view";
|
|
||||||
import type { GetProjectViewFieldsRequest } from "./view";
|
|
||||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||||
import type { GetViewFieldsResult } from "./view";
|
import type { GetViewFieldsResult } from "./view";
|
||||||
import type { GetViewFieldsRequest } from "./view";
|
import type { GetViewFieldsRequest } from "./view";
|
||||||
@@ -16,14 +14,9 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|||||||
*/
|
*/
|
||||||
export interface IViewServiceClient {
|
export interface IViewServiceClient {
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetViewFields
|
* @generated from protobuf rpc: GetViewFields
|
||||||
*/
|
*/
|
||||||
getViewFields(input: GetViewFieldsRequest, options?: RpcOptions): UnaryCall<GetViewFieldsRequest, GetViewFieldsResult>;
|
getViewFields(input: GetViewFieldsRequest, options?: RpcOptions): UnaryCall<GetViewFieldsRequest, GetViewFieldsResult>;
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectViewFields
|
|
||||||
*/
|
|
||||||
getProjectViewFields(input: GetProjectViewFieldsRequest, options?: RpcOptions): UnaryCall<GetProjectViewFieldsRequest, GetProjectViewFieldsResult>;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf service api.ViewService
|
* @generated from protobuf service api.ViewService
|
||||||
@@ -35,18 +28,10 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
|
|||||||
constructor(private readonly _transport: RpcTransport) {
|
constructor(private readonly _transport: RpcTransport) {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf rpc: GetViewFields
|
* @generated from protobuf rpc: GetViewFields
|
||||||
*/
|
*/
|
||||||
getViewFields(input: GetViewFieldsRequest, options?: RpcOptions): UnaryCall<GetViewFieldsRequest, GetViewFieldsResult> {
|
getViewFields(input: GetViewFieldsRequest, options?: RpcOptions): UnaryCall<GetViewFieldsRequest, GetViewFieldsResult> {
|
||||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<GetViewFieldsRequest, GetViewFieldsResult>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetViewFieldsRequest, GetViewFieldsResult>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf rpc: GetProjectViewFields
|
|
||||||
*/
|
|
||||||
getProjectViewFields(input: GetProjectViewFieldsRequest, options?: RpcOptions): UnaryCall<GetProjectViewFieldsRequest, GetProjectViewFieldsResult> {
|
|
||||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
||||||
return stackIntercept<GetProjectViewFieldsRequest, GetProjectViewFieldsResult>("unary", this._transport, method, opt, input);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
194
view.ts
194
view.ts
@@ -94,7 +94,6 @@ export interface FieldView {
|
|||||||
EntityPathKey: string;
|
EntityPathKey: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetViewFieldsRequest
|
* @generated from protobuf message api.GetViewFieldsRequest
|
||||||
*/
|
*/
|
||||||
export interface GetViewFieldsRequest {
|
export interface GetViewFieldsRequest {
|
||||||
@@ -132,7 +131,6 @@ export interface GetViewFieldsRequest {
|
|||||||
KpiGroupFilter: string;
|
KpiGroupFilter: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated from protobuf message api.GetViewFieldsResult
|
* @generated from protobuf message api.GetViewFieldsResult
|
||||||
*/
|
*/
|
||||||
export interface GetViewFieldsResult {
|
export interface GetViewFieldsResult {
|
||||||
@@ -141,52 +139,6 @@ export interface GetViewFieldsResult {
|
|||||||
*/
|
*/
|
||||||
Fields: FieldView[];
|
Fields: FieldView[];
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectViewFieldsRequest
|
|
||||||
*/
|
|
||||||
export interface GetProjectViewFieldsRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Domain = 2
|
|
||||||
*/
|
|
||||||
Domain: string;
|
|
||||||
/**
|
|
||||||
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Entity = 3
|
|
||||||
*/
|
|
||||||
Entity: string;
|
|
||||||
/**
|
|
||||||
* Fields that are not used in this entity
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: repeated string OmmittedList = 4
|
|
||||||
*/
|
|
||||||
OmmittedList: string[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string StartingPath = 5
|
|
||||||
*/
|
|
||||||
StartingPath: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool OnlySegmentationKeys = 6
|
|
||||||
*/
|
|
||||||
OnlySegmentationKeys: boolean;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string KpiGroupFilter = 7
|
|
||||||
*/
|
|
||||||
KpiGroupFilter: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetProjectViewFieldsResult
|
|
||||||
*/
|
|
||||||
export interface GetProjectViewFieldsResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.FieldView Fields = 1
|
|
||||||
*/
|
|
||||||
Fields: FieldView[];
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.GetSiteViewFieldsRequest
|
* @generated from protobuf message api.GetSiteViewFieldsRequest
|
||||||
*/
|
*/
|
||||||
@@ -507,7 +459,6 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetViewFieldsRequest
|
* @generated MessageType for protobuf message api.GetViewFieldsRequest
|
||||||
*/
|
*/
|
||||||
export const GetViewFieldsRequest = new GetViewFieldsRequest$Type();
|
export const GetViewFieldsRequest = new GetViewFieldsRequest$Type();
|
||||||
@@ -555,152 +506,10 @@ class GetViewFieldsResult$Type extends MessageType<GetViewFieldsResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
|
||||||
* @generated MessageType for protobuf message api.GetViewFieldsResult
|
* @generated MessageType for protobuf message api.GetViewFieldsResult
|
||||||
*/
|
*/
|
||||||
export const GetViewFieldsResult = new GetViewFieldsResult$Type();
|
export const GetViewFieldsResult = new GetViewFieldsResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class GetProjectViewFieldsRequest$Type extends MessageType<GetProjectViewFieldsRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectViewFieldsRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab", "core"] } } } },
|
|
||||||
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
||||||
{ no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } },
|
|
||||||
{ no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ },
|
|
||||||
{ no: 7, name: "KpiGroupFilter", kind: "scalar", localName: "KpiGroupFilter", jsonName: "KpiGroupFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Only fields matching this kpi group name" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectViewFieldsRequest>): GetProjectViewFieldsRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Domain = "";
|
|
||||||
message.Entity = "";
|
|
||||||
message.OmmittedList = [];
|
|
||||||
message.StartingPath = "";
|
|
||||||
message.OnlySegmentationKeys = false;
|
|
||||||
message.KpiGroupFilter = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectViewFieldsRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectViewFieldsRequest): GetProjectViewFieldsRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 1:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* string Domain */ 2:
|
|
||||||
message.Domain = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Entity */ 3:
|
|
||||||
message.Entity = reader.string();
|
|
||||||
break;
|
|
||||||
case /* repeated string OmmittedList */ 4:
|
|
||||||
message.OmmittedList.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* string StartingPath */ 5:
|
|
||||||
message.StartingPath = reader.string();
|
|
||||||
break;
|
|
||||||
case /* bool OnlySegmentationKeys */ 6:
|
|
||||||
message.OnlySegmentationKeys = reader.bool();
|
|
||||||
break;
|
|
||||||
case /* string KpiGroupFilter */ 7:
|
|
||||||
message.KpiGroupFilter = reader.string();
|
|
||||||
break;
|
|
||||||
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: GetProjectViewFieldsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.RequestProjectHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* string Domain = 2; */
|
|
||||||
if (message.Domain !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
||||||
/* string Entity = 3; */
|
|
||||||
if (message.Entity !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Entity);
|
|
||||||
/* repeated string OmmittedList = 4; */
|
|
||||||
for (let i = 0; i < message.OmmittedList.length; i++)
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.OmmittedList[i]);
|
|
||||||
/* string StartingPath = 5; */
|
|
||||||
if (message.StartingPath !== "")
|
|
||||||
writer.tag(5, WireType.LengthDelimited).string(message.StartingPath);
|
|
||||||
/* bool OnlySegmentationKeys = 6; */
|
|
||||||
if (message.OnlySegmentationKeys !== false)
|
|
||||||
writer.tag(6, WireType.Varint).bool(message.OnlySegmentationKeys);
|
|
||||||
/* string KpiGroupFilter = 7; */
|
|
||||||
if (message.KpiGroupFilter !== "")
|
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.KpiGroupFilter);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectViewFieldsRequest
|
|
||||||
*/
|
|
||||||
export const GetProjectViewFieldsRequest = new GetProjectViewFieldsRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetProjectViewFieldsResult$Type extends MessageType<GetProjectViewFieldsResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetProjectViewFieldsResult", [
|
|
||||||
{ no: 1, name: "Fields", kind: "message", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldView }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetProjectViewFieldsResult>): GetProjectViewFieldsResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Fields = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetProjectViewFieldsResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectViewFieldsResult): GetProjectViewFieldsResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated api.FieldView Fields */ 1:
|
|
||||||
message.Fields.push(FieldView.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
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: GetProjectViewFieldsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated api.FieldView Fields = 1; */
|
|
||||||
for (let i = 0; i < message.Fields.length; i++)
|
|
||||||
FieldView.internalBinaryWrite(message.Fields[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetProjectViewFieldsResult
|
|
||||||
*/
|
|
||||||
export const GetProjectViewFieldsResult = new GetProjectViewFieldsResult$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest> {
|
class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetSiteViewFieldsRequest", [
|
super("api.GetSiteViewFieldsRequest", [
|
||||||
@@ -845,6 +654,5 @@ export const GetSiteViewFieldsResult = new GetSiteViewFieldsResult$Type();
|
|||||||
* @generated ServiceType for protobuf service api.ViewService
|
* @generated ServiceType for protobuf service api.ViewService
|
||||||
*/
|
*/
|
||||||
export const ViewService = new ServiceType("api.ViewService", [
|
export const ViewService = new ServiceType("api.ViewService", [
|
||||||
{ name: "GetViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "DEPRECATED : replaced by GetProjectViewFields. Get view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetViewFieldsRequest, O: GetViewFieldsResult },
|
{ name: "GetViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetViewFieldsRequest, O: GetViewFieldsResult }
|
||||||
{ name: "GetProjectViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get project view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectViewFieldsRequest, O: GetProjectViewFieldsResult }
|
|
||||||
], { "api.k8sService": "project-model-server" });
|
], { "api.k8sService": "project-model-server" });
|
||||||
|
|||||||
Reference in New Issue
Block a user