@webex/cc-store 1.28.0-ccwidgets.8 → 1.28.0-ccwidgets.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
1
- import { IContactCenter, Team, WithWebex, IdleCode, InitParams, IStore } from './store.types';
1
+ import { IContactCenter, Team, WithWebex, IdleCode, InitParams, IStore, ILogger } from './store.types';
2
2
  declare class Store implements IStore {
3
3
  private static instance;
4
4
  teams: Team[];
5
5
  loginOptions: string[];
6
6
  cc: IContactCenter;
7
+ logger: ILogger;
7
8
  idleCodes: IdleCode[];
8
9
  agentId: string;
9
10
  selectedLoginOption: string;
@@ -1,7 +1,15 @@
1
- import { AgentLogin, IContactCenter, Profile, Team } from '@webex/plugin-cc';
1
+ import { AgentLogin, IContactCenter, Profile, Team, LogContext } from '@webex/plugin-cc';
2
+ type ILogger = {
3
+ log: (message: string, context?: LogContext) => void;
4
+ info: (message: string, context?: LogContext) => void;
5
+ warn: (message: string, context?: LogContext) => void;
6
+ trace: (message: string, context?: LogContext) => void;
7
+ error: (message: string, context?: LogContext) => void;
8
+ };
2
9
  interface WithWebex {
3
10
  webex: {
4
11
  cc: IContactCenter;
12
+ logger: ILogger;
5
13
  };
6
14
  }
7
15
  interface WithWebexConfig {
@@ -21,7 +29,8 @@ interface IStore {
21
29
  cc: IContactCenter;
22
30
  idleCodes: IdleCode[];
23
31
  agentId: string;
32
+ logger: ILogger;
24
33
  registerCC(webex: WithWebex['webex']): Promise<Profile>;
25
34
  init(params: InitParams): Promise<void>;
26
35
  }
27
- export type { IContactCenter, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore };
36
+ export type { IContactCenter, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webex/cc-store",
3
3
  "description": "Webex Contact Center Widgets: Widgets Store",
4
- "version": "1.28.0-ccwidgets.8",
4
+ "version": "1.28.0-ccwidgets.9",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "mobx": "6.13.5",
24
24
  "typescript": "5.6.3",
25
- "webex": "3.7.0-wxcc.5"
25
+ "webex": "3.7.0-wxcc.6"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/core": "7.25.2",
@@ -51,5 +51,5 @@
51
51
  "**/tests/**/*.tsx"
52
52
  ]
53
53
  },
54
- "stableVersion": "1.28.0-ccwidgets.7"
54
+ "stableVersion": "1.28.0-ccwidgets.8"
55
55
  }