Marketing service

Hierarchy

  • MarketingService

Constructors

Properties

httpClient: HttpClient
namespace: string = '/marketing/v1/templates'

Methods

  • Create email template

    Parameters

    Returns Promise<AxiosResponse<IEmailTemplate, any>>

    Email template entity

  • Delete email template

    Parameters

    • id: number

      email template id

    Returns Promise<AxiosResponse<any, any>>

  • Get email template by id

    Parameters

    • id: number

      email template id

    Returns Promise<AxiosResponse<IEmailTemplate, any>>

    Email template entity

  • Mass deletion email templates

    Parameters

    • id: number[]

      email template ids array

    • all: boolean

      all email templates flag

    • params: Partial<IEmailTemplateFilter>

      email templates list filter params

    Returns Promise<AxiosResponse<any, any>>

  • Mass editing email templates

    Parameters

    • id: number[]

      email template ids array

    • payload: Partial<IEmailTemplate>

      email template payload

    • all: boolean

      all email templates flag

    • params: Partial<IEmailTemplateFilter>

      email templates list filter params

    Returns Promise<AxiosResponse<any, any>>

  • Update email template

    Parameters

    • id: number

      email template id

    • data: Partial<IEmailTemplate>

      email template payload

    Returns Promise<AxiosResponse<IEmailTemplate, any>>

    Email template entity

Generated using TypeDoc