You've already forked npm-core-sdk
291 lines
16 KiB
TypeScript
291 lines
16 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "orderInput.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { OrderInputAPI } from "./orderInput";
|
|
import type { OrderCustomFieldsUpdatedResponse } from "./orderInput";
|
|
import type { OrderCustomFieldsUpdatedRequest } from "./orderInput";
|
|
import type { OrderSanitisedResponse } from "./orderInput";
|
|
import type { OrderSanitisedRequest } from "./orderInput";
|
|
import type { OrderLinesDetectedResponse } from "./orderInput";
|
|
import type { OrderLinesDetectedRequest } from "./orderInput";
|
|
import type { OrderLinesAddedResponse } from "./orderInput";
|
|
import type { OrderLinesAddedRequest } from "./orderInput";
|
|
import type { OrderDeletedResponse } from "./orderInput";
|
|
import type { OrderDeletedRequest } from "./orderInput";
|
|
import type { OrderClaimAddedResponse } from "./orderInput";
|
|
import type { OrderClaimAddedRequest } from "./orderInput";
|
|
import type { OrderAttachmentRemovedResponse } from "./orderInput";
|
|
import type { OrderAttachmentRemovedRequest } from "./orderInput";
|
|
import type { OrderAttachmentAddedResponse } from "./orderInput";
|
|
import type { OrderAttachmentAddedRequest } from "./orderInput";
|
|
import type { OrderCarrierUpdatedResponse } from "./orderInput";
|
|
import type { OrderCarrierUpdatedRequest } from "./orderInput";
|
|
import type { OrderMetaDataUpdatedResponse } from "./orderInput";
|
|
import type { OrderMetaDataUpdatedRequest } from "./orderInput";
|
|
import type { OrderExecutionflowUpdatedResponse } from "./orderInput";
|
|
import type { OrderExecutionflowUpdatedRequest } from "./orderInput";
|
|
import type { OrderCompletedResponse } from "./orderInput";
|
|
import type { OrderCompletedRequest } from "./orderInput";
|
|
import type { OrderExecutionflowETAUpdatedResponse } from "./orderInput";
|
|
import type { OrderExecutionflowETAUpdatedRequest } from "./orderInput";
|
|
import type { OrderRequestedDeliveryDateDefinedResponse } from "./orderInput";
|
|
import type { OrderRequestedDeliveryDateDefinedRequest } from "./orderInput";
|
|
import type { OrderPartiallyCompletedResponse } from "./orderInput";
|
|
import type { OrderPartiallyCompletedRequest } from "./orderInput";
|
|
import type { OrderShipperAssignedResponse } from "./orderInput";
|
|
import type { OrderShipperAssignedRequest } from "./orderInput";
|
|
import type { OrderAnonymisedResponse } from "./orderInput";
|
|
import type { OrderAnonymisedRequest } from "./orderInput";
|
|
import type { OrderCancelledResponse } from "./orderInput";
|
|
import type { OrderCancelledRequest } from "./orderInput";
|
|
import type { OrderExecutionflowDetectedResponse } from "./orderInput";
|
|
import type { OrderExecutionflowDetectedRequest } from "./orderInput";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { OrderCreatedResponse } from "./orderInput";
|
|
import type { OrderCreatedRequest } from "./orderInput";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.OrderInputAPI
|
|
*/
|
|
export interface IOrderInputAPIClient {
|
|
/**
|
|
* @generated from protobuf rpc: Created
|
|
*/
|
|
created(input: OrderCreatedRequest, options?: RpcOptions): UnaryCall<OrderCreatedRequest, OrderCreatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ExecutionflowDetected
|
|
*/
|
|
executionflowDetected(input: OrderExecutionflowDetectedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowDetectedRequest, OrderExecutionflowDetectedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Cancelled
|
|
*/
|
|
cancelled(input: OrderCancelledRequest, options?: RpcOptions): UnaryCall<OrderCancelledRequest, OrderCancelledResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Anonymised
|
|
*/
|
|
anonymised(input: OrderAnonymisedRequest, options?: RpcOptions): UnaryCall<OrderAnonymisedRequest, OrderAnonymisedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ShipperAssigned
|
|
*/
|
|
shipperAssigned(input: OrderShipperAssignedRequest, options?: RpcOptions): UnaryCall<OrderShipperAssignedRequest, OrderShipperAssignedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: PartiallyCompleted
|
|
*/
|
|
partiallyCompleted(input: OrderPartiallyCompletedRequest, options?: RpcOptions): UnaryCall<OrderPartiallyCompletedRequest, OrderPartiallyCompletedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: RequestedDeliveryDateDefined
|
|
*/
|
|
requestedDeliveryDateDefined(input: OrderRequestedDeliveryDateDefinedRequest, options?: RpcOptions): UnaryCall<OrderRequestedDeliveryDateDefinedRequest, OrderRequestedDeliveryDateDefinedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ExecutionflowETAUpdated
|
|
*/
|
|
executionflowETAUpdated(input: OrderExecutionflowETAUpdatedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowETAUpdatedRequest, OrderExecutionflowETAUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Completed
|
|
*/
|
|
completed(input: OrderCompletedRequest, options?: RpcOptions): UnaryCall<OrderCompletedRequest, OrderCompletedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ExecutionflowUpdated
|
|
*/
|
|
executionflowUpdated(input: OrderExecutionflowUpdatedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowUpdatedRequest, OrderExecutionflowUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: MetaDataUpdated
|
|
*/
|
|
metaDataUpdated(input: OrderMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<OrderMetaDataUpdatedRequest, OrderMetaDataUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: CarrierUpdated
|
|
*/
|
|
carrierUpdated(input: OrderCarrierUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCarrierUpdatedRequest, OrderCarrierUpdatedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentAdded
|
|
*/
|
|
attachmentAdded(input: OrderAttachmentAddedRequest, options?: RpcOptions): UnaryCall<OrderAttachmentAddedRequest, OrderAttachmentAddedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentRemoved
|
|
*/
|
|
attachmentRemoved(input: OrderAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<OrderAttachmentRemovedRequest, OrderAttachmentRemovedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ClaimAdded
|
|
*/
|
|
claimAdded(input: OrderClaimAddedRequest, options?: RpcOptions): UnaryCall<OrderClaimAddedRequest, OrderClaimAddedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: OrderDeletedRequest, options?: RpcOptions): UnaryCall<OrderDeletedRequest, OrderDeletedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: LinesAdded
|
|
*/
|
|
linesAdded(input: OrderLinesAddedRequest, options?: RpcOptions): UnaryCall<OrderLinesAddedRequest, OrderLinesAddedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: LinesDetected
|
|
*/
|
|
linesDetected(input: OrderLinesDetectedRequest, options?: RpcOptions): UnaryCall<OrderLinesDetectedRequest, OrderLinesDetectedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: OrderSanitisedRequest, options?: RpcOptions): UnaryCall<OrderSanitisedRequest, OrderSanitisedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
|
*/
|
|
customFieldsUpdated(input: OrderCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse>;
|
|
}
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.OrderInputAPI
|
|
*/
|
|
export class OrderInputAPIClient implements IOrderInputAPIClient, ServiceInfo {
|
|
typeName = OrderInputAPI.typeName;
|
|
methods = OrderInputAPI.methods;
|
|
options = OrderInputAPI.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Created
|
|
*/
|
|
created(input: OrderCreatedRequest, options?: RpcOptions): UnaryCall<OrderCreatedRequest, OrderCreatedResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderCreatedRequest, OrderCreatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ExecutionflowDetected
|
|
*/
|
|
executionflowDetected(input: OrderExecutionflowDetectedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowDetectedRequest, OrderExecutionflowDetectedResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderExecutionflowDetectedRequest, OrderExecutionflowDetectedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Cancelled
|
|
*/
|
|
cancelled(input: OrderCancelledRequest, options?: RpcOptions): UnaryCall<OrderCancelledRequest, OrderCancelledResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderCancelledRequest, OrderCancelledResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Anonymised
|
|
*/
|
|
anonymised(input: OrderAnonymisedRequest, options?: RpcOptions): UnaryCall<OrderAnonymisedRequest, OrderAnonymisedResponse> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderAnonymisedRequest, OrderAnonymisedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ShipperAssigned
|
|
*/
|
|
shipperAssigned(input: OrderShipperAssignedRequest, options?: RpcOptions): UnaryCall<OrderShipperAssignedRequest, OrderShipperAssignedResponse> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderShipperAssignedRequest, OrderShipperAssignedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: PartiallyCompleted
|
|
*/
|
|
partiallyCompleted(input: OrderPartiallyCompletedRequest, options?: RpcOptions): UnaryCall<OrderPartiallyCompletedRequest, OrderPartiallyCompletedResponse> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderPartiallyCompletedRequest, OrderPartiallyCompletedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: RequestedDeliveryDateDefined
|
|
*/
|
|
requestedDeliveryDateDefined(input: OrderRequestedDeliveryDateDefinedRequest, options?: RpcOptions): UnaryCall<OrderRequestedDeliveryDateDefinedRequest, OrderRequestedDeliveryDateDefinedResponse> {
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderRequestedDeliveryDateDefinedRequest, OrderRequestedDeliveryDateDefinedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ExecutionflowETAUpdated
|
|
*/
|
|
executionflowETAUpdated(input: OrderExecutionflowETAUpdatedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowETAUpdatedRequest, OrderExecutionflowETAUpdatedResponse> {
|
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderExecutionflowETAUpdatedRequest, OrderExecutionflowETAUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Completed
|
|
*/
|
|
completed(input: OrderCompletedRequest, options?: RpcOptions): UnaryCall<OrderCompletedRequest, OrderCompletedResponse> {
|
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderCompletedRequest, OrderCompletedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ExecutionflowUpdated
|
|
*/
|
|
executionflowUpdated(input: OrderExecutionflowUpdatedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowUpdatedRequest, OrderExecutionflowUpdatedResponse> {
|
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderExecutionflowUpdatedRequest, OrderExecutionflowUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: MetaDataUpdated
|
|
*/
|
|
metaDataUpdated(input: OrderMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<OrderMetaDataUpdatedRequest, OrderMetaDataUpdatedResponse> {
|
|
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderMetaDataUpdatedRequest, OrderMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CarrierUpdated
|
|
*/
|
|
carrierUpdated(input: OrderCarrierUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCarrierUpdatedRequest, OrderCarrierUpdatedResponse> {
|
|
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderCarrierUpdatedRequest, OrderCarrierUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentAdded
|
|
*/
|
|
attachmentAdded(input: OrderAttachmentAddedRequest, options?: RpcOptions): UnaryCall<OrderAttachmentAddedRequest, OrderAttachmentAddedResponse> {
|
|
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderAttachmentAddedRequest, OrderAttachmentAddedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AttachmentRemoved
|
|
*/
|
|
attachmentRemoved(input: OrderAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<OrderAttachmentRemovedRequest, OrderAttachmentRemovedResponse> {
|
|
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderAttachmentRemovedRequest, OrderAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ClaimAdded
|
|
*/
|
|
claimAdded(input: OrderClaimAddedRequest, options?: RpcOptions): UnaryCall<OrderClaimAddedRequest, OrderClaimAddedResponse> {
|
|
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderClaimAddedRequest, OrderClaimAddedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: OrderDeletedRequest, options?: RpcOptions): UnaryCall<OrderDeletedRequest, OrderDeletedResponse> {
|
|
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderDeletedRequest, OrderDeletedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: LinesAdded
|
|
*/
|
|
linesAdded(input: OrderLinesAddedRequest, options?: RpcOptions): UnaryCall<OrderLinesAddedRequest, OrderLinesAddedResponse> {
|
|
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderLinesAddedRequest, OrderLinesAddedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: LinesDetected
|
|
*/
|
|
linesDetected(input: OrderLinesDetectedRequest, options?: RpcOptions): UnaryCall<OrderLinesDetectedRequest, OrderLinesDetectedResponse> {
|
|
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderLinesDetectedRequest, OrderLinesDetectedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: OrderSanitisedRequest, options?: RpcOptions): UnaryCall<OrderSanitisedRequest, OrderSanitisedResponse> {
|
|
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderSanitisedRequest, OrderSanitisedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
|
*/
|
|
customFieldsUpdated(input: OrderCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse> {
|
|
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|