o2g-node-sdk 1.0.0 → 1.0.1

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,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { AgentSkill, OperatorState } from "./cc-agent-types";
3
3
  /**
4
4
  * Event sent when CCD agent skills is modified: one or several skills has been activate or deactivate.
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { CallCause } from "../telephony/telephony-events";
3
3
  import { TrunkIdentification } from "../telephony/telephony-types";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { ComRecord } from "./com-record";
3
3
  /**
4
4
  * Notification sent when a new comlog entry has been created.
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "./o2g-event";
2
2
  import { OnAgentSkillChanged, OnAgentStateChanged, OnSupervisorHelpCancelled, OnSupervisorHelpRequested } from "../cc-agent/cc-agent-events";
3
3
  import { OnPilotCallCreated, OnPilotCallQueued, OnPilotCallRemoved } from "../cc-pilot/cc-pilot-events";
4
4
  import { OnComRecordCreated, OnComRecordModified, OnComRecordsAck, OnComRecordsDeleted, OnComRecordsUnAck } from "../comlog/comlog-events";
@@ -0,0 +1,3 @@
1
+ export type O2GEvent<Name extends string, Data> = {
2
+ eventName: Name;
3
+ } & Data;
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { EventSummary } from "../../o2g-eventSummary";
3
3
  /**
4
4
  * Notification sent each time the user's counters have changed.
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  /**
3
3
  * Notification sent when CTI link is down. This event is sent with a 30 s minimum and 60 s maximum delay.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  /**
3
3
  * Represent an OmniPCX Enterprise object definition.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { RoutingState } from "./routing-state";
3
3
  /**
4
4
  * This notification indicate that routing state is changed.
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { RoutingReason } from "./routing-reason";
3
3
  import { Tones } from "./tones";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { CallData, DeviceCapabilities, DeviceState, HuntingGroupStatus, Leg, Participant, TelephonicState, UserState } from "../telephony/telephony-types";
3
3
  /**
4
4
  * Lists the different call causes.
@@ -1,4 +1,4 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
1
+ import { O2GEvent } from "../events/o2g-event";
2
2
  import { User } from "../users/users-types";
3
3
  /**
4
4
  * This event is sent on creation of an user (only for administrator).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "o2g-node-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Node.js library for O2G.",
5
5
  "main": "dist/o2g-node-sdk.js",
6
6
  "scripts": {