retell-sdk 1.15.20 → 1.15.21
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.
|
@@ -109,18 +109,18 @@ var encodeFormUrlEncodedData = function (data) {
|
|
|
109
109
|
}
|
|
110
110
|
var formDecorator = parseFormDecorator(formAnn);
|
|
111
111
|
if (formDecorator.JSON) {
|
|
112
|
-
var
|
|
112
|
+
var name_1 = (_a = formDecorator.Name) !== null && _a !== void 0 ? _a : fname;
|
|
113
113
|
var val = JSON.stringify(data[fname]);
|
|
114
|
-
appendPair(
|
|
114
|
+
appendPair(name_1, val);
|
|
115
115
|
}
|
|
116
116
|
else if (formDecorator.Style === "form") {
|
|
117
117
|
var parsed_1;
|
|
118
|
-
var
|
|
118
|
+
var name_2 = (_b = formDecorator.Name) !== null && _b !== void 0 ? _b : fname;
|
|
119
119
|
if (formDecorator.Explode === true) {
|
|
120
|
-
parsed_1 = formExplode(
|
|
120
|
+
parsed_1 = formExplode(name_2, data[fname]);
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
|
-
parsed_1 = formNotExplode(
|
|
123
|
+
parsed_1 = formNotExplode(name_2, data[fname]);
|
|
124
124
|
}
|
|
125
125
|
Object.keys(parsed_1).forEach(function (key) {
|
|
126
126
|
parsed_1[key].forEach(function (v) { return appendPair(key, v); });
|
|
@@ -40,7 +40,7 @@ var CallStatus;
|
|
|
40
40
|
CallStatus["Ongoing"] = "ongoing";
|
|
41
41
|
CallStatus["Ended"] = "ended";
|
|
42
42
|
CallStatus["Error"] = "error";
|
|
43
|
-
})(CallStatus
|
|
43
|
+
})(CallStatus || (exports.CallStatus = 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
|
|
52
|
+
})(CallType || (exports.CallType = 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
|
|
106
|
+
})(CallStatus || (exports.CallStatus = 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
|
|
115
|
+
})(CreatePhoneCallCallType || (exports.CreatePhoneCallCallType = 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
|
|
61
|
+
})(CallType || (exports.CallType = 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
|
|
101
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
102
102
|
var ListCallsRequest = /** @class */ (function (_super) {
|
|
103
103
|
__extends(ListCallsRequest, _super);
|
|
104
104
|
function ListCallsRequest() {
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as components from "../models/components";
|
|
|
4
4
|
import * as operations from "../models/operations";
|
|
5
5
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
6
6
|
import { EventEmitter } from "events";
|
|
7
|
-
import WebSocket from "ws";
|
|
8
7
|
/**
|
|
9
8
|
* Contains the list of servers available to the SDK
|
|
10
9
|
*/
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -125,7 +125,6 @@ var errors = __importStar(require("../models/errors"));
|
|
|
125
125
|
var operations = __importStar(require("../models/operations"));
|
|
126
126
|
var axios_1 = __importDefault(require("axios"));
|
|
127
127
|
var events_1 = require("events");
|
|
128
|
-
var ws_1 = __importDefault(require("ws"));
|
|
129
128
|
/**
|
|
130
129
|
* Contains the list of servers available to the SDK
|
|
131
130
|
*/
|
|
@@ -171,7 +170,7 @@ var LiveClient = /** @class */ (function (_super) {
|
|
|
171
170
|
}
|
|
172
171
|
finally { if (e_1) throw e_1.error; }
|
|
173
172
|
}
|
|
174
|
-
_this.ws = new
|
|
173
|
+
_this.ws = new WebSocket(endpoint);
|
|
175
174
|
_this.ws.binaryType = "arraybuffer";
|
|
176
175
|
return _this;
|
|
177
176
|
}
|