You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -38,6 +38,8 @@ import type { AppointmentCarrierExpectedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierExpectedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCarrierInformationUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierInformationUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentReasonUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentReasonUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCommissionsUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCommissionsUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentSlotUpdatedResponse } from "./appointmentInput";
|
||||
@@ -72,6 +74,10 @@ export interface IAppointmentInputAPIClient {
|
||||
* @generated from protobuf rpc: CommissionsUpdated
|
||||
*/
|
||||
commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ReasonUpdated
|
||||
*/
|
||||
reasonUpdated(input: AppointmentReasonUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentReasonUpdatedRequest, AppointmentReasonUpdatedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierInformationUpdated
|
||||
*/
|
||||
@@ -181,123 +187,130 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ReasonUpdated
|
||||
*/
|
||||
reasonUpdated(input: AppointmentReasonUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentReasonUpdatedRequest, AppointmentReasonUpdatedResponse> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentReasonUpdatedRequest, AppointmentReasonUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierInformationUpdated
|
||||
*/
|
||||
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierExpected
|
||||
*/
|
||||
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AllocationError
|
||||
*/
|
||||
allocationError(input: AppointmentAllocationErrorRequest, options?: RpcOptions): UnaryCall<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierArrived
|
||||
*/
|
||||
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LoadingStarted
|
||||
*/
|
||||
loadingStarted(input: AppointmentLoadingStartedRequest, options?: RpcOptions): UnaryCall<AppointmentLoadingStartedRequest, AppointmentLoadingStartedResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentLoadingStartedRequest, AppointmentLoadingStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LoadingCompleted
|
||||
*/
|
||||
loadingCompleted(input: AppointmentLoadingCompletedRequest, options?: RpcOptions): UnaryCall<AppointmentLoadingCompletedRequest, AppointmentLoadingCompletedResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentLoadingCompletedRequest, AppointmentLoadingCompletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UnloadingStarted
|
||||
*/
|
||||
unloadingStarted(input: AppointmentUnloadingStartedRequest, options?: RpcOptions): UnaryCall<AppointmentUnloadingStartedRequest, AppointmentUnloadingStartedResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentUnloadingStartedRequest, AppointmentUnloadingStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UnloadingCompleted
|
||||
*/
|
||||
unloadingCompleted(input: AppointmentUnloadingCompletedRequest, options?: RpcOptions): UnaryCall<AppointmentUnloadingCompletedRequest, AppointmentUnloadingCompletedResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentUnloadingCompletedRequest, AppointmentUnloadingCompletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierDeparted
|
||||
*/
|
||||
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: MetaDataUpdated
|
||||
*/
|
||||
metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttachmentAdded
|
||||
*/
|
||||
attachmentAdded(input: AppointmentAttachmentAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttachmentRemoved
|
||||
*/
|
||||
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: EmailsAdded
|
||||
*/
|
||||
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: EmailsRemoved
|
||||
*/
|
||||
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Sanitised
|
||||
*/
|
||||
sanitised(input: AppointmentSanitisedRequest, options?: RpcOptions): UnaryCall<AppointmentSanitisedRequest, AppointmentSanitisedResponse> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentSanitisedRequest, AppointmentSanitisedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||
*/
|
||||
customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Redetected
|
||||
*/
|
||||
redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall<AppointmentRedetectedRequest, AppointmentRedetectedResponse> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentRedetectedRequest, AppointmentRedetectedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,6 +392,77 @@ export interface AppointmentCommissionsUpdatedResponse {
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// ReasonUpdated : this message tells that appointment reason has been modified
|
||||
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentReasonUpdatedPayload
|
||||
*/
|
||||
export interface AppointmentReasonUpdatedPayload {
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 1
|
||||
*/
|
||||
ActorID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Reason = 4
|
||||
*/
|
||||
Reason: string;
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentReasonUpdatedEvent
|
||||
*/
|
||||
export interface AppointmentReasonUpdatedEvent {
|
||||
/**
|
||||
* @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.AppointmentReasonUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentReasonUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentReasonUpdatedRequest
|
||||
*/
|
||||
export interface AppointmentReasonUpdatedRequest {
|
||||
/**
|
||||
* @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.AppointmentReasonUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentReasonUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentReasonUpdatedResponse
|
||||
*/
|
||||
export interface AppointmentReasonUpdatedResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// AttachmentAdded : this message tells that an attachment is added for the appointment
|
||||
|
||||
/**
|
||||
@@ -2521,6 +2592,234 @@ class AppointmentCommissionsUpdatedResponse$Type extends MessageType<Appointment
|
||||
*/
|
||||
export const AppointmentCommissionsUpdatedResponse = new AppointmentCommissionsUpdatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentReasonUpdatedPayload$Type extends MessageType<AppointmentReasonUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentReasonUpdatedPayload", [
|
||||
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReasonUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentReasonUpdatedPayload>): AppointmentReasonUpdatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActorID = "";
|
||||
message.Reason = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentReasonUpdatedPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedPayload): AppointmentReasonUpdatedPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ActorID */ 1:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* string Reason */ 4:
|
||||
message.Reason = reader.string();
|
||||
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: AppointmentReasonUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ActorID = 1; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* string Reason = 4; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Reason);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AppointmentReasonUpdatedPayload
|
||||
*/
|
||||
export const AppointmentReasonUpdatedPayload = new AppointmentReasonUpdatedPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentReasonUpdatedEvent$Type extends MessageType<AppointmentReasonUpdatedEvent> {
|
||||
constructor() {
|
||||
super("api.AppointmentReasonUpdatedEvent", [
|
||||
{ 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: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ReasonUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentReasonUpdatedEvent>): AppointmentReasonUpdatedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentReasonUpdatedEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedEvent): AppointmentReasonUpdatedEvent {
|
||||
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.AppointmentReasonUpdatedPayload Payload */ 3:
|
||||
message.Payload = AppointmentReasonUpdatedPayload.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: AppointmentReasonUpdatedEvent, 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.AppointmentReasonUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentReasonUpdatedPayload.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.AppointmentReasonUpdatedEvent
|
||||
*/
|
||||
export const AppointmentReasonUpdatedEvent = new AppointmentReasonUpdatedEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentReasonUpdatedRequest$Type extends MessageType<AppointmentReasonUpdatedRequest> {
|
||||
constructor() {
|
||||
super("api.AppointmentReasonUpdatedRequest", [
|
||||
{ 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: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReasonUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentReasonUpdatedRequest>): AppointmentReasonUpdatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentReasonUpdatedRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedRequest): AppointmentReasonUpdatedRequest {
|
||||
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.AppointmentReasonUpdatedPayload Payload */ 3:
|
||||
message.Payload = AppointmentReasonUpdatedPayload.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: AppointmentReasonUpdatedRequest, 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.AppointmentReasonUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentReasonUpdatedPayload.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.AppointmentReasonUpdatedRequest
|
||||
*/
|
||||
export const AppointmentReasonUpdatedRequest = new AppointmentReasonUpdatedRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentReasonUpdatedResponse$Type extends MessageType<AppointmentReasonUpdatedResponse> {
|
||||
constructor() {
|
||||
super("api.AppointmentReasonUpdatedResponse", [
|
||||
{ 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": "ReasonUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentReasonUpdatedResponse>): AppointmentReasonUpdatedResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentReasonUpdatedResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedResponse): AppointmentReasonUpdatedResponse {
|
||||
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: AppointmentReasonUpdatedResponse, 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.AppointmentReasonUpdatedResponse
|
||||
*/
|
||||
export const AppointmentReasonUpdatedResponse = new AppointmentReasonUpdatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentAttachmentAddedPayload$Type extends MessageType<AppointmentAttachmentAddedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentAttachmentAddedPayload", [
|
||||
@@ -6307,6 +6606,7 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
|
||||
{ name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse },
|
||||
{ name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse },
|
||||
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse },
|
||||
{ name: "ReasonUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment reason has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentReasonUpdatedRequest, O: AppointmentReasonUpdatedResponse },
|
||||
{ name: "CarrierInformationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierInformationUpdatedRequest, O: AppointmentCarrierInformationUpdatedResponse },
|
||||
{ name: "CarrierExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is expected for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
|
||||
{ name: "AllocationError", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An allocation error occured on the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentAllocationErrorRequest, O: AppointmentAllocationErrorResponse },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260126141501",
|
||||
"version": "1.13.0-SNAPSHOT-260127152356",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -644,6 +644,10 @@ export interface Booking {
|
||||
* @generated from protobuf field: repeated string Emails = 7
|
||||
*/
|
||||
Emails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: string Reason = 8
|
||||
*/
|
||||
Reason: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SlotGroup
|
||||
@@ -2450,7 +2454,8 @@ class Booking$Type extends MessageType<Booking> {
|
||||
{ no: 4, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
|
||||
{ no: 5, name: "AppointmentKind", kind: "scalar", localName: "AppointmentKind", jsonName: "AppointmentKind", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "HasReference", kind: "scalar", localName: "HasReference", jsonName: "HasReference", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Booking>): Booking {
|
||||
@@ -2462,6 +2467,7 @@ class Booking$Type extends MessageType<Booking> {
|
||||
message.AppointmentKind = "";
|
||||
message.HasReference = false;
|
||||
message.Emails = [];
|
||||
message.Reason = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Booking>(this, message, value);
|
||||
return message;
|
||||
@@ -2492,6 +2498,9 @@ class Booking$Type extends MessageType<Booking> {
|
||||
case /* repeated string Emails */ 7:
|
||||
message.Emails.push(reader.string());
|
||||
break;
|
||||
case /* string Reason */ 8:
|
||||
message.Reason = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2525,6 +2534,9 @@ class Booking$Type extends MessageType<Booking> {
|
||||
/* repeated string Emails = 7; */
|
||||
for (let i = 0; i < message.Emails.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
|
||||
/* string Reason = 8; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Reason);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user