Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility Class containing methods related to handling of generic logic

Hierarchy

  • CXoneDigitalUtil

Index

Constructors

Properties

Accessors

Methods

Constructors

  • constructor to initialize various required instances for the class

    example
    new Class() instance
    

    Returns CXoneDigitalUtil

Properties

logger: CcfLogger = ...
singleton: CXoneDigitalUtil

Accessors

  • Method to create singleton object of the class

    @example
    const cxoneDigitalUtil = CXoneDigitalUtil.instance();

    Returns CXoneDigitalUtil

Methods

  • getDigitalRecipients(recipients: AssertsShape<{ idOnExternalPlatform: RequiredStringSchema<string, AnyObject>; isPrimary: RequiredBooleanSchema<boolean, AnyObject>; isPrivate: RequiredBooleanSchema<boolean, AnyObject>; name: RequiredStringSchema<string, AnyObject> }>[]): { bccRecipients: string[]; ccRecipients: string[]; toRecipients: string[] }
  • Method to get Recipients data for email contact

    Parameters

    • recipients: AssertsShape<{ idOnExternalPlatform: RequiredStringSchema<string, AnyObject>; isPrimary: RequiredBooleanSchema<boolean, AnyObject>; isPrivate: RequiredBooleanSchema<boolean, AnyObject>; name: RequiredStringSchema<string, AnyObject> }>[]

    Returns { bccRecipients: string[]; ccRecipients: string[]; toRecipients: string[] }

    • returns recipient array filtered based on To,CC,BCC addresses
    @example
    getDigitalRecipients()
    • bccRecipients: string[]
    • ccRecipients: string[]
    • toRecipients: string[]

Generated using TypeDoc