Latest generation

This commit is contained in:
ci core model
2026-03-13 14:18:21 +00:00
parent ac90b0cfa7
commit 2f2fd2afa1
5 changed files with 141 additions and 4 deletions

View File

@@ -386,6 +386,26 @@ export interface CheckBookingAppointmentEditableResponse {
*/
IsForceEditable: boolean;
}
/**
* CheckAppointmentEditable
*
* @generated from protobuf message api.LockBookingRequest
*/
export interface LockBookingRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
/**
* @generated from protobuf message api.LockBookingResponse
*/
export interface LockBookingResponse {
}
// @generated message type with reflection information, may provide speed optimized methods
class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
constructor() {
@@ -1388,6 +1408,97 @@ class CheckBookingAppointmentEditableResponse$Type extends MessageType<CheckBook
* @generated MessageType for protobuf message api.CheckBookingAppointmentEditableResponse
*/
export const CheckBookingAppointmentEditableResponse = new CheckBookingAppointmentEditableResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class LockBookingRequest$Type extends MessageType<LockBookingRequest> {
constructor() {
super("api.LockBookingRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<LockBookingRequest>): LockBookingRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<LockBookingRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LockBookingRequest): LockBookingRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
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: LockBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, 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.LockBookingRequest
*/
export const LockBookingRequest = new LockBookingRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class LockBookingResponse$Type extends MessageType<LockBookingResponse> {
constructor() {
super("api.LockBookingResponse", []);
}
create(value?: PartialMessage<LockBookingResponse>): LockBookingResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<LockBookingResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LockBookingResponse): LockBookingResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: LockBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.LockBookingResponse
*/
export const LockBookingResponse = new LockBookingResponse$Type();
/**
* @generated ServiceType for protobuf service api.BookingService
*/
@@ -1405,5 +1516,6 @@ export const BookingService = new ServiceType("api.BookingService", [
{ name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment from a wms even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSUpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
{ name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleBookingAppointmentRequest, O: BookBookingAppointmentResponse },
{ name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleBookingAppointmentRequest, O: BookBookingAppointmentResponse },
{ name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckBookingAppointmentEditableRequest, O: CheckBookingAppointmentEditableResponse }
{ name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckBookingAppointmentEditableRequest, O: CheckBookingAppointmentEditableResponse },
{ name: "LockBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Lock Booking." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: LockBookingRequest, O: LockBookingResponse }
], { "api.k8sService": "core-site" });