Class PluginDoc<T>

Type Parameters

Hierarchy (View Summary, Expand)

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
locale?: string

Locale that is supported by the plugin. By default, we assume 'en' is supported if not specified.

managedBy: string

The BitBadges address of the user who is currently managing this

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. Used to verify BitBadges as origin of request.

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

MMNEPVFCICPMFPCPTTAAATR