Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {StationLoginSuccessResponse, LogoutSuccess} from '@webex/plugin-cc';
import {StationLoginSuccessResponse, LogoutSuccess} from '@webex/contact-center';
import {IContactCenter, ILogger} from '@webex/cc-store';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore To be fixed in SDK - https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6762
import {Team} from '@webex/plugin-cc/dist/types/types';
import {Team} from '@webex/contact-center/dist/types/types';
/**
* Interface representing the properties for the Station Login component.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/station-login/src/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useEffect, useState} from 'react';
import {LogoutSuccess, AgentProfileUpdate, LoginOption, StationLoginSuccessResponse} from '@webex/plugin-cc';
import {LogoutSuccess, AgentProfileUpdate, LoginOption, StationLoginSuccessResponse} from '@webex/contact-center';
import {UseStationLoginProps} from './station-login/station-login.types';
import store, {CC_EVENTS} from '@webex/cc-store'; // we need to import as we are losing the context of this in store
import {LoginOptionsState} from '@webex/cc-components';
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/station-login/tests/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {renderHook, act, waitFor} from '@testing-library/react';
import {useStationLogin} from '../src/helper';
import store, {CC_EVENTS} from '@webex/cc-store';
import {mockCC} from '@webex/test-fixtures';
import {LogoutSuccess, StationLoginSuccessResponse} from '@webex/plugin-cc';
import {LogoutSuccess, StationLoginSuccessResponse} from '@webex/contact-center';

jest.mock('@webex/cc-store', () => {
let isAgentLoggedIn = false;
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test:styles": "eslint"
},
"dependencies": {
"@webex/plugin-cc": "3.8.1-next.29",
"@webex/contact-center": "3.8.1-next.34",
"mobx": "6.13.5",
"typescript": "5.6.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/store/src/store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {makeAutoObservable, observable} from 'mobx';
import Webex, {ITask} from '@webex/plugin-cc';
import Webex, {ITask} from '@webex/contact-center';
import {
IContactCenter,
Profile,
Expand Down
6 changes: 3 additions & 3 deletions packages/contact-center/store/src/store.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
BuddyAgentsResponse,
StateChange,
Logout,
} from '@webex/plugin-cc';
import {DestinationType} from 'node_modules/@webex/plugin-cc/dist/types/services/task/types';
} from '@webex/contact-center';
import {DestinationType} from 'node_modules/@webex/contact-center/dist/types/services/task/types';
import {
AgentProfileUpdate,
LogContext,
Expand All @@ -18,7 +18,7 @@ import {
StationLogoutResponse,
Team,
UpdateDeviceTypeResponse,
} from 'node_modules/@webex/plugin-cc/dist/types/types';
} from 'node_modules/@webex/contact-center/dist/types/types';

// To be fixed in SDK - https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6762
interface IContactCenter {
Expand Down
4 changes: 2 additions & 2 deletions packages/contact-center/store/tests/store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {makeAutoObservable} from 'mobx';
import Webex from '@webex/plugin-cc';
import Webex from '@webex/contact-center';
import store from '../src/store'; // Adjust the import path as necessary
import {IStore} from '../src/store.types';
import {mockProfile} from '@webex/test-fixtures';
Expand All @@ -13,7 +13,7 @@ jest.mock('mobx', () => ({
observable: {ref: jest.fn()},
}));

jest.mock('@webex/plugin-cc', () => ({
jest.mock('@webex/contact-center', () => ({
init: jest.fn(() => ({
once: jest.fn((event, callback) => {
if (event === 'ready' && mockShouldCallback) {
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/store/tests/storeEventsWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ console.log = jest.fn();

import {CC_EVENTS, TASK_EVENTS} from '../src/store.types';
import storeWrapper from '../src/storeEventsWrapper';
import {ITask} from '@webex/plugin-cc';
import {ITask} from '@webex/contact-center';
import {mockCC, mockTask as mockTaskFixture} from '@webex/test-fixtures';

jest.mock('../src/store', () => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/task/src/Utils/task-util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ITask} from '@webex/plugin-cc';
import {ITask} from '@webex/contact-center';

/**
* This function determines the visibility of various controls based on the task's data.
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/task/src/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useEffect, useCallback, useState, useRef, useMemo} from 'react';
import {ITask} from '@webex/plugin-cc';
import {ITask} from '@webex/contact-center';
import {useCallControlProps, UseTaskListProps, UseTaskProps, Participant, useOutdialCallProps} from './task.types';
import store, {TASK_EVENTS, BuddyDetails, DestinationType, ContactServiceQueue} from '@webex/cc-store';
import {findHoldTimestamp, getControlsVisibility} from './Utils/task-util';
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-center/test-fixtures/src/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ITask, Profile, TaskData, TaskResponse} from '@webex/plugin-cc';
import {ITask, Profile, TaskData, TaskResponse} from '@webex/contact-center';
import {IContactCenter} from '@webex/cc-store';

const mockProfile: Profile = {
Expand Down
Loading
Loading