Skip to main content

Interface: Operation<Request, JSONRequest, Response, JSONResponse>

moralis-monorepo / @moralisweb3/common-core / Operation

Interface: Operation<Request, JSONRequest, Response, JSONResponse>

@moralisweb3/common-core.Operation

Type parameters

Name
Request
JSONRequest
Response
JSONResponse

Hierarchy

Table of contents

Properties

Methods

Properties

bodyParamNames

Optional bodyParamNames: keyof Request[]


bodyType

Optional bodyType: OperationBodyType


firstPageIndex

Optional firstPageIndex: number


groupName

groupName: string


id

id: string


isNullable

Optional isNullable: boolean


method

method: OperationRequestMethod


name

name: string


urlPathParamNames

Optional urlPathParamNames: keyof Request[]


urlPathPattern

urlPathPattern: string


urlSearchParamNames

Optional urlSearchParamNames: keyof Request[]

Methods

deserializeRequest

deserializeRequest(jsonRequest, core): Request

Parameters

NameType
jsonRequestJSONRequest
coreCore

Returns

Request


deserializeResponse

deserializeResponse(jsonResponse, request, core): Response

Parameters

NameType
jsonResponseJSONResponse
requestRequest
coreCore

Returns

Response


getRequestBody

Optional getRequestBody(request, core): OperationRequestBody

Parameters

NameType
requestRequest
coreCore

Returns

OperationRequestBody


getRequestUrlParams

getRequestUrlParams(request, core): OperationRequestUrlParams

Parameters

NameType
requestRequest
coreCore

Returns

OperationRequestUrlParams


serializeRequest

serializeRequest(request, core): JSONRequest

Parameters

NameType
requestRequest
coreCore

Returns

JSONRequest