Hierarchy

  • Customer

Constructors

Methods

  • Get Customer Custom fields (as object)

    Returns CustomFieldsObject

  • Get Customer Custom fields (as array of CustomField)

    Returns Id<Partial<Pick<{
        ident: string;
        value: null | string;
    }, never>> & RequiredProps<{
        ident: string;
        value: null | string;
    }>>[]

  • Returns undefined | string

  • Send Customer Custom fields

    • call this only after the first message or recover event

    Returns Promise<ChatEventData>

    Promise

  • Set Customer Custom field

    Parameters

    • name: string

      Custom field name

    • value: null | string

      Custom field value

    Returns undefined | Promise<ChatEventData>

  • Set Customer Custom fields

    Parameters

    • customFields: CustomFieldsObject

      custom fields object

    Returns undefined | Promise<ChatEventData>

    Example

    setCustomFields({ identName: 'value', identName2: 'value2' })
    
  • Set Customer Custom fields from an array of custom fields

    Parameters

    • customFields: Id<Partial<Pick<{
          ident: string;
          value: null | string;
      }, never>> & RequiredProps<{
          ident: string;
          value: null | string;
      }>>[]

      custom fields array

    Returns void

  • Parameters

    • exists: boolean

    Returns void

  • Parameters

    • Optional image: string

    Returns void

  • Parameters

    • Optional name: string

    Returns void

  • Returns undefined | string

  • Returns undefined | string

  • Parameters

    • Optional image: string

    Returns void

  • Parameters

    • Optional name: string

    Returns void

Generated using TypeDoc