You've already forked npm-viz-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-viz-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260402083005",
|
||||
"version": "1.13.0-SNAPSHOT-260407121852",
|
||||
"description": "npm libs from visibility model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -16,6 +16,8 @@ import type { ListProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { ListProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { CreateProjectDashboardResult } from "./viz-dashboard";
|
||||
import type { CreateProjectDashboardRequest } from "./viz-dashboard";
|
||||
import type { SetOwnerDashboardResult } from "./viz-dashboard";
|
||||
import type { SetOwnerDashboardRequest } from "./viz-dashboard";
|
||||
import type { CopyDashboardResult } from "./viz-dashboard";
|
||||
import type { CopyDashboardRequest } from "./viz-dashboard";
|
||||
import type { GetDashboardResult } from "./viz-dashboard";
|
||||
@@ -71,6 +73,10 @@ export interface IDashboardServiceClient {
|
||||
* @generated from protobuf rpc: Copy
|
||||
*/
|
||||
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerDashboardRequest, options?: RpcOptions): UnaryCall<SetOwnerDashboardRequest, SetOwnerDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateProject
|
||||
*/
|
||||
@@ -161,46 +167,53 @@ export class DashboardServiceClient implements IDashboardServiceClient, ServiceI
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CopyDashboardRequest, CopyDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerDashboardRequest, options?: RpcOptions): UnaryCall<SetOwnerDashboardRequest, SetOwnerDashboardResult> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SetOwnerDashboardRequest, SetOwnerDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateProject
|
||||
*/
|
||||
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateProjectDashboardRequest, CreateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListProject
|
||||
*/
|
||||
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListProjectDashboardRequest, ListProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteProject
|
||||
*/
|
||||
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateProject
|
||||
*/
|
||||
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetProject
|
||||
*/
|
||||
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectDashboardRequest, GetProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CopyProject
|
||||
*/
|
||||
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CopyProjectDashboardRequest, CopyProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
141
viz-dashboard.ts
141
viz-dashboard.ts
@@ -508,6 +508,36 @@ export interface CopyProjectDashboardResult {
|
||||
*/
|
||||
Result?: Dashboard;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.SetOwnerDashboardRequest
|
||||
*/
|
||||
export interface SetOwnerDashboardRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string DashboardID = 2
|
||||
*/
|
||||
DashboardID: string;
|
||||
/**
|
||||
* Identifier of the new owner of the Dashboard
|
||||
*
|
||||
* @generated from protobuf field: string UserID = 3
|
||||
*/
|
||||
UserID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.SetOwnerDashboardResult
|
||||
*/
|
||||
export interface SetOwnerDashboardResult {
|
||||
/**
|
||||
* @generated from protobuf field: vizapi.Dashboard Result = 1
|
||||
*/
|
||||
Result?: Dashboard;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Dashboard$Type extends MessageType<Dashboard> {
|
||||
constructor() {
|
||||
@@ -2079,6 +2109,114 @@ class CopyProjectDashboardResult$Type extends MessageType<CopyProjectDashboardRe
|
||||
* @generated MessageType for protobuf message vizapi.CopyProjectDashboardResult
|
||||
*/
|
||||
export const CopyProjectDashboardResult = new CopyProjectDashboardResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SetOwnerDashboardRequest$Type extends MessageType<SetOwnerDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.SetOwnerDashboardRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the new owner of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information to set the owner of a dashboard", required: ["Header", "DashboardID", "OwnerID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SetOwnerDashboardRequest>): SetOwnerDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DashboardID = "";
|
||||
message.UserID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SetOwnerDashboardRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetOwnerDashboardRequest): SetOwnerDashboardRequest {
|
||||
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 DashboardID */ 2:
|
||||
message.DashboardID = reader.string();
|
||||
break;
|
||||
case /* string UserID */ 3:
|
||||
message.UserID = 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: SetOwnerDashboardRequest, 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 DashboardID = 2; */
|
||||
if (message.DashboardID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DashboardID);
|
||||
/* string UserID = 3; */
|
||||
if (message.UserID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.UserID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message vizapi.SetOwnerDashboardRequest
|
||||
*/
|
||||
export const SetOwnerDashboardRequest = new SetOwnerDashboardRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SetOwnerDashboardResult$Type extends MessageType<SetOwnerDashboardResult> {
|
||||
constructor() {
|
||||
super("vizapi.SetOwnerDashboardResult", [
|
||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Result of setting the owner of a dashboard" } } });
|
||||
}
|
||||
create(value?: PartialMessage<SetOwnerDashboardResult>): SetOwnerDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SetOwnerDashboardResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetOwnerDashboardResult): SetOwnerDashboardResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* vizapi.Dashboard Result */ 1:
|
||||
message.Result = Dashboard.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
||||
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: SetOwnerDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* vizapi.Dashboard Result = 1; */
|
||||
if (message.Result)
|
||||
Dashboard.internalBinaryWrite(message.Result, 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 vizapi.SetOwnerDashboardResult
|
||||
*/
|
||||
export const SetOwnerDashboardResult = new SetOwnerDashboardResult$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service vizapi.DashboardService
|
||||
*/
|
||||
@@ -2090,7 +2228,8 @@ export const DashboardService = new ServiceType("vizapi.DashboardService", [
|
||||
{ name: "DeleteDashboardsForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete all dashboards of a project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Dashboards", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteDashboardsForProjectRequest, O: DeleteDashboardsForProjectResult },
|
||||
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Update a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateDashboardRequest, O: UpdateDashboardResult },
|
||||
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Get a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetDashboardRequest, O: GetDashboardResult },
|
||||
{ name: "Copy", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Copy a dashboard", description: "Copy a Dashboard with its IDs and the Name of the new Dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopyDashboardRequest, O: CopyDashboardResult },
|
||||
{ name: "Copy", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Copy a dashboard", description: "Copy a Dashboard with its ID and the Name of the new Dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopyDashboardRequest, O: CopyDashboardResult },
|
||||
{ name: "SetOwner", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Set the owner of a dashboard", description: "Set the owner of a Dashboard with its ID and the user ID of the new owner" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: SetOwnerDashboardRequest, O: SetOwnerDashboardResult },
|
||||
{ name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Create a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectDashboardRequest, O: CreateProjectDashboardResult },
|
||||
{ name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "List dashboards", description: "List all the Dashboards" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectDashboardRequest, O: ListProjectDashboardResult },
|
||||
{ name: "DeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete a dashboard" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectDashboardRequest, O: DeleteProjectDashboardResult },
|
||||
|
||||
@@ -6,6 +6,8 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ViewService } from "./viz-view";
|
||||
import type { ExtractResult } from "./viz-view";
|
||||
import type { ExtractRequest } from "./viz-view";
|
||||
import type { SetOwnerViewResult } from "./viz-view";
|
||||
import type { SetOwnerViewRequest } from "./viz-view";
|
||||
import type { DeleteViewsForProjectResult } from "./viz-view";
|
||||
import type { DeleteViewsForProjectRequest } from "./viz-view";
|
||||
import type { ListViewResult } from "./viz-view";
|
||||
@@ -49,6 +51,10 @@ export interface IViewServiceClient {
|
||||
* @generated from protobuf rpc: DeleteViewsForProject
|
||||
*/
|
||||
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerViewRequest, options?: RpcOptions): UnaryCall<SetOwnerViewRequest, SetOwnerViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Extract
|
||||
*/
|
||||
@@ -105,11 +111,18 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: SetOwner
|
||||
*/
|
||||
setOwner(input: SetOwnerViewRequest, options?: RpcOptions): UnaryCall<SetOwnerViewRequest, SetOwnerViewResult> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SetOwnerViewRequest, SetOwnerViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Extract
|
||||
*/
|
||||
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
142
viz-view.ts
142
viz-view.ts
@@ -440,6 +440,38 @@ export interface ExtractResult {
|
||||
*/
|
||||
RunID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.SetOwnerViewRequest
|
||||
*/
|
||||
export interface SetOwnerViewRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Identifier of the View
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 2
|
||||
*/
|
||||
ViewID: string;
|
||||
/**
|
||||
* Identifier of the User
|
||||
*
|
||||
* @generated from protobuf field: string UserID = 3
|
||||
*/
|
||||
UserID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message vizapi.SetOwnerViewResult
|
||||
*/
|
||||
export interface SetOwnerViewResult {
|
||||
/**
|
||||
* Identifier of the View
|
||||
*
|
||||
* @generated from protobuf field: string ViewID = 1
|
||||
*/
|
||||
ViewID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum vizapi.TimeFormat
|
||||
*/
|
||||
@@ -1671,6 +1703,115 @@ class ExtractResult$Type extends MessageType<ExtractResult> {
|
||||
* @generated MessageType for protobuf message vizapi.ExtractResult
|
||||
*/
|
||||
export const ExtractResult = new ExtractResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SetOwnerViewRequest$Type extends MessageType<SetOwnerViewRequest> {
|
||||
constructor() {
|
||||
super("vizapi.SetOwnerViewRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the User" }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ViewID", "UserID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SetOwnerViewRequest>): SetOwnerViewRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ViewID = "";
|
||||
message.UserID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SetOwnerViewRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetOwnerViewRequest): SetOwnerViewRequest {
|
||||
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 ViewID */ 2:
|
||||
message.ViewID = reader.string();
|
||||
break;
|
||||
case /* string UserID */ 3:
|
||||
message.UserID = 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: SetOwnerViewRequest, 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 ViewID = 2; */
|
||||
if (message.ViewID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ViewID);
|
||||
/* string UserID = 3; */
|
||||
if (message.UserID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.UserID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message vizapi.SetOwnerViewRequest
|
||||
*/
|
||||
export const SetOwnerViewRequest = new SetOwnerViewRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SetOwnerViewResult$Type extends MessageType<SetOwnerViewResult> {
|
||||
constructor() {
|
||||
super("vizapi.SetOwnerViewResult", [
|
||||
{ no: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Result of setting the owner of a View" } } });
|
||||
}
|
||||
create(value?: PartialMessage<SetOwnerViewResult>): SetOwnerViewResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ViewID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SetOwnerViewResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetOwnerViewResult): SetOwnerViewResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ViewID */ 1:
|
||||
message.ViewID = 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: SetOwnerViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ViewID = 1; */
|
||||
if (message.ViewID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ViewID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message vizapi.SetOwnerViewResult
|
||||
*/
|
||||
export const SetOwnerViewResult = new SetOwnerViewResult$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service vizapi.ViewService
|
||||
*/
|
||||
@@ -1681,5 +1822,6 @@ export const ViewService = new ServiceType("vizapi.ViewService", [
|
||||
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Delete a view" }, "api.rscType": "Project", "api.roles": "Platform.Project-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteViewRequest, O: DeleteViewResult },
|
||||
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "List views", description: "List all Views present under the same Project and with the same Screen ID" }, "api.rscType": "Project", "api.roles": "Platform.Project-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListViewRequest, O: ListViewResult },
|
||||
{ name: "DeleteViewsForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Delete all views for a project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteViewsForProjectRequest, O: DeleteViewsForProjectResult },
|
||||
{ name: "SetOwner", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Set the owner of a view", description: "Set the owner of a View with its ID and the user ID of the new owner" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: SetOwnerViewRequest, O: SetOwnerViewResult },
|
||||
{ name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Extract view", description: "Start view extraction in csv format" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractRequest, O: ExtractResult }
|
||||
], { "api.k8sService": "views-server" });
|
||||
|
||||
Reference in New Issue
Block a user