Latest generation

This commit is contained in:
ci core model
2025-10-09 08:13:24 +00:00
parent 29355aa653
commit 653a5d19b7
3 changed files with 322 additions and 2 deletions

View File

@@ -4,6 +4,8 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ActorInputAPI } from "./actorInput";
import type { ActorAppointmentConfigurationUpdatedResponse } from "./actorInput";
import type { ActorAppointmentConfigurationUpdatedRequest } from "./actorInput";
import type { ActorMetaDataUpdatedResponse } from "./actorInput";
import type { ActorMetaDataUpdatedRequest } from "./actorInput";
import type { ActorClaimAddedResponse } from "./actorInput";
@@ -62,6 +64,10 @@ export interface IActorInputAPIClient {
* @generated from protobuf rpc: MetaDataUpdated
*/
metaDataUpdated(input: ActorMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<ActorMetaDataUpdatedRequest, ActorMetaDataUpdatedResponse>;
/**
* @generated from protobuf rpc: AppointmentConfigurationUpdated
*/
appointmentConfigurationUpdated(input: ActorAppointmentConfigurationUpdatedRequest, options?: RpcOptions): UnaryCall<ActorAppointmentConfigurationUpdatedRequest, ActorAppointmentConfigurationUpdatedResponse>;
}
/**
*
@@ -131,4 +137,11 @@ export class ActorInputAPIClient implements IActorInputAPIClient, ServiceInfo {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<ActorMetaDataUpdatedRequest, ActorMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AppointmentConfigurationUpdated
*/
appointmentConfigurationUpdated(input: ActorAppointmentConfigurationUpdatedRequest, options?: RpcOptions): UnaryCall<ActorAppointmentConfigurationUpdatedRequest, ActorAppointmentConfigurationUpdatedResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<ActorAppointmentConfigurationUpdatedRequest, ActorAppointmentConfigurationUpdatedResponse>("unary", this._transport, method, opt, input);
}
}

View File

@@ -11,6 +11,8 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ActorAuthorisation } from "./slotbooking";
import { SiteAlias } from "./repositoryShared";
import { ClaimSummary } from "./shared";
import { AttachmentSummary } from "./shared";
import { ActorSnapshot } from "./repositoryShared";
@@ -649,6 +651,76 @@ export interface ActorMetaDataUpdatedResponse {
*/
ID?: EntityID;
}
//
// AppointmentConfigurationUpdated
// - Inform the Actor about the appointment configuration update
//
// Comments updated 2022/10/19
/**
* @generated from protobuf message api.ActorAppointmentConfigurationUpdatedPayload
*/
export interface ActorAppointmentConfigurationUpdatedPayload {
/**
* @generated from protobuf field: bool IsSlotBookingEnabled = 1
*/
IsSlotBookingEnabled: boolean;
/**
* @generated from protobuf field: api.SiteAlias SiteAlias = 2
*/
SiteAlias?: SiteAlias;
/**
* @generated from protobuf field: api.ActorAuthorisation AppointmentConstraints = 3
*/
AppointmentConstraints?: ActorAuthorisation;
}
/**
* @generated from protobuf message api.ActorAppointmentConfigurationUpdatedEvent
*/
export interface ActorAppointmentConfigurationUpdatedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.ActorAppointmentConfigurationUpdatedPayload Payload = 3
*/
Payload?: ActorAppointmentConfigurationUpdatedPayload;
}
/**
* @generated from protobuf message api.ActorAppointmentConfigurationUpdatedRequest
*/
export interface ActorAppointmentConfigurationUpdatedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.ActorAppointmentConfigurationUpdatedPayload Payload = 3
*/
Payload?: ActorAppointmentConfigurationUpdatedPayload;
}
/**
* @generated from protobuf message api.ActorAppointmentConfigurationUpdatedResponse
*/
export interface ActorAppointmentConfigurationUpdatedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
// @generated message type with reflection information, may provide speed optimized methods
class ActorCreatedPayload$Type extends MessageType<ActorCreatedPayload> {
constructor() {
@@ -2605,6 +2677,240 @@ class ActorMetaDataUpdatedResponse$Type extends MessageType<ActorMetaDataUpdated
* @generated MessageType for protobuf message api.ActorMetaDataUpdatedResponse
*/
export const ActorMetaDataUpdatedResponse = new ActorMetaDataUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorAppointmentConfigurationUpdatedPayload$Type extends MessageType<ActorAppointmentConfigurationUpdatedPayload> {
constructor() {
super("api.ActorAppointmentConfigurationUpdatedPayload", [
{ no: 1, name: "IsSlotBookingEnabled", kind: "scalar", localName: "IsSlotBookingEnabled", jsonName: "IsSlotBookingEnabled", T: 8 /*ScalarType.BOOL*/ },
{ no: 2, name: "SiteAlias", kind: "message", localName: "SiteAlias", jsonName: "SiteAlias", T: () => SiteAlias },
{ no: 3, name: "AppointmentConstraints", kind: "message", localName: "AppointmentConstraints", jsonName: "AppointmentConstraints", T: () => ActorAuthorisation }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AppointmentConfigurationUpdated" });
}
create(value?: PartialMessage<ActorAppointmentConfigurationUpdatedPayload>): ActorAppointmentConfigurationUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.IsSlotBookingEnabled = false;
if (value !== undefined)
reflectionMergePartial<ActorAppointmentConfigurationUpdatedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorAppointmentConfigurationUpdatedPayload): ActorAppointmentConfigurationUpdatedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* bool IsSlotBookingEnabled */ 1:
message.IsSlotBookingEnabled = reader.bool();
break;
case /* api.SiteAlias SiteAlias */ 2:
message.SiteAlias = SiteAlias.internalBinaryRead(reader, reader.uint32(), options, message.SiteAlias);
break;
case /* api.ActorAuthorisation AppointmentConstraints */ 3:
message.AppointmentConstraints = ActorAuthorisation.internalBinaryRead(reader, reader.uint32(), options, message.AppointmentConstraints);
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: ActorAppointmentConfigurationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* bool IsSlotBookingEnabled = 1; */
if (message.IsSlotBookingEnabled !== false)
writer.tag(1, WireType.Varint).bool(message.IsSlotBookingEnabled);
/* api.SiteAlias SiteAlias = 2; */
if (message.SiteAlias)
SiteAlias.internalBinaryWrite(message.SiteAlias, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.ActorAuthorisation AppointmentConstraints = 3; */
if (message.AppointmentConstraints)
ActorAuthorisation.internalBinaryWrite(message.AppointmentConstraints, writer.tag(3, 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.ActorAppointmentConfigurationUpdatedPayload
*/
export const ActorAppointmentConfigurationUpdatedPayload = new ActorAppointmentConfigurationUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorAppointmentConfigurationUpdatedEvent$Type extends MessageType<ActorAppointmentConfigurationUpdatedEvent> {
constructor() {
super("api.ActorAppointmentConfigurationUpdatedEvent", [
{ 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: () => ActorAppointmentConfigurationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "api.messageType": "Event", "api.inputEvent": "AppointmentConfigurationUpdated" });
}
create(value?: PartialMessage<ActorAppointmentConfigurationUpdatedEvent>): ActorAppointmentConfigurationUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ActorAppointmentConfigurationUpdatedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorAppointmentConfigurationUpdatedEvent): ActorAppointmentConfigurationUpdatedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
message.Header = EventHeader.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.ActorAppointmentConfigurationUpdatedPayload Payload */ 3:
message.Payload = ActorAppointmentConfigurationUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: ActorAppointmentConfigurationUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
if (message.Header)
EventHeader.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.ActorAppointmentConfigurationUpdatedPayload Payload = 3; */
if (message.Payload)
ActorAppointmentConfigurationUpdatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.ActorAppointmentConfigurationUpdatedEvent
*/
export const ActorAppointmentConfigurationUpdatedEvent = new ActorAppointmentConfigurationUpdatedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorAppointmentConfigurationUpdatedRequest$Type extends MessageType<ActorAppointmentConfigurationUpdatedRequest> {
constructor() {
super("api.ActorAppointmentConfigurationUpdatedRequest", [
{ 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 } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAppointmentConfigurationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AppointmentConfigurationUpdated" });
}
create(value?: PartialMessage<ActorAppointmentConfigurationUpdatedRequest>): ActorAppointmentConfigurationUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ActorAppointmentConfigurationUpdatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorAppointmentConfigurationUpdatedRequest): ActorAppointmentConfigurationUpdatedRequest {
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;
case /* api.ActorAppointmentConfigurationUpdatedPayload Payload */ 3:
message.Payload = ActorAppointmentConfigurationUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: ActorAppointmentConfigurationUpdatedRequest, 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();
/* api.ActorAppointmentConfigurationUpdatedPayload Payload = 3; */
if (message.Payload)
ActorAppointmentConfigurationUpdatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.ActorAppointmentConfigurationUpdatedRequest
*/
export const ActorAppointmentConfigurationUpdatedRequest = new ActorAppointmentConfigurationUpdatedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorAppointmentConfigurationUpdatedResponse$Type extends MessageType<ActorAppointmentConfigurationUpdatedResponse> {
constructor() {
super("api.ActorAppointmentConfigurationUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "AppointmentConfigurationUpdated" });
}
create(value?: PartialMessage<ActorAppointmentConfigurationUpdatedResponse>): ActorAppointmentConfigurationUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ActorAppointmentConfigurationUpdatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorAppointmentConfigurationUpdatedResponse): ActorAppointmentConfigurationUpdatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.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: ActorAppointmentConfigurationUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.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.ActorAppointmentConfigurationUpdatedResponse
*/
export const ActorAppointmentConfigurationUpdatedResponse = new ActorAppointmentConfigurationUpdatedResponse$Type();
/**
* @generated ServiceType for protobuf service api.ActorInputAPI
*/
@@ -2616,5 +2922,6 @@ export const ActorInputAPI = new ServiceType("api.ActorInputAPI", [
{ name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Actor Inputs"], description: "An attachment is added for the Actor." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ActorAttachmentAddedRequest, O: ActorAttachmentAddedResponse },
{ name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Actor Inputs"], description: "An attachment is removed for the Actor." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ActorAttachmentRemovedRequest, O: ActorAttachmentRemovedResponse },
{ name: "ClaimAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Actor Inputs"], description: "A claim is added for the Actor." }, "api.rscType": "Project", "api.roles": "Platform.Project-Claim", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ActorClaimAddedRequest, O: ActorClaimAddedResponse },
{ name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Actor Inputs"], description: "Some metadata have been updated on an Actor. This is typically called from OMS or ERP." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ActorMetaDataUpdatedRequest, O: ActorMetaDataUpdatedResponse }
{ name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Actor Inputs"], description: "Some metadata have been updated on an Actor. This is typically called from OMS or ERP." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ActorMetaDataUpdatedRequest, O: ActorMetaDataUpdatedResponse },
{ name: "AppointmentConfigurationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Actor Inputs"], description: "Appointment configuration is updated on an Actor." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ActorAppointmentConfigurationUpdatedRequest, O: ActorAppointmentConfigurationUpdatedResponse }
], { "api.serviceType": "Api", "api.k8sService": "api-server" });

View File

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