Skip to content

T extends NumberType

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/requests/requests.ts:3569

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

new SearchUtilityPagesSuccessResponse<T>(data): SearchUtilityPagesSuccessResponse<T>

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/requests/requests.ts:3573

Parameters

data

iSearchUtilityPagesSuccessResponse<T>

Returns

SearchUtilityPagesSuccessResponse<T>

Overrides

GetUtilityPagesSuccessResponse.constructor

Properties

docs

docs: (UtilityPageDoc<T> | undefined)[]

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/requests/requests.ts:3544

Implementation of

iSearchUtilityPagesSuccessResponse.docs

Inherited from

GetUtilityPagesSuccessResponse.docs


pagination

pagination: object

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/requests/requests.ts:3545

bookmark

bookmark: string

hasMore

hasMore: boolean

Implementation of

iSearchUtilityPagesSuccessResponse.pagination

Inherited from

GetUtilityPagesSuccessResponse.pagination

Methods

clone()

clone(): GetUtilityPagesSuccessResponse

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151

Deep copies the object and returns a new instance.

Returns

GetUtilityPagesSuccessResponse

Inherited from

GetUtilityPagesSuccessResponse.clone


convert()

convert<U>(convertFunction, options?): GetUtilityPagesSuccessResponse<U>

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/requests/requests.ts:3556

Converts the object to a different NumberType equivalent.

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

GetUtilityPagesSuccessResponse<U>

Inherited from

GetUtilityPagesSuccessResponse.convert


equals()

equals<U>(other, normalizeNumberTypes?): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:147

Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

Type Parameters

U

U extends CustomType<U>

Parameters

other

CustomType<U> | null | undefined

normalizeNumberTypes?

boolean

Returns

boolean

Inherited from

GetUtilityPagesSuccessResponse.equals


getNumberFieldNames()

getNumberFieldNames(): string[]

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:157

Internal helper method to convert the number fields of the object to a different NumberType equivalent.

Returns

string[]

Inherited from

GetUtilityPagesSuccessResponse.getNumberFieldNames


hasNumberFields()

hasNumberFields(): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:161

Checks if the object has number fields.

Returns

boolean

Inherited from

GetUtilityPagesSuccessResponse.hasNumberFields


toJson()

toJson(): JsonObject

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:139

Converts the object to a JSON object with all primitive types.

Returns

JsonObject

Inherited from

GetUtilityPagesSuccessResponse.toJson


toJsonString()

toJsonString(): string

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143

Converts the object to a JSON string.

Returns

string

Inherited from

GetUtilityPagesSuccessResponse.toJsonString

Edit this page on GitHub