Latest generation

This commit is contained in:
ci core model
2026-08-17 09:10:18 +00:00
parent 187447bd24
commit 22ecf116db
8 changed files with 785 additions and 21 deletions

View File

@@ -478,6 +478,46 @@ export interface ActorAuthorisation {
*/
LoadingConstraint?: ActorConstraint;
}
/**
* @generated from protobuf message api.DateRestriction
*/
export interface DateRestriction {
/**
* Type of restriction applied on the date field.
*
* @generated from protobuf field: api.DateRestrictionType Type = 1
*/
Type: DateRestrictionType;
/**
* Date to use for computing the limitation.
*
* @generated from protobuf field: string RestrictionField = 2
*/
RestrictionField: string;
/**
* Value of the restriction, in open days, to apply on the date field.
*
* @generated from protobuf field: int64 RestrictionValue = 3
*/
RestrictionValue: bigint;
}
/**
* @generated from protobuf message api.ActorDateRestriction
*/
export interface ActorDateRestriction {
/**
* Configuration of the date field to be used to calculate the earliest available date restriction on booking
*
* @generated from protobuf field: api.DateRestriction EarliestDateRestriction = 1
*/
EarliestDateRestriction?: DateRestriction;
/**
* Configuration of the date field to be used to calculate the latest available date restriction on booking
*
* @generated from protobuf field: api.DateRestriction LatestDateRestriction = 2
*/
LatestDateRestriction?: DateRestriction;
}
/**
* @generated from protobuf message api.ActorConstraint
*/
@@ -506,6 +546,12 @@ export interface ActorConstraint {
* @generated from protobuf field: api.CommandIdentifierEntry CommandIdentifierEntry = 5
*/
CommandIdentifierEntry: CommandIdentifierEntry;
/**
* Configurations to be used to compute the dates restriction on booking
*
* @generated from protobuf field: api.ActorDateRestriction ActorDateRestriction = 6
*/
ActorDateRestriction?: ActorDateRestriction;
}
/**
* @generated from protobuf message api.SegmentationActorConstraint
@@ -792,6 +838,27 @@ export enum CapacityRuleScope {
*/
CAPACITY_RULE_SCOPE_DAILY = 2
}
/**
* @generated from protobuf enum api.DateRestrictionType
*/
export enum DateRestrictionType {
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_UNKNOWN = 0;
*/
DATE_RESTRICTION_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_AUTHORIZED = 1;
*/
DATE_RESTRICTION_TYPE_AUTHORIZED = 1,
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_AUTHORIZED_WITH_LIMIT = 2;
*/
DATE_RESTRICTION_TYPE_AUTHORIZED_WITH_LIMIT = 2,
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_FORBIDDEN = 3;
*/
DATE_RESTRICTION_TYPE_FORBIDDEN = 3
}
/**
* @generated from protobuf enum api.CommandIdentifierEntry
*/
@@ -2199,13 +2266,130 @@ class ActorAuthorisation$Type extends MessageType<ActorAuthorisation> {
*/
export const ActorAuthorisation = new ActorAuthorisation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DateRestriction$Type extends MessageType<DateRestriction> {
constructor() {
super("api.DateRestriction", [
{ no: 1, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.DateRestrictionType", DateRestrictionType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "RestrictionField", kind: "scalar", localName: "RestrictionField", jsonName: "RestrictionField", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "RestrictionValue", kind: "scalar", localName: "RestrictionValue", jsonName: "RestrictionValue", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { gte: "1" } } } }
]);
}
create(value?: PartialMessage<DateRestriction>): DateRestriction {
const message = globalThis.Object.create((this.messagePrototype!));
message.Type = 0;
message.RestrictionField = "";
message.RestrictionValue = 0n;
if (value !== undefined)
reflectionMergePartial<DateRestriction>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DateRestriction): DateRestriction {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateRestrictionType Type */ 1:
message.Type = reader.int32();
break;
case /* string RestrictionField */ 2:
message.RestrictionField = reader.string();
break;
case /* int64 RestrictionValue */ 3:
message.RestrictionValue = reader.int64().toBigInt();
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: DateRestriction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateRestrictionType Type = 1; */
if (message.Type !== 0)
writer.tag(1, WireType.Varint).int32(message.Type);
/* string RestrictionField = 2; */
if (message.RestrictionField !== "")
writer.tag(2, WireType.LengthDelimited).string(message.RestrictionField);
/* int64 RestrictionValue = 3; */
if (message.RestrictionValue !== 0n)
writer.tag(3, WireType.Varint).int64(message.RestrictionValue);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DateRestriction
*/
export const DateRestriction = new DateRestriction$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorDateRestriction$Type extends MessageType<ActorDateRestriction> {
constructor() {
super("api.ActorDateRestriction", [
{ no: 1, name: "EarliestDateRestriction", kind: "message", localName: "EarliestDateRestriction", jsonName: "EarliestDateRestriction", T: () => DateRestriction },
{ no: 2, name: "LatestDateRestriction", kind: "message", localName: "LatestDateRestriction", jsonName: "LatestDateRestriction", T: () => DateRestriction }
]);
}
create(value?: PartialMessage<ActorDateRestriction>): ActorDateRestriction {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ActorDateRestriction>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorDateRestriction): ActorDateRestriction {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateRestriction EarliestDateRestriction */ 1:
message.EarliestDateRestriction = DateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.EarliestDateRestriction);
break;
case /* api.DateRestriction LatestDateRestriction */ 2:
message.LatestDateRestriction = DateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.LatestDateRestriction);
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: ActorDateRestriction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateRestriction EarliestDateRestriction = 1; */
if (message.EarliestDateRestriction)
DateRestriction.internalBinaryWrite(message.EarliestDateRestriction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.DateRestriction LatestDateRestriction = 2; */
if (message.LatestDateRestriction)
DateRestriction.internalBinaryWrite(message.LatestDateRestriction, writer.tag(2, 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.ActorDateRestriction
*/
export const ActorDateRestriction = new ActorDateRestriction$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorConstraint$Type extends MessageType<ActorConstraint> {
constructor() {
super("api.ActorConstraint", [
{ no: 1, name: "SegmentationConstraints", kind: "message", localName: "SegmentationConstraints", jsonName: "SegmentationConstraints", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationActorConstraint, options: { "api.aggKey": "SegmentationID" } },
{ no: 3, name: "MaxBookingPeriod", kind: "message", localName: "MaxBookingPeriod", jsonName: "MaxBookingPeriod", T: () => Period },
{ no: 4, name: "IsBookingEnabledForUnknownUsers", kind: "scalar", localName: "IsBookingEnabledForUnknownUsers", jsonName: "IsBookingEnabledForUnknownUsers", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] }
{ no: 5, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] },
{ no: 6, name: "ActorDateRestriction", kind: "message", localName: "ActorDateRestriction", jsonName: "ActorDateRestriction", T: () => ActorDateRestriction }
]);
}
create(value?: PartialMessage<ActorConstraint>): ActorConstraint {
@@ -2234,6 +2418,9 @@ class ActorConstraint$Type extends MessageType<ActorConstraint> {
case /* api.CommandIdentifierEntry CommandIdentifierEntry */ 5:
message.CommandIdentifierEntry = reader.int32();
break;
case /* api.ActorDateRestriction ActorDateRestriction */ 6:
message.ActorDateRestriction = ActorDateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.ActorDateRestriction);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2258,6 +2445,9 @@ class ActorConstraint$Type extends MessageType<ActorConstraint> {
/* api.CommandIdentifierEntry CommandIdentifierEntry = 5; */
if (message.CommandIdentifierEntry !== 0)
writer.tag(5, WireType.Varint).int32(message.CommandIdentifierEntry);
/* api.ActorDateRestriction ActorDateRestriction = 6; */
if (message.ActorDateRestriction)
ActorDateRestriction.internalBinaryWrite(message.ActorDateRestriction, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);