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

@@ -5272,7 +5272,7 @@ class AppointmentCarrierDepartedEvent$Type extends MessageType<AppointmentCarrie
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } } { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted" }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted", "api.preAggMethods": "lockBooking" });
} }
create(value?: PartialMessage<AppointmentCarrierDepartedEvent>): AppointmentCarrierDepartedEvent { create(value?: PartialMessage<AppointmentCarrierDepartedEvent>): AppointmentCarrierDepartedEvent {
const message = globalThis.Object.create((this.messagePrototype!)); const message = globalThis.Object.create((this.messagePrototype!));

View File

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

View File

@@ -4,6 +4,8 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { BookingService } from "./siteBooking"; import { BookingService } from "./siteBooking";
import type { LockBookingResponse } from "./siteBooking";
import type { LockBookingRequest } from "./siteBooking";
import type { CheckBookingAppointmentEditableResponse } from "./siteBooking"; import type { CheckBookingAppointmentEditableResponse } from "./siteBooking";
import type { CheckBookingAppointmentEditableRequest } from "./siteBooking"; import type { CheckBookingAppointmentEditableRequest } from "./siteBooking";
import type { RescheduleBookingAppointmentRequest } from "./siteBooking"; import type { RescheduleBookingAppointmentRequest } from "./siteBooking";
@@ -78,6 +80,10 @@ export interface IBookingServiceClient {
* @generated from protobuf rpc: CheckAppointmentEditable * @generated from protobuf rpc: CheckAppointmentEditable
*/ */
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>; checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>;
/**
* @generated from protobuf rpc: LockBooking
*/
lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse>;
} }
/** /**
* @generated from protobuf service api.BookingService * @generated from protobuf service api.BookingService
@@ -186,4 +192,11 @@ export class BookingServiceClient implements IBookingServiceClient, ServiceInfo
const method = this.methods[13], opt = this._transport.mergeOptions(options); const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input); return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input);
} }
/**
* @generated from protobuf rpc: LockBooking
*/
lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<LockBookingRequest, LockBookingResponse>("unary", this._transport, method, opt, input);
}
} }

View File

@@ -386,6 +386,26 @@ export interface CheckBookingAppointmentEditableResponse {
*/ */
IsForceEditable: boolean; 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 // @generated message type with reflection information, may provide speed optimized methods
class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> { class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
constructor() { constructor() {
@@ -1388,6 +1408,97 @@ class CheckBookingAppointmentEditableResponse$Type extends MessageType<CheckBook
* @generated MessageType for protobuf message api.CheckBookingAppointmentEditableResponse * @generated MessageType for protobuf message api.CheckBookingAppointmentEditableResponse
*/ */
export const CheckBookingAppointmentEditableResponse = new CheckBookingAppointmentEditableResponse$Type(); 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 * @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: "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: "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: "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" }); ], { "api.k8sService": "core-site" });

View File

@@ -691,6 +691,10 @@ export interface Booking {
* @generated from protobuf field: string LastUpdate = 12 * @generated from protobuf field: string LastUpdate = 12
*/ */
LastUpdate: string; LastUpdate: string;
/**
* @generated from protobuf field: bool Locked = 13
*/
Locked: boolean;
} }
/** /**
* @generated from protobuf message api.SlotGroup * @generated from protobuf message api.SlotGroup
@@ -2702,7 +2706,8 @@ class Booking$Type extends MessageType<Booking> {
{ no: 9, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 9, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 10, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, { no: 10, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "LastUpdate", kind: "scalar", localName: "LastUpdate", jsonName: "LastUpdate", T: 9 /*ScalarType.STRING*/ } { no: 12, name: "LastUpdate", kind: "scalar", localName: "LastUpdate", jsonName: "LastUpdate", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "Locked", kind: "scalar", localName: "Locked", jsonName: "Locked", T: 8 /*ScalarType.BOOL*/ }
]); ]);
} }
create(value?: PartialMessage<Booking>): Booking { create(value?: PartialMessage<Booking>): Booking {
@@ -2716,6 +2721,7 @@ class Booking$Type extends MessageType<Booking> {
message.Emails = []; message.Emails = [];
message.Reason = ""; message.Reason = "";
message.LastUpdate = ""; message.LastUpdate = "";
message.Locked = false;
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<Booking>(this, message, value); reflectionMergePartial<Booking>(this, message, value);
return message; return message;
@@ -2758,6 +2764,9 @@ class Booking$Type extends MessageType<Booking> {
case /* string LastUpdate */ 12: case /* string LastUpdate */ 12:
message.LastUpdate = reader.string(); message.LastUpdate = reader.string();
break; break;
case /* bool Locked */ 13:
message.Locked = reader.bool();
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -2803,6 +2812,9 @@ class Booking$Type extends MessageType<Booking> {
/* string LastUpdate = 12; */ /* string LastUpdate = 12; */
if (message.LastUpdate !== "") if (message.LastUpdate !== "")
writer.tag(12, WireType.LengthDelimited).string(message.LastUpdate); writer.tag(12, WireType.LengthDelimited).string(message.LastUpdate);
/* bool Locked = 13; */
if (message.Locked !== false)
writer.tag(13, WireType.Varint).bool(message.Locked);
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);