From 6afb2d4b98029d6f654dc6e6307c1a8cb3f44f50 Mon Sep 17 00:00:00 2001 From: ci viz model Date: Mon, 23 Feb 2026 15:47:09 +0000 Subject: [PATCH] Latest generation --- package.json | 2 +- viz-view.client.ts | 78 ---- viz-view.ts | 1032 +------------------------------------------- 3 files changed, 2 insertions(+), 1110 deletions(-) diff --git a/package.json b/package.json index af117ce..1eb74e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-viz-sdk", - "version": "1.13.0-SNAPSHOT-260116145342", + "version": "1.13.0-SNAPSHOT-260223154647", "description": "npm libs from visibility model proto files", "homepage": "", "main": "index.ts", diff --git a/viz-view.client.ts b/viz-view.client.ts index 05e55e5..9a454e2 100644 --- a/viz-view.client.ts +++ b/viz-view.client.ts @@ -4,18 +4,6 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ViewService } from "./viz-view"; -import type { ExtractProjectResult } from "./viz-view"; -import type { ExtractProjectRequest } from "./viz-view"; -import type { ListProjectViewResult } from "./viz-view"; -import type { ListProjectViewRequest } from "./viz-view"; -import type { DeleteProjectViewResult } from "./viz-view"; -import type { DeleteProjectViewRequest } from "./viz-view"; -import type { UpdateProjectViewResult } from "./viz-view"; -import type { UpdateProjectViewRequest } from "./viz-view"; -import type { CreateProjectViewResult } from "./viz-view"; -import type { CreateProjectViewRequest } from "./viz-view"; -import type { GetProjectViewResult } from "./viz-view"; -import type { GetProjectViewRequest } from "./viz-view"; import type { ExtractResult } from "./viz-view"; import type { ExtractRequest } from "./viz-view"; import type { DeleteViewsForProjectResult } from "./viz-view"; @@ -65,30 +53,6 @@ export interface IViewServiceClient { * @generated from protobuf rpc: Extract */ extract(input: ExtractRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: GetProject - */ - getProject(input: GetProjectViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: CreateProject - */ - createProject(input: CreateProjectViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: UpdateProject - */ - updateProject(input: UpdateProjectViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteProject - */ - deleteProject(input: DeleteProjectViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: ListProject - */ - listProject(input: ListProjectViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: ExtractProject - */ - extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service vizapi.ViewService @@ -148,46 +112,4 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @generated from protobuf rpc: GetProject - */ - getProject(input: GetProjectViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[7], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: CreateProject - */ - createProject(input: CreateProjectViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[8], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: UpdateProject - */ - updateProject(input: UpdateProjectViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[9], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteProject - */ - deleteProject(input: DeleteProjectViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[10], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: ListProject - */ - listProject(input: ListProjectViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[11], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: ExtractProject - */ - extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[12], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } } diff --git a/viz-view.ts b/viz-view.ts index a40ecba..c237e4b 100644 --- a/viz-view.ts +++ b/viz-view.ts @@ -273,8 +273,6 @@ export interface DeleteViewRequest { ViewID: string; } /** - * option (deprecated) = true; - * * @generated from protobuf message vizapi.DeleteViewResult */ export interface DeleteViewResult { @@ -307,186 +305,6 @@ export interface ListViewResult { */ Results: ComposedUserView[]; } -/** - * IDs of the View - * - * @generated from protobuf message vizapi.GetProjectViewRequest - */ -export interface GetProjectViewRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 2 - */ - ViewID: string; -} -/** - * All information about the View - * - * @generated from protobuf message vizapi.GetProjectViewResult - */ -export interface GetProjectViewResult { - /** - * @generated from protobuf field: vizapi.ComposedUserView Result = 1 - */ - Result?: ComposedUserView; -} -/** - * Information that needs to be stored - * - * @generated from protobuf message vizapi.CreateProjectViewRequest - */ -export interface CreateProjectViewRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * Name of the View - * - * @generated from protobuf field: string Name = 2 - */ - Name: string; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 3 - */ - ScreenID: string; - /** - * Content of the View - * - * @generated from protobuf field: string Payload = 5 - */ - Payload: string; - /** - * Visibility of the View - * - * @generated from protobuf field: bool IsPrivate = 7 - */ - IsPrivate: boolean; -} -/** - * ID of the created View - * - * @generated from protobuf message vizapi.CreateProjectViewResult - */ -export interface CreateProjectViewResult { - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 1 - */ - ViewID: string; -} -/** - * Information that needs to be updated - * - * @generated from protobuf message vizapi.UpdateProjectViewRequest - */ -export interface UpdateProjectViewRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 2 - */ - ViewID: string; - /** - * Name of the View - * - * @generated from protobuf field: string Name = 3 - */ - Name: string; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 4 - */ - ScreenID: string; - /** - * Content of the View - * - * @generated from protobuf field: string Payload = 6 - */ - Payload: string; - /** - * Visibility of the View - * - * @generated from protobuf field: bool IsPrivate = 8 - */ - IsPrivate: boolean; -} -/** - * Updated View ID - * - * @generated from protobuf message vizapi.UpdateProjectViewResult - */ -export interface UpdateProjectViewResult { - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 1 - */ - ViewID: string; -} -/** - * IDs of the View to be deleted - * - * @generated from protobuf message vizapi.DeleteProjectViewRequest - */ -export interface DeleteProjectViewRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 2 - */ - ViewID: string; -} -/** - * @generated from protobuf message vizapi.DeleteProjectViewResult - */ -export interface DeleteProjectViewResult { -} -/** - * @generated from protobuf message vizapi.ListProjectViewRequest - */ -export interface ListProjectViewRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 2 - */ - ScreenID: string; -} -/** - * List of Views - * - * @generated from protobuf message vizapi.ListProjectViewResult - */ -export interface ListProjectViewResult { - /** - * All information in a View - * - * @generated from protobuf field: repeated vizapi.ComposedUserView Results = 1 - */ - Results: ComposedUserView[]; -} /** * @generated from protobuf message vizapi.DeleteViewsForProjectRequest */ @@ -622,76 +440,6 @@ export interface ExtractResult { */ RunID: string; } -/** - * @generated from protobuf message vizapi.ExtractProjectRequest - */ -export interface ExtractProjectRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string ViewID = 2 - */ - ViewID: string; - /** - * BlockFilter structure for Find query - * - * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 - */ - BlockFilters: BlockFilter[]; - /** - * Range filter structure for Find query - * - * @generated from protobuf field: string ListSeparator = 4 - */ - ListSeparator: string; - /** - * @generated from protobuf field: string DecimalSeparator = 5 - */ - DecimalSeparator: string; - /** - * @generated from protobuf field: map ColumnTranslationMaps = 8 - */ - ColumnTranslationMaps: { - [key: string]: TranslationMap; - }; - /** - * @generated from protobuf field: map ColumnFormats = 9 - */ - ColumnFormats: { - [key: number]: ExtractColumnFormat; - }; - /** - * @generated from protobuf field: string TargetTimeZone = 10 - */ - TargetTimeZone: string; - /** - * @generated from protobuf field: string DateFormat = 11 - */ - DateFormat: string; - /** - * @generated from protobuf field: string NumberFormat = 12 - */ - NumberFormat: string; - /** - * @generated from protobuf field: vizapi.TimeFormat TimeFormat = 13 - */ - TimeFormat: TimeFormat; -} -/** - * @generated from protobuf message vizapi.ExtractProjectResult - */ -export interface ExtractProjectResult { - /** - * @generated from protobuf field: string WorkflowID = 1 - */ - WorkflowID: string; - /** - * @generated from protobuf field: string RunID = 2 - */ - RunID: string; -} /** * @generated from protobuf enum vizapi.TimeFormat */ @@ -1492,557 +1240,6 @@ class ListViewResult$Type extends MessageType { */ export const ListViewResult = new ListViewResult$Type(); // @generated message type with reflection information, may provide speed optimized methods -class GetProjectViewRequest$Type extends MessageType { - constructor() { - super("vizapi.GetProjectViewRequest", [ - { 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" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the View", required: ["Header", "ViewID"] } } }); - } - create(value?: PartialMessage): GetProjectViewRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ViewID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectViewRequest): GetProjectViewRequest { - 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; - 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: GetProjectViewRequest, 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); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.GetProjectViewRequest - */ -export const GetProjectViewRequest = new GetProjectViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GetProjectViewResult$Type extends MessageType { - constructor() { - super("vizapi.GetProjectViewResult", [ - { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => ComposedUserView } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All information about the View" } } }); - } - create(value?: PartialMessage): GetProjectViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectViewResult): GetProjectViewResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* vizapi.ComposedUserView Result */ 1: - message.Result = ComposedUserView.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: GetProjectViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* vizapi.ComposedUserView Result = 1; */ - if (message.Result) - ComposedUserView.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.GetProjectViewResult - */ -export const GetProjectViewResult = new GetProjectViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateProjectViewRequest$Type extends MessageType { - constructor() { - super("vizapi.CreateProjectViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" } } }, - { no: 7, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name", "ScreenID"] } } }); - } - create(value?: PartialMessage): CreateProjectViewRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.Name = ""; - message.ScreenID = ""; - message.Payload = ""; - message.IsPrivate = false; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectViewRequest): CreateProjectViewRequest { - 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 Name */ 2: - message.Name = reader.string(); - break; - case /* string ScreenID */ 3: - message.ScreenID = reader.string(); - break; - case /* string Payload */ 5: - message.Payload = reader.string(); - break; - case /* bool IsPrivate */ 7: - message.IsPrivate = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message: CreateProjectViewRequest, 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 Name = 2; */ - if (message.Name !== "") - writer.tag(2, WireType.LengthDelimited).string(message.Name); - /* string ScreenID = 3; */ - if (message.ScreenID !== "") - writer.tag(3, WireType.LengthDelimited).string(message.ScreenID); - /* string Payload = 5; */ - if (message.Payload !== "") - writer.tag(5, WireType.LengthDelimited).string(message.Payload); - /* bool IsPrivate = 7; */ - if (message.IsPrivate !== false) - writer.tag(7, WireType.Varint).bool(message.IsPrivate); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.CreateProjectViewRequest - */ -export const CreateProjectViewRequest = new CreateProjectViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateProjectViewResult$Type extends MessageType { - constructor() { - super("vizapi.CreateProjectViewResult", [ - { 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: "ID of the created View" } } }); - } - create(value?: PartialMessage): CreateProjectViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ViewID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectViewResult): CreateProjectViewResult { - 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: CreateProjectViewResult, 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.CreateProjectViewResult - */ -export const CreateProjectViewResult = new CreateProjectViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateProjectViewRequest$Type extends MessageType { - constructor() { - super("vizapi.UpdateProjectViewRequest", [ - { 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: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 8, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "ViewID", "Name", "ScreenID", "Payload"] } } }); - } - create(value?: PartialMessage): UpdateProjectViewRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ViewID = ""; - message.Name = ""; - message.ScreenID = ""; - message.Payload = ""; - message.IsPrivate = false; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectViewRequest): UpdateProjectViewRequest { - 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 Name */ 3: - message.Name = reader.string(); - break; - case /* string ScreenID */ 4: - message.ScreenID = reader.string(); - break; - case /* string Payload */ 6: - message.Payload = reader.string(); - break; - case /* bool IsPrivate */ 8: - message.IsPrivate = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message: UpdateProjectViewRequest, 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 Name = 3; */ - if (message.Name !== "") - writer.tag(3, WireType.LengthDelimited).string(message.Name); - /* string ScreenID = 4; */ - if (message.ScreenID !== "") - writer.tag(4, WireType.LengthDelimited).string(message.ScreenID); - /* string Payload = 6; */ - if (message.Payload !== "") - writer.tag(6, WireType.LengthDelimited).string(message.Payload); - /* bool IsPrivate = 8; */ - if (message.IsPrivate !== false) - writer.tag(8, WireType.Varint).bool(message.IsPrivate); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.UpdateProjectViewRequest - */ -export const UpdateProjectViewRequest = new UpdateProjectViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateProjectViewResult$Type extends MessageType { - constructor() { - super("vizapi.UpdateProjectViewResult", [ - { 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: "Updated View ID" } } }); - } - create(value?: PartialMessage): UpdateProjectViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ViewID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectViewResult): UpdateProjectViewResult { - 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: UpdateProjectViewResult, 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.UpdateProjectViewResult - */ -export const UpdateProjectViewResult = new UpdateProjectViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteProjectViewRequest$Type extends MessageType { - constructor() { - super("vizapi.DeleteProjectViewRequest", [ - { 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" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the View to be deleted", required: ["Header", "ViewID"] } } }); - } - create(value?: PartialMessage): DeleteProjectViewRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ViewID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectViewRequest): DeleteProjectViewRequest { - 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; - 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: DeleteProjectViewRequest, 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); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.DeleteProjectViewRequest - */ -export const DeleteProjectViewRequest = new DeleteProjectViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteProjectViewResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteProjectViewResult", []); - } - create(value?: PartialMessage): DeleteProjectViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectViewResult): DeleteProjectViewResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message: DeleteProjectViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.DeleteProjectViewResult - */ -export const DeleteProjectViewResult = new DeleteProjectViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListProjectViewRequest$Type extends MessageType { - constructor() { - super("vizapi.ListProjectViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): ListProjectViewRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ScreenID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectViewRequest): ListProjectViewRequest { - 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 ScreenID */ 2: - message.ScreenID = 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: ListProjectViewRequest, 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 ScreenID = 2; */ - if (message.ScreenID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.ScreenID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.ListProjectViewRequest - */ -export const ListProjectViewRequest = new ListProjectViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListProjectViewResult$Type extends MessageType { - constructor() { - super("vizapi.ListProjectViewResult", [ - { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ComposedUserView, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a View" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Views" } } }); - } - create(value?: PartialMessage): ListProjectViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.Results = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectViewResult): ListProjectViewResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated vizapi.ComposedUserView Results */ 1: - message.Results.push(ComposedUserView.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: ListProjectViewResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated vizapi.ComposedUserView Results = 1; */ - for (let i = 0; i < message.Results.length; i++) - ComposedUserView.internalBinaryWrite(message.Results[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 vizapi.ListProjectViewResult - */ -export const ListProjectViewResult = new ListProjectViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods class DeleteViewsForProjectRequest$Type extends MessageType { constructor() { super("vizapi.DeleteViewsForProjectRequest", [ @@ -2474,227 +1671,6 @@ class ExtractResult$Type extends MessageType { * @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 ExtractProjectRequest$Type extends MessageType { - constructor() { - super("vizapi.ExtractProjectRequest", [ - { 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: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "BlockFilter structure for Find query" } } }, - { no: 4, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for list to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for decimal to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 8, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, - { no: 9, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } }, - { no: 11, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, - { no: 12, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, - { no: 13, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["vizapi.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ViewID", "ListSeparator", "DecimalSeparator"] } } }); - } - create(value?: PartialMessage): ExtractProjectRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ViewID = ""; - message.BlockFilters = []; - message.ListSeparator = ""; - message.DecimalSeparator = ""; - message.ColumnTranslationMaps = {}; - message.ColumnFormats = {}; - message.TargetTimeZone = ""; - message.DateFormat = ""; - message.NumberFormat = ""; - message.TimeFormat = 0; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractProjectRequest): ExtractProjectRequest { - 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 /* repeated api.BlockFilter BlockFilters */ 3: - message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* string ListSeparator */ 4: - message.ListSeparator = reader.string(); - break; - case /* string DecimalSeparator */ 5: - message.DecimalSeparator = reader.string(); - break; - case /* map ColumnTranslationMaps */ 8: - this.binaryReadMap8(message.ColumnTranslationMaps, reader, options); - break; - case /* map ColumnFormats */ 9: - this.binaryReadMap9(message.ColumnFormats, reader, options); - break; - case /* string TargetTimeZone */ 10: - message.TargetTimeZone = reader.string(); - break; - case /* string DateFormat */ 11: - message.DateFormat = reader.string(); - break; - case /* string NumberFormat */ 12: - message.NumberFormat = reader.string(); - break; - case /* vizapi.TimeFormat TimeFormat */ 13: - message.TimeFormat = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - private binaryReadMap8(map: ExtractProjectRequest["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void { - let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractProjectRequest["ColumnTranslationMaps"] | undefined, val: ExtractProjectRequest["ColumnTranslationMaps"][any] | undefined; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case 1: - key = reader.string(); - break; - case 2: - val = TranslationMap.internalBinaryRead(reader, reader.uint32(), options); - break; - default: throw new globalThis.Error("unknown map entry field for vizapi.ExtractProjectRequest.ColumnTranslationMaps"); - } - } - map[key ?? ""] = val ?? TranslationMap.create(); - } - private binaryReadMap9(map: ExtractProjectRequest["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void { - let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractProjectRequest["ColumnFormats"] | undefined, val: ExtractProjectRequest["ColumnFormats"][any] | undefined; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case 1: - key = reader.int32(); - break; - case 2: - val = ExtractColumnFormat.internalBinaryRead(reader, reader.uint32(), options); - break; - default: throw new globalThis.Error("unknown map entry field for vizapi.ExtractProjectRequest.ColumnFormats"); - } - } - map[key ?? 0] = val ?? ExtractColumnFormat.create(); - } - internalBinaryWrite(message: ExtractProjectRequest, 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); - /* repeated api.BlockFilter BlockFilters = 3; */ - for (let i = 0; i < message.BlockFilters.length; i++) - BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* string ListSeparator = 4; */ - if (message.ListSeparator !== "") - writer.tag(4, WireType.LengthDelimited).string(message.ListSeparator); - /* string DecimalSeparator = 5; */ - if (message.DecimalSeparator !== "") - writer.tag(5, WireType.LengthDelimited).string(message.DecimalSeparator); - /* map ColumnTranslationMaps = 8; */ - for (let k of globalThis.Object.keys(message.ColumnTranslationMaps)) { - writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k); - writer.tag(2, WireType.LengthDelimited).fork(); - TranslationMap.internalBinaryWrite(message.ColumnTranslationMaps[k], writer, options); - writer.join().join(); - } - /* map ColumnFormats = 9; */ - for (let k of globalThis.Object.keys(message.ColumnFormats)) { - writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.Varint).int32(parseInt(k)); - writer.tag(2, WireType.LengthDelimited).fork(); - ExtractColumnFormat.internalBinaryWrite(message.ColumnFormats[k as any], writer, options); - writer.join().join(); - } - /* string TargetTimeZone = 10; */ - if (message.TargetTimeZone !== "") - writer.tag(10, WireType.LengthDelimited).string(message.TargetTimeZone); - /* string DateFormat = 11; */ - if (message.DateFormat !== "") - writer.tag(11, WireType.LengthDelimited).string(message.DateFormat); - /* string NumberFormat = 12; */ - if (message.NumberFormat !== "") - writer.tag(12, WireType.LengthDelimited).string(message.NumberFormat); - /* vizapi.TimeFormat TimeFormat = 13; */ - if (message.TimeFormat !== 0) - writer.tag(13, WireType.Varint).int32(message.TimeFormat); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.ExtractProjectRequest - */ -export const ExtractProjectRequest = new ExtractProjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ExtractProjectResult$Type extends MessageType { - constructor() { - super("vizapi.ExtractProjectResult", [ - { no: 1, name: "WorkflowID", kind: "scalar", localName: "WorkflowID", jsonName: "WorkflowID", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "RunID", kind: "scalar", localName: "RunID", jsonName: "RunID", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value?: PartialMessage): ExtractProjectResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.WorkflowID = ""; - message.RunID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtractProjectResult): ExtractProjectResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string WorkflowID */ 1: - message.WorkflowID = reader.string(); - break; - case /* string RunID */ 2: - message.RunID = 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: ExtractProjectResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string WorkflowID = 1; */ - if (message.WorkflowID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.WorkflowID); - /* string RunID = 2; */ - if (message.RunID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.RunID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.ExtractProjectResult - */ -export const ExtractProjectResult = new ExtractProjectResult$Type(); /** * @generated ServiceType for protobuf service vizapi.ViewService */ @@ -2705,11 +1681,5 @@ 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: "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 }, - { name: "GetProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Get a view" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetProjectViewRequest, O: GetProjectViewResult }, - { name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Create a view" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectViewRequest, O: CreateProjectViewResult }, - { name: "UpdateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Update a view" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateProjectViewRequest, O: UpdateProjectViewResult }, - { name: "DeleteProject", 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: DeleteProjectViewRequest, O: DeleteProjectViewResult }, - { name: "ListProject", 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: ListProjectViewRequest, O: ListProjectViewResult }, - { name: "ExtractProject", 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: ExtractProjectRequest, O: ExtractProjectResult } + { 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" });