Skip to content

AltTimeChecks defines alternative time-based checks for approval denial. If the transfer time falls within any of the specified offline hours or days, the…

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1535

AltTimeChecks defines alternative time-based checks for approval denial. If the transfer time falls within any of the specified offline hours or days, the approval is denied. Uses UTC timezone for neutral timezone approach.

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

new AltTimeChecks<T>(msg): AltTimeChecks<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1544

Parameters

msg

iAltTimeChecks<T>

Returns

AltTimeChecks<T>

Overrides

BaseNumberTypeClass.constructor

Properties

offlineDays?

optional offlineDays?: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1537

Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied.

Implementation of

iAltTimeChecks.offlineDays


offlineDaysOfMonth?

optional offlineDaysOfMonth?: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1539

Days of month (1-31) when transfers should be denied.

Implementation of

iAltTimeChecks.offlineDaysOfMonth


offlineHours?

optional offlineHours?: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1536

Hours (0-23) when transfers should be denied.

Implementation of

iAltTimeChecks.offlineHours


offlineMonths?

optional offlineMonths?: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1538

Months (1-12, where 1=January, 12=December) when transfers should be denied.

Implementation of

iAltTimeChecks.offlineMonths


offlineWeeksOfYear?

optional offlineWeeksOfYear?: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1540

Weeks of year (1-52) when transfers should be denied. Uses ISO 8601 week numbering.

Implementation of

iAltTimeChecks.offlineWeeksOfYear


timezoneOffsetMinutes?

optional timezoneOffsetMinutes?: T

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1541

Timezone offset magnitude in minutes from UTC. Default 0 = UTC.

Implementation of

iAltTimeChecks.timezoneOffsetMinutes


timezoneOffsetNegative?

optional timezoneOffsetNegative?: boolean

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1542

If true, the timezone offset is subtracted (west of UTC).

Implementation of

iAltTimeChecks.timezoneOffsetNegative

Methods

clone()

clone(): AltTimeChecks

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

Deep copies the object and returns a new instance.

Returns

AltTimeChecks

Inherited from

BaseNumberTypeClass.clone


convert()

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

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1559

Converts the object to a different NumberType equivalent.

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

AltTimeChecks<U>

Overrides

BaseNumberTypeClass.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

BaseNumberTypeClass.equals


getNumberFieldNames()

getNumberFieldNames(): string[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1555

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

Returns

string[]

Overrides

BaseNumberTypeClass.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

BaseNumberTypeClass.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

BaseNumberTypeClass.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

BaseNumberTypeClass.toJsonString


toProto()

toProto(): AltTimeChecks

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1571

Returns

AltTimeChecks


fromJson()

static fromJson<U>(jsonValue, convertFunction, options?): AltTimeChecks<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1583

Type Parameters

U

U extends NumberType

Parameters

jsonValue

JsonValue

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

AltTimeChecks<U>


fromJsonString()

static fromJsonString<U>(jsonString, convertFunction, options?): AltTimeChecks<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1591

Type Parameters

U

U extends NumberType

Parameters

jsonString

string

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

AltTimeChecks<U>


fromProto()

static fromProto<U>(item, convertFunction): AltTimeChecks<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1599

Type Parameters

U

U extends NumberType

Parameters

item

AltTimeChecks

convertFunction

(item) => U

Returns

AltTimeChecks<U>

Edit this page on GitHub