yellowgrid-api-ts 3.2.348 → 3.2.354
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.
- package/.openapi-generator/FILES +1 -2
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +1 -0
- package/README.md +2 -0
- package/api.ts +123 -1
- package/dist/api.d.ts +471 -405
- package/dist/api.js +14129 -21961
- package/dist/base.js +14 -33
- package/dist/common.js +38 -146
- package/dist/configuration.js +12 -21
- package/docs/Class3CXApi.md +64 -0
- package/docs/TcxCallLogCollectionModel.md +23 -0
- package/docs/TcxCallLogEntity.md +3 -1
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/tsconfig.json +3 -2
package/dist/base.js
CHANGED
|
@@ -12,24 +12,12 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
30
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
19
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
32
|
-
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
33
21
|
exports.BASE_PATH = "https://bitbucket.org".replace(/\/+$/, "");
|
|
34
22
|
exports.COLLECTION_FORMATS = {
|
|
35
23
|
csv: ",",
|
|
@@ -37,31 +25,24 @@ exports.COLLECTION_FORMATS = {
|
|
|
37
25
|
tsv: "\t",
|
|
38
26
|
pipes: "|",
|
|
39
27
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (basePath === void 0) { basePath = exports.BASE_PATH; }
|
|
43
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
44
|
-
var _a;
|
|
28
|
+
class BaseAPI {
|
|
29
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
45
30
|
this.basePath = basePath;
|
|
46
31
|
this.axios = axios;
|
|
47
32
|
if (configuration) {
|
|
48
33
|
this.configuration = configuration;
|
|
49
|
-
this.basePath =
|
|
34
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
50
35
|
}
|
|
51
36
|
}
|
|
52
|
-
|
|
53
|
-
}());
|
|
37
|
+
}
|
|
54
38
|
exports.BaseAPI = BaseAPI;
|
|
55
39
|
;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
_this.name = "RequiredError";
|
|
62
|
-
return _this;
|
|
40
|
+
class RequiredError extends Error {
|
|
41
|
+
constructor(field, msg) {
|
|
42
|
+
super(msg);
|
|
43
|
+
this.field = field;
|
|
44
|
+
this.name = "RequiredError";
|
|
63
45
|
}
|
|
64
|
-
|
|
65
|
-
}(Error));
|
|
46
|
+
}
|
|
66
47
|
exports.RequiredError = RequiredError;
|
|
67
48
|
exports.operationServerMap = {};
|
package/dist/common.js
CHANGED
|
@@ -12,163 +12,62 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __assign = (this && this.__assign) || function () {
|
|
16
|
-
__assign = Object.assign || function(t) {
|
|
17
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
-
s = arguments[i];
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
return __assign.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
30
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
31
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
32
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
37
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
|
-
function step(op) {
|
|
40
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
43
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
|
-
switch (op[0]) {
|
|
45
|
-
case 0: case 1: t = op; break;
|
|
46
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
47
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
48
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
49
|
-
default:
|
|
50
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
51
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
52
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
53
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
54
|
-
if (t[2]) _.ops.pop();
|
|
55
|
-
_.trys.pop(); continue;
|
|
56
|
-
}
|
|
57
|
-
op = body.call(thisArg, _);
|
|
58
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
59
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
|
-
|
|
17
|
+
const base_1 = require("./base");
|
|
65
18
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
66
19
|
/**
|
|
67
20
|
*
|
|
68
21
|
* @throws {RequiredError}
|
|
69
22
|
*/
|
|
70
|
-
|
|
23
|
+
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
71
24
|
if (paramValue === null || paramValue === undefined) {
|
|
72
|
-
throw new base_1.RequiredError(paramName,
|
|
25
|
+
throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
73
26
|
}
|
|
74
27
|
};
|
|
75
28
|
exports.assertParamExists = assertParamExists;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
84
|
-
return [4 /*yield*/, configuration.apiKey(keyParamName)];
|
|
85
|
-
case 1:
|
|
86
|
-
_a = _b.sent();
|
|
87
|
-
return [3 /*break*/, 4];
|
|
88
|
-
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
89
|
-
case 3:
|
|
90
|
-
_a = _b.sent();
|
|
91
|
-
_b.label = 4;
|
|
92
|
-
case 4:
|
|
93
|
-
localVarApiKeyValue = _a;
|
|
94
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
95
|
-
_b.label = 5;
|
|
96
|
-
case 5: return [2 /*return*/];
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
});
|
|
29
|
+
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
30
|
+
if (configuration && configuration.apiKey) {
|
|
31
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
32
|
+
? await configuration.apiKey(keyParamName)
|
|
33
|
+
: await configuration.apiKey;
|
|
34
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
35
|
+
}
|
|
100
36
|
};
|
|
101
37
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
102
|
-
|
|
38
|
+
const setBasicAuthToObject = function (object, configuration) {
|
|
103
39
|
if (configuration && (configuration.username || configuration.password)) {
|
|
104
40
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
105
41
|
}
|
|
106
42
|
};
|
|
107
43
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
116
|
-
return [4 /*yield*/, configuration.accessToken()];
|
|
117
|
-
case 1:
|
|
118
|
-
_a = _b.sent();
|
|
119
|
-
return [3 /*break*/, 4];
|
|
120
|
-
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
121
|
-
case 3:
|
|
122
|
-
_a = _b.sent();
|
|
123
|
-
_b.label = 4;
|
|
124
|
-
case 4:
|
|
125
|
-
accessToken = _a;
|
|
126
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
127
|
-
_b.label = 5;
|
|
128
|
-
case 5: return [2 /*return*/];
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
});
|
|
44
|
+
const setBearerAuthToObject = async function (object, configuration) {
|
|
45
|
+
if (configuration && configuration.accessToken) {
|
|
46
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
47
|
+
? await configuration.accessToken()
|
|
48
|
+
: await configuration.accessToken;
|
|
49
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
50
|
+
}
|
|
132
51
|
};
|
|
133
52
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
142
|
-
return [4 /*yield*/, configuration.accessToken(name, scopes)];
|
|
143
|
-
case 1:
|
|
144
|
-
_a = _b.sent();
|
|
145
|
-
return [3 /*break*/, 4];
|
|
146
|
-
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
147
|
-
case 3:
|
|
148
|
-
_a = _b.sent();
|
|
149
|
-
_b.label = 4;
|
|
150
|
-
case 4:
|
|
151
|
-
localVarAccessTokenValue = _a;
|
|
152
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
153
|
-
_b.label = 5;
|
|
154
|
-
case 5: return [2 /*return*/];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
53
|
+
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
54
|
+
if (configuration && configuration.accessToken) {
|
|
55
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
56
|
+
? await configuration.accessToken(name, scopes)
|
|
57
|
+
: await configuration.accessToken;
|
|
58
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
59
|
+
}
|
|
158
60
|
};
|
|
159
61
|
exports.setOAuthToObject = setOAuthToObject;
|
|
160
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
161
|
-
if (key === void 0) { key = ""; }
|
|
62
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
162
63
|
if (parameter == null)
|
|
163
64
|
return;
|
|
164
65
|
if (typeof parameter === "object") {
|
|
165
66
|
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
166
|
-
parameter.forEach(
|
|
67
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
167
68
|
}
|
|
168
69
|
else {
|
|
169
|
-
Object.keys(parameter).forEach(
|
|
170
|
-
return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
|
|
171
|
-
});
|
|
70
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
172
71
|
}
|
|
173
72
|
}
|
|
174
73
|
else {
|
|
@@ -180,12 +79,8 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
|
180
79
|
}
|
|
181
80
|
}
|
|
182
81
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
186
|
-
objects[_i - 1] = arguments[_i];
|
|
187
|
-
}
|
|
188
|
-
var searchParams = new URLSearchParams(url.search);
|
|
82
|
+
const setSearchParams = function (url, ...objects) {
|
|
83
|
+
const searchParams = new URLSearchParams(url.search);
|
|
189
84
|
setFlattenedQueryParams(searchParams, objects);
|
|
190
85
|
url.search = searchParams.toString();
|
|
191
86
|
};
|
|
@@ -196,7 +91,7 @@ exports.setSearchParams = setSearchParams;
|
|
|
196
91
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
197
92
|
*/
|
|
198
93
|
// @ts-ignore
|
|
199
|
-
|
|
94
|
+
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
200
95
|
if (value instanceof Set) {
|
|
201
96
|
return Array.from(value);
|
|
202
97
|
}
|
|
@@ -205,9 +100,9 @@ var replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
|
205
100
|
}
|
|
206
101
|
};
|
|
207
102
|
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
103
|
+
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
104
|
+
const nonString = typeof value !== 'string';
|
|
105
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
211
106
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
212
107
|
: nonString;
|
|
213
108
|
return needsSerialization
|
|
@@ -215,16 +110,13 @@ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
215
110
|
: (value || "");
|
|
216
111
|
};
|
|
217
112
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
218
|
-
|
|
113
|
+
const toPathString = function (url) {
|
|
219
114
|
return url.pathname + url.search + url.hash;
|
|
220
115
|
};
|
|
221
116
|
exports.toPathString = toPathString;
|
|
222
|
-
|
|
223
|
-
return
|
|
224
|
-
|
|
225
|
-
if (axios === void 0) { axios = globalAxios; }
|
|
226
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
227
|
-
var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
117
|
+
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
118
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
119
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
228
120
|
return axios.request(axiosRequestArgs);
|
|
229
121
|
};
|
|
230
122
|
};
|
package/dist/configuration.js
CHANGED
|
@@ -11,23 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
var __assign = (this && this.__assign) || function () {
|
|
15
|
-
__assign = Object.assign || function(t) {
|
|
16
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
-
s = arguments[i];
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
return __assign.apply(this, arguments);
|
|
24
|
-
};
|
|
25
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
15
|
exports.Configuration = void 0;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (param === void 0) { param = {}; }
|
|
30
|
-
var _a;
|
|
16
|
+
class Configuration {
|
|
17
|
+
constructor(param = {}) {
|
|
31
18
|
this.apiKey = param.apiKey;
|
|
32
19
|
this.username = param.username;
|
|
33
20
|
this.password = param.password;
|
|
@@ -35,7 +22,12 @@ var Configuration = /** @class */ (function () {
|
|
|
35
22
|
this.awsv4 = param.awsv4;
|
|
36
23
|
this.basePath = param.basePath;
|
|
37
24
|
this.serverIndex = param.serverIndex;
|
|
38
|
-
this.baseOptions =
|
|
25
|
+
this.baseOptions = {
|
|
26
|
+
...param.baseOptions,
|
|
27
|
+
headers: {
|
|
28
|
+
...param.baseOptions?.headers,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
39
31
|
this.formDataCtor = param.formDataCtor;
|
|
40
32
|
}
|
|
41
33
|
/**
|
|
@@ -48,10 +40,9 @@ var Configuration = /** @class */ (function () {
|
|
|
48
40
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
49
41
|
* @return True if the given MIME is JSON, false otherwise.
|
|
50
42
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
isJsonMime(mime) {
|
|
44
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
53
45
|
return mime !== null && jsonMime.test(mime);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
}());
|
|
46
|
+
}
|
|
47
|
+
}
|
|
57
48
|
exports.Configuration = Configuration;
|
package/docs/Class3CXApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetCCDevices**](#getgetccdevices) | **GET** /tcx/cc/devices | |
|
|
8
|
+
|[**getGetCallHistory**](#getgetcallhistory) | **GET** /tcx/cc/instance/{id}/calls | |
|
|
8
9
|
|[**getGetLicenceDetails**](#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details|
|
|
9
10
|
|[**getGetServicePrincipals**](#getgetserviceprincipals) | **GET** /tcx/cc/services | |
|
|
10
11
|
|[**getGetTcxCreditStatus**](#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status|
|
|
@@ -62,6 +63,69 @@ No authorization required
|
|
|
62
63
|
|
|
63
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
65
|
|
|
66
|
+
# **getGetCallHistory**
|
|
67
|
+
> TcxCallLogCollectionModel getGetCallHistory()
|
|
68
|
+
|
|
69
|
+
Get 3CX call history
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
Class3CXApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'yellowgrid-api-ts';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new Class3CXApi(configuration);
|
|
81
|
+
|
|
82
|
+
let id: string; //Instance ID (default to undefined)
|
|
83
|
+
let trunk: string; //Trunk (default to undefined)
|
|
84
|
+
let start: string; //Start Date (optional) (default to undefined)
|
|
85
|
+
let end: string; //End Date (optional) (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getGetCallHistory(
|
|
88
|
+
id,
|
|
89
|
+
trunk,
|
|
90
|
+
start,
|
|
91
|
+
end
|
|
92
|
+
);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
|Name | Type | Description | Notes|
|
|
98
|
+
|------------- | ------------- | ------------- | -------------|
|
|
99
|
+
| **id** | [**string**] | Instance ID | defaults to undefined|
|
|
100
|
+
| **trunk** | [**string**] | Trunk | defaults to undefined|
|
|
101
|
+
| **start** | [**string**] | Start Date | (optional) defaults to undefined|
|
|
102
|
+
| **end** | [**string**] | End Date | (optional) defaults to undefined|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Return type
|
|
106
|
+
|
|
107
|
+
**TcxCallLogCollectionModel**
|
|
108
|
+
|
|
109
|
+
### Authorization
|
|
110
|
+
|
|
111
|
+
No authorization required
|
|
112
|
+
|
|
113
|
+
### HTTP request headers
|
|
114
|
+
|
|
115
|
+
- **Content-Type**: Not defined
|
|
116
|
+
- **Accept**: application/json
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### HTTP response details
|
|
120
|
+
| Status code | Description | Response headers |
|
|
121
|
+
|-------------|-------------|------------------|
|
|
122
|
+
|**200** | Call Log | - |
|
|
123
|
+
|**400** | Bad Request | - |
|
|
124
|
+
|**401** | Unauthorised | - |
|
|
125
|
+
|**403** | Access Denied | - |
|
|
126
|
+
|
|
127
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
128
|
+
|
|
65
129
|
# **getGetLicenceDetails**
|
|
66
130
|
> TcxLicenceDetailsModel getGetLicenceDetails()
|
|
67
131
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# TcxCallLogCollectionModel
|
|
2
|
+
|
|
3
|
+
3CX Call Log Collection
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**calls** | [**Array<TcxCallLogEntity>**](TcxCallLogEntity.md) | Calls | [default to undefined]
|
|
10
|
+
**active** | **number** | Peak Active Calls | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { TcxCallLogCollectionModel } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: TcxCallLogCollectionModel = {
|
|
18
|
+
calls,
|
|
19
|
+
active,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/TcxCallLogEntity.md
CHANGED
|
@@ -8,7 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**instanceId** | **string** | instanceId | [default to undefined]
|
|
10
10
|
**callId** | **number** | callId | [default to undefined]
|
|
11
|
-
**
|
|
11
|
+
**type** | **string** | number | [default to undefined]
|
|
12
|
+
**number** | **string** | type | [default to undefined]
|
|
12
13
|
**dn** | **string** | dn | [default to undefined]
|
|
13
14
|
**device** | **string** | device | [default to undefined]
|
|
14
15
|
**startedAt** | **string** | startedAt | [default to undefined]
|
|
@@ -22,6 +23,7 @@ import { TcxCallLogEntity } from 'yellowgrid-api-ts';
|
|
|
22
23
|
const instance: TcxCallLogEntity = {
|
|
23
24
|
instanceId,
|
|
24
25
|
callId,
|
|
26
|
+
type,
|
|
25
27
|
number,
|
|
26
28
|
dn,
|
|
27
29
|
device,
|
package/openapitools.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yellowgrid-api-ts",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.354",
|
|
4
4
|
"description": "OpenAPI client for yellowgrid-api-ts",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "12.11.5 - 12.20.42",
|
|
29
|
-
"typescript": "^4.0 || ^5.0"
|
|
29
|
+
"typescript": "^4.0 || ^5.0 || ^6.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
|
|
1
2
|
{
|
|
2
3
|
"compilerOptions": {
|
|
3
4
|
"declaration": true,
|
|
4
|
-
"target": "
|
|
5
|
+
"target": "ES2020",
|
|
5
6
|
"module": "commonjs",
|
|
6
7
|
"noImplicitAny": true,
|
|
7
8
|
"outDir": "dist",
|
|
8
9
|
"rootDir": ".",
|
|
9
10
|
"lib": [
|
|
10
|
-
"
|
|
11
|
+
"ES2020",
|
|
11
12
|
"dom"
|
|
12
13
|
],
|
|
13
14
|
"typeRoots": [
|