Vulos Documentation
  • Identity
    • Welcome to the Vulos Identity Documentation!
    • Quick Start
    • Organizations
    • Scopes and Claims
  • Reference
    • Identity JavaScript SDK
      • The Base Package
        • KYC
          • KycStatus
          • KycInstance
          • KycDetails
          • KycApi
        • Profile
          • UserReference
          • ProfileApi
        • Cache
        • Authentication
          • Application
          • BaseAuth
          • User
          • UserInfo
          • BaseApi
        • Organizations
          • Organization
          • OrganizationMembership
            • OrganizationMembershipWithMetadata
          • OrganizationRole
          • OrganizationApi
      • The Backend Auth Package
        • CodeVerifier
        • BackendAuth
      • The Frontend Auth Package
        • IFrameRefresh
        • StateVerifier
        • FrontendAuth
    • Organization API
      • Organizations
      • Memberships
        • Roles
    • Profile API
    • KYC API
Powered by GitBook
On this page
  • Members
  • memberships : OrganizationMembership[]
  • api : OrganizationApi
  • created : Date
  • id : number
  • name : string
  • website : string
  • address : string
  • uniqueId : string
  • taxNumber : string
  • city : string
  • state : string
  • verified : boolean
  • zipCode : string
  • counry : string
  • Methods
  • constructor(api, organization)
  • async update(details)
  • async invite(email)
  • async remove()
  1. Reference
  2. Identity JavaScript SDK
  3. The Base Package
  4. Organizations

Organization

PreviousOrganizationsNextOrganizationMembership

Last updated 3 years ago

Members

memberships : []

All the memberships that this organization has.

api :

The OrganizationAPI that this object was created with.

created : Date

The date that the organization was created at.

id : number

The ID of this organization.

name : string

The name of this organization.

website : string

The website URL of this organization.

address : string

The address of this organization.

uniqueId : string

The unique ID of this organization.

taxNumber : string

The tax number of this organization.

city : string

The city where this organization is based.

state : string

The state where this organization is based.

verified : boolean

The verification status of this organization.

zipCode : string

The zip code where this organization is located.

counry : string

The country where this organization is based.

Methods

constructor(api, organization)

const details = await organizationApi.organizationInfo(organizationId)
const organization = new Organization(organizationApi, details)

async update(details)

Update this organization's details.

The result is a boolean that indicates success.

if (await organization.update({name: 'New Name'})) {
    // the organization's name was updated successfully 
}

async invite(email)

Invite a user to this organization by email.

The result is a boolean that indicates success.

if (await organization.invite(email)) {
    // the user was invited successfully
}

async remove()

Delete this organization.

The result is a boolean that indicates success.

if (await organization.remove()) {
    // the organization was deleted successfully
}

Create a new Organization object using the .

api must be an instance of ;

organization must implement the interface.

The details object must implement the interface .

OrganizationMembership
OrganizationApi
Organization API
OrganizationApi
OrganizationInfo
OrganizationUpdateDetails