Skip to content

Commit ebdf4b0

Browse files
committed
fix(store): upgraded webex and renamed IAgentProfile
1 parent 6a4b2e5 commit ebdf4b0

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

packages/contact-center/store/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
"test:unit": "jest"
1919
},
2020
"dependencies": {
21-
"@webex/plugin-cc": "3.5.0-wxcc.2",
2221
"mobx": "6.13.5",
2322
"react": "18.3.1",
2423
"react-dom": "18.3.1",
2524
"typescript": "5.6.3",
26-
"webex": "3.6.0-wxcc.3"
25+
"webex": "3.6.0-wxcc.5"
2726
},
2827
"devDependencies": {
2928
"@babel/core": "7.25.2",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Webex from 'webex';
33
import {
44
AgentLogin,
55
IContactCenter,
6-
IAgentProfile,
6+
Profile,
77
Team,
88
WithWebex,
99
InitParams,
@@ -19,10 +19,10 @@ class Store implements IStore {
1919
makeAutoObservable(this, {cc: observable.ref});
2020
}
2121

22-
registerCC(webex: WithWebex['webex']): Promise<IAgentProfile> {
22+
registerCC(webex: WithWebex['webex']): Promise<Profile> {
2323
this.cc = webex.cc;
2424
console.trace(this.cc.register);
25-
return this.cc.register().then((response: IAgentProfile) => {
25+
return this.cc.register().then((response: Profile) => {
2626
this.teams = response.teams;
2727
this.loginOptions = response.loginVoiceOptions;
2828
}).catch((error) => {
@@ -43,7 +43,7 @@ class Store implements IStore {
4343
});
4444

4545
webex.once('ready', () => {
46-
this.registerCC(webex).then((response: IAgentProfile) => {
46+
this.registerCC(webex).then(() => {
4747
resolve();
4848
})
4949
.catch((error) => {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {AgentLogin, IContactCenter, IAgentProfile, Team} from '@webex/plugin-cc';
1+
import {AgentLogin, IContactCenter, Profile, Team} from '@webex/plugin-cc';
22

33
interface WithWebex {
44
webex: { cc: IContactCenter };
@@ -16,13 +16,13 @@ interface IStore {
1616
loginOptions: string[];
1717
cc: IContactCenter;
1818

19-
registerCC(webex: WithWebex['webex']): Promise<IAgentProfile>;
19+
registerCC(webex: WithWebex['webex']): Promise<Profile>;
2020
init(params: InitParams): Promise<void>;
2121
}
2222

2323
export type {
2424
IContactCenter,
25-
IAgentProfile,
25+
Profile,
2626
Team,
2727
AgentLogin,
2828
WithWebex,

yarn.lock

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5426,7 +5426,6 @@ __metadata:
54265426
"@testing-library/react": "npm:16.0.1"
54275427
"@types/jest": "npm:29.5.14"
54285428
"@types/react-test-renderer": "npm:18"
5429-
"@webex/plugin-cc": "npm:3.5.0-wxcc.2"
54305429
babel-jest: "npm:29.7.0"
54315430
babel-loader: "npm:9.2.1"
54325431
file-loader: "npm:6.2.0"
@@ -5437,7 +5436,7 @@ __metadata:
54375436
react-dom: "npm:18.3.1"
54385437
ts-loader: "npm:9.5.1"
54395438
typescript: "npm:5.6.3"
5440-
webex: "npm:3.6.0-wxcc.3"
5439+
webex: "npm:3.6.0-wxcc.5"
54415440
webpack: "npm:5.94.0"
54425441
webpack-cli: "npm:5.1.4"
54435442
webpack-merge: "npm:6.0.1"
@@ -6344,17 +6343,17 @@ __metadata:
63446343
languageName: node
63456344
linkType: hard
63466345

6347-
"@webex/plugin-cc@npm:3.5.0-wxcc.2":
6348-
version: 3.5.0-wxcc.2
6349-
resolution: "@webex/plugin-cc@npm:3.5.0-wxcc.2"
6346+
"@webex/plugin-cc@npm:3.5.0-wxcc.4":
6347+
version: 3.5.0-wxcc.4
6348+
resolution: "@webex/plugin-cc@npm:3.5.0-wxcc.4"
63506349
dependencies:
63516350
"@types/platform": "npm:1.3.4"
63526351
"@webex/calling": "npm:3.6.0-wxcc.1"
63536352
"@webex/internal-plugin-mercury": "npm:3.5.0-wxcc.1"
63546353
"@webex/webex-core": "npm:3.5.0-wxcc.1"
63556354
buffer: "npm:6.0.3"
63566355
jest-html-reporters: "npm:3.0.11"
6357-
checksum: 10c0/c2b9454d2cfec2af2bff3ea9f7c8dbda7256244a7d0ca6e548b4d004e3c0d8dfcc9e893afeb5207781417af647ca614cd242eb75259745a57d271f4d1ab78257
6356+
checksum: 10c0/bc4f04c3c827cf0edb9b4d5fc435fa5e7dee77d8e2b42d31cc86d17cfd35df3601584309feb3f6515916989bbc2304530c69c257dd4c84b05495a272bf92efbb
63586357
languageName: node
63596358
linkType: hard
63606359

@@ -25872,9 +25871,9 @@ __metadata:
2587225871
languageName: node
2587325872
linkType: hard
2587425873

25875-
"webex@npm:3.6.0-wxcc.3":
25876-
version: 3.6.0-wxcc.3
25877-
resolution: "webex@npm:3.6.0-wxcc.3"
25874+
"webex@npm:3.6.0-wxcc.5":
25875+
version: 3.6.0-wxcc.5
25876+
resolution: "webex@npm:3.6.0-wxcc.5"
2587825877
dependencies:
2587925878
"@babel/polyfill": "npm:^7.12.1"
2588025879
"@babel/runtime-corejs2": "npm:^7.14.8"
@@ -25888,7 +25887,7 @@ __metadata:
2588825887
"@webex/internal-plugin-voicea": "npm:3.5.0-wxcc.1"
2588925888
"@webex/plugin-attachment-actions": "npm:3.5.0-wxcc.1"
2589025889
"@webex/plugin-authorization": "npm:3.5.0-wxcc.1"
25891-
"@webex/plugin-cc": "npm:3.5.0-wxcc.2"
25890+
"@webex/plugin-cc": "npm:3.5.0-wxcc.4"
2589225891
"@webex/plugin-device-manager": "npm:3.5.0-wxcc.1"
2589325892
"@webex/plugin-logger": "npm:3.5.0-wxcc.1"
2589425893
"@webex/plugin-meetings": "npm:3.5.0-wxcc.1"
@@ -25902,7 +25901,7 @@ __metadata:
2590225901
"@webex/storage-adapter-local-storage": "npm:3.5.0-wxcc.1"
2590325902
"@webex/webex-core": "npm:3.5.0-wxcc.1"
2590425903
lodash: "npm:^4.17.21"
25905-
checksum: 10c0/b37a3cb4834647b1589458fa9320dcab7a2d64432aa8132cc4541a90c8916f2f157804a4508b0fb29f976ad12fed1dd7ab2ca6f8fab4076f78889b4469164b26
25904+
checksum: 10c0/2268058f35abae6cccdfb994dd04a041b8c646bad8dc75b2eb56f00ed2c39019be2b506f1fe4cbcbe0c9d308c0483e7f157e7280f840b2e6c5155f4c9f27afe3
2590625905
languageName: node
2590725906
linkType: hard
2590825907

0 commit comments

Comments
 (0)