Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle digital contact related API calls

Hierarchy

  • DigitalContactService

Index

Constructors

Properties

APPROVE_DRAFT_MESSAGE: string = '/dfo/3.0/contacts/{contactId}/message-drafts/{messageDraftId}/approval'
CREATE_DRAFT_MESSAGE: string = '/dfo/3.0/contacts/{contactId}/message-drafts'
DELETE_DRAFT_MESSAGE: string = '/dfo/3.0/contacts/{contactId}/message-drafts/{messageDraftId}'
DELETE_MESSAGE_BY_ID: string = '/dfo/3.0/messages/{messageId}/delete'
DIGITAL_DRAFT_CONTACT: string = '/dfo/3.0/contacts/draft'
DIGITAL_QR_REPLACE_VARIABLES: string = '/dfo/3.0/quick-responses/{quickResponseId}/replace-variables'
DIGITAL_QUICK_REPLIES_OUTBOUND: string = '/dfo/3.0/quick-responses'
DIGITAL_RECIPIENTS_VALIDATION: string = '/dfo/3.0/channels/{channelId}/recipients/validation'
FOCUS_DEFOCUS_CONTACT: string = '/dfo/3.0/contacts/{contactId}/focus'
HIDE_MESSAGE_BY_ID: string = '/dfo/3.0/messages/{messageId}/hide'
LOAD_RELATED_CASES: string = '/dfo/3.0/contacts/{contactId}/detail/pagination'
QUICK_RESPONSE_REPLACE_VARIABLES: string = '/rich-message-settings/1.0/quick-responses/{quickResponseId}/replace-variables'
REJECT_DRAFT_MESSAGE: string = '/dfo/3.0/contacts/{contactId}/message-drafts/{messageDraftId}/refusal'
RELATED_MESSAGES: string = '/dfo/3.0/contacts/{contactId}/related-messages'
UPDATE_DRAFT_MESSAGE: string = '/dfo/3.0/contacts/{contactId}/message-drafts/{messageDraftId}'
adminService: AdminService
auth: CXoneAuth
isAbortDelayDigitalApiEnabled: boolean = ...
logger: CcfLogger = ...
requestManager: RequestManager = ...
urlUtilsService: UrlUtilsService = ...
utilService: HttpUtilService = ...

Methods

  • approveDraftMessage(contactId: string, messageDraftId: string): Promise<HttpResponse>
  • changeCustomerContactStatus(caseId: string, status: string): Promise<HttpResponse>
  • deFocusContact(contactIdToDefocus: string): Promise<HttpResponse>
  • deleteDraftMessage(contactId: string, messageDraftId: string): Promise<HttpResponse>
  • getCaseHistory(contactId: string, pageNumber: number, pageSize: number): Promise<unknown>
  • Method to get history data for a case interaction

    example
    getCaseHistory('12345',1,10)
    

    Parameters

    • contactId: string

      Contact Id of the digital contact

    • pageNumber: number

      page number

    • pageSize: number

      page Size

    Returns Promise<unknown>

    • returns the history object with events
  • getDigitalContactDetails(contactId: string): Promise<HttpResponse>
  • getLoggedInUserId(): string
  • getQuickReplies(contactId: string, page?: number, size?: string | number, search?: string): Promise<CXoneDigitalQuickReply[]>
  • Method to get quick replies data

    example
    getQuickReplies('234567', 1, 10, '')
    

    Parameters

    • contactId: string

      Contact Id of the digital contact

    • page: number = 1

      start index for pagination

    • size: string | number = 1000

      total records to be fetched

    • search: string = ''

      This is content or title to be searched

    Returns Promise<CXoneDigitalQuickReply[]>

    • return the list of Quick replies
  • getQuickRepliesForOutboundContact(page?: number, channelId?: string, size?: string | number, search?: string): Promise<CXoneDigitalOutboundQuickReply>
  • getRelatedMessages(contactId: string): Promise<HttpResponse>
  • getTraceIdFromResponseHeader(response: HttpResponse): string
  • hideUnhideMessage(messageData: { isHidden: boolean; msgId: string }): Promise<HttpResponse>
  • loadPreviousNextCases(contactId: string): Promise<HttpResponse>
  • refuseDraftMessage(contactId: string, messageDraftId: string, reason?: string): Promise<HttpResponse>
  • subscribeToEventHub(relationObjectId: string, subscriptionType?: string): Promise<HttpResponse>
  • unassignCustomerContact(contactId: string): Promise<HttpResponse>
  • updateMessageReadStatus(messageId: string): Promise<unknown>

Generated using TypeDoc