Skip to content

Commit

Permalink
feat: TaskKind enum [WTEL-4465]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Apr 25, 2024
1 parent 85c6b67 commit 031de5b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
/**
* @name TimelinePinType
* @description Enumerates (ONLY!) the types of timeline pins.
*/

const TimelinePinType = Object.freeze({
DAY: 'DAY',
// close expanded
CLOSE: 'CLOSE',

// day pin
DAY: 'DAY',

// reusable icon pins for points inside tasks
USER: 'CONTACT',
AGENT: 'AGENT',
BOT: 'BOT',

// chat-related pins
CHAT: 'CHAT',
CHAT_GATEWAY: 'CHAT_GATEWAY',
CHAT_TRANSFER: 'CHAT_TRANSFER',
CHAT_END: 'CHAT_END',


// call-related pins
CALL_INBOUND: 'CALL_INBOUND',
CALL_INBOUND_ON_IVR: 'CALL_INBOUND_ON_IVR',
CALL_OUTBOUND: 'CALL_OUTBOUND',
CALL_MISSED: 'CALL_MISSED',
CALL_MISSED_ON_QUEUE: 'CALL_MISSED_ON_QUEUE',

CALL_TRANSFER: 'CALL_TRANSFER',
CHAT_INVITE: 'CHAT_INVITE',

// TODO ...
});

export default TimelinePinType;
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* @name TimelineTaskKind
* @description Enumerates kind of task, which is sub-category of task type, like chat, call, email, etc.
*/

const TimelineTaskKind = Object.freeze({
CALL_INBOUND: 'CALL_INBOUND',
CALL_OUTBOUND: 'CALL_OUTBOUND',
CALL_MISSED: 'CALL_MISSED',

CHAT_INBOUND: 'CHAT_INBOUND',
// CHAT_OUTBOUND: 'CHAT_OUTBOUND',
CHAT_ENDED: 'CHAT_ENDED',
});

export default TimelineTaskKind;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<article class="chat-point-row-dropdown">
<section class="chat-point-row-dropdown">
dropdown content goes here!
</article>
</section>
</template>

<script setup>
Expand Down

0 comments on commit 031de5b

Please sign in to comment.