You've already forked npm-core-sdk
189 lines
9.7 KiB
TypeScript
189 lines
9.7 KiB
TypeScript
// @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 { ItemCustomFieldsUpdatedResponse } from "./itemInput";
|
|
import type { ItemCustomFieldsUpdatedRequest } from "./itemInput";
|
|
import type { ItemSanitisedResponse } from "./itemInput";
|
|
import type { ItemSanitisedRequest } 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";
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.ItemInputAPI
|
|
*/
|
|
export interface IItemInputAPIClient {
|
|
/**
|
|
* @generated from protobuf rpc: Created
|
|
*/
|
|
created(input: ItemCreatedRequest, options?: RpcOptions): UnaryCall<ItemCreatedRequest, ItemCreatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: LogisticVariantUpdated
|
|
*/
|
|
logisticVariantUpdated(input: ItemLogisticVariantUpdatedRequest, options?: RpcOptions): UnaryCall<ItemLogisticVariantUpdatedRequest, ItemLogisticVariantUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: LogisticVariantRemoved
|
|
*/
|
|
logisticVariantRemoved(input: ItemLogisticVariantRemovedRequest, options?: RpcOptions): UnaryCall<ItemLogisticVariantRemovedRequest, ItemLogisticVariantRemovedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: MetaDataUpdated
|
|
*/
|
|
metaDataUpdated(input: ItemMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<ItemMetaDataUpdatedRequest, ItemMetaDataUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: ItemDeletedRequest, options?: RpcOptions): UnaryCall<ItemDeletedRequest, ItemDeletedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: DescriptionUpdated
|
|
*/
|
|
descriptionUpdated(input: ItemDescriptionUpdatedRequest, options?: RpcOptions): UnaryCall<ItemDescriptionUpdatedRequest, ItemDescriptionUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentAdded
|
|
*/
|
|
attachmentAdded(input: ItemAttachmentAddedRequest, options?: RpcOptions): UnaryCall<ItemAttachmentAddedRequest, ItemAttachmentAddedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentRemoved
|
|
*/
|
|
attachmentRemoved(input: ItemAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<ItemAttachmentRemovedRequest, ItemAttachmentRemovedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: ItemSanitisedRequest, options?: RpcOptions): UnaryCall<ItemSanitisedRequest, ItemSanitisedResponse>;
|
|
//
|
|
// rpc ClaimAdded (ItemClaimAddedRequest) returns (ItemClaimAddedResponse) {
|
|
// option (tags) = "PROJECT_ACTIVITY";
|
|
// 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>;
|
|
}
|
|
/**
|
|
*
|
|
* 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<ItemCreatedRequest, ItemCreatedResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemCreatedRequest, ItemCreatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: LogisticVariantUpdated
|
|
*/
|
|
logisticVariantUpdated(input: ItemLogisticVariantUpdatedRequest, options?: RpcOptions): UnaryCall<ItemLogisticVariantUpdatedRequest, ItemLogisticVariantUpdatedResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemLogisticVariantUpdatedRequest, ItemLogisticVariantUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: LogisticVariantRemoved
|
|
*/
|
|
logisticVariantRemoved(input: ItemLogisticVariantRemovedRequest, options?: RpcOptions): UnaryCall<ItemLogisticVariantRemovedRequest, ItemLogisticVariantRemovedResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemLogisticVariantRemovedRequest, ItemLogisticVariantRemovedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: MetaDataUpdated
|
|
*/
|
|
metaDataUpdated(input: ItemMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<ItemMetaDataUpdatedRequest, ItemMetaDataUpdatedResponse> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemMetaDataUpdatedRequest, ItemMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: ItemDeletedRequest, options?: RpcOptions): UnaryCall<ItemDeletedRequest, ItemDeletedResponse> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemDeletedRequest, ItemDeletedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DescriptionUpdated
|
|
*/
|
|
descriptionUpdated(input: ItemDescriptionUpdatedRequest, options?: RpcOptions): UnaryCall<ItemDescriptionUpdatedRequest, ItemDescriptionUpdatedResponse> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemDescriptionUpdatedRequest, ItemDescriptionUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentAdded
|
|
*/
|
|
attachmentAdded(input: ItemAttachmentAddedRequest, options?: RpcOptions): UnaryCall<ItemAttachmentAddedRequest, ItemAttachmentAddedResponse> {
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemAttachmentAddedRequest, ItemAttachmentAddedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentRemoved
|
|
*/
|
|
attachmentRemoved(input: ItemAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<ItemAttachmentRemovedRequest, ItemAttachmentRemovedResponse> {
|
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ItemAttachmentRemovedRequest, ItemAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: ItemSanitisedRequest, options?: RpcOptions): UnaryCall<ItemSanitisedRequest, ItemSanitisedResponse> {
|
|
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 (tags) = "PROJECT_ACTIVITY";
|
|
// 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);
|
|
}
|
|
}
|