Skip to content

aisbreaker-api-js - v0.1.15 / services/filters/NormalizeFilter / NormalizeFilter

Class: NormalizeFilter

services/filters/NormalizeFilter.NormalizeFilter

Every service API must implement this interface.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new NormalizeFilter(serviceProps, auth?)

Parameters

NameType
servicePropsFilterProps
auth?Auth

Overrides

BaseAIsFilter.constructor

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/services/filters/NormalizeFilter.ts:16

Properties

auth

Optional auth: Auth

Inherited from

BaseAIsFilter.auth

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:24


serviceProps

serviceProps: FilterProps

set in constructor

Inherited from

BaseAIsFilter.serviceProps

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:23

Methods

getForward2Service

getForward2Service(): AIsService

Returns

AIsService

Inherited from

BaseAIsFilter.getForward2Service

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:33


process

process(request): Promise<ResponseFinal>

Let the service do its work.

Alternative names: infer, derive, task, reply, respond, process, ...

Parameters

NameType
requestRequest

Returns

Promise<ResponseFinal>

Overrides

BaseAIsFilter.process

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/services/filters/NormalizeFilter.ts:20

Released under the MIT License.