From 60a9eaf55f9056fe3bbf77f12ca2e087fb1faadc Mon Sep 17 00:00:00 2001 From: ci viz model Date: Mon, 6 Oct 2025 07:44:51 +0000 Subject: [PATCH] Latest generation --- core/shared.ts | 629 +------------------ counter.client.ts | 28 - counter.ts | 74 --- package.json | 2 +- viz-composed-field.client.ts | 65 -- viz-composed-field.ts | 753 +--------------------- viz-dashboard.client.ts | 91 --- viz-dashboard.ts | 958 +--------------------------- viz-view.client.ts | 91 --- viz-view.ts | 1133 +--------------------------------- 10 files changed, 5 insertions(+), 3819 deletions(-) diff --git a/core/shared.ts b/core/shared.ts index 525176d..9d2d535 100644 --- a/core/shared.ts +++ b/core/shared.ts @@ -69,29 +69,6 @@ export interface RequestProjectHeader { */ TechnicalID: string; } -/** - * Header for all requests on site resources - * - * @generated from protobuf message api.RequestSiteHeader - */ -export interface RequestSiteHeader { - /** - * Identifier of the site - * - * @generated from protobuf field: string SiteID = 1 - */ - SiteID: string; - /** - * DateTime ActualDate = 2 ; - * - * @generated from protobuf field: string CorrelationID = 3 - */ - CorrelationID: string; - /** - * @generated from protobuf field: string TechnicalID = 4 - */ - TechnicalID: string; -} /** * Header for all requests on organisation resources * @@ -218,27 +195,6 @@ export interface ResponseHeader { */ TechnicalID: string; } -/** - * Header for all site response messages - * - * @generated from protobuf message api.ResponseSiteHeader - */ -export interface ResponseSiteHeader { - /** - * Identifier of the site - * - * @generated from protobuf field: string SiteID = 1 - */ - SiteID: string; - /** - * @generated from protobuf field: string CorrelationID = 2 - */ - CorrelationID: string; - /** - * @generated from protobuf field: string TechnicalID = 3 - */ - TechnicalID: string; -} /** * Header for all response messages * @@ -316,37 +272,6 @@ export interface QueryProjectHeader { */ LocalizedLabel: boolean; } -/** - * Header for all query site messages - * - * @generated from protobuf message api.QuerySiteHeader - */ -export interface QuerySiteHeader { - /** - * Identifier of the site - * - * @generated from protobuf field: string SiteID = 1 - */ - SiteID: string; - /** - * Number of elements displayed - * - * @generated from protobuf field: string PagingState = 3 - */ - PagingState: string; - /** - * Number of additional elements to display - * - * @generated from protobuf field: string Limit = 4 - */ - Limit: string; - /** - * Return the message in the user's language - * - * @generated from protobuf field: bool LocalizedLabel = 5 - */ - LocalizedLabel: boolean; -} /** * @generated from protobuf message api.ResultHeader */ @@ -378,10 +303,6 @@ export interface CommandHeader { * @generated from protobuf field: string Project = 3 */ Project: string; - /** - * @generated from protobuf field: string Site = 9 - */ - Site: string; /** * @generated from protobuf field: string FromDomain = 4 */ @@ -425,12 +346,6 @@ export interface EventHeader { * @generated from protobuf field: string Project = 3 */ Project: string; - /** - * Contains the ID of the parent site if entity belongs to site rscType - * - * @generated from protobuf field: string Site = 8 - */ - Site: string; /** * @generated from protobuf field: string Author = 4 */ @@ -1684,67 +1599,6 @@ export interface ExtractQuery { */ TimeFormat: TimeFormat; } -/** - * @generated from protobuf message api.ExtractSiteQuery - */ -export interface ExtractSiteQuery { - /** - * @generated from protobuf field: api.QuerySiteHeader Header = 1 - */ - Header?: QuerySiteHeader; - /** - * @generated from protobuf field: string UserId = 2 - */ - UserId: string; - /** - * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 3 - */ - BlockFilters: BlockFilter[]; - /** - * @generated from protobuf field: repeated string Fields = 4 - */ - Fields: string[]; - /** - * @generated from protobuf field: string ListSeparator = 5 - */ - ListSeparator: string; - /** - * @generated from protobuf field: string DecimalSeparator = 6 - */ - DecimalSeparator: string; - /** - * @generated from protobuf field: repeated string ColumnNames = 7 - */ - ColumnNames: 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: api.TimeFormat TimeFormat = 13 - */ - TimeFormat: TimeFormat; -} /** * @generated from protobuf message api.ExtractResult */ @@ -1885,27 +1739,6 @@ export interface ElementByMatchQuery { */ MatchElementField?: MatchElementField; } -/** - * @generated from protobuf message api.ElementByMatchSiteQuery - */ -export interface ElementByMatchSiteQuery { - /** - * @generated from protobuf field: api.QuerySiteHeader Header = 1 - */ - Header?: QuerySiteHeader; - /** - * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query - * - * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2 - */ - BlockFilters: BlockFilter[]; - /** - * MatchElementField structure, containing wanted match string, and the fields to get. - * - * @generated from protobuf field: api.MatchElementField MatchElementField = 3 - */ - MatchElementField?: MatchElementField; -} /** * @generated from protobuf message api.ElementByMatchResult */ @@ -2625,11 +2458,7 @@ export enum ResourceType { /** * @generated from protobuf enum value: RESOURCE_TYPE_CLAIMTYPE = 70; */ - CLAIMTYPE = 70, - /** - * @generated from protobuf enum value: RESOURCE_TYPE_SITE = 80; - */ - SITE = 80 + CLAIMTYPE = 70 } // @generated message type with reflection information, may provide speed optimized methods class RequestHeader$Type extends MessageType { @@ -2797,69 +2626,6 @@ class RequestProjectHeader$Type extends MessageType { */ export const RequestProjectHeader = new RequestProjectHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods -class RequestSiteHeader$Type extends MessageType { - constructor() { - super("api.RequestSiteHeader", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site", example: "\"Your_Site_ID\"" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, - { no: 3, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, - { no: 4, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } }); - } - create(value?: PartialMessage): RequestSiteHeader { - const message = globalThis.Object.create((this.messagePrototype!)); - message.SiteID = ""; - message.CorrelationID = ""; - message.TechnicalID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestSiteHeader): RequestSiteHeader { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string SiteID */ 1: - message.SiteID = reader.string(); - break; - case /* string CorrelationID */ 3: - message.CorrelationID = reader.string(); - break; - case /* string TechnicalID */ 4: - message.TechnicalID = 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: RequestSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string SiteID = 1; */ - if (message.SiteID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.SiteID); - /* string CorrelationID = 3; */ - if (message.CorrelationID !== "") - writer.tag(3, WireType.LengthDelimited).string(message.CorrelationID); - /* string TechnicalID = 4; */ - if (message.TechnicalID !== "") - writer.tag(4, WireType.LengthDelimited).string(message.TechnicalID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.RequestSiteHeader - */ -export const RequestSiteHeader = new RequestSiteHeader$Type(); -// @generated message type with reflection information, may provide speed optimized methods class RequestOrganisationHeader$Type extends MessageType { constructor() { super("api.RequestOrganisationHeader", [ @@ -3238,69 +3004,6 @@ class ResponseHeader$Type extends MessageType { */ export const ResponseHeader = new ResponseHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods -class ResponseSiteHeader$Type extends MessageType { - constructor() { - super("api.ResponseSiteHeader", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" } } }, - { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, - { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } } - ]); - } - create(value?: PartialMessage): ResponseSiteHeader { - const message = globalThis.Object.create((this.messagePrototype!)); - message.SiteID = ""; - message.CorrelationID = ""; - message.TechnicalID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResponseSiteHeader): ResponseSiteHeader { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string SiteID */ 1: - message.SiteID = reader.string(); - break; - case /* string CorrelationID */ 2: - message.CorrelationID = reader.string(); - break; - case /* string TechnicalID */ 3: - message.TechnicalID = 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: ResponseSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string SiteID = 1; */ - if (message.SiteID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.SiteID); - /* string CorrelationID = 2; */ - if (message.CorrelationID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.CorrelationID); - /* string TechnicalID = 3; */ - if (message.TechnicalID !== "") - writer.tag(3, WireType.LengthDelimited).string(message.TechnicalID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.ResponseSiteHeader - */ -export const ResponseSiteHeader = new ResponseSiteHeader$Type(); -// @generated message type with reflection information, may provide speed optimized methods class AttachmentTypeResponseHeader$Type extends MessageType { constructor() { super("api.AttachmentTypeResponseHeader", [ @@ -3506,77 +3209,6 @@ class QueryProjectHeader$Type extends MessageType { */ export const QueryProjectHeader = new QueryProjectHeader$Type(); // @generated message type with reflection information, may provide speed optimized methods -class QuerySiteHeader$Type extends MessageType { - constructor() { - super("api.QuerySiteHeader", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, - { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } }, - { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } }, - { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Return the message in the user's language" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } }); - } - create(value?: PartialMessage): QuerySiteHeader { - const message = globalThis.Object.create((this.messagePrototype!)); - message.SiteID = ""; - message.PagingState = ""; - message.Limit = ""; - message.LocalizedLabel = false; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuerySiteHeader): QuerySiteHeader { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string SiteID */ 1: - message.SiteID = reader.string(); - break; - case /* string PagingState */ 3: - message.PagingState = reader.string(); - break; - case /* string Limit */ 4: - message.Limit = reader.string(); - break; - case /* bool LocalizedLabel */ 5: - message.LocalizedLabel = 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: QuerySiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string SiteID = 1; */ - if (message.SiteID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.SiteID); - /* string PagingState = 3; */ - if (message.PagingState !== "") - writer.tag(3, WireType.LengthDelimited).string(message.PagingState); - /* string Limit = 4; */ - if (message.Limit !== "") - writer.tag(4, WireType.LengthDelimited).string(message.Limit); - /* bool LocalizedLabel = 5; */ - if (message.LocalizedLabel !== false) - writer.tag(5, WireType.Varint).bool(message.LocalizedLabel); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.QuerySiteHeader - */ -export const QuerySiteHeader = new QuerySiteHeader$Type(); -// @generated message type with reflection information, may provide speed optimized methods class ResultHeader$Type extends MessageType { constructor() { super("api.ResultHeader", [ @@ -3630,7 +3262,6 @@ class CommandHeader$Type extends MessageType { { no: 1, name: "ActionCommand", kind: "scalar", localName: "ActionCommand", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "CommandTS", kind: "message", localName: "CommandTS", jsonName: "CommandTS", T: () => DateTime }, { no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "FromDomain", kind: "scalar", localName: "FromDomain", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "FromObject", kind: "scalar", localName: "FromObject", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ }, @@ -3642,7 +3273,6 @@ class CommandHeader$Type extends MessageType { const message = globalThis.Object.create((this.messagePrototype!)); message.ActionCommand = ""; message.Project = ""; - message.Site = ""; message.FromDomain = ""; message.FromObject = ""; message.FromRule = ""; @@ -3666,9 +3296,6 @@ class CommandHeader$Type extends MessageType { case /* string Project */ 3: message.Project = reader.string(); break; - case /* string Site */ 9: - message.Site = reader.string(); - break; case /* string FromDomain */ 4: message.FromDomain = reader.string(); break; @@ -3720,9 +3347,6 @@ class CommandHeader$Type extends MessageType { /* string FromAuthor = 8; */ if (message.FromAuthor !== "") writer.tag(8, WireType.LengthDelimited).string(message.FromAuthor); - /* string Site = 9; */ - if (message.Site !== "") - writer.tag(9, WireType.LengthDelimited).string(message.Site); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -3740,7 +3364,6 @@ class EventHeader$Type extends MessageType { { no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, - { no: 8, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, { no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, { no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, @@ -3751,7 +3374,6 @@ class EventHeader$Type extends MessageType { const message = globalThis.Object.create((this.messagePrototype!)); message.InputEvent = ""; message.Project = ""; - message.Site = ""; message.Author = ""; message.EventID = ""; message.CreatedBy = ""; @@ -3774,9 +3396,6 @@ class EventHeader$Type extends MessageType { case /* string Project */ 3: message.Project = reader.string(); break; - case /* string Site */ 8: - message.Site = reader.string(); - break; case /* string Author */ 4: message.Author = reader.string(); break; @@ -3822,9 +3441,6 @@ class EventHeader$Type extends MessageType { /* uint32 Version = 7; */ if (message.Version !== 0) writer.tag(7, WireType.Varint).uint32(message.Version); - /* string Site = 8; */ - if (message.Site !== "") - writer.tag(8, WireType.LengthDelimited).string(message.Site); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -7254,188 +6870,6 @@ class ExtractQuery$Type extends MessageType { */ export const ExtractQuery = new ExtractQuery$Type(); // @generated message type with reflection information, may provide speed optimized methods -class ExtractSiteQuery$Type extends MessageType { - constructor() { - super("api.ExtractSiteQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", 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 }, - { no: 4, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 7, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { 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: () => ["api.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", "UserId", "Fields", "ListSeparator", "DecimalSeparator", "ColumnName"] } } }); - } - create(value?: PartialMessage): ExtractSiteQuery { - const message = globalThis.Object.create((this.messagePrototype!)); - message.UserId = ""; - message.BlockFilters = []; - message.Fields = []; - message.ListSeparator = ""; - message.DecimalSeparator = ""; - message.ColumnNames = []; - 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?: ExtractSiteQuery): ExtractSiteQuery { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* api.QuerySiteHeader Header */ 1: - message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); - break; - case /* string UserId */ 2: - message.UserId = reader.string(); - break; - case /* repeated api.BlockFilter BlockFilters */ 3: - message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated string Fields */ 4: - message.Fields.push(reader.string()); - break; - case /* string ListSeparator */ 5: - message.ListSeparator = reader.string(); - break; - case /* string DecimalSeparator */ 6: - message.DecimalSeparator = reader.string(); - break; - case /* repeated string ColumnNames */ 7: - message.ColumnNames.push(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 /* api.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: ExtractSiteQuery["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void { - let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteQuery["ColumnTranslationMaps"] | undefined, val: ExtractSiteQuery["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 api.ExtractSiteQuery.ColumnTranslationMaps"); - } - } - map[key ?? ""] = val ?? TranslationMap.create(); - } - private binaryReadMap9(map: ExtractSiteQuery["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void { - let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteQuery["ColumnFormats"] | undefined, val: ExtractSiteQuery["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 api.ExtractSiteQuery.ColumnFormats"); - } - } - map[key ?? 0] = val ?? ExtractColumnFormat.create(); - } - internalBinaryWrite(message: ExtractSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.QuerySiteHeader Header = 1; */ - if (message.Header) - QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string UserId = 2; */ - if (message.UserId !== "") - writer.tag(2, WireType.LengthDelimited).string(message.UserId); - /* 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(); - /* repeated string Fields = 4; */ - for (let i = 0; i < message.Fields.length; i++) - writer.tag(4, WireType.LengthDelimited).string(message.Fields[i]); - /* string ListSeparator = 5; */ - if (message.ListSeparator !== "") - writer.tag(5, WireType.LengthDelimited).string(message.ListSeparator); - /* string DecimalSeparator = 6; */ - if (message.DecimalSeparator !== "") - writer.tag(6, WireType.LengthDelimited).string(message.DecimalSeparator); - /* repeated string ColumnNames = 7; */ - for (let i = 0; i < message.ColumnNames.length; i++) - writer.tag(7, WireType.LengthDelimited).string(message.ColumnNames[i]); - /* 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); - /* api.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 api.ExtractSiteQuery - */ -export const ExtractSiteQuery = new ExtractSiteQuery$Type(); -// @generated message type with reflection information, may provide speed optimized methods class ExtractResult$Type extends MessageType { constructor() { super("api.ExtractResult", [ @@ -7937,67 +7371,6 @@ class ElementByMatchQuery$Type extends MessageType { */ export const ElementByMatchQuery = new ElementByMatchQuery$Type(); // @generated message type with reflection information, may provide speed optimized methods -class ElementByMatchSiteQuery$Type extends MessageType { - constructor() { - super("api.ElementByMatchSiteQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): ElementByMatchSiteQuery { - const message = globalThis.Object.create((this.messagePrototype!)); - message.BlockFilters = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ElementByMatchSiteQuery): ElementByMatchSiteQuery { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* api.QuerySiteHeader Header */ 1: - message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); - break; - case /* repeated api.BlockFilter BlockFilters */ 2: - message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* api.MatchElementField MatchElementField */ 3: - message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField); - 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: ElementByMatchSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.QuerySiteHeader Header = 1; */ - if (message.Header) - QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.BlockFilter BlockFilters = 2; */ - for (let i = 0; i < message.BlockFilters.length; i++) - BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* api.MatchElementField MatchElementField = 3; */ - if (message.MatchElementField) - MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.ElementByMatchSiteQuery - */ -export const ElementByMatchSiteQuery = new ElementByMatchSiteQuery$Type(); -// @generated message type with reflection information, may provide speed optimized methods class ElementByMatchResult$Type extends MessageType { constructor() { super("api.ElementByMatchResult", [ diff --git a/counter.client.ts b/counter.client.ts index 6b6fdc3..1c1980f 100644 --- a/counter.client.ts +++ b/counter.client.ts @@ -1,8 +1,6 @@ // @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name // @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3) // tslint:disable -import { SiteCountersService } from "./counter"; -import type { NextSiteCounterRequest } from "./counter"; import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ProjectCountersService } from "./counter"; @@ -37,29 +35,3 @@ export class ProjectCountersServiceClient implements IProjectCountersServiceClie return stackIntercept("unary", this._transport, method, opt, input); } } -/** - * @generated from protobuf service vizapi.SiteCountersService - */ -export interface ISiteCountersServiceClient { - /** - * @generated from protobuf rpc: Next - */ - next(input: NextSiteCounterRequest, options?: RpcOptions): UnaryCall; -} -/** - * @generated from protobuf service vizapi.SiteCountersService - */ -export class SiteCountersServiceClient implements ISiteCountersServiceClient, ServiceInfo { - typeName = SiteCountersService.typeName; - methods = SiteCountersService.methods; - options = SiteCountersService.options; - constructor(private readonly _transport: RpcTransport) { - } - /** - * @generated from protobuf rpc: Next - */ - next(input: NextSiteCounterRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[0], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } -} diff --git a/counter.ts b/counter.ts index d92825e..7e0515a 100644 --- a/counter.ts +++ b/counter.ts @@ -11,7 +11,6 @@ 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 "./core/shared"; import { RequestProjectHeader } from "./core/shared"; /** * @generated from protobuf message vizapi.NextProjectCounterRequest @@ -35,19 +34,6 @@ export interface NextCounterResult { */ Value: bigint; } -/** - * @generated from protobuf message vizapi.NextSiteCounterRequest - */ -export interface NextSiteCounterRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * @generated from protobuf field: string Key = 2 - */ - Key: string; -} // @generated message type with reflection information, may provide speed optimized methods class NextProjectCounterRequest$Type extends MessageType { constructor() { @@ -149,69 +135,9 @@ class NextCounterResult$Type extends MessageType { * @generated MessageType for protobuf message vizapi.NextCounterResult */ export const NextCounterResult = new NextCounterResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class NextSiteCounterRequest$Type extends MessageType { - constructor() { - super("vizapi.NextSiteCounterRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"appointment\"" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Key"] } } }); - } - create(value?: PartialMessage): NextSiteCounterRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.Key = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NextSiteCounterRequest): NextSiteCounterRequest { - 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 Key */ 2: - message.Key = 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: NextSiteCounterRequest, 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 Key = 2; */ - if (message.Key !== "") - writer.tag(2, WireType.LengthDelimited).string(message.Key); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.NextSiteCounterRequest - */ -export const NextSiteCounterRequest = new NextSiteCounterRequest$Type(); /** * @generated ServiceType for protobuf service vizapi.ProjectCountersService */ export const ProjectCountersService = new ServiceType("vizapi.ProjectCountersService", [ { name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Counters"], summary: "Get the next value for a project key", description: "Get the next value for a project key" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: NextProjectCounterRequest, O: NextCounterResult } ], { "api.k8sService": "settings-server" }); -/** - * @generated ServiceType for protobuf service vizapi.SiteCountersService - */ -export const SiteCountersService = new ServiceType("vizapi.SiteCountersService", [ - { name: "Next", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site Counters"], summary: "Get the next value for a Site key", description: "Get the next value for a Site key" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: NextSiteCounterRequest, O: NextCounterResult } -], { "api.k8sService": "settings-server" }); diff --git a/package.json b/package.json index cc060b1..c4943bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-viz-sdk", - "version": "1.12.0-SNAPSHOT-250826151128", + "version": "1.12.0-SNAPSHOT-251006074407", "description": "npm libs from visibility model proto files", "homepage": "", "main": "index.ts", diff --git a/viz-composed-field.client.ts b/viz-composed-field.client.ts index 7875e80..af97425 100644 --- a/viz-composed-field.client.ts +++ b/viz-composed-field.client.ts @@ -4,16 +4,6 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ComposedFieldService } from "./viz-composed-field"; -import type { ListSiteComposedFieldResult } from "./viz-composed-field"; -import type { ListSiteComposedFieldRequest } from "./viz-composed-field"; -import type { DeleteSiteComposedFieldResult } from "./viz-composed-field"; -import type { DeleteSiteComposedFieldRequest } from "./viz-composed-field"; -import type { UpdateSiteComposedFieldResult } from "./viz-composed-field"; -import type { UpdateSiteComposedFieldRequest } from "./viz-composed-field"; -import type { CreateSiteComposedFieldResult } from "./viz-composed-field"; -import type { CreateSiteComposedFieldRequest } from "./viz-composed-field"; -import type { GetSiteComposedFieldResult } from "./viz-composed-field"; -import type { GetSiteComposedFieldRequest } from "./viz-composed-field"; import type { ListProjectComposedFieldResult } from "./viz-composed-field"; import type { ListProjectComposedFieldRequest } from "./viz-composed-field"; import type { DeleteProjectComposedFieldResult } from "./viz-composed-field"; @@ -81,26 +71,6 @@ export interface IComposedFieldServiceClient { * @generated from protobuf rpc: ListProject */ listProject(input: ListProjectComposedFieldRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: GetSite - */ - getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: CreateSite - */ - createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: UpdateSite - */ - updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteSite - */ - deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: ListSite - */ - listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service vizapi.ComposedFieldService @@ -181,39 +151,4 @@ export class ComposedFieldServiceClient implements IComposedFieldServiceClient, const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @generated from protobuf rpc: GetSite - */ - getSite(input: GetSiteComposedFieldRequest, 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: CreateSite - */ - createSite(input: CreateSiteComposedFieldRequest, 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: UpdateSite - */ - updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[12], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteSite - */ - deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[13], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: ListSite - */ - listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[14], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } } diff --git a/viz-composed-field.ts b/viz-composed-field.ts index 10f8f57..c365d28 100644 --- a/viz-composed-field.ts +++ b/viz-composed-field.ts @@ -11,7 +11,6 @@ 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 "./core/shared"; import { RequestProjectHeader } from "./core/shared"; /** * @generated from protobuf message vizapi.ComposedField @@ -450,192 +449,6 @@ export interface ListProjectComposedFieldResult { */ Results: ComposedField[]; } -/** - * IDs of the Composed Field - * - * @generated from protobuf message vizapi.GetSiteComposedFieldRequest - */ -export interface GetSiteComposedFieldRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Composed Field - * - * @generated from protobuf field: string ComposedFieldID = 2 - */ - ComposedFieldID: string; -} -/** - * All the Content about the composed field - * - * @generated from protobuf message vizapi.GetSiteComposedFieldResult - */ -export interface GetSiteComposedFieldResult { - /** - * @generated from protobuf field: vizapi.ComposedField Result = 1 - */ - Result?: ComposedField; -} -/** - * Content that needs to be stored - * - * @generated from protobuf message vizapi.CreateSiteComposedFieldRequest - */ -export interface CreateSiteComposedFieldRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Name of the Composed Field - * - * @generated from protobuf field: string Name = 2 - */ - Name: string; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 3 - */ - ScreenID: string; - /** - * Identifier of the Tab - * - * @generated from protobuf field: string TabID = 4 - */ - TabID: string; - /** - * Content in the Composed Field - * - * @generated from protobuf field: string Payload = 5 - */ - Payload: string; -} -/** - * ID of the created Composed Field - * - * @generated from protobuf message vizapi.CreateSiteComposedFieldResult - */ -export interface CreateSiteComposedFieldResult { - /** - * Identifier of the Composed Field - * - * @generated from protobuf field: string ComposedFieldID = 1 - */ - ComposedFieldID: string; -} -/** - * Content that needs to be updated - * - * @generated from protobuf message vizapi.UpdateSiteComposedFieldRequest - */ -export interface UpdateSiteComposedFieldRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Composed Field - * - * @generated from protobuf field: string ComposedFieldID = 2 - */ - ComposedFieldID: string; - /** - * Name of the Composed Field - * - * @generated from protobuf field: string Name = 3 - */ - Name: string; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 4 - */ - ScreenID: string; - /** - * Identifier of the Tab - * - * @generated from protobuf field: string TabID = 5 - */ - TabID: string; - /** - * Content in the Composed Field - * - * @generated from protobuf field: string Payload = 6 - */ - Payload: string; -} -/** - * Updated dashboard ID - * - * @generated from protobuf message vizapi.UpdateSiteComposedFieldResult - */ -export interface UpdateSiteComposedFieldResult { - /** - * Identifier of the Composed Field - * - * @generated from protobuf field: string ComposedFieldID = 1 - */ - ComposedFieldID: string; -} -/** - * IDs of the Composed Field to be deleted - * - * @generated from protobuf message vizapi.DeleteSiteComposedFieldRequest - */ -export interface DeleteSiteComposedFieldRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Composed Field - * - * @generated from protobuf field: string ComposedFieldID = 2 - */ - ComposedFieldID: string; -} -/** - * @generated from protobuf message vizapi.DeleteSiteComposedFieldResult - */ -export interface DeleteSiteComposedFieldResult { -} -/** - * @generated from protobuf message vizapi.ListSiteComposedFieldRequest - */ -export interface ListSiteComposedFieldRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 2 - */ - ScreenID: string; - /** - * Identifier of the Tab - * - * @generated from protobuf field: string TabID = 3 - */ - TabID: string; -} -/** - * List of Composed Fields - * - * @generated from protobuf message vizapi.ListSiteComposedFieldResult - */ -export interface ListSiteComposedFieldResult { - /** - * All Content in a Composed Field - * - * @generated from protobuf field: repeated vizapi.ComposedField Results = 1 - */ - Results: ComposedField[]; -} // @generated message type with reflection information, may provide speed optimized methods class ComposedField$Type extends MessageType { constructor() { @@ -1873,565 +1686,6 @@ class ListProjectComposedFieldResult$Type extends MessageType { - constructor() { - super("vizapi.GetSiteComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } }); - } - create(value?: PartialMessage): GetSiteComposedFieldRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ComposedFieldID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteComposedFieldRequest): GetSiteComposedFieldRequest { - 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 ComposedFieldID */ 2: - message.ComposedFieldID = 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: GetSiteComposedFieldRequest, 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 ComposedFieldID = 2; */ - if (message.ComposedFieldID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.GetSiteComposedFieldRequest - */ -export const GetSiteComposedFieldRequest = new GetSiteComposedFieldRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GetSiteComposedFieldResult$Type extends MessageType { - constructor() { - super("vizapi.GetSiteComposedFieldResult", [ - { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => ComposedField } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the Content about the composed field" } } }); - } - create(value?: PartialMessage): GetSiteComposedFieldResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteComposedFieldResult): GetSiteComposedFieldResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* vizapi.ComposedField Result */ 1: - message.Result = ComposedField.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: GetSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* vizapi.ComposedField Result = 1; */ - if (message.Result) - ComposedField.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.GetSiteComposedFieldResult - */ -export const GetSiteComposedFieldResult = new GetSiteComposedFieldResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateSiteComposedFieldRequest$Type extends MessageType { - constructor() { - super("vizapi.CreateSiteComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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 Composed Field" }, "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: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "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 in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } }); - } - create(value?: PartialMessage): CreateSiteComposedFieldRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.Name = ""; - message.ScreenID = ""; - message.TabID = ""; - message.Payload = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteComposedFieldRequest): CreateSiteComposedFieldRequest { - 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 Name */ 2: - message.Name = reader.string(); - break; - case /* string ScreenID */ 3: - message.ScreenID = reader.string(); - break; - case /* string TabID */ 4: - message.TabID = reader.string(); - break; - case /* string Payload */ 5: - message.Payload = 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: CreateSiteComposedFieldRequest, 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 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 TabID = 4; */ - if (message.TabID !== "") - writer.tag(4, WireType.LengthDelimited).string(message.TabID); - /* string Payload = 5; */ - if (message.Payload !== "") - writer.tag(5, WireType.LengthDelimited).string(message.Payload); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.CreateSiteComposedFieldRequest - */ -export const CreateSiteComposedFieldRequest = new CreateSiteComposedFieldRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateSiteComposedFieldResult$Type extends MessageType { - constructor() { - super("vizapi.CreateSiteComposedFieldResult", [ - { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ID of the created Composed Field" } } }); - } - create(value?: PartialMessage): CreateSiteComposedFieldResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ComposedFieldID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteComposedFieldResult): CreateSiteComposedFieldResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string ComposedFieldID */ 1: - message.ComposedFieldID = 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: CreateSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ComposedFieldID = 1; */ - if (message.ComposedFieldID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.CreateSiteComposedFieldResult - */ -export const CreateSiteComposedFieldResult = new CreateSiteComposedFieldResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateSiteComposedFieldRequest$Type extends MessageType { - constructor() { - super("vizapi.UpdateSiteComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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 Composed Field" }, "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: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "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 in the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } }); - } - create(value?: PartialMessage): UpdateSiteComposedFieldRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ComposedFieldID = ""; - message.Name = ""; - message.ScreenID = ""; - message.TabID = ""; - message.Payload = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteComposedFieldRequest): UpdateSiteComposedFieldRequest { - 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 ComposedFieldID */ 2: - message.ComposedFieldID = reader.string(); - break; - case /* string Name */ 3: - message.Name = reader.string(); - break; - case /* string ScreenID */ 4: - message.ScreenID = reader.string(); - break; - case /* string TabID */ 5: - message.TabID = reader.string(); - break; - case /* string Payload */ 6: - message.Payload = 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: UpdateSiteComposedFieldRequest, 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 ComposedFieldID = 2; */ - if (message.ComposedFieldID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); - /* 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 TabID = 5; */ - if (message.TabID !== "") - writer.tag(5, WireType.LengthDelimited).string(message.TabID); - /* string Payload = 6; */ - if (message.Payload !== "") - writer.tag(6, WireType.LengthDelimited).string(message.Payload); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.UpdateSiteComposedFieldRequest - */ -export const UpdateSiteComposedFieldRequest = new UpdateSiteComposedFieldRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateSiteComposedFieldResult$Type extends MessageType { - constructor() { - super("vizapi.UpdateSiteComposedFieldResult", [ - { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated dashboard ID" } } }); - } - create(value?: PartialMessage): UpdateSiteComposedFieldResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ComposedFieldID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteComposedFieldResult): UpdateSiteComposedFieldResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string ComposedFieldID */ 1: - message.ComposedFieldID = 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: UpdateSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string ComposedFieldID = 1; */ - if (message.ComposedFieldID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.ComposedFieldID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.UpdateSiteComposedFieldResult - */ -export const UpdateSiteComposedFieldResult = new UpdateSiteComposedFieldResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteSiteComposedFieldRequest$Type extends MessageType { - constructor() { - super("vizapi.DeleteSiteComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } }); - } - create(value?: PartialMessage): DeleteSiteComposedFieldRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ComposedFieldID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteComposedFieldRequest): DeleteSiteComposedFieldRequest { - 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 ComposedFieldID */ 2: - message.ComposedFieldID = 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: DeleteSiteComposedFieldRequest, 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 ComposedFieldID = 2; */ - if (message.ComposedFieldID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.ComposedFieldID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.DeleteSiteComposedFieldRequest - */ -export const DeleteSiteComposedFieldRequest = new DeleteSiteComposedFieldRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteSiteComposedFieldResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteSiteComposedFieldResult", []); - } - create(value?: PartialMessage): DeleteSiteComposedFieldResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteComposedFieldResult): DeleteSiteComposedFieldResult { - 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: DeleteSiteComposedFieldResult, 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.DeleteSiteComposedFieldResult - */ -export const DeleteSiteComposedFieldResult = new DeleteSiteComposedFieldResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListSiteComposedFieldRequest$Type extends MessageType { - constructor() { - super("vizapi.ListSiteComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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" } } }, - { no: 3, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): ListSiteComposedFieldRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ScreenID = ""; - message.TabID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteComposedFieldRequest): ListSiteComposedFieldRequest { - 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 ScreenID */ 2: - message.ScreenID = reader.string(); - break; - case /* string TabID */ 3: - message.TabID = 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: ListSiteComposedFieldRequest, 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 ScreenID = 2; */ - if (message.ScreenID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.ScreenID); - /* string TabID = 3; */ - if (message.TabID !== "") - writer.tag(3, WireType.LengthDelimited).string(message.TabID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.ListSiteComposedFieldRequest - */ -export const ListSiteComposedFieldRequest = new ListSiteComposedFieldRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListSiteComposedFieldResult$Type extends MessageType { - constructor() { - super("vizapi.ListSiteComposedFieldResult", [ - { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ComposedField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All Content in a Composed Field" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Composed Fields" } } }); - } - create(value?: PartialMessage): ListSiteComposedFieldResult { - 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?: ListSiteComposedFieldResult): ListSiteComposedFieldResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated vizapi.ComposedField Results */ 1: - message.Results.push(ComposedField.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: ListSiteComposedFieldResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated vizapi.ComposedField Results = 1; */ - for (let i = 0; i < message.Results.length; i++) - ComposedField.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.ListSiteComposedFieldResult - */ -export const ListSiteComposedFieldResult = new ListSiteComposedFieldResult$Type(); /** * @generated ServiceType for protobuf service vizapi.ComposedFieldService */ @@ -2445,10 +1699,5 @@ export const ComposedFieldService = new ServiceType("vizapi.ComposedFieldService { name: "CreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateProjectComposedFieldRequest, O: CreateProjectComposedFieldResult }, { name: "UpdateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateProjectComposedFieldRequest, O: UpdateProjectComposedFieldResult }, { name: "DeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectComposedFieldRequest, O: DeleteProjectComposedFieldResult }, - { name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectComposedFieldRequest, O: ListProjectComposedFieldResult }, - { name: "GetSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Get a composed field" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetSiteComposedFieldRequest, O: GetSiteComposedFieldResult }, - { name: "CreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Create a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateSiteComposedFieldRequest, O: CreateSiteComposedFieldResult }, - { name: "UpdateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Update a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateSiteComposedFieldRequest, O: UpdateSiteComposedFieldResult }, - { name: "DeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "Delete a composed field", description: "TODO" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSiteComposedFieldRequest, O: DeleteSiteComposedFieldResult }, - { name: "ListSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Site and with the same Screen and Tab IDs" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListSiteComposedFieldRequest, O: ListSiteComposedFieldResult } + { name: "ListProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Composed Field"], summary: "List composed fields", description: "List all composed fields present under the same Project and with the same Screen and Tab IDs" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectComposedFieldRequest, O: ListProjectComposedFieldResult } ], { "api.k8sService": "views-server" }); diff --git a/viz-dashboard.client.ts b/viz-dashboard.client.ts index 50fa9ec..ac18da7 100644 --- a/viz-dashboard.client.ts +++ b/viz-dashboard.client.ts @@ -4,20 +4,6 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { DashboardService } from "./viz-dashboard"; -import type { CopySiteDashboardResult } from "./viz-dashboard"; -import type { CopySiteDashboardRequest } from "./viz-dashboard"; -import type { GetSiteDashboardResult } from "./viz-dashboard"; -import type { GetSiteDashboardRequest } from "./viz-dashboard"; -import type { UpdateSiteDashboardResult } from "./viz-dashboard"; -import type { UpdateSiteDashboardRequest } from "./viz-dashboard"; -import type { DeleteDashboardsForSiteResult } from "./viz-dashboard"; -import type { DeleteDashboardsForSiteRequest } from "./viz-dashboard"; -import type { DeleteSiteDashboardResult } from "./viz-dashboard"; -import type { DeleteSiteDashboardRequest } from "./viz-dashboard"; -import type { ListSiteDashboardResult } from "./viz-dashboard"; -import type { ListSiteDashboardRequest } from "./viz-dashboard"; -import type { CreateSiteDashboardResult } from "./viz-dashboard"; -import type { CreateSiteDashboardRequest } from "./viz-dashboard"; import type { CopyProjectDashboardResult } from "./viz-dashboard"; import type { CopyProjectDashboardRequest } from "./viz-dashboard"; import type { GetProjectDashboardResult } from "./viz-dashboard"; @@ -109,34 +95,6 @@ export interface IDashboardServiceClient { * @generated from protobuf rpc: CopyProject */ copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: CreateSite - */ - createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: ListSite - */ - listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteSite - */ - deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteDashboardsForSite - */ - deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: UpdateSite - */ - updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: GetSite - */ - getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: CopySite - */ - copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service vizapi.DashboardService @@ -245,53 +203,4 @@ export class DashboardServiceClient implements IDashboardServiceClient, ServiceI const method = this.methods[13], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @generated from protobuf rpc: CreateSite - */ - createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[14], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: ListSite - */ - listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[15], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteSite - */ - deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[16], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteDashboardsForSite - */ - deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[17], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: UpdateSite - */ - updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[18], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: GetSite - */ - getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[19], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: CopySite - */ - copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[20], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } } diff --git a/viz-dashboard.ts b/viz-dashboard.ts index 7a178e5..161e973 100644 --- a/viz-dashboard.ts +++ b/viz-dashboard.ts @@ -11,7 +11,6 @@ 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 "./core/shared"; import { Int32Object } from "./core/shared"; import { BoolObject } from "./core/shared"; import { StringObject } from "./core/shared"; @@ -199,24 +198,6 @@ export interface DeleteDashboardsForProjectRequest { */ export interface DeleteDashboardsForProjectResult { } -/** - * Project identifier to delete the dashboards from - * - * @generated from protobuf message vizapi.DeleteDashboardsForSiteRequest - */ -export interface DeleteDashboardsForSiteRequest { - /** - * Identifier of the Project - * - * @generated from protobuf field: string SiteID = 1 - */ - SiteID: string; -} -/** - * @generated from protobuf message vizapi.DeleteDashboardsForSiteResult - */ -export interface DeleteDashboardsForSiteResult { -} /** * Information that needs to be updated * @@ -527,206 +508,6 @@ export interface CopyProjectDashboardResult { */ Result?: Dashboard; } -/** - * @generated from protobuf message vizapi.ListSiteDashboardRequest - */ -export interface ListSiteDashboardRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; -} -/** - * List of Dashboards - * - * @generated from protobuf message vizapi.ListSiteDashboardResult - */ -export interface ListSiteDashboardResult { - /** - * All information in a Dashboard - * - * @generated from protobuf field: repeated vizapi.Dashboard Results = 1 - */ - Results: Dashboard[]; -} -/** - * Information that needs to be stored - * - * @generated from protobuf message vizapi.CreateSiteDashboardRequest - */ -export interface CreateSiteDashboardRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - // empty string for name, PO: name could be empty - - /** - * Name of the Dashboard - * - * @generated from protobuf field: string Name = 2 - */ - Name: string; - /** - * All widgets in Dashboard - * - * @generated from protobuf field: string content = 3 - */ - content: string; - /** - * Visibility of the Dashboard - * - * @generated from protobuf field: bool IsPrivate = 4 - */ - IsPrivate: boolean; - /** - * @generated from protobuf field: int32 AutoRefresh = 8 - */ - AutoRefresh: number; -} -/** - * Created Dashboard - * - * @generated from protobuf message vizapi.CreateSiteDashboardResult - */ -export interface CreateSiteDashboardResult { - /** - * @generated from protobuf field: vizapi.Dashboard Result = 1 - */ - Result?: Dashboard; -} -/** - * IDs of the Dashboard to be deleted - * - * @generated from protobuf message vizapi.DeleteSiteDashboardRequest - */ -export interface DeleteSiteDashboardRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Dashboard - * - * @generated from protobuf field: string DashboardID = 2 - */ - DashboardID: string; -} -/** - * @generated from protobuf message vizapi.DeleteSiteDashboardResult - */ -export interface DeleteSiteDashboardResult { -} -/** - * Information that needs to be updated - * - * @generated from protobuf message vizapi.UpdateSiteDashboardRequest - */ -export interface UpdateSiteDashboardRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Dashboard - * - * @generated from protobuf field: string DashboardID = 2 - */ - DashboardID: string; - /** - * Name of the Dashboard - * - * @generated from protobuf field: api.StringObject Name = 3 - */ - Name?: StringObject; - /** - * All the widgets in Dashboard - * - * @generated from protobuf field: api.StringObject Content = 4 - */ - Content?: StringObject; - /** - * Visibility of the Dashboard - * - * @generated from protobuf field: api.BoolObject IsPrivate = 5 - */ - IsPrivate?: BoolObject; - /** - * @generated from protobuf field: api.Int32Object AutoRefresh = 9 - */ - AutoRefresh?: Int32Object; -} -/** - * Updated Dashboard information - * - * @generated from protobuf message vizapi.UpdateSiteDashboardResult - */ -export interface UpdateSiteDashboardResult { - /** - * @generated from protobuf field: vizapi.Dashboard Result = 1 - */ - Result?: Dashboard; -} -/** - * IDs of the Dashboard - * - * @generated from protobuf message vizapi.GetSiteDashboardRequest - */ -export interface GetSiteDashboardRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Dashboard - * - * @generated from protobuf field: string DashboardID = 2 - */ - DashboardID: string; -} -/** - * All information about the Dashboard - * - * @generated from protobuf message vizapi.GetSiteDashboardResult - */ -export interface GetSiteDashboardResult { - /** - * @generated from protobuf field: vizapi.Dashboard result = 1 - */ - result?: Dashboard; -} -/** - * @generated from protobuf message vizapi.CopySiteDashboardRequest - */ -export interface CopySiteDashboardRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Dashboard - * - * @generated from protobuf field: string DashboardID = 2 - */ - DashboardID: string; - /** - * Name of the new Dashboard - * - * @generated from protobuf field: string Name = 3 - */ - Name: string; -} -/** - * New copied dashboard - * - * @generated from protobuf message vizapi.CopySiteDashboardResult - */ -export interface CopySiteDashboardResult { - /** - * @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 { constructor() { @@ -1318,91 +1099,6 @@ class DeleteDashboardsForProjectResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteDashboardsForSiteRequest", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Site" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Site identifier to delete the dashboards from", required: ["SiteID"] } } }); - } - create(value?: PartialMessage): DeleteDashboardsForSiteRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.SiteID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForSiteRequest): DeleteDashboardsForSiteRequest { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string SiteID */ 1: - message.SiteID = 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: DeleteDashboardsForSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string SiteID = 1; */ - if (message.SiteID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.SiteID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.DeleteDashboardsForSiteRequest - */ -export const DeleteDashboardsForSiteRequest = new DeleteDashboardsForSiteRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteDashboardsForSiteResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteDashboardsForSiteResult", []); - } - create(value?: PartialMessage): DeleteDashboardsForSiteResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDashboardsForSiteResult): DeleteDashboardsForSiteResult { - 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: DeleteDashboardsForSiteResult, 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.DeleteDashboardsForSiteResult - */ -export const DeleteDashboardsForSiteResult = new DeleteDashboardsForSiteResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods class UpdateDashboardRequest$Type extends MessageType { constructor() { super("vizapi.UpdateDashboardRequest", [ @@ -2383,651 +2079,6 @@ class CopyProjectDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.ListSiteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): ListSiteDashboardRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteDashboardRequest): ListSiteDashboardRequest { - 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; - 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: ListSiteDashboardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestSiteHeader Header = 1; */ - if (message.Header) - RequestSiteHeader.internalBinaryWrite(message.Header, 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.ListSiteDashboardRequest - */ -export const ListSiteDashboardRequest = new ListSiteDashboardRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListSiteDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.ListSiteDashboardResult", [ - { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dashboard, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All information in a Dashboard" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of Dashboards" } } }); - } - create(value?: PartialMessage): ListSiteDashboardResult { - 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?: ListSiteDashboardResult): ListSiteDashboardResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated vizapi.Dashboard Results */ 1: - message.Results.push(Dashboard.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: ListSiteDashboardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated vizapi.Dashboard Results = 1; */ - for (let i = 0; i < message.Results.length; i++) - Dashboard.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.ListSiteDashboardResult - */ -export const ListSiteDashboardResult = new ListSiteDashboardResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateSiteDashboardRequest$Type extends MessageType { - constructor() { - super("vizapi.CreateSiteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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 Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All widgets in Dashboard" } } }, - { no: 4, 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 Dashboard" } } }, - { no: 8, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name"] } } }); - } - create(value?: PartialMessage): CreateSiteDashboardRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.Name = ""; - message.content = ""; - message.IsPrivate = false; - message.AutoRefresh = 0; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteDashboardRequest): CreateSiteDashboardRequest { - 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 Name */ 2: - message.Name = reader.string(); - break; - case /* string content */ 3: - message.content = reader.string(); - break; - case /* bool IsPrivate */ 4: - message.IsPrivate = reader.bool(); - break; - case /* int32 AutoRefresh */ 8: - message.AutoRefresh = 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; - } - internalBinaryWrite(message: CreateSiteDashboardRequest, 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 Name = 2; */ - if (message.Name !== "") - writer.tag(2, WireType.LengthDelimited).string(message.Name); - /* string content = 3; */ - if (message.content !== "") - writer.tag(3, WireType.LengthDelimited).string(message.content); - /* bool IsPrivate = 4; */ - if (message.IsPrivate !== false) - writer.tag(4, WireType.Varint).bool(message.IsPrivate); - /* int32 AutoRefresh = 8; */ - if (message.AutoRefresh !== 0) - writer.tag(8, WireType.Varint).int32(message.AutoRefresh); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.CreateSiteDashboardRequest - */ -export const CreateSiteDashboardRequest = new CreateSiteDashboardRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateSiteDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.CreateSiteDashboardResult", [ - { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Created Dashboard" } } }); - } - create(value?: PartialMessage): CreateSiteDashboardResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteDashboardResult): CreateSiteDashboardResult { - 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: CreateSiteDashboardResult, 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.CreateSiteDashboardResult - */ -export const CreateSiteDashboardResult = new CreateSiteDashboardResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteSiteDashboardRequest$Type extends MessageType { - constructor() { - super("vizapi.DeleteSiteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard to be deleted", required: ["Header", "DashboardID"] } } }); - } - create(value?: PartialMessage): DeleteSiteDashboardRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.DashboardID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteDashboardRequest): DeleteSiteDashboardRequest { - 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 DashboardID */ 2: - message.DashboardID = 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: DeleteSiteDashboardRequest, 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 DashboardID = 2; */ - if (message.DashboardID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.DeleteSiteDashboardRequest - */ -export const DeleteSiteDashboardRequest = new DeleteSiteDashboardRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteSiteDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteSiteDashboardResult", []); - } - create(value?: PartialMessage): DeleteSiteDashboardResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteDashboardResult): DeleteSiteDashboardResult { - 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: DeleteSiteDashboardResult, 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.DeleteSiteDashboardResult - */ -export const DeleteSiteDashboardResult = new DeleteSiteDashboardResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateSiteDashboardRequest$Type extends MessageType { - constructor() { - super("vizapi.UpdateSiteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: "Name", kind: "message", localName: "Name", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } }, - { no: 4, name: "Content", kind: "message", localName: "Content", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } }, - { no: 5, name: "IsPrivate", kind: "message", localName: "IsPrivate", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, - { no: 9, name: "AutoRefresh", kind: "message", localName: "AutoRefresh", jsonName: "AutoRefresh", T: () => Int32Object } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "DashboardID"] } } }); - } - create(value?: PartialMessage): UpdateSiteDashboardRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.DashboardID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteDashboardRequest): UpdateSiteDashboardRequest { - 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 DashboardID */ 2: - message.DashboardID = reader.string(); - break; - case /* api.StringObject Name */ 3: - message.Name = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Name); - break; - case /* api.StringObject Content */ 4: - message.Content = StringObject.internalBinaryRead(reader, reader.uint32(), options, message.Content); - break; - case /* api.BoolObject IsPrivate */ 5: - message.IsPrivate = BoolObject.internalBinaryRead(reader, reader.uint32(), options, message.IsPrivate); - break; - case /* api.Int32Object AutoRefresh */ 9: - message.AutoRefresh = Int32Object.internalBinaryRead(reader, reader.uint32(), options, message.AutoRefresh); - 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: UpdateSiteDashboardRequest, 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 DashboardID = 2; */ - if (message.DashboardID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); - /* api.StringObject Name = 3; */ - if (message.Name) - StringObject.internalBinaryWrite(message.Name, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* api.StringObject Content = 4; */ - if (message.Content) - StringObject.internalBinaryWrite(message.Content, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* api.BoolObject IsPrivate = 5; */ - if (message.IsPrivate) - BoolObject.internalBinaryWrite(message.IsPrivate, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - /* api.Int32Object AutoRefresh = 9; */ - if (message.AutoRefresh) - Int32Object.internalBinaryWrite(message.AutoRefresh, writer.tag(9, 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.UpdateSiteDashboardRequest - */ -export const UpdateSiteDashboardRequest = new UpdateSiteDashboardRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateSiteDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.UpdateSiteDashboardResult", [ - { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Updated Dashboard information" } } }); - } - create(value?: PartialMessage): UpdateSiteDashboardResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteDashboardResult): UpdateSiteDashboardResult { - 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: UpdateSiteDashboardResult, 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.UpdateSiteDashboardResult - */ -export const UpdateSiteDashboardResult = new UpdateSiteDashboardResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GetSiteDashboardRequest$Type extends MessageType { - constructor() { - super("vizapi.GetSiteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard", required: ["Header", "DashboardID"] } } }); - } - create(value?: PartialMessage): GetSiteDashboardRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.DashboardID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDashboardRequest): GetSiteDashboardRequest { - 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 DashboardID */ 2: - message.DashboardID = 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: GetSiteDashboardRequest, 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 DashboardID = 2; */ - if (message.DashboardID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.GetSiteDashboardRequest - */ -export const GetSiteDashboardRequest = new GetSiteDashboardRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GetSiteDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.GetSiteDashboardResult", [ - { no: 1, name: "result", kind: "message", T: () => Dashboard } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All information about the Dashboard" } } }); - } - create(value?: PartialMessage): GetSiteDashboardResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteDashboardResult): GetSiteDashboardResult { - 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: GetSiteDashboardResult, 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.GetSiteDashboardResult - */ -export const GetSiteDashboardResult = new GetSiteDashboardResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CopySiteDashboardRequest$Type extends MessageType { - constructor() { - super("vizapi.CopySiteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DashboardID", "Name"] } } }); - } - create(value?: PartialMessage): CopySiteDashboardRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.DashboardID = ""; - message.Name = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopySiteDashboardRequest): CopySiteDashboardRequest { - 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 DashboardID */ 2: - message.DashboardID = reader.string(); - break; - case /* string Name */ 3: - message.Name = 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: CopySiteDashboardRequest, 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 DashboardID = 2; */ - if (message.DashboardID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.DashboardID); - /* string Name = 3; */ - if (message.Name !== "") - writer.tag(3, WireType.LengthDelimited).string(message.Name); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.CopySiteDashboardRequest - */ -export const CopySiteDashboardRequest = new CopySiteDashboardRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CopySiteDashboardResult$Type extends MessageType { - constructor() { - super("vizapi.CopySiteDashboardResult", [ - { no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Dashboard } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "New copied dashboard" } } }); - } - create(value?: PartialMessage): CopySiteDashboardResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CopySiteDashboardResult): CopySiteDashboardResult { - 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: CopySiteDashboardResult, 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.CopySiteDashboardResult - */ -export const CopySiteDashboardResult = new CopySiteDashboardResult$Type(); /** * @generated ServiceType for protobuf service vizapi.DashboardService */ @@ -3045,12 +2096,5 @@ export const DashboardService = new ServiceType("vizapi.DashboardService", [ { 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 }, { name: "UpdateProject", 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: UpdateProjectDashboardRequest, O: UpdateProjectDashboardResult }, { name: "GetProject", 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: GetProjectDashboardRequest, O: GetProjectDashboardResult }, - { name: "CopyProject", 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: CopyProjectDashboardRequest, O: CopyProjectDashboardResult }, - { name: "CreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Create a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateSiteDashboardRequest, O: CreateSiteDashboardResult }, - { name: "ListSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "List dashboards", description: "List all the Dashboards" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListSiteDashboardRequest, O: ListSiteDashboardResult }, - { name: "DeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSiteDashboardRequest, O: DeleteSiteDashboardResult }, - { name: "DeleteDashboardsForSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Delete all dashboards of a project" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Dashboards", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteDashboardsForSiteRequest, O: DeleteDashboardsForSiteResult }, - { name: "UpdateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Update a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateSiteDashboardRequest, O: UpdateSiteDashboardResult }, - { name: "GetSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Dashboard"], summary: "Get a dashboard" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetSiteDashboardRequest, O: GetSiteDashboardResult }, - { name: "CopySite", 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": "Site", "api.roles": "", "api.moduleID": "dashboard", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CopySiteDashboardRequest, O: CopySiteDashboardResult } + { name: "CopyProject", 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: CopyProjectDashboardRequest, O: CopyProjectDashboardResult } ], { "api.k8sService": "dashboard" }); diff --git a/viz-view.client.ts b/viz-view.client.ts index a16ca9f..05e55e5 100644 --- a/viz-view.client.ts +++ b/viz-view.client.ts @@ -4,20 +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 { DeleteViewsForSiteResult } from "./viz-view"; -import type { DeleteViewsForSiteRequest } from "./viz-view"; -import type { ExtractSiteResult } from "./viz-view"; -import type { ExtractSiteRequest } from "./viz-view"; -import type { ListSiteViewResult } from "./viz-view"; -import type { ListSiteViewRequest } from "./viz-view"; -import type { DeleteSiteViewResult } from "./viz-view"; -import type { DeleteSiteViewRequest } from "./viz-view"; -import type { UpdateSiteViewResult } from "./viz-view"; -import type { UpdateSiteViewRequest } from "./viz-view"; -import type { CreateSiteViewResult } from "./viz-view"; -import type { CreateSiteViewRequest } from "./viz-view"; -import type { GetSiteViewResult } from "./viz-view"; -import type { GetSiteViewRequest } from "./viz-view"; import type { ExtractProjectResult } from "./viz-view"; import type { ExtractProjectRequest } from "./viz-view"; import type { ListProjectViewResult } from "./viz-view"; @@ -103,34 +89,6 @@ export interface IViewServiceClient { * @generated from protobuf rpc: ExtractProject */ extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: GetSite - */ - getSite(input: GetSiteViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: CreateSite - */ - createSite(input: CreateSiteViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: UpdateSite - */ - updateSite(input: UpdateSiteViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteSite - */ - deleteSite(input: DeleteSiteViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: ListSite - */ - listSite(input: ListSiteViewRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: ExtractSite - */ - extractSite(input: ExtractSiteRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteViewsForSite - */ - deleteViewsForSite(input: DeleteViewsForSiteRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service vizapi.ViewService @@ -232,53 +190,4 @@ export class ViewServiceClient implements IViewServiceClient, ServiceInfo { const method = this.methods[12], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @generated from protobuf rpc: GetSite - */ - getSite(input: GetSiteViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[13], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: CreateSite - */ - createSite(input: CreateSiteViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[14], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: UpdateSite - */ - updateSite(input: UpdateSiteViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[15], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteSite - */ - deleteSite(input: DeleteSiteViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[16], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: ListSite - */ - listSite(input: ListSiteViewRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[17], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: ExtractSite - */ - extractSite(input: ExtractSiteRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[18], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteViewsForSite - */ - deleteViewsForSite(input: DeleteViewsForSiteRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[19], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } } diff --git a/viz-view.ts b/viz-view.ts index 93e6128..a40ecba 100644 --- a/viz-view.ts +++ b/viz-view.ts @@ -12,7 +12,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { BlockFilter } from "./core/shared"; -import { RequestSiteHeader } from "./core/shared"; import { RequestProjectHeader } from "./core/shared"; /** * @generated from protobuf message vizapi.View @@ -504,202 +503,6 @@ export interface DeleteViewsForProjectRequest { */ export interface DeleteViewsForProjectResult { } -/** - * @generated from protobuf message vizapi.DeleteViewsForSiteRequest - */ -export interface DeleteViewsForSiteRequest { - /** - * Identifier of the Project - * - * @generated from protobuf field: string SiteID = 1 - */ - SiteID: string; -} -/** - * @generated from protobuf message vizapi.DeleteViewsForSiteResult - */ -export interface DeleteViewsForSiteResult { -} -/** - * IDs of the View - * - * @generated from protobuf message vizapi.GetSiteViewRequest - */ -export interface GetSiteViewRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 2 - */ - ViewID: string; -} -/** - * All information about the View - * - * @generated from protobuf message vizapi.GetSiteViewResult - */ -export interface GetSiteViewResult { - /** - * @generated from protobuf field: vizapi.ComposedUserView Result = 1 - */ - Result?: ComposedUserView; -} -/** - * Information that needs to be stored - * - * @generated from protobuf message vizapi.CreateSiteViewRequest - */ -export interface CreateSiteViewRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * 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.CreateSiteViewResult - */ -export interface CreateSiteViewResult { - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 1 - */ - ViewID: string; -} -/** - * Information that needs to be updated - * - * @generated from protobuf message vizapi.UpdateSiteViewRequest - */ -export interface UpdateSiteViewRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * 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.UpdateSiteViewResult - */ -export interface UpdateSiteViewResult { - /** - * 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.DeleteSiteViewRequest - */ -export interface DeleteSiteViewRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the View - * - * @generated from protobuf field: string ViewID = 2 - */ - ViewID: string; -} -/** - * @generated from protobuf message vizapi.DeleteSiteViewResult - */ -export interface DeleteSiteViewResult { -} -/** - * @generated from protobuf message vizapi.ListSiteViewRequest - */ -export interface ListSiteViewRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * Identifier of the Screen - * - * @generated from protobuf field: string ScreenID = 2 - */ - ScreenID: string; -} -/** - * List of Views - * - * @generated from protobuf message vizapi.ListSiteViewResult - */ -export interface ListSiteViewResult { - /** - * All information in a View - * - * @generated from protobuf field: repeated vizapi.ComposedUserView Results = 1 - */ - Results: ComposedUserView[]; -} /** * @generated from protobuf message vizapi.TranslationMap */ @@ -889,76 +692,6 @@ export interface ExtractProjectResult { */ RunID: string; } -/** - * @generated from protobuf message vizapi.ExtractSiteRequest - */ -export interface ExtractSiteRequest { - /** - * @generated from protobuf field: api.RequestSiteHeader Header = 1 - */ - Header?: RequestSiteHeader; - /** - * @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.ExtractSiteResult - */ -export interface ExtractSiteResult { - /** - * @generated from protobuf field: string WorkflowID = 1 - */ - WorkflowID: string; - /** - * @generated from protobuf field: string RunID = 2 - */ - RunID: string; -} /** * @generated from protobuf enum vizapi.TimeFormat */ @@ -2395,642 +2128,6 @@ class DeleteViewsForProjectResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteViewsForSiteRequest", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Site" }, "validate.rules": { string: { minLen: "1" } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } }); - } - create(value?: PartialMessage): DeleteViewsForSiteRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.SiteID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteViewsForSiteRequest): DeleteViewsForSiteRequest { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string SiteID */ 1: - message.SiteID = 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: DeleteViewsForSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string SiteID = 1; */ - if (message.SiteID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.SiteID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message vizapi.DeleteViewsForSiteRequest - */ -export const DeleteViewsForSiteRequest = new DeleteViewsForSiteRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteViewsForSiteResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteViewsForSiteResult", []); - } - create(value?: PartialMessage): DeleteViewsForSiteResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteViewsForSiteResult): DeleteViewsForSiteResult { - 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: DeleteViewsForSiteResult, 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.DeleteViewsForSiteResult - */ -export const DeleteViewsForSiteResult = new DeleteViewsForSiteResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GetSiteViewRequest$Type extends MessageType { - constructor() { - super("vizapi.GetSiteViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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): GetSiteViewRequest { - 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?: GetSiteViewRequest): GetSiteViewRequest { - 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 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: GetSiteViewRequest, 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 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.GetSiteViewRequest - */ -export const GetSiteViewRequest = new GetSiteViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GetSiteViewResult$Type extends MessageType { - constructor() { - super("vizapi.GetSiteViewResult", [ - { 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): GetSiteViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewResult): GetSiteViewResult { - 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: GetSiteViewResult, 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.GetSiteViewResult - */ -export const GetSiteViewResult = new GetSiteViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateSiteViewRequest$Type extends MessageType { - constructor() { - super("vizapi.CreateSiteViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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): CreateSiteViewRequest { - 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?: CreateSiteViewRequest): CreateSiteViewRequest { - 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 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: CreateSiteViewRequest, 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 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.CreateSiteViewRequest - */ -export const CreateSiteViewRequest = new CreateSiteViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CreateSiteViewResult$Type extends MessageType { - constructor() { - super("vizapi.CreateSiteViewResult", [ - { 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): CreateSiteViewResult { - 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?: CreateSiteViewResult): CreateSiteViewResult { - 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: CreateSiteViewResult, 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.CreateSiteViewResult - */ -export const CreateSiteViewResult = new CreateSiteViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateSiteViewRequest$Type extends MessageType { - constructor() { - super("vizapi.UpdateSiteViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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): UpdateSiteViewRequest { - 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?: UpdateSiteViewRequest): UpdateSiteViewRequest { - 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 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: UpdateSiteViewRequest, 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 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.UpdateSiteViewRequest - */ -export const UpdateSiteViewRequest = new UpdateSiteViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateSiteViewResult$Type extends MessageType { - constructor() { - super("vizapi.UpdateSiteViewResult", [ - { 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): UpdateSiteViewResult { - 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?: UpdateSiteViewResult): UpdateSiteViewResult { - 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: UpdateSiteViewResult, 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.UpdateSiteViewResult - */ -export const UpdateSiteViewResult = new UpdateSiteViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteSiteViewRequest$Type extends MessageType { - constructor() { - super("vizapi.DeleteSiteViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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): DeleteSiteViewRequest { - 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?: DeleteSiteViewRequest): DeleteSiteViewRequest { - 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 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: DeleteSiteViewRequest, 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 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.DeleteSiteViewRequest - */ -export const DeleteSiteViewRequest = new DeleteSiteViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DeleteSiteViewResult$Type extends MessageType { - constructor() { - super("vizapi.DeleteSiteViewResult", []); - } - create(value?: PartialMessage): DeleteSiteViewResult { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteViewResult): DeleteSiteViewResult { - 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: DeleteSiteViewResult, 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.DeleteSiteViewResult - */ -export const DeleteSiteViewResult = new DeleteSiteViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListSiteViewRequest$Type extends MessageType { - constructor() { - super("vizapi.ListSiteViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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): ListSiteViewRequest { - 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?: ListSiteViewRequest): ListSiteViewRequest { - 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 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: ListSiteViewRequest, 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 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.ListSiteViewRequest - */ -export const ListSiteViewRequest = new ListSiteViewRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListSiteViewResult$Type extends MessageType { - constructor() { - super("vizapi.ListSiteViewResult", [ - { 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): ListSiteViewResult { - 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?: ListSiteViewResult): ListSiteViewResult { - 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: ListSiteViewResult, 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.ListSiteViewResult - */ -export const ListSiteViewResult = new ListSiteViewResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods class TranslationMap$Type extends MessageType { constructor() { super("vizapi.TranslationMap", [ @@ -3598,227 +2695,6 @@ class ExtractProjectResult$Type extends MessageType { * @generated MessageType for protobuf message vizapi.ExtractProjectResult */ export const ExtractProjectResult = new ExtractProjectResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ExtractSiteRequest$Type extends MessageType { - constructor() { - super("vizapi.ExtractSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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): ExtractSiteRequest { - 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?: ExtractSiteRequest): ExtractSiteRequest { - 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 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: ExtractSiteRequest["ColumnTranslationMaps"], reader: IBinaryReader, options: BinaryReadOptions): void { - let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteRequest["ColumnTranslationMaps"] | undefined, val: ExtractSiteRequest["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.ExtractSiteRequest.ColumnTranslationMaps"); - } - } - map[key ?? ""] = val ?? TranslationMap.create(); - } - private binaryReadMap9(map: ExtractSiteRequest["ColumnFormats"], reader: IBinaryReader, options: BinaryReadOptions): void { - let len = reader.uint32(), end = reader.pos + len, key: keyof ExtractSiteRequest["ColumnFormats"] | undefined, val: ExtractSiteRequest["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.ExtractSiteRequest.ColumnFormats"); - } - } - map[key ?? 0] = val ?? ExtractColumnFormat.create(); - } - internalBinaryWrite(message: ExtractSiteRequest, 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 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.ExtractSiteRequest - */ -export const ExtractSiteRequest = new ExtractSiteRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ExtractSiteResult$Type extends MessageType { - constructor() { - super("vizapi.ExtractSiteResult", [ - { 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): ExtractSiteResult { - 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?: ExtractSiteResult): ExtractSiteResult { - 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: ExtractSiteResult, 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.ExtractSiteResult - */ -export const ExtractSiteResult = new ExtractSiteResult$Type(); /** * @generated ServiceType for protobuf service vizapi.ViewService */ @@ -3835,12 +2711,5 @@ export const ViewService = new ServiceType("vizapi.ViewService", [ { 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: "GetSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Get a view" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetSiteViewRequest, O: GetSiteViewResult }, - { name: "CreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Create a view" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CreateSiteViewRequest, O: CreateSiteViewResult }, - { name: "UpdateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Update a view" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: UpdateSiteViewRequest, O: UpdateSiteViewResult }, - { name: "DeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Delete a view" }, "api.rscType": "Site", "api.roles": "Platform.Site-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSiteViewRequest, O: DeleteSiteViewResult }, - { name: "ListSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "List views", description: "List all Views present under the same Site and with the same Screen ID" }, "api.rscType": "Site", "api.roles": "Platform.Site-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListSiteViewRequest, O: ListSiteViewResult }, - { name: "ExtractSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Extract view", description: "Start view extraction in csv format" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractSiteRequest, O: ExtractSiteResult }, - { name: "DeleteViewsForSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], summary: "Delete all views for a project" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Views", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteViewsForSiteRequest, O: DeleteViewsForSiteResult } + { 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 } ], { "api.k8sService": "views-server" });