Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultUserFields

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

const connection: Connection = await Connection.create({
  authInfo: await AuthInfo.create({ username: 'user@example.com' })
});
const org: Org = await Org.create({ connection });
const options: DefaultUserFields.Options = {
  templateUser: org.getUsername()
};
const fields = (await DefaultUserFields.create(options)).getFields();

Hierarchy

  • AsyncCreatable<Options>
    • DefaultUserFields

Index

Interfaces

Methods

Methods

getFields

Protected init

  • init(): Promise<void>
  • Initialize asynchronous components.

    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>