Padloc Logo Docs & Resources

Module: item

Enumerations

Classes

Interfaces

Type Aliases

Tag

Ƭ Tag: string

A tag that can be assigned to a VaultItem

Defined in

core/src/item.ts:10


VaultItemID

Ƭ VaultItemID: string

Unique identifier for VaultItems

Defined in

core/src/item.ts:13

Variables

FIELD_DEFS

Const FIELD_DEFS: { [t in FieldType]: FieldDef }

Available field types and respective meta data (order matters for pattern matching)

Defined in

core/src/item.ts:56


ITEM_TEMPLATES

Const ITEM_TEMPLATES: ItemTemplate[]

Defined in

core/src/item.ts:385

Functions

createVaultItem

createVaultItem(__namedParameters): Promise<VaultItem>

Creates a new vault item

Parameters

Name Type
__namedParameters Partial<VaultItem>

Returns

Promise<VaultItem>

Defined in

core/src/item.ts:323


guessFieldType

guessFieldType(__namedParameters): FieldType

Guesses the most appropriate field type based on field name and value

Parameters

Name Type
__namedParameters Object
__namedParameters.masked? boolean
__namedParameters.name string
__namedParameters.value? string

Returns

FieldType

Defined in

core/src/item.ts:339


normalizeTag

normalizeTag(tag): Tag

Normalizes a tag value by removing invalid characters

Parameters

Name Type
tag string

Returns

Tag

Defined in

core/src/item.ts:261