@wxcc-desktop/sdk 2.0.12 → 2.0.13

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.
@@ -0,0 +1 @@
1
+ /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
@@ -1,7 +1,7 @@
1
1
  import type { AgentContactSharedActions, GeneralNotificationsSharedActions } from "@wxcc-desktop/sdk-types";
2
2
  import { AgentxService } from "@wxcc-desktop/sdk-types";
3
3
  import { createJsApiLogger } from "./common/_logger";
4
- import { createServiceChecker } from './common/_service-checker';
4
+ import { createServiceChecker } from "./common/_service-checker";
5
5
  type Config = {
6
6
  logger: ReturnType<typeof createJsApiLogger>;
7
7
  serviceChecker: ReturnType<typeof createServiceChecker>;
@@ -26,8 +26,8 @@ export declare class ActionsJsApi {
26
26
  getTaskMap(): Promise<any>;
27
27
  getMediaTypeQueue(mediaType: string): Promise<any>;
28
28
  getToken(): Promise<string | undefined>;
29
- getIdleCodes(): Promise<import("@agentx/agentx-services").Service.Aqm.Configs.Entity[] | undefined>;
30
- getWrapUpCodes(): Promise<import("@agentx/agentx-services").Service.Aqm.Configs.WrapUpReason[] | undefined>;
29
+ getIdleCodes(): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/types/aqm-service-configs.types").Entity[] | undefined>;
30
+ getWrapUpCodes(): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/types/aqm-service-configs.types").WrapUpReason[] | undefined>;
31
31
  getClosestElement(el: any, selector: string): HTMLElement | null;
32
32
  toggleMiximizeRestore: (e: MouseEvent | KeyboardEvent) => void;
33
33
  toggleVoiceInteractionPanel: () => void;
@@ -1,8 +1,7 @@
1
- import { AgentxService } from "@wxcc-desktop/sdk-types";
1
+ import { AgentxService, Service } from "@wxcc-desktop/sdk-types";
2
2
  import { createJsApiLogger } from "./common/_logger";
3
3
  import { createServiceChecker } from "./common/_service-checker";
4
4
  import { AqmServiceEntityEvents } from "./common/_service-events";
5
- import { Service } from "@wxcc-desktop/sdk-types";
6
5
  type Listeners = {
7
6
  eAgentContact: Parameters<AgentxService["aqm"]["contact"]["eAgentContact"]["listen"]>[0];
8
7
  eAgentContactAssigned: Parameters<AgentxService["aqm"]["contact"]["eAgentContactAssigned"]["listen"]>[0];
@@ -51,9 +50,9 @@ export declare class AgentContactJsApi {
51
50
  private SERVICE?;
52
51
  private checkService;
53
52
  constructor(config: Config);
54
- init(SERVICE?: AgentxService): void;
55
- cleanup(): void;
56
- sendDtmf(digit: any): void;
53
+ init(SERVICE?: AgentxService): undefined;
54
+ cleanup(): undefined;
55
+ sendDtmf(digit: string): undefined;
57
56
  accept(p: {
58
57
  interactionId: string;
59
58
  }): Promise<Service.Aqm.Contact.AgentContact | undefined>;
@@ -187,8 +186,12 @@ export declare class AgentContactJsApi {
187
186
  buddyAgentsV2(p: {
188
187
  data: Service.Aqm.Contact.BuddyAgentsV2;
189
188
  }): Promise<Service.Aqm.Contact.BuddyAgentsSuccess | undefined>;
190
- addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
191
- addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
189
+ dropConferenceParticipant(p: {
190
+ interactionId: string;
191
+ data: Service.Aqm.Contact.ConferenceParticipant;
192
+ }): Promise<Service.Aqm.Contact.AgentContact | undefined>;
193
+ addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): undefined;
194
+ addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): undefined;
192
195
  removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
193
196
  removeOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
194
197
  removeAllEventListeners(): void;
@@ -49,7 +49,7 @@ export type ChangeAgentStateDataType = {
49
49
  agentId: string;
50
50
  };
51
51
  export declare class AgentStateInfoJsapi {
52
- stateChangeByChannelType(arg0: {
52
+ stateChangeByChannelType(_arg0: {
53
53
  channelType: string[];
54
54
  state: string;
55
55
  auxCodeIdArray: string[];
@@ -0,0 +1,18 @@
1
+ import { Service } from "@wxcc-desktop/sdk-types";
2
+ export declare const checkIfTelephony: (interactionId: string) => Promise<boolean>;
3
+ export declare const acceptV2: (interactionId: string) => Promise<void>;
4
+ export declare const endV2: (interactionId: string) => Promise<void>;
5
+ export declare const pauseRecordingV2: (interactionId: string) => Promise<void>;
6
+ export declare const resumeRecordingV2: (interactionId: string) => Promise<void>;
7
+ export declare const cancelTaskV2: (interactionId: string) => Promise<void>;
8
+ export declare const wrapupV2: (interactionId: string) => Promise<void>;
9
+ export declare const consultV2: (interactionId: string, data: Service.Aqm.Contact.consultDataV2) => Promise<void>;
10
+ export declare const consultEndV2: (interactionId: string) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
11
+ export declare const consultConferenceV2: (interactionId: string, data: Service.Aqm.Contact.consultConferenceDataV2) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
12
+ export declare const exitConference: (interactionId: string) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
13
+ export declare const consultTransferV2: (interactionId: string, data: Service.Aqm.Contact.transferV2Payload) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
14
+ export declare const blindTransferV2: (interactionId: string, data: Service.Aqm.Contact.transferV2Payload) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
15
+ export declare const vteamTransferV2: (interactionId: string, data: Service.Aqm.Contact.transferV2Payload) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
16
+ export declare const trackBehavioralEvent: () => void;
17
+ export declare const buddyAgentsV2: () => Promise<Service.Aqm.Contact.BuddyAgentsSuccess | undefined>;
18
+ export declare const dropConferenceParticipant: (interactionId: string, data: Service.Aqm.Contact.ConferenceParticipant) => Promise<Service.Aqm.Contact.AgentContact | undefined>;
@@ -16,8 +16,8 @@ export declare class I18NJsApi {
16
16
  cleanup(): void;
17
17
  createInstance(createServiceOptions?: I18N.CreateServiceOptions): import("i18next").i18n;
18
18
  createMixin(createMixinOptions: I18N.CreateMixinOptions): <T extends new (...args: any[]) => HTMLElement & I18N.UpdatingElement>(baseElement: T) => T & (new (...args: any[]) => I18N.I18nElement);
19
- get DEFAULT_INIT_OPTIONS(): import("i18next").InitOptions | undefined;
20
- getMergedInitOptions(...initOptions: I18N.InitOptions[]): import("i18next").InitOptions;
19
+ get DEFAULT_INIT_OPTIONS(): I18N.InitOptions | undefined;
20
+ getMergedInitOptions(...initOptions: I18N.InitOptions[]): import("i18next").InitOptions<object>;
21
21
  }
22
22
  export declare const createI18NJsApi: () => I18NJsApi;
23
23
  export {};
@@ -17,10 +17,10 @@ export declare class PostInteractionJsApi {
17
17
  startTime: number;
18
18
  endTime: number;
19
19
  pageNumber: number;
20
- }): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.SearchResults | undefined>;
20
+ }): Promise<import("@agentx/agentx-services").Service.QMW.SearchResults | undefined>;
21
21
  fetchCapture(p: {
22
22
  taskId: string;
23
- }): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.CaptureResults | undefined>;
23
+ }): Promise<import("@agentx/agentx-services").Service.QMW.CaptureResults | undefined>;
24
24
  }
25
25
  export declare const createPostInteractionJsApi: () => PostInteractionJsApi;
26
26
  export {};
@@ -18,9 +18,9 @@ export declare class ShortcutKeyJsApi {
18
18
  listenConflictResolved(...args: Parameters<AgentxService["shortcut"]["event"]["listenConflictResolved"]>): void;
19
19
  register(...args: Parameters<AgentxService["shortcut"]["register"]>): void;
20
20
  unregisterKeys(...args: Parameters<AgentxService["shortcut"]["unregisterKeys"]>): void;
21
- getRegisteredKeys(): Map<string, import("@wxcc-desktop/sdk-types").Service.shortcut.KeyInfo> | undefined;
21
+ getRegisteredKeys(): Map<string, import("@agentx/agentx-services").Service.shortcut.KeyInfo> | undefined;
22
22
  get DEFAULT_SHORTCUT_KEYS(): {
23
- [key: string]: import("@wxcc-desktop/sdk-types").Service.shortcut.KeyInfo[];
23
+ [key: string]: import("@agentx/agentx-services").Service.shortcut.KeyInfo[];
24
24
  } | undefined;
25
25
  get MODIFIERS(): {
26
26
  CTRL_SHIFT: string;
@@ -1,6 +1,7 @@
1
1
  import { Service } from "@wxcc-desktop/sdk-types";
2
2
  import { ChangeAgentStateDataType } from "./agent-state-info-jsapi";
3
3
  export declare namespace validationUtils {
4
+ const validatePropValueNotNullAndEmpty: (value: any) => boolean;
4
5
  const validateAgentState: (value: any) => boolean;
5
6
  const validateURL: (value: string) => boolean;
6
7
  const validateChannelName: (value: any) => boolean;
@@ -11,7 +12,6 @@ export declare namespace validationUtils {
11
12
  const validateNumber: (value: number) => boolean;
12
13
  const validateBoolean: (value: any) => boolean;
13
14
  const validateStringToBoolean: (value: string) => boolean;
14
- const validatePropValueNotNullAndEmpty: (value: any) => boolean;
15
15
  const validateChannelType: (value: any) => boolean;
16
16
  const validateMonitorType: (value: any) => boolean;
17
17
  const validateUUID: (value: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxcc-desktop/sdk",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "author": "Roman Manchenko",
5
5
  "license": "ISC",
6
6
  "repository": "git@sqbu-github.cisco.com:CBABU/agentx-js-api.git",
@@ -8,12 +8,13 @@
8
8
  "types": "./dist/types/index.d.ts",
9
9
  "dependencies": {
10
10
  "@babel/runtime": "^7.25.6",
11
- "@uuip/unified-ui-platform-sdk": "https://registry.npmjs.org/@uuip/unified-ui-platform-sdk/-/unified-ui-platform-sdk-1.3.28.tgz",
12
- "@wxcc-desktop/sdk-types": "^1.0.30",
11
+ "@uuip/unified-ui-platform-sdk": "workspace:^",
12
+ "@wxcc-desktop/sdk-types": "workspace:^",
13
13
  "event-emitter": "^0.3.5",
14
14
  "js-cookie": "^3.0.1"
15
15
  },
16
16
  "publishConfig": {
17
- "registry": "https://registry.npmjs.org"
17
+ "registry": "https://registry.npmjs.org",
18
+ "access": "public"
18
19
  }
19
- }
20
+ }