You've already forked npm-core-sdk
135 lines
6.6 KiB
TypeScript
135 lines
6.6 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "partnerInput.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { PartnerInputAPI } from "./partnerInput";
|
|
import type { PartnerCustomFieldsUpdatedResponse } from "./partnerInput";
|
|
import type { PartnerCustomFieldsUpdatedRequest } from "./partnerInput";
|
|
import type { PartnerSanitisedResponse } from "./partnerInput";
|
|
import type { PartnerSanitisedRequest } from "./partnerInput";
|
|
import type { PartnerAttachmentRemovedResponse } from "./partnerInput";
|
|
import type { PartnerAttachmentRemovedRequest } from "./partnerInput";
|
|
import type { PartnerAttachmentAddedResponse } from "./partnerInput";
|
|
import type { PartnerAttachmentAddedRequest } from "./partnerInput";
|
|
import type { PartnerDeletedResponse } from "./partnerInput";
|
|
import type { PartnerDeletedRequest } from "./partnerInput";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { PartnerCreatedResponse } from "./partnerInput";
|
|
import type { PartnerCreatedRequest } from "./partnerInput";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.PartnerInputAPI
|
|
*/
|
|
export interface IPartnerInputAPIClient {
|
|
/**
|
|
* @generated from protobuf rpc: Created
|
|
*/
|
|
created(input: PartnerCreatedRequest, options?: RpcOptions): UnaryCall<PartnerCreatedRequest, PartnerCreatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: PartnerDeletedRequest, options?: RpcOptions): UnaryCall<PartnerDeletedRequest, PartnerDeletedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentAdded
|
|
*/
|
|
attachmentAdded(input: PartnerAttachmentAddedRequest, options?: RpcOptions): UnaryCall<PartnerAttachmentAddedRequest, PartnerAttachmentAddedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentRemoved
|
|
*/
|
|
attachmentRemoved(input: PartnerAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<PartnerAttachmentRemovedRequest, PartnerAttachmentRemovedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: PartnerSanitisedRequest, options?: RpcOptions): UnaryCall<PartnerSanitisedRequest, PartnerSanitisedResponse>;
|
|
//
|
|
// rpc ClaimAdded (PartnerClaimAddedRequest) returns (PartnerClaimAddedResponse) {
|
|
// 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 Partner."
|
|
// summary: ""
|
|
// tags: "Partner Inputs"
|
|
// };
|
|
// option (google.api.method_visibility).restriction = "INTERNAL";
|
|
// };
|
|
|
|
/**
|
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
|
*/
|
|
customFieldsUpdated(input: PartnerCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<PartnerCustomFieldsUpdatedRequest, PartnerCustomFieldsUpdatedResponse>;
|
|
}
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.PartnerInputAPI
|
|
*/
|
|
export class PartnerInputAPIClient implements IPartnerInputAPIClient, ServiceInfo {
|
|
typeName = PartnerInputAPI.typeName;
|
|
methods = PartnerInputAPI.methods;
|
|
options = PartnerInputAPI.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Created
|
|
*/
|
|
created(input: PartnerCreatedRequest, options?: RpcOptions): UnaryCall<PartnerCreatedRequest, PartnerCreatedResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerCreatedRequest, PartnerCreatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: PartnerDeletedRequest, options?: RpcOptions): UnaryCall<PartnerDeletedRequest, PartnerDeletedResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerDeletedRequest, PartnerDeletedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentAdded
|
|
*/
|
|
attachmentAdded(input: PartnerAttachmentAddedRequest, options?: RpcOptions): UnaryCall<PartnerAttachmentAddedRequest, PartnerAttachmentAddedResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAttachmentAddedRequest, PartnerAttachmentAddedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentRemoved
|
|
*/
|
|
attachmentRemoved(input: PartnerAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<PartnerAttachmentRemovedRequest, PartnerAttachmentRemovedResponse> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAttachmentRemovedRequest, PartnerAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: PartnerSanitisedRequest, options?: RpcOptions): UnaryCall<PartnerSanitisedRequest, PartnerSanitisedResponse> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerSanitisedRequest, PartnerSanitisedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
//
|
|
// rpc ClaimAdded (PartnerClaimAddedRequest) returns (PartnerClaimAddedResponse) {
|
|
// 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 Partner."
|
|
// summary: ""
|
|
// tags: "Partner Inputs"
|
|
// };
|
|
// option (google.api.method_visibility).restriction = "INTERNAL";
|
|
// };
|
|
|
|
/**
|
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
|
*/
|
|
customFieldsUpdated(input: PartnerCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<PartnerCustomFieldsUpdatedRequest, PartnerCustomFieldsUpdatedResponse> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerCustomFieldsUpdatedRequest, PartnerCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|