@webex/cc-components 1.28.0-ccwidgets.92 → 1.28.0-ccwidgets.94
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.
- package/dist/index.js +1 -1
- package/dist/types/components/StationLogin/constants.d.ts +0 -7
- package/dist/types/components/StationLogin/station-login.types.d.ts +6 -9
- package/dist/types/components/UserState/user-state.d.ts +2 -2
- package/dist/types/components/UserState/user-state.types.d.ts +23 -11
- package/dist/types/components/task/task.types.d.ts +7 -7
- package/dist/wc.js +1 -1
- package/package.json +15 -5
|
@@ -23,10 +23,3 @@ export declare const StationLoginLabels: {
|
|
|
23
23
|
export declare const SignInErrors: {
|
|
24
24
|
DUPLICATE_LOCATION: string;
|
|
25
25
|
};
|
|
26
|
-
declare const DIALNUMBER: string;
|
|
27
|
-
declare const EXTENSION: string;
|
|
28
|
-
declare const DESKTOP: string;
|
|
29
|
-
declare const LoginOptions: {
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
};
|
|
32
|
-
export { DIALNUMBER, EXTENSION, DESKTOP, LoginOptions };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ILogger } from '@webex/cc-store';
|
|
1
|
+
import { StationLoginSuccessResponse, LogoutSuccess } from '@webex/plugin-cc';
|
|
2
|
+
import { IContactCenter, ILogger } from '@webex/cc-store';
|
|
3
|
+
import { Team } from '@webex/plugin-cc/dist/types/types';
|
|
3
4
|
/**
|
|
4
5
|
* Interface representing the properties for the Station Login component.
|
|
5
6
|
*/
|
|
@@ -29,7 +30,7 @@ export interface IStationLoginProps {
|
|
|
29
30
|
/**
|
|
30
31
|
* Response data received on agent login success
|
|
31
32
|
*/
|
|
32
|
-
loginSuccess?:
|
|
33
|
+
loginSuccess?: StationLoginSuccessResponse;
|
|
33
34
|
/**
|
|
34
35
|
* Error received on agent login failure
|
|
35
36
|
*/
|
|
@@ -37,7 +38,7 @@ export interface IStationLoginProps {
|
|
|
37
38
|
/**
|
|
38
39
|
* Response data received on agent login success
|
|
39
40
|
*/
|
|
40
|
-
logoutSuccess?:
|
|
41
|
+
logoutSuccess?: LogoutSuccess;
|
|
41
42
|
/**
|
|
42
43
|
* Flag to indicate if the agent is logged in
|
|
43
44
|
*/
|
|
@@ -163,14 +164,10 @@ export interface IStationLoginProps {
|
|
|
163
164
|
* The selected team ID for login
|
|
164
165
|
*/
|
|
165
166
|
selectedTeamId: string;
|
|
166
|
-
/**
|
|
167
|
-
* The selected option for login type (e.g., 'Extension', 'Agent DN', etc.)
|
|
168
|
-
*/
|
|
169
|
-
selectedOption: string;
|
|
170
167
|
}
|
|
171
168
|
export interface LoginOptionsState {
|
|
172
169
|
deviceType: string;
|
|
173
170
|
dialNumber: string;
|
|
174
171
|
teamId: string;
|
|
175
172
|
}
|
|
176
|
-
export type StationLoginComponentProps = Pick<IStationLoginProps, 'teams' | 'loginOptions' | 'login' | 'logout' | 'loginSuccess' | 'loginFailure' | 'logoutSuccess' | 'setDeviceType' | 'setDialNumber' | 'setTeam' | 'isAgentLoggedIn' | 'handleContinue' | 'deviceType' | 'dialNumberRegex' | 'showMultipleLoginAlert' | 'onCCSignOut' | 'setTeamId' | 'logger' | 'profileMode' | 'originalLoginOptions' | 'currentLoginOptions' | 'setCurrentLoginOptions' | 'isLoginOptionsChanged' | 'saveLoginOptions' | 'saveError' | 'setSelectedDeviceType' | 'selectedDeviceType' | 'dialNumberValue' | 'setDialNumberValue' | 'setSelectedTeamId' | 'selectedTeamId'
|
|
173
|
+
export type StationLoginComponentProps = Pick<IStationLoginProps, 'teams' | 'loginOptions' | 'login' | 'logout' | 'loginSuccess' | 'loginFailure' | 'logoutSuccess' | 'setDeviceType' | 'setDialNumber' | 'setTeam' | 'isAgentLoggedIn' | 'handleContinue' | 'deviceType' | 'dialNumberRegex' | 'showMultipleLoginAlert' | 'onCCSignOut' | 'setTeamId' | 'logger' | 'profileMode' | 'originalLoginOptions' | 'currentLoginOptions' | 'setCurrentLoginOptions' | 'isLoginOptionsChanged' | 'saveLoginOptions' | 'saveError' | 'setSelectedDeviceType' | 'selectedDeviceType' | 'dialNumberValue' | 'setDialNumberValue' | 'setSelectedTeamId' | 'selectedTeamId'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { UserStateComponentsProps } from './user-state.types';
|
|
3
3
|
import './user-state.scss';
|
|
4
|
-
declare const UserStateComponent: React.FunctionComponent<
|
|
4
|
+
declare const UserStateComponent: React.FunctionComponent<UserStateComponentsProps>;
|
|
5
5
|
export default UserStateComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IdleCode, ICustomState, ILogger } from '@webex/cc-store';
|
|
1
|
+
import { IdleCode, ICustomState, ILogger, IContactCenter } from '@webex/cc-store';
|
|
2
2
|
/**
|
|
3
3
|
* Interface representing the state of a user.
|
|
4
4
|
*/
|
|
@@ -20,10 +20,6 @@ export interface IUserState {
|
|
|
20
20
|
* Boolean indicating if the agent status is being set.
|
|
21
21
|
*/
|
|
22
22
|
isSettingAgentStatus: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The error message to display
|
|
25
|
-
*/
|
|
26
|
-
errorMessage: string;
|
|
27
23
|
/**
|
|
28
24
|
* The duration of the current user state
|
|
29
25
|
*/
|
|
@@ -44,17 +40,33 @@ export interface IUserState {
|
|
|
44
40
|
* The preferred theme
|
|
45
41
|
*/
|
|
46
42
|
currentTheme: string;
|
|
47
|
-
/**
|
|
48
|
-
* Function to handle state change
|
|
49
|
-
* @param state The state to change to
|
|
50
|
-
* @returns void
|
|
51
|
-
*/
|
|
52
|
-
onStateChange: (state: string) => void;
|
|
53
43
|
/**
|
|
54
44
|
* Logger instance
|
|
55
45
|
*/
|
|
56
46
|
logger: ILogger;
|
|
47
|
+
/**
|
|
48
|
+
* Callback function to be called when the state changes.
|
|
49
|
+
* @param state The new state.
|
|
50
|
+
*/
|
|
51
|
+
onStateChange?: (arg: IdleCode | ICustomState) => void;
|
|
52
|
+
/**
|
|
53
|
+
* The agent ID.
|
|
54
|
+
*/
|
|
55
|
+
agentId: string;
|
|
56
|
+
/**
|
|
57
|
+
* CC SDK Instance.
|
|
58
|
+
*/
|
|
59
|
+
cc: IContactCenter;
|
|
60
|
+
/**
|
|
61
|
+
* The timestamp of the last state change.
|
|
62
|
+
*/
|
|
63
|
+
lastStateChangeTimestamp?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The timestamp of the last idle code change.
|
|
66
|
+
*/
|
|
67
|
+
lastIdleCodeChangeTimestamp?: number;
|
|
57
68
|
}
|
|
69
|
+
export type UserStateComponentsProps = Pick<IUserState, 'idleCodes' | 'setAgentStatus' | 'isSettingAgentStatus' | 'elapsedTime' | 'lastIdleStateChangeElapsedTime' | 'currentState' | 'customState' | 'logger'>;
|
|
58
70
|
export declare enum AgentUserState {
|
|
59
71
|
Available = "Available",
|
|
60
72
|
RONA = "RONA",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILogger, ITask, IContactCenter,
|
|
1
|
+
import { ILogger, ITask, IContactCenter, IWrapupCode, BuddyDetails, DestinationType, ContactServiceQueue } from '@webex/cc-store';
|
|
2
2
|
type Enum<T extends Record<string, unknown>> = T[keyof T];
|
|
3
3
|
/**
|
|
4
4
|
* Interface representing the TaskProps of a user.
|
|
@@ -162,7 +162,7 @@ export interface ControlProps {
|
|
|
162
162
|
* Array of wrap-up codes.
|
|
163
163
|
* TODO: Expose this type from SDK.
|
|
164
164
|
*/
|
|
165
|
-
wrapupCodes:
|
|
165
|
+
wrapupCodes: IWrapupCode[];
|
|
166
166
|
/**
|
|
167
167
|
* Indicates if wrap-up is required.
|
|
168
168
|
*/
|
|
@@ -390,8 +390,8 @@ export interface ConsultTransferPopoverComponentProps {
|
|
|
390
390
|
buttonIcon: string;
|
|
391
391
|
buddyAgents: BuddyDetails[];
|
|
392
392
|
queues?: ContactServiceQueue[];
|
|
393
|
-
onAgentSelect
|
|
394
|
-
onQueueSelect
|
|
393
|
+
onAgentSelect?: (agentId: string, agentName: string) => void;
|
|
394
|
+
onQueueSelect?: (queueId: string, queueName: string) => void;
|
|
395
395
|
allowConsultToQueue: boolean;
|
|
396
396
|
logger: ILogger;
|
|
397
397
|
}
|
|
@@ -402,20 +402,19 @@ export interface CallControlConsultComponentsProps {
|
|
|
402
402
|
agentName: string;
|
|
403
403
|
startTimeStamp: number;
|
|
404
404
|
onTransfer?: () => void;
|
|
405
|
-
endConsultCall
|
|
405
|
+
endConsultCall?: () => void;
|
|
406
406
|
consultCompleted: boolean;
|
|
407
407
|
isAgentBeingConsulted: boolean;
|
|
408
408
|
isEndConsultEnabled: boolean;
|
|
409
409
|
logger: ILogger;
|
|
410
410
|
muteUnmute: boolean;
|
|
411
411
|
isMuted: boolean;
|
|
412
|
-
onToggleConsultMute
|
|
412
|
+
onToggleConsultMute?: () => void;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* Type representing the possible menu types in call control.
|
|
416
416
|
*/
|
|
417
417
|
export type CallControlMenuType = 'Consult' | 'Transfer';
|
|
418
|
-
export { DestinationType };
|
|
419
418
|
export declare const MEDIA_CHANNEL: {
|
|
420
419
|
readonly EMAIL: "email";
|
|
421
420
|
readonly CHAT: "chat";
|
|
@@ -438,3 +437,4 @@ export interface AutoWrapupTimerProps {
|
|
|
438
437
|
allowCancelAutoWrapup?: boolean;
|
|
439
438
|
handleCancelWrapup: () => void;
|
|
440
439
|
}
|
|
440
|
+
export {};
|