You've already forked npm-core-sdk
Latest generation
This commit is contained in:
17
base.ts
17
base.ts
@@ -94,23 +94,6 @@ export interface Paging {
|
|||||||
*/
|
*/
|
||||||
Offset: number;
|
Offset: number;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf enum api.ProjectType
|
|
||||||
*/
|
|
||||||
export enum ProjectType {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf enum value: PROJECT_TYPE_UNKNOWN = 0;
|
|
||||||
*/
|
|
||||||
PROJECT_TYPE_UNKNOWN = 0,
|
|
||||||
/**
|
|
||||||
* @generated from protobuf enum value: PROJECT_TYPE_ACTIVITY = 1;
|
|
||||||
*/
|
|
||||||
PROJECT_TYPE_ACTIVITY = 1,
|
|
||||||
/**
|
|
||||||
* @generated from protobuf enum value: PROJECT_TYPE_SITE = 2;
|
|
||||||
*/
|
|
||||||
PROJECT_TYPE_SITE = 2
|
|
||||||
}
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class AdminAddress$Type extends MessageType<AdminAddress> {
|
class AdminAddress$Type extends MessageType<AdminAddress> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-core-sdk",
|
"name": "@reflex-platform/npm-core-sdk",
|
||||||
"version": "1.13.0-SNAPSHOT-260220091125",
|
"version": "1.13.0-SNAPSHOT-260223150738",
|
||||||
"description": "npm libs from core model proto files",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
2
proj.ts
2
proj.ts
@@ -17,7 +17,7 @@ import { Organisation } from "./org";
|
|||||||
import { Paging } from "./base";
|
import { Paging } from "./base";
|
||||||
import { RequestProjectHeader } from "./shared";
|
import { RequestProjectHeader } from "./shared";
|
||||||
import { RequestOrganisationHeader } from "./shared";
|
import { RequestOrganisationHeader } from "./shared";
|
||||||
import { ProjectType } from "./base";
|
import { ProjectType } from "./shared";
|
||||||
import { Module } from "./module";
|
import { Module } from "./module";
|
||||||
/**
|
/**
|
||||||
* Project creation should not have status in request
|
* Project creation should not have status in request
|
||||||
|
|||||||
198
shared.ts
198
shared.ts
@@ -1964,6 +1964,43 @@ export interface Period {
|
|||||||
*/
|
*/
|
||||||
Unit: PeriodUnit;
|
Unit: PeriodUnit;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf message api.EntityDefinition
|
||||||
|
*/
|
||||||
|
export interface EntityDefinition {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.EntityType Name = 1
|
||||||
|
*/
|
||||||
|
Name: EntityType;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.Domain Domain = 2
|
||||||
|
*/
|
||||||
|
Domain: Domain;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.ProjectType ProjectTypes = 3
|
||||||
|
*/
|
||||||
|
ProjectTypes: ProjectType[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: bool HasMetadata = 4
|
||||||
|
*/
|
||||||
|
HasMetadata: boolean;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: bool HasDataRestriction = 5
|
||||||
|
*/
|
||||||
|
HasDataRestriction: boolean;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: bool IsIndexed = 6
|
||||||
|
*/
|
||||||
|
IsIndexed: boolean;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated string KpiGroups = 7
|
||||||
|
*/
|
||||||
|
KpiGroups: string[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: uint32 ModelVersion = 8
|
||||||
|
*/
|
||||||
|
ModelVersion: number;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* List all data set in the model
|
* List all data set in the model
|
||||||
*
|
*
|
||||||
@@ -2396,7 +2433,17 @@ export enum EntityType {
|
|||||||
/**
|
/**
|
||||||
* @generated from protobuf enum value: ENTITY_TYPE_APPOINTMENT = 12;
|
* @generated from protobuf enum value: ENTITY_TYPE_APPOINTMENT = 12;
|
||||||
*/
|
*/
|
||||||
ENTITY_TYPE_APPOINTMENT = 12
|
ENTITY_TYPE_APPOINTMENT = 12,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: ENTITY_TYPE_NOTIF = 14;
|
||||||
|
*/
|
||||||
|
ENTITY_TYPE_NOTIF = 14,
|
||||||
|
/**
|
||||||
|
* Core
|
||||||
|
*
|
||||||
|
* @generated from protobuf enum value: ENTITY_TYPE_PLATFORMLOG = 13;
|
||||||
|
*/
|
||||||
|
ENTITY_TYPE_PLATFORMLOG = 13
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf enum api.ClaimEntityType
|
* @generated from protobuf enum api.ClaimEntityType
|
||||||
@@ -2699,6 +2746,44 @@ export enum PeriodUnit {
|
|||||||
*/
|
*/
|
||||||
PERIOD_UNIT_CALENDAR_DAY = 3
|
PERIOD_UNIT_CALENDAR_DAY = 3
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum api.Domain
|
||||||
|
*/
|
||||||
|
export enum Domain {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: DOMAIN_UNDEFINED = 0;
|
||||||
|
*/
|
||||||
|
DOMAIN_UNDEFINED = 0,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: DOMAIN_TRADE = 1;
|
||||||
|
*/
|
||||||
|
DOMAIN_TRADE = 1,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: DOMAIN_COLLAB = 2;
|
||||||
|
*/
|
||||||
|
DOMAIN_COLLAB = 2,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: DOMAIN_CORE = 3;
|
||||||
|
*/
|
||||||
|
DOMAIN_CORE = 3
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum api.ProjectType
|
||||||
|
*/
|
||||||
|
export enum ProjectType {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: PROJECT_TYPE_UNKNOWN = 0;
|
||||||
|
*/
|
||||||
|
PROJECT_TYPE_UNKNOWN = 0,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: PROJECT_TYPE_ACTIVITY = 1;
|
||||||
|
*/
|
||||||
|
PROJECT_TYPE_ACTIVITY = 1,
|
||||||
|
/**
|
||||||
|
* @generated from protobuf enum value: PROJECT_TYPE_SITE = 2;
|
||||||
|
*/
|
||||||
|
PROJECT_TYPE_SITE = 2
|
||||||
|
}
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class RequestHeader$Type extends MessageType<RequestHeader> {
|
class RequestHeader$Type extends MessageType<RequestHeader> {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -8318,3 +8403,114 @@ class Period$Type extends MessageType<Period> {
|
|||||||
* @generated MessageType for protobuf message api.Period
|
* @generated MessageType for protobuf message api.Period
|
||||||
*/
|
*/
|
||||||
export const Period = new Period$Type();
|
export const Period = new Period$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class EntityDefinition$Type extends MessageType<EntityDefinition> {
|
||||||
|
constructor() {
|
||||||
|
super("api.EntityDefinition", [
|
||||||
|
{ no: 1, name: "Name", kind: "enum", localName: "Name", jsonName: "Name", T: () => ["api.EntityType", EntityType] },
|
||||||
|
{ no: 2, name: "Domain", kind: "enum", localName: "Domain", jsonName: "Domain", T: () => ["api.Domain", Domain] },
|
||||||
|
{ no: 3, name: "ProjectTypes", kind: "enum", localName: "ProjectTypes", jsonName: "ProjectTypes", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ProjectType", ProjectType] },
|
||||||
|
{ no: 4, name: "HasMetadata", kind: "scalar", localName: "HasMetadata", jsonName: "HasMetadata", T: 8 /*ScalarType.BOOL*/ },
|
||||||
|
{ no: 5, name: "HasDataRestriction", kind: "scalar", localName: "HasDataRestriction", jsonName: "HasDataRestriction", T: 8 /*ScalarType.BOOL*/ },
|
||||||
|
{ no: 6, name: "IsIndexed", kind: "scalar", localName: "IsIndexed", jsonName: "IsIndexed", T: 8 /*ScalarType.BOOL*/ },
|
||||||
|
{ no: 7, name: "KpiGroups", kind: "scalar", localName: "KpiGroups", jsonName: "KpiGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 8, name: "ModelVersion", kind: "scalar", localName: "ModelVersion", jsonName: "ModelVersion", T: 13 /*ScalarType.UINT32*/ }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<EntityDefinition>): EntityDefinition {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.Name = 0;
|
||||||
|
message.Domain = 0;
|
||||||
|
message.ProjectTypes = [];
|
||||||
|
message.HasMetadata = false;
|
||||||
|
message.HasDataRestriction = false;
|
||||||
|
message.IsIndexed = false;
|
||||||
|
message.KpiGroups = [];
|
||||||
|
message.ModelVersion = 0;
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<EntityDefinition>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EntityDefinition): EntityDefinition {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* api.EntityType Name */ 1:
|
||||||
|
message.Name = reader.int32();
|
||||||
|
break;
|
||||||
|
case /* api.Domain Domain */ 2:
|
||||||
|
message.Domain = reader.int32();
|
||||||
|
break;
|
||||||
|
case /* repeated api.ProjectType ProjectTypes */ 3:
|
||||||
|
if (wireType === WireType.LengthDelimited)
|
||||||
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||||
|
message.ProjectTypes.push(reader.int32());
|
||||||
|
else
|
||||||
|
message.ProjectTypes.push(reader.int32());
|
||||||
|
break;
|
||||||
|
case /* bool HasMetadata */ 4:
|
||||||
|
message.HasMetadata = reader.bool();
|
||||||
|
break;
|
||||||
|
case /* bool HasDataRestriction */ 5:
|
||||||
|
message.HasDataRestriction = reader.bool();
|
||||||
|
break;
|
||||||
|
case /* bool IsIndexed */ 6:
|
||||||
|
message.IsIndexed = reader.bool();
|
||||||
|
break;
|
||||||
|
case /* repeated string KpiGroups */ 7:
|
||||||
|
message.KpiGroups.push(reader.string());
|
||||||
|
break;
|
||||||
|
case /* uint32 ModelVersion */ 8:
|
||||||
|
message.ModelVersion = reader.uint32();
|
||||||
|
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: EntityDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* api.EntityType Name = 1; */
|
||||||
|
if (message.Name !== 0)
|
||||||
|
writer.tag(1, WireType.Varint).int32(message.Name);
|
||||||
|
/* api.Domain Domain = 2; */
|
||||||
|
if (message.Domain !== 0)
|
||||||
|
writer.tag(2, WireType.Varint).int32(message.Domain);
|
||||||
|
/* repeated api.ProjectType ProjectTypes = 3; */
|
||||||
|
if (message.ProjectTypes.length) {
|
||||||
|
writer.tag(3, WireType.LengthDelimited).fork();
|
||||||
|
for (let i = 0; i < message.ProjectTypes.length; i++)
|
||||||
|
writer.int32(message.ProjectTypes[i]);
|
||||||
|
writer.join();
|
||||||
|
}
|
||||||
|
/* bool HasMetadata = 4; */
|
||||||
|
if (message.HasMetadata !== false)
|
||||||
|
writer.tag(4, WireType.Varint).bool(message.HasMetadata);
|
||||||
|
/* bool HasDataRestriction = 5; */
|
||||||
|
if (message.HasDataRestriction !== false)
|
||||||
|
writer.tag(5, WireType.Varint).bool(message.HasDataRestriction);
|
||||||
|
/* bool IsIndexed = 6; */
|
||||||
|
if (message.IsIndexed !== false)
|
||||||
|
writer.tag(6, WireType.Varint).bool(message.IsIndexed);
|
||||||
|
/* repeated string KpiGroups = 7; */
|
||||||
|
for (let i = 0; i < message.KpiGroups.length; i++)
|
||||||
|
writer.tag(7, WireType.LengthDelimited).string(message.KpiGroups[i]);
|
||||||
|
/* uint32 ModelVersion = 8; */
|
||||||
|
if (message.ModelVersion !== 0)
|
||||||
|
writer.tag(8, WireType.Varint).uint32(message.ModelVersion);
|
||||||
|
let u = options.writeUnknownFields;
|
||||||
|
if (u !== false)
|
||||||
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
return writer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated MessageType for protobuf message api.EntityDefinition
|
||||||
|
*/
|
||||||
|
export const EntityDefinition = new EntityDefinition$Type();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import { TimeFormat } from "./shared";
|
|||||||
import { ExtractColumnFormat } from "./shared";
|
import { ExtractColumnFormat } from "./shared";
|
||||||
import { TranslationMap } from "./shared";
|
import { TranslationMap } from "./shared";
|
||||||
import { BlockFilter } from "./shared";
|
import { BlockFilter } from "./shared";
|
||||||
import { ProjectType } from "./base";
|
import { ProjectType } from "./shared";
|
||||||
import { Module } from "./module";
|
import { Module } from "./module";
|
||||||
import { WorkflowExecutionResult } from "./shared";
|
import { WorkflowExecutionResult } from "./shared";
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user