Latest generation

This commit is contained in:
ci core model
2026-08-24 15:27:29 +00:00
parent abbbfcd252
commit e3d1dd6e64
2 changed files with 92 additions and 38 deletions

View File

@@ -627,6 +627,23 @@ export interface AllowedPeriod {
*/
MaxPeriodUsed: bigint; // value that represents what was used from the maxperiod to compute the SLA
}
/**
* @generated from protobuf message api.CalendarApplicationLimits
*/
export interface CalendarApplicationLimits {
/**
* @generated from protobuf field: string CalendarID = 1
*/
CalendarID: string;
/**
* @generated from protobuf field: string LowerLimitSearchTime = 2
*/
LowerLimitSearchTime: string;
/**
* @generated from protobuf field: string UpperLimitSearchTime = 3
*/
UpperLimitSearchTime: string;
}
/**
* ComputeReferencesSLAPeriodsRequest
*
@@ -638,23 +655,13 @@ export interface ComputeReferencesSLAPeriodRequest {
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string CalendarID = 2
* @generated from protobuf field: repeated api.CalendarApplicationLimits CalendarsApplicationLimits = 2
*/
CalendarID: string;
CalendarsApplicationLimits: CalendarApplicationLimits[]; // list of calendars with their limits to compute the SLA, no unicity on calendar ID as the same calendar can be used for different timeranges
/**
*
*
* @generated from protobuf field: repeated api.SLAInfoPerReference SLAInfoPerReferences = 3
*/
SLAInfoPerReferences: SLAInfoPerReference[];
/**
* @generated from protobuf field: string LowerLimitSearchTime = 4
*/
LowerLimitSearchTime: string;
/**
* @generated from protobuf field: string UpperLimitSearchTime = 5
*/
UpperLimitSearchTime: string;
}
/**
* @generated from protobuf message api.ComputeReferencesSLAPeriodResponse
@@ -2580,22 +2587,81 @@ class AllowedPeriod$Type extends MessageType<AllowedPeriod> {
*/
export const AllowedPeriod = new AllowedPeriod$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CalendarApplicationLimits$Type extends MessageType<CalendarApplicationLimits> {
constructor() {
super("api.CalendarApplicationLimits", [
{ no: 1, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "LowerLimitSearchTime", kind: "scalar", localName: "LowerLimitSearchTime", jsonName: "LowerLimitSearchTime", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "UpperLimitSearchTime", kind: "scalar", localName: "UpperLimitSearchTime", jsonName: "UpperLimitSearchTime", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CalendarApplicationLimits>): CalendarApplicationLimits {
const message = globalThis.Object.create((this.messagePrototype!));
message.CalendarID = "";
message.LowerLimitSearchTime = "";
message.UpperLimitSearchTime = "";
if (value !== undefined)
reflectionMergePartial<CalendarApplicationLimits>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarApplicationLimits): CalendarApplicationLimits {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string CalendarID */ 1:
message.CalendarID = reader.string();
break;
case /* string LowerLimitSearchTime */ 2:
message.LowerLimitSearchTime = reader.string();
break;
case /* string UpperLimitSearchTime */ 3:
message.UpperLimitSearchTime = 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: CalendarApplicationLimits, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string CalendarID = 1; */
if (message.CalendarID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.CalendarID);
/* string LowerLimitSearchTime = 2; */
if (message.LowerLimitSearchTime !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LowerLimitSearchTime);
/* string UpperLimitSearchTime = 3; */
if (message.UpperLimitSearchTime !== "")
writer.tag(3, WireType.LengthDelimited).string(message.UpperLimitSearchTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CalendarApplicationLimits
*/
export const CalendarApplicationLimits = new CalendarApplicationLimits$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferencesSLAPeriodRequest> {
constructor() {
super("api.ComputeReferencesSLAPeriodRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } },
{ no: 4, name: "LowerLimitSearchTime", kind: "scalar", localName: "LowerLimitSearchTime", jsonName: "LowerLimitSearchTime", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "UpperLimitSearchTime", kind: "scalar", localName: "UpperLimitSearchTime", jsonName: "UpperLimitSearchTime", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "CalendarID", "SLAInfos"] } } });
{ no: 2, name: "CalendarsApplicationLimits", kind: "message", localName: "CalendarsApplicationLimits", jsonName: "CalendarsApplicationLimits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarApplicationLimits, options: { "n1validate.rules": { repeated: { minItems: "1" } } } },
{ no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "CalendarsApplicationLimits", "SLAInfos"] } } });
}
create(value?: PartialMessage<ComputeReferencesSLAPeriodRequest>): ComputeReferencesSLAPeriodRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.CalendarID = "";
message.CalendarsApplicationLimits = [];
message.SLAInfoPerReferences = [];
message.LowerLimitSearchTime = "";
message.UpperLimitSearchTime = "";
if (value !== undefined)
reflectionMergePartial<ComputeReferencesSLAPeriodRequest>(this, message, value);
return message;
@@ -2608,18 +2674,12 @@ class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferenc
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string CalendarID */ 2:
message.CalendarID = reader.string();
case /* repeated api.CalendarApplicationLimits CalendarsApplicationLimits */ 2:
message.CalendarsApplicationLimits.push(CalendarApplicationLimits.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SLAInfoPerReference SLAInfoPerReferences */ 3:
message.SLAInfoPerReferences.push(SLAInfoPerReference.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string LowerLimitSearchTime */ 4:
message.LowerLimitSearchTime = reader.string();
break;
case /* string UpperLimitSearchTime */ 5:
message.UpperLimitSearchTime = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2635,18 +2695,12 @@ class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferenc
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string CalendarID = 2; */
if (message.CalendarID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CalendarID);
/* repeated api.CalendarApplicationLimits CalendarsApplicationLimits = 2; */
for (let i = 0; i < message.CalendarsApplicationLimits.length; i++)
CalendarApplicationLimits.internalBinaryWrite(message.CalendarsApplicationLimits[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SLAInfoPerReference SLAInfoPerReferences = 3; */
for (let i = 0; i < message.SLAInfoPerReferences.length; i++)
SLAInfoPerReference.internalBinaryWrite(message.SLAInfoPerReferences[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string LowerLimitSearchTime = 4; */
if (message.LowerLimitSearchTime !== "")
writer.tag(4, WireType.LengthDelimited).string(message.LowerLimitSearchTime);
/* string UpperLimitSearchTime = 5; */
if (message.UpperLimitSearchTime !== "")
writer.tag(5, WireType.LengthDelimited).string(message.UpperLimitSearchTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.15.0-SNAPSHOT-260824152245",
"version": "1.15.0-SNAPSHOT-260824152645",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",