Class ProjectService

Hierarchy

Index

Constructors

constructor

Properties

currentProject$

currentProject$: ObjectSubject<CurrentProject, "key" | "metadata"> = new ObjectSubject<CurrentProject>(null)

Accessors

currentProject

headers

  • get headers(): {}
  • Returns {}

    • [key: string]: any

Methods

callCurrentProject

  • callCurrentProject<T, P>(payload: P): Promise<T>
  • Type parameters

    • T

    • P

    Parameters

    • payload: P

    Returns Promise<T>

destroy

  • destroy(): void

getProject

  • getProject(key: string): Promise<Project>
  • Parameters

    • key: string

    Returns Promise<Project>

getProjects

  • getProjects(page: number): Promise<Projects>
  • Parameters

    • page: number

    Returns Promise<Projects>

init

switchCurrentProject

updateProject

  • updateProject(key: string, privateKey: string, endpoint: string): Promise<Project>
  • Parameters

    • key: string
    • privateKey: string
    • endpoint: string

    Returns Promise<Project>

withCustomProjectMetadata

  • withCustomProjectMetadata<T>(customMetadata: string, inner: () => Promise<T>): Promise<T>
  • Type parameters

    • T

    Parameters

    • customMetadata: string
    • inner: () => Promise<T>
        • (): Promise<T>
        • Returns Promise<T>

    Returns Promise<T>