Latest generation

This commit is contained in:
ci core model
2025-06-12 13:11:54 +00:00
parent 9414b2cd34
commit ae1bb15115
11 changed files with 2727 additions and 678 deletions

View File

@@ -6,10 +6,10 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ElasticService } from "./elastic";
import type { ClearIndexEntityResult } from "./elastic";
import type { ClearIndexEntityRequest } from "./elastic";
import type { DeleteProjectMappingsResult } from "./elastic";
import type { DeleteProjectMappingsRequest } from "./elastic";
import type { CreateProjectMappingsResult } from "./elastic";
import type { CreateProjectMappingsRequest } from "./elastic";
import type { DeleteResourceMappingsResult } from "./elastic";
import type { DeleteResourceMappingsRequest } from "./elastic";
import type { CreateResourceMappingsResult } from "./elastic";
import type { CreateResourceMappingsRequest } from "./elastic";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { UpdateModelMappingsResult } from "./elastic";
import type { UpdateModelMappingsRequest } from "./elastic";
@@ -19,130 +19,18 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
* @generated from protobuf service api.ElasticService
*/
export interface IElasticServiceClient {
//
// rpc ReIndexElastic (ReIndexElasticRequest) returns (ReIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "ReIndex Elastic indices. If no temporary index prefix is set, reindexes the index of each entity to temporary ones else reindexes the index of each entity from temporary ones."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIndexElastic (DeleteIndexElasticRequest) returns (DeleteIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete Elastic indices. If no temporary index prefix is set, deletes the index of each entity else deletes the temporary indexes."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetReindexStatus (GetReindexStatusRequest) returns (GetReindexStatusResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get the status of an asynchrone reindex task. The TaskIDs attribute contains the task id for each entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GenerateElasticTemplate (GenerateElasticTemplateRequest) returns (GenerateElasticTemplateResult) {
// option (rscType) = "Platform";
// option (roles) = "Platform.Elastic";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Generate new Elastic template from platform model"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateIsmPolicy (CreateIsmPolicyRequest) returns (CreateIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIsmPolicy (DeleteIsmPolicyRequest) returns (DeleteIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateManagedIndexes (CreateManagedIndexesRequest) returns (CreateManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create RolloverTemplate for each entity, then created the managed Index with alias. ISM policy should be already created."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetCurrentManagedIndexes (GetCurrentManagedIndexesRequest) returns (GetCurrentManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all current managed indexes for all entities"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetEntityAllManagedIndexes (GetEntityAllManagedIndexesRequest) returns (GetEntityAllManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all managed indexes for the entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryFailedManagedIndexPolicy (RetryFailedManagedIndexPolicyRequest) returns (RetryFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryAllFailedManagedIndexPolicy (RetryAllFailedManagedIndexPolicyRequest) returns (RetryAllFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry all failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
/**
* @generated from protobuf rpc: UpdateModelMappings
*/
updateModelMappings(input: UpdateModelMappingsRequest, options?: RpcOptions): UnaryCall<UpdateModelMappingsRequest, UpdateModelMappingsResult>;
/**
* @generated from protobuf rpc: CreateProjectMappings
* @generated from protobuf rpc: CreateResourceMappings
*/
createProjectMappings(input: CreateProjectMappingsRequest, options?: RpcOptions): UnaryCall<CreateProjectMappingsRequest, CreateProjectMappingsResult>;
createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall<CreateResourceMappingsRequest, CreateResourceMappingsResult>;
/**
* @generated from protobuf rpc: DeleteProjectMappings
* @generated from protobuf rpc: DeleteResourceMappings
*/
deleteProjectMappings(input: DeleteProjectMappingsRequest, options?: RpcOptions): UnaryCall<DeleteProjectMappingsRequest, DeleteProjectMappingsResult>;
deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall<DeleteResourceMappingsRequest, DeleteResourceMappingsResult>;
/**
* @generated from protobuf rpc: ClearIndexEntity
*/
@@ -157,118 +45,6 @@ export class ElasticServiceClient implements IElasticServiceClient, ServiceInfo
options = ElasticService.options;
constructor(private readonly _transport: RpcTransport) {
}
//
// rpc ReIndexElastic (ReIndexElasticRequest) returns (ReIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "ReIndex Elastic indices. If no temporary index prefix is set, reindexes the index of each entity to temporary ones else reindexes the index of each entity from temporary ones."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIndexElastic (DeleteIndexElasticRequest) returns (DeleteIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete Elastic indices. If no temporary index prefix is set, deletes the index of each entity else deletes the temporary indexes."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetReindexStatus (GetReindexStatusRequest) returns (GetReindexStatusResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get the status of an asynchrone reindex task. The TaskIDs attribute contains the task id for each entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GenerateElasticTemplate (GenerateElasticTemplateRequest) returns (GenerateElasticTemplateResult) {
// option (rscType) = "Platform";
// option (roles) = "Platform.Elastic";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Generate new Elastic template from platform model"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateIsmPolicy (CreateIsmPolicyRequest) returns (CreateIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIsmPolicy (DeleteIsmPolicyRequest) returns (DeleteIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateManagedIndexes (CreateManagedIndexesRequest) returns (CreateManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create RolloverTemplate for each entity, then created the managed Index with alias. ISM policy should be already created."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetCurrentManagedIndexes (GetCurrentManagedIndexesRequest) returns (GetCurrentManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all current managed indexes for all entities"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetEntityAllManagedIndexes (GetEntityAllManagedIndexesRequest) returns (GetEntityAllManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all managed indexes for the entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryFailedManagedIndexPolicy (RetryFailedManagedIndexPolicyRequest) returns (RetryFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryAllFailedManagedIndexPolicy (RetryAllFailedManagedIndexPolicyRequest) returns (RetryAllFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry all failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
/**
* @generated from protobuf rpc: UpdateModelMappings
*/
@@ -277,18 +53,18 @@ export class ElasticServiceClient implements IElasticServiceClient, ServiceInfo
return stackIntercept<UpdateModelMappingsRequest, UpdateModelMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateProjectMappings
* @generated from protobuf rpc: CreateResourceMappings
*/
createProjectMappings(input: CreateProjectMappingsRequest, options?: RpcOptions): UnaryCall<CreateProjectMappingsRequest, CreateProjectMappingsResult> {
createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall<CreateResourceMappingsRequest, CreateResourceMappingsResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateProjectMappingsRequest, CreateProjectMappingsResult>("unary", this._transport, method, opt, input);
return stackIntercept<CreateResourceMappingsRequest, CreateResourceMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteProjectMappings
* @generated from protobuf rpc: DeleteResourceMappings
*/
deleteProjectMappings(input: DeleteProjectMappingsRequest, options?: RpcOptions): UnaryCall<DeleteProjectMappingsRequest, DeleteProjectMappingsResult> {
deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall<DeleteResourceMappingsRequest, DeleteResourceMappingsResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteProjectMappingsRequest, DeleteProjectMappingsResult>("unary", this._transport, method, opt, input);
return stackIntercept<DeleteResourceMappingsRequest, DeleteResourceMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearIndexEntity

View File

@@ -12,180 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ModelDataSetEnum } from "./shared";
//
// message ReIndexElasticRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// string TemporaryIndexPrefix = 3;
// }
//
// message ReIndexElasticResult {
// map<string, string> TaskIDs = 1;
// string TemporaryIndexPrefix = 3;
// }
//
// message DeleteIndexElasticRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// string TemporaryIndexPrefix = 2;
// }
//
// message DeleteIndexElasticResult {
// map<string, bool> Completed = 1;
// }
//
// message GetReindexStatusRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// map<string, string> TaskIDs = 2;
// }
//
// message GetReindexStatusResult {
// map<string, bool> Completed = 1;
// }
//
// message GenerateElasticTemplateRequest {
// }
//
// message GenerateElasticTemplateResult {
// map<string, bool> TemplateGeneration = 1;
// }
//
// enum EsIndexStatus {
// ES_INDEX_STATUS_UNKNOWN = 0;
// ES_INDEX_STATUS_CREATED = 1;
// ES_INDEX_STATUS_COMPLETED = 2;
// ES_INDEX_STATUS_RUNNING = 3;
// ES_INDEX_STATUS_FAILED = 4;
// }
//
// message ManagedIndexInfo {
// string Alias = 1;
// string Index = 2;
// string State = 3;
// string Info = 4;
// EsIndexStatus Status = 5;
// }
// message CreateIsmPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message CreateIsmPolicyResult {
// }
// message DeleteIsmPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message DeleteIsmPolicyResult {
// }
// message CreateManagedIndexesRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message CreateManagedIndexesResult {
// repeated ManagedIndexInfo ManagedIndexInfo = 1;
// }
// message GetCurrentManagedIndexesRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message GetCurrentManagedIndexesResult {
// repeated ManagedIndexInfo ManagedIndexInfo = 1;
// }
// message GetEntityAllManagedIndexesRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID", "EntityID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// string EntityID = 2
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message GetEntityAllManagedIndexesResult {
// repeated ManagedIndexInfo ManagedIndexInfo = 1;
// }
// message RetryFailedManagedIndexPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Index"]
// }
// };
// string Index = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message RetryFailedManagedIndexPolicyResult {
// }
// message RetryAllFailedManagedIndexPolicyRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["ProjectID"]
// }
// };
// string ProjectID = 1
// [
// (validate.rules).string.min_len = 1
// ];
// }
// message RetryAllFailedManagedIndexPolicyResult {
// }
import { ResourceType } from "./shared";
/**
* @generated from protobuf message api.UpdateModelMappingsRequest
*/
@@ -203,18 +30,22 @@ export interface UpdateModelMappingsResult {
};
}
/**
* @generated from protobuf message api.CreateProjectMappingsRequest
* @generated from protobuf message api.CreateResourceMappingsRequest
*/
export interface CreateProjectMappingsRequest {
export interface CreateResourceMappingsRequest {
/**
* @generated from protobuf field: string ProjectID = 1
* @generated from protobuf field: string RscID = 1
*/
ProjectID: string;
RscID: string;
/**
* @generated from protobuf field: api.ResourceType RscType = 2
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.CreateProjectMappingsResult
* @generated from protobuf message api.CreateResourceMappingsResult
*/
export interface CreateProjectMappingsResult {
export interface CreateResourceMappingsResult {
/**
* @generated from protobuf field: map<string, bool> TemplateGeneration = 1
*/
@@ -223,18 +54,22 @@ export interface CreateProjectMappingsResult {
};
}
/**
* @generated from protobuf message api.DeleteProjectMappingsRequest
* @generated from protobuf message api.DeleteResourceMappingsRequest
*/
export interface DeleteProjectMappingsRequest {
export interface DeleteResourceMappingsRequest {
/**
* @generated from protobuf field: string ProjectID = 1
* @generated from protobuf field: string RscID = 1
*/
ProjectID: string;
RscID: string;
/**
* @generated from protobuf field: api.ResourceType RscType = 2
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.DeleteProjectMappingsResult
* @generated from protobuf message api.DeleteResourceMappingsResult
*/
export interface DeleteProjectMappingsResult {
export interface DeleteResourceMappingsResult {
/**
* @generated from protobuf field: map<string, bool> TemplateDeletion = 1
*/
@@ -247,13 +82,17 @@ export interface DeleteProjectMappingsResult {
*/
export interface ClearIndexEntityRequest {
/**
* @generated from protobuf field: string ProjectID = 1
* @generated from protobuf field: string RscID = 1
*/
ProjectID: string;
RscID: string;
/**
* @generated from protobuf field: api.ModelDataSetEnum Entity = 2
*/
Entity: ModelDataSetEnum;
/**
* @generated from protobuf field: api.ResourceType RscType = 3
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.ClearIndexEntityResult
@@ -362,26 +201,31 @@ class UpdateModelMappingsResult$Type extends MessageType<UpdateModelMappingsResu
*/
export const UpdateModelMappingsResult = new UpdateModelMappingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateProjectMappingsRequest$Type extends MessageType<CreateProjectMappingsRequest> {
class CreateResourceMappingsRequest$Type extends MessageType<CreateResourceMappingsRequest> {
constructor() {
super("api.CreateProjectMappingsRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
super("api.CreateResourceMappingsRequest", [
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } });
}
create(value?: PartialMessage<CreateProjectMappingsRequest>): CreateProjectMappingsRequest {
create(value?: PartialMessage<CreateResourceMappingsRequest>): CreateResourceMappingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.RscID = "";
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<CreateProjectMappingsRequest>(this, message, value);
reflectionMergePartial<CreateResourceMappingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectMappingsRequest): CreateProjectMappingsRequest {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateResourceMappingsRequest): CreateResourceMappingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
case /* string RscID */ 1:
message.RscID = reader.string();
break;
case /* api.ResourceType RscType */ 2:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -394,10 +238,13 @@ class CreateProjectMappingsRequest$Type extends MessageType<CreateProjectMapping
}
return message;
}
internalBinaryWrite(message: CreateProjectMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
internalBinaryWrite(message: CreateResourceMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RscID = 1; */
if (message.RscID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
/* api.ResourceType RscType = 2; */
if (message.RscType !== 0)
writer.tag(2, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -405,24 +252,24 @@ class CreateProjectMappingsRequest$Type extends MessageType<CreateProjectMapping
}
}
/**
* @generated MessageType for protobuf message api.CreateProjectMappingsRequest
* @generated MessageType for protobuf message api.CreateResourceMappingsRequest
*/
export const CreateProjectMappingsRequest = new CreateProjectMappingsRequest$Type();
export const CreateResourceMappingsRequest = new CreateResourceMappingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappingsResult> {
class CreateResourceMappingsResult$Type extends MessageType<CreateResourceMappingsResult> {
constructor() {
super("api.CreateProjectMappingsResult", [
super("api.CreateResourceMappingsResult", [
{ no: 1, name: "TemplateGeneration", kind: "map", localName: "TemplateGeneration", jsonName: "TemplateGeneration", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 8 /*ScalarType.BOOL*/ } }
]);
}
create(value?: PartialMessage<CreateProjectMappingsResult>): CreateProjectMappingsResult {
create(value?: PartialMessage<CreateResourceMappingsResult>): CreateResourceMappingsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.TemplateGeneration = {};
if (value !== undefined)
reflectionMergePartial<CreateProjectMappingsResult>(this, message, value);
reflectionMergePartial<CreateResourceMappingsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectMappingsResult): CreateProjectMappingsResult {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateResourceMappingsResult): CreateResourceMappingsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
@@ -441,8 +288,8 @@ class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappings
}
return message;
}
private binaryReadMap1(map: CreateProjectMappingsResult["TemplateGeneration"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateProjectMappingsResult["TemplateGeneration"] | undefined, val: CreateProjectMappingsResult["TemplateGeneration"][any] | undefined;
private binaryReadMap1(map: CreateResourceMappingsResult["TemplateGeneration"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateResourceMappingsResult["TemplateGeneration"] | undefined, val: CreateResourceMappingsResult["TemplateGeneration"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
@@ -452,12 +299,12 @@ class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappings
case 2:
val = reader.bool();
break;
default: throw new globalThis.Error("unknown map entry field for api.CreateProjectMappingsResult.TemplateGeneration");
default: throw new globalThis.Error("unknown map entry field for api.CreateResourceMappingsResult.TemplateGeneration");
}
}
map[key ?? ""] = val ?? false;
}
internalBinaryWrite(message: CreateProjectMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: CreateResourceMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* map<string, bool> TemplateGeneration = 1; */
for (let k of globalThis.Object.keys(message.TemplateGeneration))
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.Varint).bool(message.TemplateGeneration[k]).join();
@@ -468,30 +315,35 @@ class CreateProjectMappingsResult$Type extends MessageType<CreateProjectMappings
}
}
/**
* @generated MessageType for protobuf message api.CreateProjectMappingsResult
* @generated MessageType for protobuf message api.CreateResourceMappingsResult
*/
export const CreateProjectMappingsResult = new CreateProjectMappingsResult$Type();
export const CreateResourceMappingsResult = new CreateResourceMappingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteProjectMappingsRequest$Type extends MessageType<DeleteProjectMappingsRequest> {
class DeleteResourceMappingsRequest$Type extends MessageType<DeleteResourceMappingsRequest> {
constructor() {
super("api.DeleteProjectMappingsRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
super("api.DeleteResourceMappingsRequest", [
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } });
}
create(value?: PartialMessage<DeleteProjectMappingsRequest>): DeleteProjectMappingsRequest {
create(value?: PartialMessage<DeleteResourceMappingsRequest>): DeleteResourceMappingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.RscID = "";
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<DeleteProjectMappingsRequest>(this, message, value);
reflectionMergePartial<DeleteResourceMappingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectMappingsRequest): DeleteProjectMappingsRequest {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteResourceMappingsRequest): DeleteResourceMappingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
case /* string RscID */ 1:
message.RscID = reader.string();
break;
case /* api.ResourceType RscType */ 2:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -504,10 +356,13 @@ class DeleteProjectMappingsRequest$Type extends MessageType<DeleteProjectMapping
}
return message;
}
internalBinaryWrite(message: DeleteProjectMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
internalBinaryWrite(message: DeleteResourceMappingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RscID = 1; */
if (message.RscID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
/* api.ResourceType RscType = 2; */
if (message.RscType !== 0)
writer.tag(2, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -515,24 +370,24 @@ class DeleteProjectMappingsRequest$Type extends MessageType<DeleteProjectMapping
}
}
/**
* @generated MessageType for protobuf message api.DeleteProjectMappingsRequest
* @generated MessageType for protobuf message api.DeleteResourceMappingsRequest
*/
export const DeleteProjectMappingsRequest = new DeleteProjectMappingsRequest$Type();
export const DeleteResourceMappingsRequest = new DeleteResourceMappingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappingsResult> {
class DeleteResourceMappingsResult$Type extends MessageType<DeleteResourceMappingsResult> {
constructor() {
super("api.DeleteProjectMappingsResult", [
super("api.DeleteResourceMappingsResult", [
{ no: 1, name: "TemplateDeletion", kind: "map", localName: "TemplateDeletion", jsonName: "TemplateDeletion", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 8 /*ScalarType.BOOL*/ } }
]);
}
create(value?: PartialMessage<DeleteProjectMappingsResult>): DeleteProjectMappingsResult {
create(value?: PartialMessage<DeleteResourceMappingsResult>): DeleteResourceMappingsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.TemplateDeletion = {};
if (value !== undefined)
reflectionMergePartial<DeleteProjectMappingsResult>(this, message, value);
reflectionMergePartial<DeleteResourceMappingsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectMappingsResult): DeleteProjectMappingsResult {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteResourceMappingsResult): DeleteResourceMappingsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
@@ -551,8 +406,8 @@ class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappings
}
return message;
}
private binaryReadMap1(map: DeleteProjectMappingsResult["TemplateDeletion"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof DeleteProjectMappingsResult["TemplateDeletion"] | undefined, val: DeleteProjectMappingsResult["TemplateDeletion"][any] | undefined;
private binaryReadMap1(map: DeleteResourceMappingsResult["TemplateDeletion"], reader: IBinaryReader, options: BinaryReadOptions): void {
let len = reader.uint32(), end = reader.pos + len, key: keyof DeleteResourceMappingsResult["TemplateDeletion"] | undefined, val: DeleteResourceMappingsResult["TemplateDeletion"][any] | undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
@@ -562,12 +417,12 @@ class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappings
case 2:
val = reader.bool();
break;
default: throw new globalThis.Error("unknown map entry field for api.DeleteProjectMappingsResult.TemplateDeletion");
default: throw new globalThis.Error("unknown map entry field for api.DeleteResourceMappingsResult.TemplateDeletion");
}
}
map[key ?? ""] = val ?? false;
}
internalBinaryWrite(message: DeleteProjectMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: DeleteResourceMappingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* map<string, bool> TemplateDeletion = 1; */
for (let k of globalThis.Object.keys(message.TemplateDeletion))
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.Varint).bool(message.TemplateDeletion[k]).join();
@@ -578,21 +433,23 @@ class DeleteProjectMappingsResult$Type extends MessageType<DeleteProjectMappings
}
}
/**
* @generated MessageType for protobuf message api.DeleteProjectMappingsResult
* @generated MessageType for protobuf message api.DeleteResourceMappingsResult
*/
export const DeleteProjectMappingsResult = new DeleteProjectMappingsResult$Type();
export const DeleteResourceMappingsResult = new DeleteResourceMappingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest> {
constructor() {
super("api.ClearIndexEntityRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }
]);
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.ModelDataSetEnum", ModelDataSetEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Entity"] } } });
}
create(value?: PartialMessage<ClearIndexEntityRequest>): ClearIndexEntityRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.RscID = "";
message.Entity = 0;
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<ClearIndexEntityRequest>(this, message, value);
return message;
@@ -602,12 +459,15 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
case /* string RscID */ 1:
message.RscID = reader.string();
break;
case /* api.ModelDataSetEnum Entity */ 2:
message.Entity = reader.int32();
break;
case /* api.ResourceType RscType */ 3:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -620,12 +480,15 @@ class ClearIndexEntityRequest$Type extends MessageType<ClearIndexEntityRequest>
return message;
}
internalBinaryWrite(message: ClearIndexEntityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string RscID = 1; */
if (message.RscID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
/* api.ModelDataSetEnum Entity = 2; */
if (message.Entity !== 0)
writer.tag(2, WireType.Varint).int32(message.Entity);
/* api.ResourceType RscType = 3; */
if (message.RscType !== 0)
writer.tag(3, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -678,8 +541,8 @@ export const ClearIndexEntityResult = new ClearIndexEntityResult$Type();
* @generated ServiceType for protobuf service api.ElasticService
*/
export const ElasticService = new ServiceType("api.ElasticService", [
{ name: "UpdateModelMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Generate new model mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateModelMappingsRequest, O: UpdateModelMappingsResult },
{ name: "CreateProjectMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Generate new project mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateProjectMappingsRequest, O: CreateProjectMappingsResult },
{ name: "DeleteProjectMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Delete project mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteProjectMappingsRequest, O: DeleteProjectMappingsResult },
{ name: "ClearIndexEntity", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Elastic"], description: "Clear data for a specific entity" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearIndexEntityRequest, O: ClearIndexEntityResult }
{ name: "UpdateModelMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Generate new model mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateModelMappingsRequest, O: UpdateModelMappingsResult },
{ name: "CreateResourceMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Generate new resource mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateResourceMappingsRequest, O: CreateResourceMappingsResult },
{ name: "DeleteResourceMappings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Delete resoource mapping templates" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteResourceMappingsRequest, O: DeleteResourceMappingsResult },
{ name: "ClearIndexEntity", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Elastic"], description: "Clear data for a specific entity" }, "api.rscType": "Platform", "api.roles": "Platform.Elastic", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearIndexEntityRequest, O: ClearIndexEntityResult }
], { "api.k8sService": "project-model-server" });

View File

@@ -18,6 +18,10 @@ import type { UpdateKpiTableStructureResult } from "./kpi";
import type { UpdateKpiTableStructureRequest } from "./kpi";
import type { GetKpiTableStructureResult } from "./kpi";
import type { GetKpiTableStructureRequest } from "./kpi";
import type { GetSiteKpisResult } from "./kpi";
import type { GetSiteKpisRequest } from "./kpi";
import type { GetProjectKpisResult } from "./kpi";
import type { GetProjectKpisRequest } from "./kpi";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetKpisResult } from "./kpi";
import type { GetKpisRequest } from "./kpi";
@@ -28,9 +32,18 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
*/
export interface IKpiServiceClient {
/**
* @deprecated
* @generated from protobuf rpc: GetKpis
*/
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: GetSiteKpis
*/
getSiteKpis(input: GetSiteKpisRequest, options?: RpcOptions): UnaryCall<GetSiteKpisRequest, GetSiteKpisResult>;
/**
* @generated from protobuf rpc: GetKpiTableStructure
*/
@@ -70,59 +83,74 @@ export class KpiServiceClient implements IKpiServiceClient, ServiceInfo {
constructor(private readonly _transport: RpcTransport) {
}
/**
* @deprecated
* @generated from protobuf rpc: GetKpis
*/
getKpis(input: GetKpisRequest, options?: RpcOptions): UnaryCall<GetKpisRequest, GetKpisResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
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: GetSiteKpis
*/
getSiteKpis(input: GetSiteKpisRequest, options?: RpcOptions): UnaryCall<GetSiteKpisRequest, GetSiteKpisResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteKpisRequest, GetSiteKpisResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetKpiTableStructure
*/
getKpiTableStructure(input: GetKpiTableStructureRequest, options?: RpcOptions): UnaryCall<GetKpiTableStructureRequest, GetKpiTableStructureResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<GetKpiTableStructureRequest, GetKpiTableStructureResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateKpiTableStructure
*/
updateKpiTableStructure(input: UpdateKpiTableStructureRequest, options?: RpcOptions): UnaryCall<UpdateKpiTableStructureRequest, UpdateKpiTableStructureResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateKpiTableStructureRequest, UpdateKpiTableStructureResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetKpiEntities
*/
getKpiEntities(input: GetKpiEntitiesRequest, options?: RpcOptions): UnaryCall<GetKpiEntitiesRequest, GetKpiEntitiesResult> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<GetKpiEntitiesRequest, GetKpiEntitiesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearKpiEntity
*/
clearKpiEntity(input: ClearKpiEntityRequest, options?: RpcOptions): UnaryCall<ClearKpiEntityRequest, ClearKpiEntityResult> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearKpiEntityRequest, ClearKpiEntityResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateMV
*/
createMV(input: CreateMVRequest, options?: RpcOptions): UnaryCall<CreateMVRequest, CreateMVResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateMVRequest, CreateMVResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DropMV
*/
dropMV(input: DropMVRequest, options?: RpcOptions): UnaryCall<DropMVRequest, DropMVResult> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<DropMVRequest, DropMVResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: PopulateMV
*/
populateMV(input: PopulateMVRequest, options?: RpcOptions): UnaryCall<PopulateMVRequest, PopulateMVResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<PopulateMVRequest, PopulateMVResult>("unary", this._transport, method, opt, input);
}
}

676
kpi.ts

File diff suppressed because it is too large Load Diff

View File

@@ -6,8 +6,8 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { MetadataService } from "./metadatadef";
import type { RestoreMetadatasResult } from "./metadatadef";
import type { RestoreMetadatasRequest } from "./metadatadef";
import type { GetTransitiveSiteMetadatasResult } from "./metadatadef";
import type { GetTransitiveSiteMetadatasRequest } from "./metadatadef";
import type { GetSiteTransitiveMetadatasResult } from "./metadatadef";
import type { GetSiteTransitiveMetadatasRequest } from "./metadatadef";
import type { GetSiteMetadataCountResult } from "./metadatadef";
import type { GetSiteMetadataCountRequest } from "./metadatadef";
import type { DeleteSiteMetadatasResult } from "./metadatadef";
@@ -18,6 +18,18 @@ import type { UpdateSiteMetadataResult } from "./metadatadef";
import type { UpdateSiteMetadataRequest } from "./metadatadef";
import type { CreateSiteMetadataResult } from "./metadatadef";
import type { CreateSiteMetadataRequest } 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 { GetTransitiveMetadatasRequest } from "./metadatadef";
import type { GetMetadataCountResult } from "./metadatadef";
@@ -38,29 +50,59 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
*/
export interface IMetadataServiceClient {
/**
* @deprecated
* @generated from protobuf rpc: CreateMetadata
*/
createMetadata(input: CreateMetadataRequest, options?: RpcOptions): UnaryCall<CreateMetadataRequest, CreateMetadataResult>;
/**
* @deprecated
* @generated from protobuf rpc: UpdateMetadata
*/
updateMetadata(input: UpdateMetadataRequest, options?: RpcOptions): UnaryCall<UpdateMetadataRequest, UpdateMetadataResult>;
/**
* @deprecated
* @generated from protobuf rpc: GetMetadatas
*/
getMetadatas(input: GetMetadatasRequest, options?: RpcOptions): UnaryCall<GetMetadatasRequest, GetMetadatasResult>;
/**
* @deprecated
* @generated from protobuf rpc: DeleteMetadatas
*/
deleteMetadatas(input: DeleteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteMetadatasRequest, DeleteMetadatasResult>;
/**
* @deprecated
* @generated from protobuf rpc: GetMetadataCount
*/
getMetadataCount(input: GetMetadataCountRequest, options?: RpcOptions): UnaryCall<GetMetadataCountRequest, GetMetadataCountResult>;
/**
* @deprecated
* @generated from protobuf rpc: GetTransitiveMetadatas
*/
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: CreateSiteMetadata
*/
@@ -82,9 +124,9 @@ export interface IMetadataServiceClient {
*/
getSiteMetadataCount(input: GetSiteMetadataCountRequest, options?: RpcOptions): UnaryCall<GetSiteMetadataCountRequest, GetSiteMetadataCountResult>;
/**
* @generated from protobuf rpc: GetTransitiveSiteMetadatas
* @generated from protobuf rpc: GetSiteTransitiveMetadatas
*/
getTransitiveSiteMetadatas(input: GetTransitiveSiteMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveSiteMetadatasRequest, GetTransitiveSiteMetadatasResult>;
getSiteTransitiveMetadatas(input: GetSiteTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetSiteTransitiveMetadatasRequest, GetSiteTransitiveMetadatasResult>;
/**
* @generated from protobuf rpc: RestoreMetadatas
*/
@@ -100,6 +142,7 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
constructor(private readonly _transport: RpcTransport) {
}
/**
* @deprecated
* @generated from protobuf rpc: CreateMetadata
*/
createMetadata(input: CreateMetadataRequest, options?: RpcOptions): UnaryCall<CreateMetadataRequest, CreateMetadataResult> {
@@ -107,6 +150,7 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
return stackIntercept<CreateMetadataRequest, CreateMetadataResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: UpdateMetadata
*/
updateMetadata(input: UpdateMetadataRequest, options?: RpcOptions): UnaryCall<UpdateMetadataRequest, UpdateMetadataResult> {
@@ -114,6 +158,7 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
return stackIntercept<UpdateMetadataRequest, UpdateMetadataResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: GetMetadatas
*/
getMetadatas(input: GetMetadatasRequest, options?: RpcOptions): UnaryCall<GetMetadatasRequest, GetMetadatasResult> {
@@ -121,6 +166,7 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
return stackIntercept<GetMetadatasRequest, GetMetadatasResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: DeleteMetadatas
*/
deleteMetadatas(input: DeleteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteMetadatasRequest, DeleteMetadatasResult> {
@@ -128,6 +174,7 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
return stackIntercept<DeleteMetadatasRequest, DeleteMetadatasResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: GetMetadataCount
*/
getMetadataCount(input: GetMetadataCountRequest, options?: RpcOptions): UnaryCall<GetMetadataCountRequest, GetMetadataCountResult> {
@@ -135,59 +182,102 @@ export class MetadataServiceClient implements IMetadataServiceClient, ServiceInf
return stackIntercept<GetMetadataCountRequest, GetMetadataCountResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: GetTransitiveMetadatas
*/
getTransitiveMetadatas(input: GetTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveMetadatasRequest, GetTransitiveMetadatasResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
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: CreateSiteMetadata
*/
createSiteMetadata(input: CreateSiteMetadataRequest, options?: RpcOptions): UnaryCall<CreateSiteMetadataRequest, CreateSiteMetadataResult> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSiteMetadataRequest, CreateSiteMetadataResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateSiteMetadata
*/
updateSiteMetadata(input: UpdateSiteMetadataRequest, options?: RpcOptions): UnaryCall<UpdateSiteMetadataRequest, UpdateSiteMetadataResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateSiteMetadataRequest, UpdateSiteMetadataResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteMetadatas
*/
getSiteMetadatas(input: GetSiteMetadatasRequest, options?: RpcOptions): UnaryCall<GetSiteMetadatasRequest, GetSiteMetadatasResult> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteMetadatasRequest, GetSiteMetadatasResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSiteMetadatas
*/
deleteSiteMetadatas(input: DeleteSiteMetadatasRequest, options?: RpcOptions): UnaryCall<DeleteSiteMetadatasRequest, DeleteSiteMetadatasResult> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSiteMetadatasRequest, DeleteSiteMetadatasResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteMetadataCount
*/
getSiteMetadataCount(input: GetSiteMetadataCountRequest, options?: RpcOptions): UnaryCall<GetSiteMetadataCountRequest, GetSiteMetadataCountResult> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteMetadataCountRequest, GetSiteMetadataCountResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetTransitiveSiteMetadatas
* @generated from protobuf rpc: GetSiteTransitiveMetadatas
*/
getTransitiveSiteMetadatas(input: GetTransitiveSiteMetadatasRequest, options?: RpcOptions): UnaryCall<GetTransitiveSiteMetadatasRequest, GetTransitiveSiteMetadatasResult> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<GetTransitiveSiteMetadatasRequest, GetTransitiveSiteMetadatasResult>("unary", this._transport, method, opt, input);
getSiteTransitiveMetadatas(input: GetSiteTransitiveMetadatasRequest, options?: RpcOptions): UnaryCall<GetSiteTransitiveMetadatasRequest, GetSiteTransitiveMetadatasResult> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteTransitiveMetadatasRequest, GetSiteTransitiveMetadatasResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RestoreMetadatas
*/
restoreMetadatas(input: RestoreMetadatasRequest, options?: RpcOptions): UnaryCall<RestoreMetadatasRequest, RestoreMetadatasResult> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<RestoreMetadatasRequest, RestoreMetadatasResult>("unary", this._transport, method, opt, input);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,14 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ModelService } from "./model";
import type { GetEntitiesResult } from "./model";
import type { GetEntitiesRequest } from "./model";
import type { GetSiteEntityModelResult } from "./model";
import type { GetSiteEntityModelRequest } from "./model";
import type { GetSiteDataModelResult } from "./model";
import type { GetSiteDataModelRequest } 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 { GetEntityModelRequest } from "./model";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
@@ -18,13 +26,31 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
*/
export interface IModelServiceClient {
/**
* @deprecated
* @generated from protobuf rpc: GetDataModel
*/
getDataModel(input: GetDataModelRequest, options?: RpcOptions): UnaryCall<GetDataModelRequest, GetDataModelResult>;
/**
* @deprecated
* @generated from protobuf rpc: GetEntityModel
*/
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: GetSiteDataModel
*/
getSiteDataModel(input: GetSiteDataModelRequest, options?: RpcOptions): UnaryCall<GetSiteDataModelRequest, GetSiteDataModelResult>;
/**
* @generated from protobuf rpc: GetSiteEntityModel
*/
getSiteEntityModel(input: GetSiteEntityModelRequest, options?: RpcOptions): UnaryCall<GetSiteEntityModelRequest, GetSiteEntityModelResult>;
/**
* @generated from protobuf rpc: GetEntities
*/
@@ -48,6 +74,7 @@ export class ModelServiceClient implements IModelServiceClient, ServiceInfo {
constructor(private readonly _transport: RpcTransport) {
}
/**
* @deprecated
* @generated from protobuf rpc: GetDataModel
*/
getDataModel(input: GetDataModelRequest, options?: RpcOptions): UnaryCall<GetDataModelRequest, GetDataModelResult> {
@@ -55,31 +82,60 @@ export class ModelServiceClient implements IModelServiceClient, ServiceInfo {
return stackIntercept<GetDataModelRequest, GetDataModelResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: GetEntityModel
*/
getEntityModel(input: GetEntityModelRequest, options?: RpcOptions): UnaryCall<GetEntityModelRequest, GetEntityModelResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
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: GetSiteDataModel
*/
getSiteDataModel(input: GetSiteDataModelRequest, options?: RpcOptions): UnaryCall<GetSiteDataModelRequest, GetSiteDataModelResult> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteDataModelRequest, GetSiteDataModelResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteEntityModel
*/
getSiteEntityModel(input: GetSiteEntityModelRequest, options?: RpcOptions): UnaryCall<GetSiteEntityModelRequest, GetSiteEntityModelResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteEntityModelRequest, GetSiteEntityModelResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetEntities
*/
getEntities(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetEntitiesWithMetadata
*/
getEntitiesWithMetadata(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetEntitiesWithDataRestriction
*/
getEntitiesWithDataRestriction(input: GetEntitiesRequest, options?: RpcOptions): UnaryCall<GetEntitiesRequest, GetEntitiesResult> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<GetEntitiesRequest, GetEntitiesResult>("unary", this._transport, method, opt, input);
}
}

552
model.ts
View File

@@ -11,6 +11,8 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ResourceType } from "./shared";
import { RequestSiteHeader } from "./shared";
import { RequestProjectHeader } from "./shared";
// message MetadataSchema {
// string Id = 1;
@@ -64,6 +66,7 @@ export interface DataFilters {
Screen: string;
}
/**
* @deprecated
* @generated from protobuf message api.GetDataModelRequest
*/
export interface GetDataModelRequest {
@@ -77,6 +80,7 @@ export interface GetDataModelRequest {
Filters?: DataFilters;
}
/**
* @deprecated
* @generated from protobuf message api.GetDataModelResult
*/
export interface GetDataModelResult {
@@ -86,6 +90,51 @@ export interface GetDataModelResult {
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
*/
export interface GetSiteDataModelRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.DataFilters Filters = 2
*/
Filters?: DataFilters;
}
/**
* @generated from protobuf message api.GetSiteDataModelResult
*/
export interface GetSiteDataModelResult {
/**
* @generated from protobuf field: repeated string DataModel = 1
*/
DataModel: string[];
}
/**
* @deprecated
* @generated from protobuf message api.GetEntityModelRequest
*/
export interface GetEntityModelRequest {
@@ -103,6 +152,7 @@ export interface GetEntityModelRequest {
Domain: string;
}
/**
* @deprecated
* @generated from protobuf message api.GetEntityModelResult
*/
export interface GetEntityModelResult {
@@ -111,6 +161,58 @@ export interface GetEntityModelResult {
*/
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
*/
export interface GetSiteEntityModelRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: string Entity = 2
*/
Entity: string;
/**
* @generated from protobuf field: string Domain = 3
*/
Domain: string;
}
/**
* @generated from protobuf message api.GetSiteEntityModelResult
*/
export interface GetSiteEntityModelResult {
/**
* @generated from protobuf field: string JsonFormatModel = 1
*/
JsonFormatModel: string;
}
/**
* @generated from protobuf message api.GetEntitiesRequest
*/
@@ -119,6 +221,10 @@ export interface GetEntitiesRequest {
* @generated from protobuf field: string Domain = 2
*/
Domain: string;
/**
* @generated from protobuf field: api.ResourceType RscType = 3
*/
RscType: ResourceType; // Resource Type : RESOURCE_TYPE_PROJECT or RESOURCE_TYPE_SITE
}
/**
* @generated from protobuf message api.GetEntitiesResult
@@ -242,6 +348,7 @@ class GetDataModelRequest$Type extends MessageType<GetDataModelRequest> {
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.GetDataModelRequest
*/
export const GetDataModelRequest = new GetDataModelRequest$Type();
@@ -289,10 +396,211 @@ class GetDataModelResult$Type extends MessageType<GetDataModelResult> {
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.GetDataModelResult
*/
export const GetDataModelResult = new GetDataModelResult$Type();
// @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> {
constructor() {
super("api.GetSiteDataModelRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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<GetSiteDataModelRequest>): GetSiteDataModelRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetSiteDataModelRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDataModelRequest): GetSiteDataModelRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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: GetSiteDataModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.GetSiteDataModelRequest
*/
export const GetSiteDataModelRequest = new GetSiteDataModelRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteDataModelResult$Type extends MessageType<GetSiteDataModelResult> {
constructor() {
super("api.GetSiteDataModelResult", [
{ no: 1, name: "DataModel", kind: "scalar", localName: "DataModel", jsonName: "DataModel", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GetSiteDataModelResult>): GetSiteDataModelResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.DataModel = [];
if (value !== undefined)
reflectionMergePartial<GetSiteDataModelResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDataModelResult): GetSiteDataModelResult {
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: GetSiteDataModelResult, 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.GetSiteDataModelResult
*/
export const GetSiteDataModelResult = new GetSiteDataModelResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetEntityModelRequest$Type extends MessageType<GetEntityModelRequest> {
constructor() {
super("api.GetEntityModelRequest", [
@@ -351,6 +659,7 @@ class GetEntityModelRequest$Type extends MessageType<GetEntityModelRequest> {
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.GetEntityModelRequest
*/
export const GetEntityModelRequest = new GetEntityModelRequest$Type();
@@ -398,19 +707,240 @@ class GetEntityModelResult$Type extends MessageType<GetEntityModelResult> {
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.GetEntityModelResult
*/
export const GetEntityModelResult = new GetEntityModelResult$Type();
// @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: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } },
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } }
], { "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> {
constructor() {
super("api.GetSiteEntityModelRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } },
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } });
}
create(value?: PartialMessage<GetSiteEntityModelRequest>): GetSiteEntityModelRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Entity = "";
message.Domain = "";
if (value !== undefined)
reflectionMergePartial<GetSiteEntityModelRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteEntityModelRequest): GetSiteEntityModelRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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: GetSiteEntityModelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.GetSiteEntityModelRequest
*/
export const GetSiteEntityModelRequest = new GetSiteEntityModelRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteEntityModelResult$Type extends MessageType<GetSiteEntityModelResult> {
constructor() {
super("api.GetSiteEntityModelResult", [
{ no: 1, name: "JsonFormatModel", kind: "scalar", localName: "JsonFormatModel", jsonName: "JsonFormatModel", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GetSiteEntityModelResult>): GetSiteEntityModelResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.JsonFormatModel = "";
if (value !== undefined)
reflectionMergePartial<GetSiteEntityModelResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteEntityModelResult): GetSiteEntityModelResult {
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: GetSiteEntityModelResult, 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.GetSiteEntityModelResult
*/
export const GetSiteEntityModelResult = new GetSiteEntityModelResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetEntitiesRequest$Type extends MessageType<GetEntitiesRequest> {
constructor() {
super("api.GetEntitiesRequest", [
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
{ no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { in: [30, 80] } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Domain"] } } });
}
create(value?: PartialMessage<GetEntitiesRequest>): GetEntitiesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Domain = "";
message.RscType = 0;
if (value !== undefined)
reflectionMergePartial<GetEntitiesRequest>(this, message, value);
return message;
@@ -423,6 +953,9 @@ class GetEntitiesRequest$Type extends MessageType<GetEntitiesRequest> {
case /* string Domain */ 2:
message.Domain = reader.string();
break;
case /* api.ResourceType RscType */ 3:
message.RscType = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -438,6 +971,9 @@ class GetEntitiesRequest$Type extends MessageType<GetEntitiesRequest> {
/* string Domain = 2; */
if (message.Domain !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
/* api.ResourceType RscType = 3; */
if (message.RscType !== 0)
writer.tag(3, WireType.Varint).int32(message.RscType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -499,9 +1035,13 @@ export const GetEntitiesResult = new GetEntitiesResult$Type();
* @generated ServiceType for protobuf service api.ModelService
*/
export const ModelService = new ServiceType("api.ModelService", [
{ name: "GetDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Model"], description: "Get 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: ["Project 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: "GetEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project 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: ["Project 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: ["Project Model"], description: "Get entities with data restriction" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetEntitiesRequest, O: GetEntitiesResult }
{ 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: "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: "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: "GetSiteDataModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get site data model" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteDataModelRequest, O: GetSiteDataModelResult },
{ name: "GetSiteEntityModel", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Model"], description: "Get entity data model with site metadata in Json Format" }, "api.rscType": "Site", "api.roles": "Platform.Site-Model", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteEntityModelRequest, O: GetSiteEntityModelResult },
{ 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: "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 }
], { "api.k8sService": "project-model-server" });

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.11.0-SNAPSHOT-250612082101",
"version": "1.11.0-SNAPSHOT-250612131111",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

View File

@@ -4,6 +4,10 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ViewService } from "./view";
import type { GetSiteViewFieldsResult } from "./view";
import type { GetSiteViewFieldsRequest } from "./view";
import type { GetProjectViewFieldsResult } from "./view";
import type { GetProjectViewFieldsRequest } from "./view";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetViewFieldsResult } from "./view";
import type { GetViewFieldsRequest } from "./view";
@@ -14,9 +18,18 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
*/
export interface IViewServiceClient {
/**
* @deprecated
* @generated from protobuf rpc: GetViewFields
*/
getViewFields(input: GetViewFieldsRequest, options?: RpcOptions): UnaryCall<GetViewFieldsRequest, GetViewFieldsResult>;
/**
* @generated from protobuf rpc: GetProjectViewFields
*/
getProjectViewFields(input: GetProjectViewFieldsRequest, options?: RpcOptions): UnaryCall<GetProjectViewFieldsRequest, GetProjectViewFieldsResult>;
/**
* @generated from protobuf rpc: GetSiteViewFields
*/
getSiteViewFields(input: GetSiteViewFieldsRequest, options?: RpcOptions): UnaryCall<GetSiteViewFieldsRequest, GetSiteViewFieldsResult>;
}
/**
* @generated from protobuf service api.ViewService
@@ -28,10 +41,25 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
constructor(private readonly _transport: RpcTransport) {
}
/**
* @deprecated
* @generated from protobuf rpc: GetViewFields
*/
getViewFields(input: GetViewFieldsRequest, options?: RpcOptions): UnaryCall<GetViewFieldsRequest, GetViewFieldsResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
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);
}
/**
* @generated from protobuf rpc: GetSiteViewFields
*/
getSiteViewFields(input: GetSiteViewFieldsRequest, options?: RpcOptions): UnaryCall<GetSiteViewFieldsRequest, GetSiteViewFieldsResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteViewFieldsRequest, GetSiteViewFieldsResult>("unary", this._transport, method, opt, input);
}
}

388
view.ts
View File

@@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { RequestSiteHeader } from "./shared";
import { RequestProjectHeader } from "./shared";
/**
* @generated from protobuf message api.FieldView
@@ -94,6 +95,7 @@ export interface FieldView {
EntityPathKey: string;
}
/**
* @deprecated
* @generated from protobuf message api.GetViewFieldsRequest
*/
export interface GetViewFieldsRequest {
@@ -101,11 +103,6 @@ export interface GetViewFieldsRequest {
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
// string Project = 1
// [
// (validate.rules).string.min_len = 1
// ];
/**
* @generated from protobuf field: string Domain = 2
*/
@@ -136,6 +133,7 @@ export interface GetViewFieldsRequest {
KpiGroupFilter: string;
}
/**
* @deprecated
* @generated from protobuf message api.GetViewFieldsResult
*/
export interface GetViewFieldsResult {
@@ -144,6 +142,98 @@ export interface GetViewFieldsResult {
*/
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
*/
export interface GetSiteViewFieldsRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.GetSiteViewFieldsResult
*/
export interface GetSiteViewFieldsResult {
/**
* @generated from protobuf field: repeated api.FieldView Fields = 1
*/
Fields: FieldView[];
}
// @generated message type with reflection information, may provide speed optimized methods
class FieldView$Type extends MessageType<FieldView> {
constructor() {
@@ -418,6 +508,7 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.GetViewFieldsRequest
*/
export const GetViewFieldsRequest = new GetViewFieldsRequest$Type();
@@ -465,12 +556,297 @@ class GetViewFieldsResult$Type extends MessageType<GetViewFieldsResult> {
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.GetViewFieldsResult
*/
export const GetViewFieldsResult = new GetViewFieldsResult$Type();
// @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: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "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\"" } } },
{ 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> {
constructor() {
super("api.GetSiteViewFieldsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "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\"" } } },
{ 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<GetSiteViewFieldsRequest>): GetSiteViewFieldsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Domain = "";
message.Entity = "";
message.OmmittedList = [];
message.StartingPath = "";
message.OnlySegmentationKeys = false;
message.KpiGroupFilter = "";
if (value !== undefined)
reflectionMergePartial<GetSiteViewFieldsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewFieldsRequest): GetSiteViewFieldsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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: GetSiteViewFieldsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.GetSiteViewFieldsRequest
*/
export const GetSiteViewFieldsRequest = new GetSiteViewFieldsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteViewFieldsResult$Type extends MessageType<GetSiteViewFieldsResult> {
constructor() {
super("api.GetSiteViewFieldsResult", [
{ no: 1, name: "Fields", kind: "message", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldView }
]);
}
create(value?: PartialMessage<GetSiteViewFieldsResult>): GetSiteViewFieldsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Fields = [];
if (value !== undefined)
reflectionMergePartial<GetSiteViewFieldsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewFieldsResult): GetSiteViewFieldsResult {
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: GetSiteViewFieldsResult, 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.GetSiteViewFieldsResult
*/
export const GetSiteViewFieldsResult = new GetSiteViewFieldsResult$Type();
/**
* @generated ServiceType for protobuf service api.ViewService
*/
export const ViewService = new ServiceType("api.ViewService", [
{ name: "GetViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project View"], description: "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: "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: "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 },
{ name: "GetSiteViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get site view fields" }, "api.rscType": "Site", "api.roles": "Platform.Site-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteViewFieldsRequest, O: GetSiteViewFieldsResult }
], { "api.k8sService": "project-model-server" });