Constructors
constructor
Properties
api
Methods
addToOrganization
addToOrganization( organization: string, uids: string[], type?: MembersType,): Promise<ApiResponse<unknown, unknown>> Parameters
- organization: string
- uids: string[]
- type: MembersType = 'users'
Returns Promise<ApiResponse<unknown, unknown>>
change
change(id: string): Promise<ApiResponse<unknown, unknown>> Returns Promise<ApiResponse<unknown, unknown>>
changeOrganizationDetails
Returns Promise<ApiResponse<void, void>>
changeOrganizationProducts
changeOrganizationProducts( organization: string, data: { products: Record<string, ProductTier> },): Promise<ApiResponse<{ checkoutUrl: string }, { checkoutUrl: string }>> Parameters
- organization: string
- data: { products: Record<string, ProductTier> }
Returns Promise<ApiResponse<{ checkoutUrl: string }, { checkoutUrl: string }>>
createOrganization
createOrganizationWithProducts
createPortal
get
getAdminOrganizations
getOrganizationAdmins
getOrganizationAdmins(organizationId: string): Promise<User[]> Returns Promise<User[]>
getOrganizationDetails
getOrganizationMembers
getOrganizationMembers(organizationId: string): Promise<User[]> Returns Promise<User[]>
getOrganizationProducts
getProducts
Returns Promise<ApiResponse<Record<string, Product>, Record<string, Product>>>
removeFromOrganization
removeFromOrganization( organization: string, type: MembersType, indexes: number[],): Promise<ApiResponse<unknown, unknown>> Returns Promise<ApiResponse<unknown, unknown>>