Class PluginDoc<T>

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

_docId: string

A unique stringified document ID

_id?: string

A unique document ID (Mongo DB ObjectID)

approvedUsers: string[]
createdAt: T
createdBy: string

The BitBadges address who created the plugin doc

deletedAt?: T
inviteCode?: string

Invite code for the plugin

lastUpdated: T
metadata: {
    createdBy: string;
    description: string;
    documentation?: string;
    image: string;
    name: string;
    parentApp?: string;
    sourceCode?: string;
    supportLink?: string;
}
pluginId: string

The unique plugin ID

pluginSecret?: string

The secret of the plugin

reviewCompleted: boolean

Review process completed

toPublish: boolean

To publish to directory?

versions: PluginVersionConfig<T>[]

Array of version-controlled plugin configurations

Methods

  • 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

    Parameters

    • other: undefined | null | CustomType<U>
    • OptionalnormalizeNumberTypes: boolean

    Returns boolean