Auth service

Hierarchy

  • AuthService

Constructors

Properties

httpClient: HttpClient
namespace: string = '/auth/v1'
sessionService: SessionService
tokenService: TokensService

Methods

  • Activate demo tariff

    Returns Promise<AxiosResponse<any, any>>

  • Activating demo tariff

    Returns Promise<AxiosResponse<any, any>>

  • Change self password

    Parameters

    • oldPassword: string

      old user password

    • newPassword: string

      new user password

    Returns Promise<AxiosResponse<any, any>>

  • Change password by user id

    Parameters

    • userId: number
    • password: string

      user password

    Returns Promise<AxiosResponse<IUser, any>>

  • Email existence check

    Parameters

    • email: string

      email

    Returns Promise<AxiosResponse<any, any>>

  • Portal domain availability check

    Parameters

    • domain: string

      portal name

    Returns Promise<AxiosResponse<IResponseWithMessage, any>>

  • Confirm user email

    Parameters

    • body: {
          email: string;
          token: string;
      }

      email and token

      • email: string
      • token: string

    Returns Promise<AxiosResponse<IResponseJwt, any>>

    new jwt tokens

  • Create payment intent for card payment in EU, COM, BR, PL

    Parameters

    Returns Promise<AxiosResponse<IIntent, any>>

  • Create portal

    Parameters

    Returns Promise<AxiosResponse<IPortal, any>>

  • Create subscription individual

    Parameters

    Returns Promise<AxiosResponse<IBill, any>>

    Object invoice entity

  • Create subscription legal

    Parameters

    Returns Promise<AxiosResponse<IBill, any>>

    Object invoice entity

  • Create using payment intent for card payment in EU, COM, BR, PL

    Parameters

    Returns Promise<AxiosResponse<any, any>>

  • Disable subscription renewal

    Returns Promise<AxiosResponse<boolean, any>>

  • Disable subscriptions renewal

    Parameters

    • auto_debit: boolean

    Returns Promise<AxiosResponse<boolean, any>>

  • Downgrade tariff

    Parameters

    Returns Promise<AxiosResponse<boolean, any>>

  • Send email with password link recover

    Parameters

    • email: string

      user email

    Returns Promise<AxiosResponse<any, any>>

  • Get coupon

    Parameters

    • couponCode: string

    Returns Promise<AxiosResponse<ICoupon, any>>

    Object coupon entity

  • Get invoices list

    Parameters

    • limit: number

      invoices limit

    Returns Promise<AxiosResponse<IInvoices, any>>

    Array with invoices entities

  • Get invoice pdf link

    Parameters

    • id: string

      invoice id

    Returns Promise<AxiosResponse<{
        download_url: string;
    }, any>>

    Download link

  • Get rates list

    Returns Promise<AxiosResponse<IRatesList, any>>

    Array rates entity

  • Get current subscription

    Returns Promise<AxiosResponse<ISubscription, any>>

    Object subscription entity

  • Get tariffs list

    Returns Promise<AxiosResponse<ITariff[], any>>

    Array tarifs entity

  • Login user by email and password

    Parameters

    Returns Promise<unknown>

    jwt tokens

  • Refresh token

    Parameters

    • refreshToken: string

      refresh token from login method

    Returns Promise<AxiosResponse<IResponseJwt, any>>

    new jwt tokens

  • Rest password

    Parameters

    Returns Promise<AxiosResponse<any, any>>

  • Create user by invitation

    Parameters

    Returns Promise<AxiosResponse<IResponseJwt, any>>

    jwt tokens

Generated using TypeDoc