You've already forked npm-viz-sdk
Latest generation
This commit is contained in:
629
core/shared.ts
629
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<string, api.TranslationMap> ColumnTranslationMaps = 8
|
||||
*/
|
||||
ColumnTranslationMaps: {
|
||||
[key: string]: TranslationMap;
|
||||
};
|
||||
/**
|
||||
* @generated from protobuf field: map<int32, api.ExtractColumnFormat> 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<RequestHeader> {
|
||||
@@ -2797,69 +2626,6 @@ class RequestProjectHeader$Type extends MessageType<RequestProjectHeader> {
|
||||
*/
|
||||
export const RequestProjectHeader = new RequestProjectHeader$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class RequestSiteHeader$Type extends MessageType<RequestSiteHeader> {
|
||||
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>): RequestSiteHeader {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
message.CorrelationID = "";
|
||||
message.TechnicalID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<RequestSiteHeader>(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<RequestOrganisationHeader> {
|
||||
constructor() {
|
||||
super("api.RequestOrganisationHeader", [
|
||||
@@ -3238,69 +3004,6 @@ class ResponseHeader$Type extends MessageType<ResponseHeader> {
|
||||
*/
|
||||
export const ResponseHeader = new ResponseHeader$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ResponseSiteHeader$Type extends MessageType<ResponseSiteHeader> {
|
||||
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>): ResponseSiteHeader {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
message.CorrelationID = "";
|
||||
message.TechnicalID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ResponseSiteHeader>(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<AttachmentTypeResponseHeader> {
|
||||
constructor() {
|
||||
super("api.AttachmentTypeResponseHeader", [
|
||||
@@ -3506,77 +3209,6 @@ class QueryProjectHeader$Type extends MessageType<QueryProjectHeader> {
|
||||
*/
|
||||
export const QueryProjectHeader = new QueryProjectHeader$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class QuerySiteHeader$Type extends MessageType<QuerySiteHeader> {
|
||||
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>): QuerySiteHeader {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
message.PagingState = "";
|
||||
message.Limit = "";
|
||||
message.LocalizedLabel = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<QuerySiteHeader>(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<ResultHeader> {
|
||||
constructor() {
|
||||
super("api.ResultHeader", [
|
||||
@@ -3630,7 +3262,6 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
||||
{ 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<CommandHeader> {
|
||||
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<CommandHeader> {
|
||||
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<CommandHeader> {
|
||||
/* 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<EventHeader> {
|
||||
{ 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<EventHeader> {
|
||||
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<EventHeader> {
|
||||
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<EventHeader> {
|
||||
/* 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<ExtractQuery> {
|
||||
*/
|
||||
export const ExtractQuery = new ExtractQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ExtractSiteQuery$Type extends MessageType<ExtractSiteQuery> {
|
||||
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 <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", 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 <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", 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 <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", 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>): 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<ExtractSiteQuery>(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<string, api.TranslationMap> ColumnTranslationMaps */ 8:
|
||||
this.binaryReadMap8(message.ColumnTranslationMaps, reader, options);
|
||||
break;
|
||||
case /* map<int32, api.ExtractColumnFormat> 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<string, api.TranslationMap> 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<int32, api.ExtractColumnFormat> 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<ExtractResult> {
|
||||
constructor() {
|
||||
super("api.ExtractResult", [
|
||||
@@ -7937,67 +7371,6 @@ class ElementByMatchQuery$Type extends MessageType<ElementByMatchQuery> {
|
||||
*/
|
||||
export const ElementByMatchQuery = new ElementByMatchQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ElementByMatchSiteQuery$Type extends MessageType<ElementByMatchSiteQuery> {
|
||||
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>): ElementByMatchSiteQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ElementByMatchSiteQuery>(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<ElementByMatchResult> {
|
||||
constructor() {
|
||||
super("api.ElementByMatchResult", [
|
||||
|
||||
@@ -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<NextProjectCounterRequest, NextCounterResult>("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<NextSiteCounterRequest, NextCounterResult>;
|
||||
}
|
||||
/**
|
||||
* @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<NextSiteCounterRequest, NextCounterResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<NextSiteCounterRequest, NextCounterResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
74
counter.ts
74
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<NextProjectCounterRequest> {
|
||||
constructor() {
|
||||
@@ -149,69 +135,9 @@ class NextCounterResult$Type extends MessageType<NextCounterResult> {
|
||||
* @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<NextSiteCounterRequest> {
|
||||
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>): NextSiteCounterRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Key = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NextSiteCounterRequest>(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" });
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSite
|
||||
*/
|
||||
getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<GetSiteComposedFieldRequest, GetSiteComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateSite
|
||||
*/
|
||||
createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateSiteComposedFieldRequest, CreateSiteComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSite
|
||||
*/
|
||||
updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateSiteComposedFieldRequest, UpdateSiteComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSite
|
||||
*/
|
||||
deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteSiteComposedFieldRequest, DeleteSiteComposedFieldResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSite
|
||||
*/
|
||||
listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<ListSiteComposedFieldRequest, ListSiteComposedFieldResult>;
|
||||
}
|
||||
/**
|
||||
* @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<ListProjectComposedFieldRequest, ListProjectComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSite
|
||||
*/
|
||||
getSite(input: GetSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<GetSiteComposedFieldRequest, GetSiteComposedFieldResult> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetSiteComposedFieldRequest, GetSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateSite
|
||||
*/
|
||||
createSite(input: CreateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<CreateSiteComposedFieldRequest, CreateSiteComposedFieldResult> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateSiteComposedFieldRequest, CreateSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSite
|
||||
*/
|
||||
updateSite(input: UpdateSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<UpdateSiteComposedFieldRequest, UpdateSiteComposedFieldResult> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateSiteComposedFieldRequest, UpdateSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSite
|
||||
*/
|
||||
deleteSite(input: DeleteSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<DeleteSiteComposedFieldRequest, DeleteSiteComposedFieldResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteSiteComposedFieldRequest, DeleteSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSite
|
||||
*/
|
||||
listSite(input: ListSiteComposedFieldRequest, options?: RpcOptions): UnaryCall<ListSiteComposedFieldRequest, ListSiteComposedFieldResult> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSiteComposedFieldRequest, ListSiteComposedFieldResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<ComposedField> {
|
||||
constructor() {
|
||||
@@ -1873,565 +1686,6 @@ class ListProjectComposedFieldResult$Type extends MessageType<ListProjectCompose
|
||||
* @generated MessageType for protobuf message vizapi.ListProjectComposedFieldResult
|
||||
*/
|
||||
export const ListProjectComposedFieldResult = new ListProjectComposedFieldResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetSiteComposedFieldRequest$Type extends MessageType<GetSiteComposedFieldRequest> {
|
||||
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>): GetSiteComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteComposedFieldRequest>(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<GetSiteComposedFieldResult> {
|
||||
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>): GetSiteComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteComposedFieldResult>(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<CreateSiteComposedFieldRequest> {
|
||||
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>): CreateSiteComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Name = "";
|
||||
message.ScreenID = "";
|
||||
message.TabID = "";
|
||||
message.Payload = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateSiteComposedFieldRequest>(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<CreateSiteComposedFieldResult> {
|
||||
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>): CreateSiteComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateSiteComposedFieldResult>(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<UpdateSiteComposedFieldRequest> {
|
||||
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>): UpdateSiteComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ComposedFieldID = "";
|
||||
message.Name = "";
|
||||
message.ScreenID = "";
|
||||
message.TabID = "";
|
||||
message.Payload = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateSiteComposedFieldRequest>(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<UpdateSiteComposedFieldResult> {
|
||||
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>): UpdateSiteComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateSiteComposedFieldResult>(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<DeleteSiteComposedFieldRequest> {
|
||||
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>): DeleteSiteComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ComposedFieldID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteSiteComposedFieldRequest>(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<DeleteSiteComposedFieldResult> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteSiteComposedFieldResult", []);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteSiteComposedFieldResult>): DeleteSiteComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteSiteComposedFieldResult>(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<ListSiteComposedFieldRequest> {
|
||||
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>): ListSiteComposedFieldRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ScreenID = "";
|
||||
message.TabID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSiteComposedFieldRequest>(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<ListSiteComposedFieldResult> {
|
||||
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>): ListSiteComposedFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Results = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSiteComposedFieldResult>(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" });
|
||||
|
||||
@@ -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<CopyProjectDashboardRequest, CopyProjectDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateSite
|
||||
*/
|
||||
createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall<CreateSiteDashboardRequest, CreateSiteDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSite
|
||||
*/
|
||||
listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall<ListSiteDashboardRequest, ListSiteDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSite
|
||||
*/
|
||||
deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteSiteDashboardRequest, DeleteSiteDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteDashboardsForSite
|
||||
*/
|
||||
deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSite
|
||||
*/
|
||||
updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall<UpdateSiteDashboardRequest, UpdateSiteDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSite
|
||||
*/
|
||||
getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall<GetSiteDashboardRequest, GetSiteDashboardResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CopySite
|
||||
*/
|
||||
copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall<CopySiteDashboardRequest, CopySiteDashboardResult>;
|
||||
}
|
||||
/**
|
||||
* @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<CopyProjectDashboardRequest, CopyProjectDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateSite
|
||||
*/
|
||||
createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall<CreateSiteDashboardRequest, CreateSiteDashboardResult> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateSiteDashboardRequest, CreateSiteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSite
|
||||
*/
|
||||
listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall<ListSiteDashboardRequest, ListSiteDashboardResult> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSiteDashboardRequest, ListSiteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSite
|
||||
*/
|
||||
deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteSiteDashboardRequest, DeleteSiteDashboardResult> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteSiteDashboardRequest, DeleteSiteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteDashboardsForSite
|
||||
*/
|
||||
deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSite
|
||||
*/
|
||||
updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall<UpdateSiteDashboardRequest, UpdateSiteDashboardResult> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateSiteDashboardRequest, UpdateSiteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSite
|
||||
*/
|
||||
getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall<GetSiteDashboardRequest, GetSiteDashboardResult> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetSiteDashboardRequest, GetSiteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CopySite
|
||||
*/
|
||||
copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall<CopySiteDashboardRequest, CopySiteDashboardResult> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CopySiteDashboardRequest, CopySiteDashboardResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
958
viz-dashboard.ts
958
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<Dashboard> {
|
||||
constructor() {
|
||||
@@ -1318,91 +1099,6 @@ class DeleteDashboardsForProjectResult$Type extends MessageType<DeleteDashboards
|
||||
*/
|
||||
export const DeleteDashboardsForProjectResult = new DeleteDashboardsForProjectResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteDashboardsForSiteRequest$Type extends MessageType<DeleteDashboardsForSiteRequest> {
|
||||
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>): DeleteDashboardsForSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteDashboardsForSiteRequest>(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<DeleteDashboardsForSiteResult> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteDashboardsForSiteResult", []);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteDashboardsForSiteResult>): DeleteDashboardsForSiteResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteDashboardsForSiteResult>(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<UpdateDashboardRequest> {
|
||||
constructor() {
|
||||
super("vizapi.UpdateDashboardRequest", [
|
||||
@@ -2383,651 +2079,6 @@ class CopyProjectDashboardResult$Type extends MessageType<CopyProjectDashboardRe
|
||||
* @generated MessageType for protobuf message vizapi.CopyProjectDashboardResult
|
||||
*/
|
||||
export const CopyProjectDashboardResult = new CopyProjectDashboardResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListSiteDashboardRequest$Type extends MessageType<ListSiteDashboardRequest> {
|
||||
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>): ListSiteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSiteDashboardRequest>(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<ListSiteDashboardResult> {
|
||||
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>): ListSiteDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Results = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSiteDashboardResult>(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<CreateSiteDashboardRequest> {
|
||||
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>): CreateSiteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Name = "";
|
||||
message.content = "";
|
||||
message.IsPrivate = false;
|
||||
message.AutoRefresh = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateSiteDashboardRequest>(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<CreateSiteDashboardResult> {
|
||||
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>): CreateSiteDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateSiteDashboardResult>(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<DeleteSiteDashboardRequest> {
|
||||
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>): DeleteSiteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DashboardID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteSiteDashboardRequest>(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<DeleteSiteDashboardResult> {
|
||||
constructor() {
|
||||
super("vizapi.DeleteSiteDashboardResult", []);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteSiteDashboardResult>): DeleteSiteDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteSiteDashboardResult>(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<UpdateSiteDashboardRequest> {
|
||||
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>): UpdateSiteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DashboardID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateSiteDashboardRequest>(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<UpdateSiteDashboardResult> {
|
||||
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>): UpdateSiteDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateSiteDashboardResult>(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<GetSiteDashboardRequest> {
|
||||
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>): GetSiteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DashboardID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteDashboardRequest>(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<GetSiteDashboardResult> {
|
||||
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>): GetSiteDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteDashboardResult>(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<CopySiteDashboardRequest> {
|
||||
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>): CopySiteDashboardRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DashboardID = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CopySiteDashboardRequest>(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<CopySiteDashboardResult> {
|
||||
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>): CopySiteDashboardResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CopySiteDashboardResult>(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" });
|
||||
|
||||
@@ -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<ExtractProjectRequest, ExtractProjectResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSite
|
||||
*/
|
||||
getSite(input: GetSiteViewRequest, options?: RpcOptions): UnaryCall<GetSiteViewRequest, GetSiteViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateSite
|
||||
*/
|
||||
createSite(input: CreateSiteViewRequest, options?: RpcOptions): UnaryCall<CreateSiteViewRequest, CreateSiteViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSite
|
||||
*/
|
||||
updateSite(input: UpdateSiteViewRequest, options?: RpcOptions): UnaryCall<UpdateSiteViewRequest, UpdateSiteViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSite
|
||||
*/
|
||||
deleteSite(input: DeleteSiteViewRequest, options?: RpcOptions): UnaryCall<DeleteSiteViewRequest, DeleteSiteViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSite
|
||||
*/
|
||||
listSite(input: ListSiteViewRequest, options?: RpcOptions): UnaryCall<ListSiteViewRequest, ListSiteViewResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ExtractSite
|
||||
*/
|
||||
extractSite(input: ExtractSiteRequest, options?: RpcOptions): UnaryCall<ExtractSiteRequest, ExtractSiteResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteViewsForSite
|
||||
*/
|
||||
deleteViewsForSite(input: DeleteViewsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteViewsForSiteRequest, DeleteViewsForSiteResult>;
|
||||
}
|
||||
/**
|
||||
* @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<ExtractProjectRequest, ExtractProjectResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSite
|
||||
*/
|
||||
getSite(input: GetSiteViewRequest, options?: RpcOptions): UnaryCall<GetSiteViewRequest, GetSiteViewResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetSiteViewRequest, GetSiteViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateSite
|
||||
*/
|
||||
createSite(input: CreateSiteViewRequest, options?: RpcOptions): UnaryCall<CreateSiteViewRequest, CreateSiteViewResult> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateSiteViewRequest, CreateSiteViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSite
|
||||
*/
|
||||
updateSite(input: UpdateSiteViewRequest, options?: RpcOptions): UnaryCall<UpdateSiteViewRequest, UpdateSiteViewResult> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateSiteViewRequest, UpdateSiteViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSite
|
||||
*/
|
||||
deleteSite(input: DeleteSiteViewRequest, options?: RpcOptions): UnaryCall<DeleteSiteViewRequest, DeleteSiteViewResult> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteSiteViewRequest, DeleteSiteViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSite
|
||||
*/
|
||||
listSite(input: ListSiteViewRequest, options?: RpcOptions): UnaryCall<ListSiteViewRequest, ListSiteViewResult> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSiteViewRequest, ListSiteViewResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ExtractSite
|
||||
*/
|
||||
extractSite(input: ExtractSiteRequest, options?: RpcOptions): UnaryCall<ExtractSiteRequest, ExtractSiteResult> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ExtractSiteRequest, ExtractSiteResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteViewsForSite
|
||||
*/
|
||||
deleteViewsForSite(input: DeleteViewsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteViewsForSiteRequest, DeleteViewsForSiteResult> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteViewsForSiteRequest, DeleteViewsForSiteResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
1133
viz-view.ts
1133
viz-view.ts
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user