@anticrm/rpc Package

Packages > @anticrm/rpc

Classes

List of classes contained in this package or namespace
Class Description
Request_2

Functions

List of functions contained in this package or namespace
Function Description
readRequest(request)
readResponse(response)
serialize(object)
toStatus(response)

Interfaces

List of interfaces contained in this package or namespace
Interface Description
FindResponse
Response_2 Response object define a server response on transaction request.Also used to inform other clients about operations being performed by server.
RpcError

Variables

List of variables contained in this package or namespace
Variable Description
RPC_CALL_FIND
RPC_CALL_FINDONE
RPC_CALL_GEN_REF_ID
RPC_CALL_LOAD_DOMAIN
RPC_CALL_TX

Type Aliases

List of type aliases contained in this package or namespace
Type Alias Description
ReqId

Functions

readRequest

Signature:

export declare function readRequest<P extends any[]>(request: string): Request<P>;

Parameters

List of parameters
Parameter Type Description
request string

Returns:

Request<P>

readResponse

Signature:

export declare function readResponse<D>(response: string): Response<D>;

Parameters

List of parameters
Parameter Type Description
response string

Returns:

Response<D>

serialize

Signature:

export declare function serialize(object: Request<any> | Response<any>): string;

Parameters

List of parameters
Parameter Type Description
object Request | Response

Returns:

string

toStatus

Signature:

export declare function toStatus(response: Response<any>): Status;

Parameters

List of parameters
Parameter Type Description
response Response

Returns:

Status

Variables

RPC_CALL_FIND

Signature:

RPC_CALL_FIND = "find"

RPC_CALL_FINDONE

Signature:

RPC_CALL_FINDONE = "findOne"

RPC_CALL_GEN_REF_ID

Signature:

RPC_CALL_GEN_REF_ID = "genRefId"

RPC_CALL_LOAD_DOMAIN

Signature:

RPC_CALL_LOAD_DOMAIN = "loadDomain"

RPC_CALL_TX

Signature:

RPC_CALL_TX = "tx"

Type Aliases

ReqId

Signature:

export declare type ReqId = string | number;