You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ItemInputAPI } from "./itemInput";
|
||||
import type { ItemCustomFieldsUpdatedResponse } from "./itemInput";
|
||||
import type { ItemCustomFieldsUpdatedRequest } from "./itemInput";
|
||||
import type { ItemSanitisedResponse } from "./itemInput";
|
||||
import type { ItemSanitisedRequest } from "./itemInput";
|
||||
import type { ItemAttachmentRemovedResponse } from "./itemInput";
|
||||
@@ -25,68 +27,6 @@ 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
|
||||
@@ -130,69 +70,24 @@ export interface IItemInputAPIClient {
|
||||
* @generated from protobuf rpc: Sanitised
|
||||
*/
|
||||
sanitised(input: ItemSanitisedRequest, options?: RpcOptions): UnaryCall<ItemSanitisedRequest, ItemSanitisedResponse>;
|
||||
//
|
||||
// rpc ClaimAdded (ItemClaimAddedRequest) returns (ItemClaimAddedResponse) {
|
||||
// option (rscType) = "Project";
|
||||
// option (roles) = "Platform.Project-Claim";
|
||||
// option (platformReserved) = true;
|
||||
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
// description: "A claim is added for the Item."
|
||||
// summary: ""
|
||||
// tags: "Item Inputs"
|
||||
// };
|
||||
// option (google.api.method_visibility).restriction = "INTERNAL";
|
||||
// };
|
||||
|
||||
/**
|
||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||
*/
|
||||
customFieldsUpdated(input: ItemCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse>;
|
||||
}
|
||||
//
|
||||
// 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
|
||||
@@ -268,4 +163,24 @@ export class ItemInputAPIClient implements IItemInputAPIClient, ServiceInfo {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ItemSanitisedRequest, ItemSanitisedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
//
|
||||
// rpc ClaimAdded (ItemClaimAddedRequest) returns (ItemClaimAddedResponse) {
|
||||
// option (rscType) = "Project";
|
||||
// option (roles) = "Platform.Project-Claim";
|
||||
// option (platformReserved) = true;
|
||||
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
// description: "A claim is added for the Item."
|
||||
// summary: ""
|
||||
// tags: "Item Inputs"
|
||||
// };
|
||||
// option (google.api.method_visibility).restriction = "INTERNAL";
|
||||
// };
|
||||
|
||||
/**
|
||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||
*/
|
||||
customFieldsUpdated(input: ItemCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user