// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "itemInput.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ItemInputAPI } from "./itemInput"; import type { ItemAttachmentRemovedResponse } from "./itemInput"; import type { ItemAttachmentRemovedRequest } from "./itemInput"; import type { ItemAttachmentAddedResponse } from "./itemInput"; import type { ItemAttachmentAddedRequest } from "./itemInput"; import type { ItemDescriptionUpdatedResponse } from "./itemInput"; import type { ItemDescriptionUpdatedRequest } from "./itemInput"; import type { ItemDeletedResponse } from "./itemInput"; import type { ItemDeletedRequest } from "./itemInput"; import type { ItemMetaDataUpdatedResponse } from "./itemInput"; import type { ItemMetaDataUpdatedRequest } from "./itemInput"; import type { ItemLogisticVariantRemovedResponse } from "./itemInput"; import type { ItemLogisticVariantRemovedRequest } from "./itemInput"; import type { ItemLogisticVariantUpdatedResponse } from "./itemInput"; import type { ItemLogisticVariantUpdatedRequest } from "./itemInput"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { ItemCreatedResponse } from "./itemInput"; import type { ItemCreatedRequest } from "./itemInput"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; // // ClaimAdded : this message tells that a claim is added for the Item // // message ItemClaimAddedPayload // { // option (payload) = true; // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Event"; // repeated ClaimSummary Claims = 1 // [ // (aggKey) = "ClaimTypeID", // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { // description: "Number of claims added per type"} // ]; // } // message ItemClaimAddedEvent // { // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Event"; // option (preAggMethods) = "addClaim"; // Here are listed the pre aggregation methods to call before event message is aggregated // EventHeader Header = 1 // [ // (validate.rules).message.required = true // ]; // EntityID ID = 2 // [ // (validate.rules).message.required = true // ]; // ItemClaimAddedPayload Payload = 3 // [ // (validate.rules).message.required = true // ]; // } // message ItemClaimAddedRequest { // option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { // json_schema: { // required: ["Header", "ID", "Payload"] // } // }; // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Request"; // RequestProjectHeader Header = 1 // [ // (validate.rules).message.required = true // ]; // EntityID ID = 2 // [ // (validate.rules).message.required = true // ]; // ItemClaimAddedPayload Payload = 3 // [ // (validate.rules).message.required = true // ]; // } // message ItemClaimAddedResponse { // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Response"; // ResponseHeader Header = 1; // EntityID ID = 2; // } /** * * API-server services * * @generated from protobuf service api.ItemInputAPI */ export interface IItemInputAPIClient { /** * @generated from protobuf rpc: Created */ created(input: ItemCreatedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: LogisticVariantUpdated */ logisticVariantUpdated(input: ItemLogisticVariantUpdatedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: LogisticVariantRemoved */ logisticVariantRemoved(input: ItemLogisticVariantRemovedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: MetaDataUpdated */ metaDataUpdated(input: ItemMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Deleted */ deleted(input: ItemDeletedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DescriptionUpdated */ descriptionUpdated(input: ItemDescriptionUpdatedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AttachmentAdded */ attachmentAdded(input: ItemAttachmentAddedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AttachmentRemoved */ attachmentRemoved(input: ItemAttachmentRemovedRequest, options?: RpcOptions): UnaryCall; } // // ClaimAdded : this message tells that a claim is added for the Item // // message ItemClaimAddedPayload // { // option (payload) = true; // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Event"; // repeated ClaimSummary Claims = 1 // [ // (aggKey) = "ClaimTypeID", // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { // description: "Number of claims added per type"} // ]; // } // message ItemClaimAddedEvent // { // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Event"; // option (preAggMethods) = "addClaim"; // Here are listed the pre aggregation methods to call before event message is aggregated // EventHeader Header = 1 // [ // (validate.rules).message.required = true // ]; // EntityID ID = 2 // [ // (validate.rules).message.required = true // ]; // ItemClaimAddedPayload Payload = 3 // [ // (validate.rules).message.required = true // ]; // } // message ItemClaimAddedRequest { // option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { // json_schema: { // required: ["Header", "ID", "Payload"] // } // }; // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Request"; // RequestProjectHeader Header = 1 // [ // (validate.rules).message.required = true // ]; // EntityID ID = 2 // [ // (validate.rules).message.required = true // ]; // ItemClaimAddedPayload Payload = 3 // [ // (validate.rules).message.required = true // ]; // } // message ItemClaimAddedResponse { // option (inputEvent) = "ClaimAdded"; // option (messageType) = "Response"; // ResponseHeader Header = 1; // EntityID ID = 2; // } /** * * API-server services * * @generated from protobuf service api.ItemInputAPI */ export class ItemInputAPIClient implements IItemInputAPIClient, ServiceInfo { typeName = ItemInputAPI.typeName; methods = ItemInputAPI.methods; options = ItemInputAPI.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: Created */ created(input: ItemCreatedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: LogisticVariantUpdated */ logisticVariantUpdated(input: ItemLogisticVariantUpdatedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: LogisticVariantRemoved */ logisticVariantRemoved(input: ItemLogisticVariantRemovedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: MetaDataUpdated */ metaDataUpdated(input: ItemMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Deleted */ deleted(input: ItemDeletedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DescriptionUpdated */ descriptionUpdated(input: ItemDescriptionUpdatedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AttachmentAdded */ attachmentAdded(input: ItemAttachmentAddedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AttachmentRemoved */ attachmentRemoved(input: ItemAttachmentRemovedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }