Latest generation

This commit is contained in:
ci core model
2025-06-16 14:00:05 +00:00
parent 8f5efc9fa1
commit 2181390c43
2 changed files with 10 additions and 96 deletions

View File

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

View File

@@ -432,9 +432,9 @@ export interface ProjectConstraint {
/**
* Specific Segmentation constraints applicable for the project.
*
* @generated from protobuf field: repeated api.SegmentationConstraint SegmentationConstraints = 1
* @generated from protobuf field: repeated api.SegmentationFilter SegmentationFilters = 1
*/
SegmentationConstraints: SegmentationConstraint[];
SegmentationFilters: SegmentationFilter[];
/**
* Minimal notice delay to book or cancel an appointment.
*
@@ -448,29 +448,6 @@ export interface ProjectConstraint {
*/
MaxBookingPeriod?: Period;
}
/**
* @generated from protobuf message api.SegmentationConstraint
*/
export interface SegmentationConstraint {
/**
* Identifier of the Segmentation key to constraint.
*
* @generated from protobuf field: string SegmentationID = 1
*/
SegmentationID: string;
/**
* If some Segmentation values are restricted, define here the identifiers to keep.
*
* @generated from protobuf field: repeated string RestrictedValueIDs = 2
*/
RestrictedValueIDs: string[];
/**
* Set to not apply Segmentation value restriction and keep all the values.
*
* @generated from protobuf field: bool AllAndFutureValues = 3
*/
AllAndFutureValues: boolean;
}
/**
* @generated from protobuf message api.ActorAuthorisation
*/
@@ -2030,14 +2007,14 @@ export const ProjectAuthorisation = new ProjectAuthorisation$Type();
class ProjectConstraint$Type extends MessageType<ProjectConstraint> {
constructor() {
super("api.ProjectConstraint", [
{ no: 1, name: "SegmentationConstraints", kind: "message", localName: "SegmentationConstraints", jsonName: "SegmentationConstraints", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationConstraint, options: { "api.aggKey": "SegmentationID" } },
{ no: 1, name: "SegmentationFilters", kind: "message", localName: "SegmentationFilters", jsonName: "SegmentationFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationFilter, options: { "api.aggKey": "SegmentationID" } },
{ no: 2, name: "MinNoticePeriod", kind: "message", localName: "MinNoticePeriod", jsonName: "MinNoticePeriod", T: () => Period },
{ no: 3, name: "MaxBookingPeriod", kind: "message", localName: "MaxBookingPeriod", jsonName: "MaxBookingPeriod", T: () => Period }
]);
}
create(value?: PartialMessage<ProjectConstraint>): ProjectConstraint {
const message = globalThis.Object.create((this.messagePrototype!));
message.SegmentationConstraints = [];
message.SegmentationFilters = [];
if (value !== undefined)
reflectionMergePartial<ProjectConstraint>(this, message, value);
return message;
@@ -2047,8 +2024,8 @@ class ProjectConstraint$Type extends MessageType<ProjectConstraint> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SegmentationConstraint SegmentationConstraints */ 1:
message.SegmentationConstraints.push(SegmentationConstraint.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.SegmentationFilter SegmentationFilters */ 1:
message.SegmentationFilters.push(SegmentationFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Period MinNoticePeriod */ 2:
message.MinNoticePeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MinNoticePeriod);
@@ -2068,9 +2045,9 @@ class ProjectConstraint$Type extends MessageType<ProjectConstraint> {
return message;
}
internalBinaryWrite(message: ProjectConstraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SegmentationConstraint SegmentationConstraints = 1; */
for (let i = 0; i < message.SegmentationConstraints.length; i++)
SegmentationConstraint.internalBinaryWrite(message.SegmentationConstraints[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationFilter SegmentationFilters = 1; */
for (let i = 0; i < message.SegmentationFilters.length; i++)
SegmentationFilter.internalBinaryWrite(message.SegmentationFilters[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.Period MinNoticePeriod = 2; */
if (message.MinNoticePeriod)
Period.internalBinaryWrite(message.MinNoticePeriod, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -2088,69 +2065,6 @@ class ProjectConstraint$Type extends MessageType<ProjectConstraint> {
*/
export const ProjectConstraint = new ProjectConstraint$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SegmentationConstraint$Type extends MessageType<SegmentationConstraint> {
constructor() {
super("api.SegmentationConstraint", [
{ no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "RestrictedValueIDs", kind: "scalar", localName: "RestrictedValueIDs", jsonName: "RestrictedValueIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "AllAndFutureValues", kind: "scalar", localName: "AllAndFutureValues", jsonName: "AllAndFutureValues", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<SegmentationConstraint>): SegmentationConstraint {
const message = globalThis.Object.create((this.messagePrototype!));
message.SegmentationID = "";
message.RestrictedValueIDs = [];
message.AllAndFutureValues = false;
if (value !== undefined)
reflectionMergePartial<SegmentationConstraint>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SegmentationConstraint): SegmentationConstraint {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SegmentationID */ 1:
message.SegmentationID = reader.string();
break;
case /* repeated string RestrictedValueIDs */ 2:
message.RestrictedValueIDs.push(reader.string());
break;
case /* bool AllAndFutureValues */ 3:
message.AllAndFutureValues = 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: SegmentationConstraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SegmentationID = 1; */
if (message.SegmentationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SegmentationID);
/* repeated string RestrictedValueIDs = 2; */
for (let i = 0; i < message.RestrictedValueIDs.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.RestrictedValueIDs[i]);
/* bool AllAndFutureValues = 3; */
if (message.AllAndFutureValues !== false)
writer.tag(3, WireType.Varint).bool(message.AllAndFutureValues);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SegmentationConstraint
*/
export const SegmentationConstraint = new SegmentationConstraint$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorAuthorisation$Type extends MessageType<ActorAuthorisation> {
constructor() {
super("api.ActorAuthorisation", [