retell-sdk 1.15.19 → 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); });
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
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";
|
|
8
7
|
/**
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -124,7 +124,6 @@ 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");
|
|
129
128
|
/**
|
|
130
129
|
* Contains the list of servers available to the SDK
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "retell-sdk",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.21",
|
|
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",
|