retell-sdk 1.15.19 → 1.15.20

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.
@@ -40,7 +40,7 @@ var CallStatus;
40
40
  CallStatus["Ongoing"] = "ongoing";
41
41
  CallStatus["Ended"] = "ended";
42
42
  CallStatus["Error"] = "error";
43
- })(CallStatus || (exports.CallStatus = CallStatus = {}));
43
+ })(CallStatus = exports.CallStatus || (exports.CallStatus = {}));
44
44
  /**
45
45
  * Web call or phone call.
46
46
  */
@@ -49,7 +49,7 @@ var CallType;
49
49
  CallType["InboundPhoneCall"] = "inbound_phone_call";
50
50
  CallType["OutboundPhoneCall"] = "outbound_phone_call";
51
51
  CallType["WebCall"] = "web_call";
52
- })(CallType || (exports.CallType = CallType = {}));
52
+ })(CallType = exports.CallType || (exports.CallType = {}));
53
53
  var CallDetail = /** @class */ (function (_super) {
54
54
  __extends(CallDetail, _super);
55
55
  function CallDetail() {
@@ -103,7 +103,7 @@ var CallStatus;
103
103
  CallStatus["Ongoing"] = "ongoing";
104
104
  CallStatus["Ended"] = "ended";
105
105
  CallStatus["Error"] = "error";
106
- })(CallStatus || (exports.CallStatus = CallStatus = {}));
106
+ })(CallStatus = exports.CallStatus || (exports.CallStatus = {}));
107
107
  /**
108
108
  * Web call or phone call.
109
109
  */
@@ -112,7 +112,7 @@ var CreatePhoneCallCallType;
112
112
  CreatePhoneCallCallType["InboundPhoneCall"] = "inbound_phone_call";
113
113
  CreatePhoneCallCallType["OutboundPhoneCall"] = "outbound_phone_call";
114
114
  CreatePhoneCallCallType["WebCall"] = "web_call";
115
- })(CreatePhoneCallCallType || (exports.CreatePhoneCallCallType = CreatePhoneCallCallType = {}));
115
+ })(CreatePhoneCallCallType = exports.CreatePhoneCallCallType || (exports.CreatePhoneCallCallType = {}));
116
116
  /**
117
117
  * Successfully retrieved an agent.
118
118
  */
@@ -58,7 +58,7 @@ var CallType;
58
58
  CallType["InboundPhoneCall"] = "inbound_phone_call";
59
59
  CallType["OutboundPhoneCall"] = "outbound_phone_call";
60
60
  CallType["WebCall"] = "web_call";
61
- })(CallType || (exports.CallType = CallType = {}));
61
+ })(CallType = exports.CallType || (exports.CallType = {}));
62
62
  var FilterCriteria = /** @class */ (function (_super) {
63
63
  __extends(FilterCriteria, _super);
64
64
  function FilterCriteria() {
@@ -98,7 +98,7 @@ var SortOrder;
98
98
  (function (SortOrder) {
99
99
  SortOrder["Ascending"] = "ascending";
100
100
  SortOrder["Descending"] = "descending";
101
- })(SortOrder || (exports.SortOrder = SortOrder = {}));
101
+ })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
102
102
  var ListCallsRequest = /** @class */ (function (_super) {
103
103
  __extends(ListCallsRequest, _super);
104
104
  function ListCallsRequest() {
package/dist/sdk/sdk.d.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  import * as utils from "../internal/utils";
3
3
  import * as components from "../models/components";
4
4
  import * as operations from "../models/operations";
5
- import { WebSocket } from "isomorphic-ws";
6
5
  import { AxiosInstance, AxiosRequestConfig } from "axios";
7
6
  import { EventEmitter } from "events";
7
+ import WebSocket from "ws";
8
8
  /**
9
9
  * Contains the list of servers available to the SDK
10
10
  */
package/dist/sdk/sdk.js CHANGED
@@ -124,8 +124,8 @@ var components = __importStar(require("../models/components"));
124
124
  var errors = __importStar(require("../models/errors"));
125
125
  var operations = __importStar(require("../models/operations"));
126
126
  var axios_1 = __importDefault(require("axios"));
127
- var isomorphic_ws_1 = require("isomorphic-ws");
128
127
  var events_1 = require("events");
128
+ var ws_1 = __importDefault(require("ws"));
129
129
  /**
130
130
  * Contains the list of servers available to the SDK
131
131
  */
@@ -171,7 +171,7 @@ var LiveClient = /** @class */ (function (_super) {
171
171
  }
172
172
  finally { if (e_1) throw e_1.error; }
173
173
  }
174
- _this.ws = new isomorphic_ws_1.WebSocket(endpoint);
174
+ _this.ws = new ws_1.default(endpoint);
175
175
  _this.ws.binaryType = "arraybuffer";
176
176
  return _this;
177
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-sdk",
3
- "version": "1.15.19",
3
+ "version": "1.15.20",
4
4
  "author": "Retell",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@types/node": "^20.10.6",
13
+ "@types/websocket": "^1.0.10",
13
14
  "axios": "^1.1.3",
14
15
  "class-transformer": "^0.5.1",
15
16
  "form-data": "^4.0.0",