Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides a default set of fields values that can be used to create a user. This is handy for software development purposes.

example

const options: DefaultUserFieldsOptions = { templateUser: org.getUsername() || '' }; const fields = (await DefaultUserFields.create(options)).getFields();

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

getFields

Protected init

  • init(): Promise<void>
  • Returns Promise<void>

Static create

  • create<P, T>(this: object, options: P): Promise<T>
  • Asynchronously constructs and initializes a new instance of a concrete subclass with the provided options.

    Type parameters

    • P

    • T: AsyncCreatable<P>

    Parameters

    • this: object
    • options: P

      An options object providing initialization params to the async constructor.

    Returns Promise<T>