Latest generation

This commit is contained in:
ci core model
2026-03-17 10:35:33 +00:00
parent 5ea6266991
commit b94a3e1cff
3 changed files with 159 additions and 2 deletions

View File

@@ -238,6 +238,43 @@ export interface AppointmentMail {
*/
PreviousPayload?: AppointmentMailPayload;
}
/**
*
* LockBooking : Push the appointment event to watchers
*
* @generated from protobuf message api.AppointmentLockBookingPayload
*/
export interface AppointmentLockBookingPayload {
/**
* @generated from protobuf field: api.AppointmentStatusStruct Status = 1
*/
Status?: AppointmentStatusStruct;
}
/**
* @generated from protobuf message api.AppointmentLockBooking
*/
export interface AppointmentLockBooking {
/**
* @generated from protobuf field: api.CommandHeader Header = 1
*/
Header?: CommandHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentLockBookingPayload Payload = 3
*/
Payload?: AppointmentLockBookingPayload;
/**
* @generated from protobuf field: api.AppointmentLockBookingPayload EventPayload = 4
*/
EventPayload?: AppointmentLockBookingPayload;
/**
* @generated from protobuf field: api.AppointmentLockBookingPayload PreviousPayload = 5
*/
PreviousPayload?: AppointmentLockBookingPayload;
}
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload> {
constructor() {
@@ -711,3 +748,123 @@ class AppointmentMail$Type extends MessageType<AppointmentMail> {
* @generated MessageType for protobuf message api.AppointmentMail
*/
export const AppointmentMail = new AppointmentMail$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentLockBookingPayload$Type extends MessageType<AppointmentLockBookingPayload> {
constructor() {
super("api.AppointmentLockBookingPayload", [
{ no: 1, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct }
], { "api.messageType": "Command", "api.payload": true, "api.action": "LockBooking" });
}
create(value?: PartialMessage<AppointmentLockBookingPayload>): AppointmentLockBookingPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentLockBookingPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLockBookingPayload): AppointmentLockBookingPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentStatusStruct Status */ 1:
message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
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: AppointmentLockBookingPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentStatusStruct Status = 1; */
if (message.Status)
AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(1, 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.AppointmentLockBookingPayload
*/
export const AppointmentLockBookingPayload = new AppointmentLockBookingPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentLockBooking$Type extends MessageType<AppointmentLockBooking> {
constructor() {
super("api.AppointmentLockBooking", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => CommandHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLockBookingPayload },
{ no: 4, name: "EventPayload", kind: "message", localName: "EventPayload", jsonName: "EventPayload", T: () => AppointmentLockBookingPayload },
{ no: 5, name: "PreviousPayload", kind: "message", localName: "PreviousPayload", jsonName: "PreviousPayload", T: () => AppointmentLockBookingPayload }
], { "api.messageType": "Command", "api.action": "LockBooking", "api.triggerEventFilters": "CarrierDeparted" });
}
create(value?: PartialMessage<AppointmentLockBooking>): AppointmentLockBooking {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentLockBooking>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLockBooking): AppointmentLockBooking {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.CommandHeader Header */ 1:
message.Header = CommandHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.AppointmentLockBookingPayload Payload */ 3:
message.Payload = AppointmentLockBookingPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
case /* api.AppointmentLockBookingPayload EventPayload */ 4:
message.EventPayload = AppointmentLockBookingPayload.internalBinaryRead(reader, reader.uint32(), options, message.EventPayload);
break;
case /* api.AppointmentLockBookingPayload PreviousPayload */ 5:
message.PreviousPayload = AppointmentLockBookingPayload.internalBinaryRead(reader, reader.uint32(), options, message.PreviousPayload);
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: AppointmentLockBooking, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.CommandHeader Header = 1; */
if (message.Header)
CommandHeader.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();
/* api.AppointmentLockBookingPayload Payload = 3; */
if (message.Payload)
AppointmentLockBookingPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentLockBookingPayload EventPayload = 4; */
if (message.EventPayload)
AppointmentLockBookingPayload.internalBinaryWrite(message.EventPayload, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentLockBookingPayload PreviousPayload = 5; */
if (message.PreviousPayload)
AppointmentLockBookingPayload.internalBinaryWrite(message.PreviousPayload, writer.tag(5, 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.AppointmentLockBooking
*/
export const AppointmentLockBooking = new AppointmentLockBooking$Type();

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: 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 } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted", "api.postAggMethods": "lockBooking" });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted" });
}
create(value?: PartialMessage<AppointmentCarrierDepartedEvent>): AppointmentCarrierDepartedEvent {
const message = globalThis.Object.create((this.messagePrototype!));

View File

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