Skip to content

Commit 25fe6e7

Browse files
authored
fix(contact-center): update sdk package from plugin-cc to contact-center (#529)
1 parent de26dc1 commit 25fe6e7

13 files changed

Lines changed: 447 additions & 444 deletions

File tree

packages/contact-center/cc-components/src/components/StationLogin/station-login.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {StationLoginSuccessResponse, LogoutSuccess} from '@webex/plugin-cc';
1+
import {StationLoginSuccessResponse, LogoutSuccess} from '@webex/contact-center';
22
import {IContactCenter, ILogger} from '@webex/cc-store';
33
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
44
//@ts-ignore To be fixed in SDK - https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6762
5-
import {Team} from '@webex/plugin-cc/dist/types/types';
5+
import {Team} from '@webex/contact-center/dist/types/types';
66
/**
77
* Interface representing the properties for the Station Login component.
88
*/

packages/contact-center/station-login/src/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {useEffect, useState} from 'react';
2-
import {LogoutSuccess, AgentProfileUpdate, LoginOption, StationLoginSuccessResponse} from '@webex/plugin-cc';
2+
import {LogoutSuccess, AgentProfileUpdate, LoginOption, StationLoginSuccessResponse} from '@webex/contact-center';
33
import {UseStationLoginProps} from './station-login/station-login.types';
44
import store, {CC_EVENTS} from '@webex/cc-store'; // we need to import as we are losing the context of this in store
55
import {LoginOptionsState} from '@webex/cc-components';

packages/contact-center/station-login/tests/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {renderHook, act, waitFor} from '@testing-library/react';
22
import {useStationLogin} from '../src/helper';
33
import store, {CC_EVENTS} from '@webex/cc-store';
44
import {mockCC} from '@webex/test-fixtures';
5-
import {LogoutSuccess, StationLoginSuccessResponse} from '@webex/plugin-cc';
5+
import {LogoutSuccess, StationLoginSuccessResponse} from '@webex/contact-center';
66

77
jest.mock('@webex/cc-store', () => {
88
let isAgentLoggedIn = false;

packages/contact-center/store/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test:styles": "eslint"
2323
},
2424
"dependencies": {
25-
"@webex/plugin-cc": "3.8.1-next.29",
25+
"@webex/contact-center": "3.8.1-next.34",
2626
"mobx": "6.13.5",
2727
"typescript": "5.6.3"
2828
},

packages/contact-center/store/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {makeAutoObservable, observable} from 'mobx';
2-
import Webex, {ITask} from '@webex/plugin-cc';
2+
import Webex, {ITask} from '@webex/contact-center';
33
import {
44
IContactCenter,
55
Profile,

packages/contact-center/store/src/store.types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
BuddyAgentsResponse,
99
StateChange,
1010
Logout,
11-
} from '@webex/plugin-cc';
12-
import {DestinationType} from 'node_modules/@webex/plugin-cc/dist/types/services/task/types';
11+
} from '@webex/contact-center';
12+
import {DestinationType} from 'node_modules/@webex/contact-center/dist/types/services/task/types';
1313
import {
1414
AgentProfileUpdate,
1515
LogContext,
@@ -18,7 +18,7 @@ import {
1818
StationLogoutResponse,
1919
Team,
2020
UpdateDeviceTypeResponse,
21-
} from 'node_modules/@webex/plugin-cc/dist/types/types';
21+
} from 'node_modules/@webex/contact-center/dist/types/types';
2222

2323
// To be fixed in SDK - https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6762
2424
interface IContactCenter {

packages/contact-center/store/tests/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {makeAutoObservable} from 'mobx';
2-
import Webex from '@webex/plugin-cc';
2+
import Webex from '@webex/contact-center';
33
import store from '../src/store'; // Adjust the import path as necessary
44
import {IStore} from '../src/store.types';
55
import {mockProfile} from '@webex/test-fixtures';
@@ -13,7 +13,7 @@ jest.mock('mobx', () => ({
1313
observable: {ref: jest.fn()},
1414
}));
1515

16-
jest.mock('@webex/plugin-cc', () => ({
16+
jest.mock('@webex/contact-center', () => ({
1717
init: jest.fn(() => ({
1818
once: jest.fn((event, callback) => {
1919
if (event === 'ready' && mockShouldCallback) {

packages/contact-center/store/tests/storeEventsWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ console.log = jest.fn();
2424

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

3030
jest.mock('../src/store', () => ({

packages/contact-center/task/src/Utils/task-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ITask} from '@webex/plugin-cc';
1+
import {ITask} from '@webex/contact-center';
22

33
/**
44
* This function determines the visibility of various controls based on the task's data.

packages/contact-center/task/src/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {useEffect, useCallback, useState, useRef, useMemo} from 'react';
2-
import {ITask} from '@webex/plugin-cc';
2+
import {ITask} from '@webex/contact-center';
33
import {useCallControlProps, UseTaskListProps, UseTaskProps, Participant, useOutdialCallProps} from './task.types';
44
import store, {TASK_EVENTS, BuddyDetails, DestinationType, ContactServiceQueue} from '@webex/cc-store';
55
import {findHoldTimestamp, getControlsVisibility} from './Utils/task-util';

0 commit comments

Comments
 (0)