You've already forked npm-core-sdk
276 lines
16 KiB
TypeScript
276 lines
16 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "tiny-url.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { TinyURLService } from "./tiny-url";
|
|
import type { DeleteAllTinyURLsResponse } from "./tiny-url";
|
|
import type { DeleteAllTinyURLsRequest } from "./tiny-url";
|
|
import type { PartnerAppGetTinyURLResponse } from "./tiny-url";
|
|
import type { PartnerAppGetTinyURLRequest } from "./tiny-url";
|
|
import type { ProjectGetTinyURLResponse } from "./tiny-url";
|
|
import type { ProjectGetTinyURLRequest } from "./tiny-url";
|
|
import type { OrganisationGetTinyURLResponse } from "./tiny-url";
|
|
import type { OrganisationGetTinyURLRequest } from "./tiny-url";
|
|
import type { PartnerAppDeleteTinyURLResponse } from "./tiny-url";
|
|
import type { PartnerAppDeleteTinyURLRequest } from "./tiny-url";
|
|
import type { ProjectDeleteTinyURLResponse } from "./tiny-url";
|
|
import type { ProjectDeleteTinyURLRequest } from "./tiny-url";
|
|
import type { OrganisationDeleteTinyURLResponse } from "./tiny-url";
|
|
import type { OrganisationDeleteTinyURLRequest } from "./tiny-url";
|
|
import type { PartnerAppListTinyURLsResponse } from "./tiny-url";
|
|
import type { PartnerAppListTinyURLsRequest } from "./tiny-url";
|
|
import type { ProjectListTinyURLsResponse } from "./tiny-url";
|
|
import type { ProjectListTinyURLsRequest } from "./tiny-url";
|
|
import type { OrganisationListTinyURLsResponse } from "./tiny-url";
|
|
import type { OrganisationListTinyURLsRequest } from "./tiny-url";
|
|
import type { PartnerAppUploadPayloadResponse } from "./tiny-url";
|
|
import type { PartnerAppUploadPayloadRequest } from "./tiny-url";
|
|
import type { ProjectUploadPayloadResponse } from "./tiny-url";
|
|
import type { ProjectUploadPayloadRequest } from "./tiny-url";
|
|
import type { OrganisationUploadPayloadResponse } from "./tiny-url";
|
|
import type { OrganisationUploadPayloadRequest } from "./tiny-url";
|
|
import type { PartnerAppUploadFileResponse } from "./tiny-url";
|
|
import type { PartnerAppUploadFileRequest } from "./tiny-url";
|
|
import type { ProjectUploadFileResponse } from "./tiny-url";
|
|
import type { ProjectUploadFileRequest } from "./tiny-url";
|
|
import type { OrganisationUploadFileResponse } from "./tiny-url";
|
|
import type { OrganisationUploadFileRequest } from "./tiny-url";
|
|
import type { PartnerAppShortenURLResponse } from "./tiny-url";
|
|
import type { PartnerAppShortenURLRequest } from "./tiny-url";
|
|
import type { ProjectShortenURLResponse } from "./tiny-url";
|
|
import type { ProjectShortenURLRequest } from "./tiny-url";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { OrganisationShortenURLResponse } from "./tiny-url";
|
|
import type { OrganisationShortenURLRequest } from "./tiny-url";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
// ============ SERVICE DESCRIPTION ============
|
|
|
|
/**
|
|
* @generated from protobuf service api.TinyURLService
|
|
*/
|
|
export interface ITinyURLServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationShortenURL
|
|
*/
|
|
organisationShortenURL(input: OrganisationShortenURLRequest, options?: RpcOptions): UnaryCall<OrganisationShortenURLRequest, OrganisationShortenURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ProjectShortenURL
|
|
*/
|
|
projectShortenURL(input: ProjectShortenURLRequest, options?: RpcOptions): UnaryCall<ProjectShortenURLRequest, ProjectShortenURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppShortenURL
|
|
*/
|
|
partnerAppShortenURL(input: PartnerAppShortenURLRequest, options?: RpcOptions): UnaryCall<PartnerAppShortenURLRequest, PartnerAppShortenURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationUploadFile
|
|
*/
|
|
organisationUploadFile(input: OrganisationUploadFileRequest, options?: RpcOptions): UnaryCall<OrganisationUploadFileRequest, OrganisationUploadFileResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ProjectUploadFile
|
|
*/
|
|
projectUploadFile(input: ProjectUploadFileRequest, options?: RpcOptions): UnaryCall<ProjectUploadFileRequest, ProjectUploadFileResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppUploadFile
|
|
*/
|
|
partnerAppUploadFile(input: PartnerAppUploadFileRequest, options?: RpcOptions): UnaryCall<PartnerAppUploadFileRequest, PartnerAppUploadFileResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationUploadPayload
|
|
*/
|
|
organisationUploadPayload(input: OrganisationUploadPayloadRequest, options?: RpcOptions): UnaryCall<OrganisationUploadPayloadRequest, OrganisationUploadPayloadResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ProjectUploadPayload
|
|
*/
|
|
projectUploadPayload(input: ProjectUploadPayloadRequest, options?: RpcOptions): UnaryCall<ProjectUploadPayloadRequest, ProjectUploadPayloadResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppUploadPayload
|
|
*/
|
|
partnerAppUploadPayload(input: PartnerAppUploadPayloadRequest, options?: RpcOptions): UnaryCall<PartnerAppUploadPayloadRequest, PartnerAppUploadPayloadResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationListTinyURLs
|
|
*/
|
|
organisationListTinyURLs(input: OrganisationListTinyURLsRequest, options?: RpcOptions): UnaryCall<OrganisationListTinyURLsRequest, OrganisationListTinyURLsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ProjectListTinyURLs
|
|
*/
|
|
projectListTinyURLs(input: ProjectListTinyURLsRequest, options?: RpcOptions): UnaryCall<ProjectListTinyURLsRequest, ProjectListTinyURLsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppListTinyURLs
|
|
*/
|
|
partnerAppListTinyURLs(input: PartnerAppListTinyURLsRequest, options?: RpcOptions): UnaryCall<PartnerAppListTinyURLsRequest, PartnerAppListTinyURLsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationDeleteTinyURL
|
|
*/
|
|
organisationDeleteTinyURL(input: OrganisationDeleteTinyURLRequest, options?: RpcOptions): UnaryCall<OrganisationDeleteTinyURLRequest, OrganisationDeleteTinyURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ProjectDeleteTinyURL
|
|
*/
|
|
projectDeleteTinyURL(input: ProjectDeleteTinyURLRequest, options?: RpcOptions): UnaryCall<ProjectDeleteTinyURLRequest, ProjectDeleteTinyURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppDeleteTinyURL
|
|
*/
|
|
partnerAppDeleteTinyURL(input: PartnerAppDeleteTinyURLRequest, options?: RpcOptions): UnaryCall<PartnerAppDeleteTinyURLRequest, PartnerAppDeleteTinyURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationGetTinyURL
|
|
*/
|
|
organisationGetTinyURL(input: OrganisationGetTinyURLRequest, options?: RpcOptions): UnaryCall<OrganisationGetTinyURLRequest, OrganisationGetTinyURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ProjectGetTinyURL
|
|
*/
|
|
projectGetTinyURL(input: ProjectGetTinyURLRequest, options?: RpcOptions): UnaryCall<ProjectGetTinyURLRequest, ProjectGetTinyURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppGetTinyURL
|
|
*/
|
|
partnerAppGetTinyURL(input: PartnerAppGetTinyURLRequest, options?: RpcOptions): UnaryCall<PartnerAppGetTinyURLRequest, PartnerAppGetTinyURLResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteAll
|
|
*/
|
|
deleteAll(input: DeleteAllTinyURLsRequest, options?: RpcOptions): UnaryCall<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResponse>;
|
|
}
|
|
// ============ SERVICE DESCRIPTION ============
|
|
|
|
/**
|
|
* @generated from protobuf service api.TinyURLService
|
|
*/
|
|
export class TinyURLServiceClient implements ITinyURLServiceClient, ServiceInfo {
|
|
typeName = TinyURLService.typeName;
|
|
methods = TinyURLService.methods;
|
|
options = TinyURLService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationShortenURL
|
|
*/
|
|
organisationShortenURL(input: OrganisationShortenURLRequest, options?: RpcOptions): UnaryCall<OrganisationShortenURLRequest, OrganisationShortenURLResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrganisationShortenURLRequest, OrganisationShortenURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ProjectShortenURL
|
|
*/
|
|
projectShortenURL(input: ProjectShortenURLRequest, options?: RpcOptions): UnaryCall<ProjectShortenURLRequest, ProjectShortenURLResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ProjectShortenURLRequest, ProjectShortenURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppShortenURL
|
|
*/
|
|
partnerAppShortenURL(input: PartnerAppShortenURLRequest, options?: RpcOptions): UnaryCall<PartnerAppShortenURLRequest, PartnerAppShortenURLResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAppShortenURLRequest, PartnerAppShortenURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationUploadFile
|
|
*/
|
|
organisationUploadFile(input: OrganisationUploadFileRequest, options?: RpcOptions): UnaryCall<OrganisationUploadFileRequest, OrganisationUploadFileResponse> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrganisationUploadFileRequest, OrganisationUploadFileResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ProjectUploadFile
|
|
*/
|
|
projectUploadFile(input: ProjectUploadFileRequest, options?: RpcOptions): UnaryCall<ProjectUploadFileRequest, ProjectUploadFileResponse> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ProjectUploadFileRequest, ProjectUploadFileResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppUploadFile
|
|
*/
|
|
partnerAppUploadFile(input: PartnerAppUploadFileRequest, options?: RpcOptions): UnaryCall<PartnerAppUploadFileRequest, PartnerAppUploadFileResponse> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAppUploadFileRequest, PartnerAppUploadFileResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationUploadPayload
|
|
*/
|
|
organisationUploadPayload(input: OrganisationUploadPayloadRequest, options?: RpcOptions): UnaryCall<OrganisationUploadPayloadRequest, OrganisationUploadPayloadResponse> {
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrganisationUploadPayloadRequest, OrganisationUploadPayloadResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ProjectUploadPayload
|
|
*/
|
|
projectUploadPayload(input: ProjectUploadPayloadRequest, options?: RpcOptions): UnaryCall<ProjectUploadPayloadRequest, ProjectUploadPayloadResponse> {
|
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ProjectUploadPayloadRequest, ProjectUploadPayloadResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppUploadPayload
|
|
*/
|
|
partnerAppUploadPayload(input: PartnerAppUploadPayloadRequest, options?: RpcOptions): UnaryCall<PartnerAppUploadPayloadRequest, PartnerAppUploadPayloadResponse> {
|
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAppUploadPayloadRequest, PartnerAppUploadPayloadResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationListTinyURLs
|
|
*/
|
|
organisationListTinyURLs(input: OrganisationListTinyURLsRequest, options?: RpcOptions): UnaryCall<OrganisationListTinyURLsRequest, OrganisationListTinyURLsResponse> {
|
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrganisationListTinyURLsRequest, OrganisationListTinyURLsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ProjectListTinyURLs
|
|
*/
|
|
projectListTinyURLs(input: ProjectListTinyURLsRequest, options?: RpcOptions): UnaryCall<ProjectListTinyURLsRequest, ProjectListTinyURLsResponse> {
|
|
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ProjectListTinyURLsRequest, ProjectListTinyURLsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppListTinyURLs
|
|
*/
|
|
partnerAppListTinyURLs(input: PartnerAppListTinyURLsRequest, options?: RpcOptions): UnaryCall<PartnerAppListTinyURLsRequest, PartnerAppListTinyURLsResponse> {
|
|
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAppListTinyURLsRequest, PartnerAppListTinyURLsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationDeleteTinyURL
|
|
*/
|
|
organisationDeleteTinyURL(input: OrganisationDeleteTinyURLRequest, options?: RpcOptions): UnaryCall<OrganisationDeleteTinyURLRequest, OrganisationDeleteTinyURLResponse> {
|
|
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrganisationDeleteTinyURLRequest, OrganisationDeleteTinyURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ProjectDeleteTinyURL
|
|
*/
|
|
projectDeleteTinyURL(input: ProjectDeleteTinyURLRequest, options?: RpcOptions): UnaryCall<ProjectDeleteTinyURLRequest, ProjectDeleteTinyURLResponse> {
|
|
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ProjectDeleteTinyURLRequest, ProjectDeleteTinyURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppDeleteTinyURL
|
|
*/
|
|
partnerAppDeleteTinyURL(input: PartnerAppDeleteTinyURLRequest, options?: RpcOptions): UnaryCall<PartnerAppDeleteTinyURLRequest, PartnerAppDeleteTinyURLResponse> {
|
|
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAppDeleteTinyURLRequest, PartnerAppDeleteTinyURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: OrganisationGetTinyURL
|
|
*/
|
|
organisationGetTinyURL(input: OrganisationGetTinyURLRequest, options?: RpcOptions): UnaryCall<OrganisationGetTinyURLRequest, OrganisationGetTinyURLResponse> {
|
|
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrganisationGetTinyURLRequest, OrganisationGetTinyURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ProjectGetTinyURL
|
|
*/
|
|
projectGetTinyURL(input: ProjectGetTinyURLRequest, options?: RpcOptions): UnaryCall<ProjectGetTinyURLRequest, ProjectGetTinyURLResponse> {
|
|
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ProjectGetTinyURLRequest, ProjectGetTinyURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartnerAppGetTinyURL
|
|
*/
|
|
partnerAppGetTinyURL(input: PartnerAppGetTinyURLRequest, options?: RpcOptions): UnaryCall<PartnerAppGetTinyURLRequest, PartnerAppGetTinyURLResponse> {
|
|
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PartnerAppGetTinyURLRequest, PartnerAppGetTinyURLResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteAll
|
|
*/
|
|
deleteAll(input: DeleteAllTinyURLsRequest, options?: RpcOptions): UnaryCall<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResponse> {
|
|
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|