You've already forked npm-core-sdk
Latest generation
This commit is contained in:
110
options.ts
110
options.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "options.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -17,7 +17,7 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
*/
|
||||
export interface KPIGroups {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.KPIGroup Groups = 1 [json_name = "Groups"];
|
||||
* @generated from protobuf field: repeated api.KPIGroup Groups = 1
|
||||
*/
|
||||
Groups: KPIGroup[];
|
||||
}
|
||||
@@ -26,35 +26,35 @@ export interface KPIGroups {
|
||||
*/
|
||||
export interface KPIGroup {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 1
|
||||
*/
|
||||
Name: string; // Name of the KPI group
|
||||
/**
|
||||
* @generated from protobuf field: api.KPIGroupType Type = 2 [json_name = "Type"];
|
||||
* @generated from protobuf field: api.KPIGroupType Type = 2
|
||||
*/
|
||||
Type: KPIGroupType; // Type of the KPI group
|
||||
/**
|
||||
* @generated from protobuf field: bool Queryable = 3 [json_name = "Queryable"];
|
||||
* @generated from protobuf field: bool Queryable = 3
|
||||
*/
|
||||
Queryable: boolean; // Some tables are not directly queryable
|
||||
/**
|
||||
* @generated from protobuf field: string GroupToQuery = 4 [json_name = "GroupToQuery"];
|
||||
* @generated from protobuf field: string GroupToQuery = 4
|
||||
*/
|
||||
GroupToQuery: string; // For non-queryable group, on which group table the request will be executed
|
||||
/**
|
||||
* @generated from protobuf field: string OrderBy = 5 [json_name = "OrderBy"];
|
||||
* @generated from protobuf field: string OrderBy = 5
|
||||
*/
|
||||
OrderBy: string; // Table OrderBy
|
||||
/**
|
||||
* @generated from protobuf field: string Engine = 6 [json_name = "Engine"];
|
||||
* @generated from protobuf field: string Engine = 6
|
||||
*/
|
||||
Engine: string; // Table engine
|
||||
/**
|
||||
* @generated from protobuf field: string HeaderColumns = 7 [json_name = "HeaderColumns"];
|
||||
* @generated from protobuf field: string HeaderColumns = 7
|
||||
*/
|
||||
HeaderColumns: string; // Table header columns
|
||||
/**
|
||||
* @generated from protobuf field: string PartitionBy = 8 [json_name = "PartitionBy"];
|
||||
* @generated from protobuf field: string PartitionBy = 8
|
||||
*/
|
||||
PartitionBy: string; // Table PartitionBy
|
||||
}
|
||||
@@ -63,7 +63,7 @@ export interface KPIGroup {
|
||||
*/
|
||||
export interface KPIItems {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.KPIItem Items = 1 [json_name = "Items"];
|
||||
* @generated from protobuf field: repeated api.KPIItem Items = 1
|
||||
*/
|
||||
Items: KPIItem[];
|
||||
}
|
||||
@@ -72,23 +72,23 @@ export interface KPIItems {
|
||||
*/
|
||||
export interface KPIItem {
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 1 [json_name = "Context"];
|
||||
* @generated from protobuf field: string Context = 1
|
||||
*/
|
||||
Context: string; // Entity on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: string Group = 2 [json_name = "Group"];
|
||||
* @generated from protobuf field: string Group = 2
|
||||
*/
|
||||
Group: string; // Group on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: bool Queryable = 3 [json_name = "Queryable"];
|
||||
* @generated from protobuf field: bool Queryable = 3
|
||||
*/
|
||||
Queryable: boolean; // Defined if the KPI is queryable (some kpi are only returns on the result because linked to other, ex on stock_extended : Actor_Name depends on ActorID)
|
||||
/**
|
||||
* @generated from protobuf field: string GroupToJoin = 4 [json_name = "GroupToJoin"];
|
||||
* @generated from protobuf field: string GroupToJoin = 4
|
||||
*/
|
||||
GroupToJoin: string; // KPI is used to join another KPI group
|
||||
/**
|
||||
* @generated from protobuf field: string CustomType = 5 [json_name = "CustomType"];
|
||||
* @generated from protobuf field: string CustomType = 5
|
||||
*/
|
||||
CustomType: string; // Type of the field in the table
|
||||
}
|
||||
@@ -97,7 +97,7 @@ export interface KPIItem {
|
||||
*/
|
||||
export interface FieldTypes {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.FieldType Types = 1 [json_name = "Types"];
|
||||
* @generated from protobuf field: repeated api.FieldType Types = 1
|
||||
*/
|
||||
Types: FieldType[];
|
||||
}
|
||||
@@ -106,11 +106,11 @@ export interface FieldTypes {
|
||||
*/
|
||||
export interface FieldType {
|
||||
/**
|
||||
* @generated from protobuf field: string Context = 1 [json_name = "Context"];
|
||||
* @generated from protobuf field: string Context = 1
|
||||
*/
|
||||
Context: string; // Entity on which the KPI is defined
|
||||
/**
|
||||
* @generated from protobuf field: string Type = 2 [json_name = "Type"];
|
||||
* @generated from protobuf field: string Type = 2
|
||||
*/
|
||||
Type: string; // Type of the field
|
||||
}
|
||||
@@ -160,7 +160,7 @@ class KPIGroups$Type extends MessageType<KPIGroups> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.KPIGroup Groups = 1 [json_name = "Groups"];*/ 1:
|
||||
case /* repeated api.KPIGroup Groups */ 1:
|
||||
message.Groups.push(KPIGroup.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -175,7 +175,7 @@ class KPIGroups$Type extends MessageType<KPIGroups> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: KPIGroups, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.KPIGroup Groups = 1 [json_name = "Groups"]; */
|
||||
/* repeated api.KPIGroup Groups = 1; */
|
||||
for (let i = 0; i < message.Groups.length; i++)
|
||||
KPIGroup.internalBinaryWrite(message.Groups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -221,28 +221,28 @@ class KPIGroup$Type extends MessageType<KPIGroup> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
case /* string Name */ 1:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* api.KPIGroupType Type = 2 [json_name = "Type"];*/ 2:
|
||||
case /* api.KPIGroupType Type */ 2:
|
||||
message.Type = reader.int32();
|
||||
break;
|
||||
case /* bool Queryable = 3 [json_name = "Queryable"];*/ 3:
|
||||
case /* bool Queryable */ 3:
|
||||
message.Queryable = reader.bool();
|
||||
break;
|
||||
case /* string GroupToQuery = 4 [json_name = "GroupToQuery"];*/ 4:
|
||||
case /* string GroupToQuery */ 4:
|
||||
message.GroupToQuery = reader.string();
|
||||
break;
|
||||
case /* string OrderBy = 5 [json_name = "OrderBy"];*/ 5:
|
||||
case /* string OrderBy */ 5:
|
||||
message.OrderBy = reader.string();
|
||||
break;
|
||||
case /* string Engine = 6 [json_name = "Engine"];*/ 6:
|
||||
case /* string Engine */ 6:
|
||||
message.Engine = reader.string();
|
||||
break;
|
||||
case /* string HeaderColumns = 7 [json_name = "HeaderColumns"];*/ 7:
|
||||
case /* string HeaderColumns */ 7:
|
||||
message.HeaderColumns = reader.string();
|
||||
break;
|
||||
case /* string PartitionBy = 8 [json_name = "PartitionBy"];*/ 8:
|
||||
case /* string PartitionBy */ 8:
|
||||
message.PartitionBy = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -257,28 +257,28 @@ class KPIGroup$Type extends MessageType<KPIGroup> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: KPIGroup, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
/* string Name = 1; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.KPIGroupType Type = 2 [json_name = "Type"]; */
|
||||
/* api.KPIGroupType Type = 2; */
|
||||
if (message.Type !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.Type);
|
||||
/* bool Queryable = 3 [json_name = "Queryable"]; */
|
||||
/* bool Queryable = 3; */
|
||||
if (message.Queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.Queryable);
|
||||
/* string GroupToQuery = 4 [json_name = "GroupToQuery"]; */
|
||||
/* string GroupToQuery = 4; */
|
||||
if (message.GroupToQuery !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.GroupToQuery);
|
||||
/* string OrderBy = 5 [json_name = "OrderBy"]; */
|
||||
/* string OrderBy = 5; */
|
||||
if (message.OrderBy !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.OrderBy);
|
||||
/* string Engine = 6 [json_name = "Engine"]; */
|
||||
/* string Engine = 6; */
|
||||
if (message.Engine !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Engine);
|
||||
/* string HeaderColumns = 7 [json_name = "HeaderColumns"]; */
|
||||
/* string HeaderColumns = 7; */
|
||||
if (message.HeaderColumns !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.HeaderColumns);
|
||||
/* string PartitionBy = 8 [json_name = "PartitionBy"]; */
|
||||
/* string PartitionBy = 8; */
|
||||
if (message.PartitionBy !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.PartitionBy);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -310,7 +310,7 @@ class KPIItems$Type extends MessageType<KPIItems> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.KPIItem Items = 1 [json_name = "Items"];*/ 1:
|
||||
case /* repeated api.KPIItem Items */ 1:
|
||||
message.Items.push(KPIItem.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -325,7 +325,7 @@ class KPIItems$Type extends MessageType<KPIItems> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: KPIItems, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.KPIItem Items = 1 [json_name = "Items"]; */
|
||||
/* repeated api.KPIItem Items = 1; */
|
||||
for (let i = 0; i < message.Items.length; i++)
|
||||
KPIItem.internalBinaryWrite(message.Items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -365,19 +365,19 @@ class KPIItem$Type extends MessageType<KPIItem> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Context = 1 [json_name = "Context"];*/ 1:
|
||||
case /* string Context */ 1:
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Group = 2 [json_name = "Group"];*/ 2:
|
||||
case /* string Group */ 2:
|
||||
message.Group = reader.string();
|
||||
break;
|
||||
case /* bool Queryable = 3 [json_name = "Queryable"];*/ 3:
|
||||
case /* bool Queryable */ 3:
|
||||
message.Queryable = reader.bool();
|
||||
break;
|
||||
case /* string GroupToJoin = 4 [json_name = "GroupToJoin"];*/ 4:
|
||||
case /* string GroupToJoin */ 4:
|
||||
message.GroupToJoin = reader.string();
|
||||
break;
|
||||
case /* string CustomType = 5 [json_name = "CustomType"];*/ 5:
|
||||
case /* string CustomType */ 5:
|
||||
message.CustomType = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -392,19 +392,19 @@ class KPIItem$Type extends MessageType<KPIItem> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: KPIItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Context = 1 [json_name = "Context"]; */
|
||||
/* string Context = 1; */
|
||||
if (message.Context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Group = 2 [json_name = "Group"]; */
|
||||
/* string Group = 2; */
|
||||
if (message.Group !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Group);
|
||||
/* bool Queryable = 3 [json_name = "Queryable"]; */
|
||||
/* bool Queryable = 3; */
|
||||
if (message.Queryable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.Queryable);
|
||||
/* string GroupToJoin = 4 [json_name = "GroupToJoin"]; */
|
||||
/* string GroupToJoin = 4; */
|
||||
if (message.GroupToJoin !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.GroupToJoin);
|
||||
/* string CustomType = 5 [json_name = "CustomType"]; */
|
||||
/* string CustomType = 5; */
|
||||
if (message.CustomType !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.CustomType);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -436,7 +436,7 @@ class FieldTypes$Type extends MessageType<FieldTypes> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.FieldType Types = 1 [json_name = "Types"];*/ 1:
|
||||
case /* repeated api.FieldType Types */ 1:
|
||||
message.Types.push(FieldType.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -451,7 +451,7 @@ class FieldTypes$Type extends MessageType<FieldTypes> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: FieldTypes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.FieldType Types = 1 [json_name = "Types"]; */
|
||||
/* repeated api.FieldType Types = 1; */
|
||||
for (let i = 0; i < message.Types.length; i++)
|
||||
FieldType.internalBinaryWrite(message.Types[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -485,10 +485,10 @@ class FieldType$Type extends MessageType<FieldType> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Context = 1 [json_name = "Context"];*/ 1:
|
||||
case /* string Context */ 1:
|
||||
message.Context = reader.string();
|
||||
break;
|
||||
case /* string Type = 2 [json_name = "Type"];*/ 2:
|
||||
case /* string Type */ 2:
|
||||
message.Type = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -503,10 +503,10 @@ class FieldType$Type extends MessageType<FieldType> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: FieldType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Context = 1 [json_name = "Context"]; */
|
||||
/* string Context = 1; */
|
||||
if (message.Context !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Context);
|
||||
/* string Type = 2 [json_name = "Type"]; */
|
||||
/* string Type = 2; */
|
||||
if (message.Type !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Type);
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user