yellowgrid-api-ts 3.2.347 → 3.2.348
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 -0
- package/README.md +2 -0
- package/api.ts +96 -0
- package/dist/api.d.ts +62 -0
- package/dist/api.js +77 -0
- package/docs/Class3CXApi.md +56 -0
- package/docs/TcxCallLogEntity.md +33 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -188,6 +188,7 @@ Class | Method | HTTP request | Description
|
|
|
188
188
|
*Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
|
|
189
189
|
*Class3CXApi* | [**getGetTcxExpiringKeysCsv**](docs/Class3CXApi.md#getgettcxexpiringkeyscsv) | **GET** /tcx/admin/keys/expiring/csv | Get 3CX Expiring Keys
|
|
190
190
|
*Class3CXApi* | [**getGetTcxPartners**](docs/Class3CXApi.md#getgettcxpartners) | **GET** /tcx/admin/partners | Get 3CX Partners
|
|
191
|
+
*Class3CXApi* | [**postAddCallLog**](docs/Class3CXApi.md#postaddcalllog) | **POST** /tcx/cc/call/log |
|
|
191
192
|
*Class3CXApi* | [**postAuthenticateInstanceWebsocket**](docs/Class3CXApi.md#postauthenticateinstancewebsocket) | **POST** /tcx/cc/instance/auth/{id} |
|
|
192
193
|
*Class3CXApi* | [**postGetBulkLicenceDetails**](docs/Class3CXApi.md#postgetbulklicencedetails) | **POST** /tcx/licences/bulk/details | Get bulk 3CX Licence Details
|
|
193
194
|
*Class3CXInstallationWizardApi* | [**deleteAddExtensions**](docs/Class3CXInstallationWizardApi.md#deleteaddextensions) | **DELETE** /tcx/wizards/extensions | Delete 3CX Installation Wizard Extensions
|
|
@@ -792,6 +793,7 @@ Class | Method | HTTP request | Description
|
|
|
792
793
|
- [TcxBackupModel](docs/TcxBackupModel.md)
|
|
793
794
|
- [TcxBillingEntity](docs/TcxBillingEntity.md)
|
|
794
795
|
- [TcxBulkLicenceDetailsModel](docs/TcxBulkLicenceDetailsModel.md)
|
|
796
|
+
- [TcxCallLogEntity](docs/TcxCallLogEntity.md)
|
|
795
797
|
- [TcxDeadLicenceEntity](docs/TcxDeadLicenceEntity.md)
|
|
796
798
|
- [TcxEngineerTaskDTO](docs/TcxEngineerTaskDTO.md)
|
|
797
799
|
- [TcxEngineeringDTO](docs/TcxEngineeringDTO.md)
|
package/api.ts
CHANGED
|
@@ -1351,6 +1351,7 @@ export const AuditLogEntityTypeEnum = {
|
|
|
1351
1351
|
Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
|
|
1352
1352
|
Pops3cxUsers: 'pops_3cx_users',
|
|
1353
1353
|
_3cxServicePrincipals: '3cx_service_principals',
|
|
1354
|
+
_3cxCallLog: '3cx_call_log',
|
|
1354
1355
|
PopsUsers: 'pops_users',
|
|
1355
1356
|
PopsVideoRequests: 'pops_video_requests',
|
|
1356
1357
|
Webhook: 'webhook',
|
|
@@ -9971,6 +9972,39 @@ export interface TcxBulkLicenceDetailsModel {
|
|
|
9971
9972
|
*/
|
|
9972
9973
|
'errors': Array<TcxLicenceDetailsErrorModel>;
|
|
9973
9974
|
}
|
|
9975
|
+
/**
|
|
9976
|
+
* TcxCallLogEntity
|
|
9977
|
+
*/
|
|
9978
|
+
export interface TcxCallLogEntity {
|
|
9979
|
+
/**
|
|
9980
|
+
* instanceId
|
|
9981
|
+
*/
|
|
9982
|
+
'instanceId': string;
|
|
9983
|
+
/**
|
|
9984
|
+
* callId
|
|
9985
|
+
*/
|
|
9986
|
+
'callId': number;
|
|
9987
|
+
/**
|
|
9988
|
+
* number
|
|
9989
|
+
*/
|
|
9990
|
+
'number': string;
|
|
9991
|
+
/**
|
|
9992
|
+
* dn
|
|
9993
|
+
*/
|
|
9994
|
+
'dn': string;
|
|
9995
|
+
/**
|
|
9996
|
+
* device
|
|
9997
|
+
*/
|
|
9998
|
+
'device': string;
|
|
9999
|
+
/**
|
|
10000
|
+
* startedAt
|
|
10001
|
+
*/
|
|
10002
|
+
'startedAt': string;
|
|
10003
|
+
/**
|
|
10004
|
+
* endedAt
|
|
10005
|
+
*/
|
|
10006
|
+
'endedAt': string;
|
|
10007
|
+
}
|
|
9974
10008
|
/**
|
|
9975
10009
|
* DeadLicencesEntity
|
|
9976
10010
|
*/
|
|
@@ -20923,6 +20957,37 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
20923
20957
|
options: localVarRequestOptions,
|
|
20924
20958
|
};
|
|
20925
20959
|
},
|
|
20960
|
+
/**
|
|
20961
|
+
* Add to 3CX call log
|
|
20962
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
20963
|
+
* @param {*} [options] Override http request option.
|
|
20964
|
+
* @throws {RequiredError}
|
|
20965
|
+
*/
|
|
20966
|
+
postAddCallLog: async (tcxCallLogEntity?: TcxCallLogEntity, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20967
|
+
const localVarPath = `/tcx/cc/call/log`;
|
|
20968
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20969
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20970
|
+
let baseOptions;
|
|
20971
|
+
if (configuration) {
|
|
20972
|
+
baseOptions = configuration.baseOptions;
|
|
20973
|
+
}
|
|
20974
|
+
|
|
20975
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20976
|
+
const localVarHeaderParameter = {} as any;
|
|
20977
|
+
const localVarQueryParameter = {} as any;
|
|
20978
|
+
|
|
20979
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20980
|
+
|
|
20981
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20982
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20983
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20984
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tcxCallLogEntity, localVarRequestOptions, configuration)
|
|
20985
|
+
|
|
20986
|
+
return {
|
|
20987
|
+
url: toPathString(localVarUrlObj),
|
|
20988
|
+
options: localVarRequestOptions,
|
|
20989
|
+
};
|
|
20990
|
+
},
|
|
20926
20991
|
/**
|
|
20927
20992
|
* Get 3CX service principals
|
|
20928
20993
|
* @param {string} id Instance ID
|
|
@@ -21080,6 +21145,18 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
21080
21145
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetTcxPartners']?.[localVarOperationServerIndex]?.url;
|
|
21081
21146
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21082
21147
|
},
|
|
21148
|
+
/**
|
|
21149
|
+
* Add to 3CX call log
|
|
21150
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
21151
|
+
* @param {*} [options] Override http request option.
|
|
21152
|
+
* @throws {RequiredError}
|
|
21153
|
+
*/
|
|
21154
|
+
async postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
21155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddCallLog(tcxCallLogEntity, options);
|
|
21156
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21157
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.postAddCallLog']?.[localVarOperationServerIndex]?.url;
|
|
21158
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21159
|
+
},
|
|
21083
21160
|
/**
|
|
21084
21161
|
* Get 3CX service principals
|
|
21085
21162
|
* @param {string} id Instance ID
|
|
@@ -21176,6 +21253,15 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
21176
21253
|
getGetTcxPartners(options?: RawAxiosRequestConfig): AxiosPromise<Array<PartnerDTO>> {
|
|
21177
21254
|
return localVarFp.getGetTcxPartners(options).then((request) => request(axios, basePath));
|
|
21178
21255
|
},
|
|
21256
|
+
/**
|
|
21257
|
+
* Add to 3CX call log
|
|
21258
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
21259
|
+
* @param {*} [options] Override http request option.
|
|
21260
|
+
* @throws {RequiredError}
|
|
21261
|
+
*/
|
|
21262
|
+
postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21263
|
+
return localVarFp.postAddCallLog(tcxCallLogEntity, options).then((request) => request(axios, basePath));
|
|
21264
|
+
},
|
|
21179
21265
|
/**
|
|
21180
21266
|
* Get 3CX service principals
|
|
21181
21267
|
* @param {string} id Instance ID
|
|
@@ -21271,6 +21357,16 @@ export class Class3CXApi extends BaseAPI {
|
|
|
21271
21357
|
return Class3CXApiFp(this.configuration).getGetTcxPartners(options).then((request) => request(this.axios, this.basePath));
|
|
21272
21358
|
}
|
|
21273
21359
|
|
|
21360
|
+
/**
|
|
21361
|
+
* Add to 3CX call log
|
|
21362
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
21363
|
+
* @param {*} [options] Override http request option.
|
|
21364
|
+
* @throws {RequiredError}
|
|
21365
|
+
*/
|
|
21366
|
+
public postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig) {
|
|
21367
|
+
return Class3CXApiFp(this.configuration).postAddCallLog(tcxCallLogEntity, options).then((request) => request(this.axios, this.basePath));
|
|
21368
|
+
}
|
|
21369
|
+
|
|
21274
21370
|
/**
|
|
21275
21371
|
* Get 3CX service principals
|
|
21276
21372
|
* @param {string} id Instance ID
|
package/dist/api.d.ts
CHANGED
|
@@ -1318,6 +1318,7 @@ export declare const AuditLogEntityTypeEnum: {
|
|
|
1318
1318
|
readonly Pops3cxSipTrunks: "pops_3cx_sip_trunks";
|
|
1319
1319
|
readonly Pops3cxUsers: "pops_3cx_users";
|
|
1320
1320
|
readonly _3cxServicePrincipals: "3cx_service_principals";
|
|
1321
|
+
readonly _3cxCallLog: "3cx_call_log";
|
|
1321
1322
|
readonly PopsUsers: "pops_users";
|
|
1322
1323
|
readonly PopsVideoRequests: "pops_video_requests";
|
|
1323
1324
|
readonly Webhook: "webhook";
|
|
@@ -9778,6 +9779,39 @@ export interface TcxBulkLicenceDetailsModel {
|
|
|
9778
9779
|
*/
|
|
9779
9780
|
'errors': Array<TcxLicenceDetailsErrorModel>;
|
|
9780
9781
|
}
|
|
9782
|
+
/**
|
|
9783
|
+
* TcxCallLogEntity
|
|
9784
|
+
*/
|
|
9785
|
+
export interface TcxCallLogEntity {
|
|
9786
|
+
/**
|
|
9787
|
+
* instanceId
|
|
9788
|
+
*/
|
|
9789
|
+
'instanceId': string;
|
|
9790
|
+
/**
|
|
9791
|
+
* callId
|
|
9792
|
+
*/
|
|
9793
|
+
'callId': number;
|
|
9794
|
+
/**
|
|
9795
|
+
* number
|
|
9796
|
+
*/
|
|
9797
|
+
'number': string;
|
|
9798
|
+
/**
|
|
9799
|
+
* dn
|
|
9800
|
+
*/
|
|
9801
|
+
'dn': string;
|
|
9802
|
+
/**
|
|
9803
|
+
* device
|
|
9804
|
+
*/
|
|
9805
|
+
'device': string;
|
|
9806
|
+
/**
|
|
9807
|
+
* startedAt
|
|
9808
|
+
*/
|
|
9809
|
+
'startedAt': string;
|
|
9810
|
+
/**
|
|
9811
|
+
* endedAt
|
|
9812
|
+
*/
|
|
9813
|
+
'endedAt': string;
|
|
9814
|
+
}
|
|
9781
9815
|
/**
|
|
9782
9816
|
* DeadLicencesEntity
|
|
9783
9817
|
*/
|
|
@@ -15532,6 +15566,13 @@ export declare const Class3CXApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
15532
15566
|
* @throws {RequiredError}
|
|
15533
15567
|
*/
|
|
15534
15568
|
getGetTcxPartners: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15569
|
+
/**
|
|
15570
|
+
* Add to 3CX call log
|
|
15571
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
15572
|
+
* @param {*} [options] Override http request option.
|
|
15573
|
+
* @throws {RequiredError}
|
|
15574
|
+
*/
|
|
15575
|
+
postAddCallLog: (tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15535
15576
|
/**
|
|
15536
15577
|
* Get 3CX service principals
|
|
15537
15578
|
* @param {string} id Instance ID
|
|
@@ -15600,6 +15641,13 @@ export declare const Class3CXApiFp: (configuration?: Configuration) => {
|
|
|
15600
15641
|
* @throws {RequiredError}
|
|
15601
15642
|
*/
|
|
15602
15643
|
getGetTcxPartners(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PartnerDTO>>>;
|
|
15644
|
+
/**
|
|
15645
|
+
* Add to 3CX call log
|
|
15646
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
15647
|
+
* @param {*} [options] Override http request option.
|
|
15648
|
+
* @throws {RequiredError}
|
|
15649
|
+
*/
|
|
15650
|
+
postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15603
15651
|
/**
|
|
15604
15652
|
* Get 3CX service principals
|
|
15605
15653
|
* @param {string} id Instance ID
|
|
@@ -15668,6 +15716,13 @@ export declare const Class3CXApiFactory: (configuration?: Configuration, basePat
|
|
|
15668
15716
|
* @throws {RequiredError}
|
|
15669
15717
|
*/
|
|
15670
15718
|
getGetTcxPartners(options?: RawAxiosRequestConfig): AxiosPromise<Array<PartnerDTO>>;
|
|
15719
|
+
/**
|
|
15720
|
+
* Add to 3CX call log
|
|
15721
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
15722
|
+
* @param {*} [options] Override http request option.
|
|
15723
|
+
* @throws {RequiredError}
|
|
15724
|
+
*/
|
|
15725
|
+
postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15671
15726
|
/**
|
|
15672
15727
|
* Get 3CX service principals
|
|
15673
15728
|
* @param {string} id Instance ID
|
|
@@ -15736,6 +15791,13 @@ export declare class Class3CXApi extends BaseAPI {
|
|
|
15736
15791
|
* @throws {RequiredError}
|
|
15737
15792
|
*/
|
|
15738
15793
|
getGetTcxPartners(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PartnerDTO[], any, {}, any>>;
|
|
15794
|
+
/**
|
|
15795
|
+
* Add to 3CX call log
|
|
15796
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
15797
|
+
* @param {*} [options] Override http request option.
|
|
15798
|
+
* @throws {RequiredError}
|
|
15799
|
+
*/
|
|
15800
|
+
postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
15739
15801
|
/**
|
|
15740
15802
|
* Get 3CX service principals
|
|
15741
15803
|
* @param {string} id Instance ID
|
package/dist/api.js
CHANGED
|
@@ -242,6 +242,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
242
242
|
Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
|
|
243
243
|
Pops3cxUsers: 'pops_3cx_users',
|
|
244
244
|
_3cxServicePrincipals: '3cx_service_principals',
|
|
245
|
+
_3cxCallLog: '3cx_call_log',
|
|
245
246
|
PopsUsers: 'pops_users',
|
|
246
247
|
PopsVideoRequests: 'pops_video_requests',
|
|
247
248
|
Webhook: 'webhook',
|
|
@@ -11898,6 +11899,41 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
|
|
|
11898
11899
|
});
|
|
11899
11900
|
});
|
|
11900
11901
|
},
|
|
11902
|
+
/**
|
|
11903
|
+
* Add to 3CX call log
|
|
11904
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
11905
|
+
* @param {*} [options] Override http request option.
|
|
11906
|
+
* @throws {RequiredError}
|
|
11907
|
+
*/
|
|
11908
|
+
postAddCallLog: function (tcxCallLogEntity_1) {
|
|
11909
|
+
var args_1 = [];
|
|
11910
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
11911
|
+
args_1[_i - 1] = arguments[_i];
|
|
11912
|
+
}
|
|
11913
|
+
return __awaiter(_this, __spreadArray([tcxCallLogEntity_1], args_1, true), void 0, function (tcxCallLogEntity, options) {
|
|
11914
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11915
|
+
if (options === void 0) { options = {}; }
|
|
11916
|
+
return __generator(this, function (_a) {
|
|
11917
|
+
localVarPath = "/tcx/cc/call/log";
|
|
11918
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11919
|
+
if (configuration) {
|
|
11920
|
+
baseOptions = configuration.baseOptions;
|
|
11921
|
+
}
|
|
11922
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
11923
|
+
localVarHeaderParameter = {};
|
|
11924
|
+
localVarQueryParameter = {};
|
|
11925
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11926
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11927
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11928
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11929
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tcxCallLogEntity, localVarRequestOptions, configuration);
|
|
11930
|
+
return [2 /*return*/, {
|
|
11931
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11932
|
+
options: localVarRequestOptions,
|
|
11933
|
+
}];
|
|
11934
|
+
});
|
|
11935
|
+
});
|
|
11936
|
+
},
|
|
11901
11937
|
/**
|
|
11902
11938
|
* Get 3CX service principals
|
|
11903
11939
|
* @param {string} id Instance ID
|
|
@@ -12133,6 +12169,28 @@ var Class3CXApiFp = function (configuration) {
|
|
|
12133
12169
|
});
|
|
12134
12170
|
});
|
|
12135
12171
|
},
|
|
12172
|
+
/**
|
|
12173
|
+
* Add to 3CX call log
|
|
12174
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
12175
|
+
* @param {*} [options] Override http request option.
|
|
12176
|
+
* @throws {RequiredError}
|
|
12177
|
+
*/
|
|
12178
|
+
postAddCallLog: function (tcxCallLogEntity, options) {
|
|
12179
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12180
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12181
|
+
var _a, _b, _c;
|
|
12182
|
+
return __generator(this, function (_d) {
|
|
12183
|
+
switch (_d.label) {
|
|
12184
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddCallLog(tcxCallLogEntity, options)];
|
|
12185
|
+
case 1:
|
|
12186
|
+
localVarAxiosArgs = _d.sent();
|
|
12187
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12188
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.postAddCallLog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12189
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12190
|
+
}
|
|
12191
|
+
});
|
|
12192
|
+
});
|
|
12193
|
+
},
|
|
12136
12194
|
/**
|
|
12137
12195
|
* Get 3CX service principals
|
|
12138
12196
|
* @param {string} id Instance ID
|
|
@@ -12249,6 +12307,15 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
|
|
|
12249
12307
|
getGetTcxPartners: function (options) {
|
|
12250
12308
|
return localVarFp.getGetTcxPartners(options).then(function (request) { return request(axios, basePath); });
|
|
12251
12309
|
},
|
|
12310
|
+
/**
|
|
12311
|
+
* Add to 3CX call log
|
|
12312
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
12313
|
+
* @param {*} [options] Override http request option.
|
|
12314
|
+
* @throws {RequiredError}
|
|
12315
|
+
*/
|
|
12316
|
+
postAddCallLog: function (tcxCallLogEntity, options) {
|
|
12317
|
+
return localVarFp.postAddCallLog(tcxCallLogEntity, options).then(function (request) { return request(axios, basePath); });
|
|
12318
|
+
},
|
|
12252
12319
|
/**
|
|
12253
12320
|
* Get 3CX service principals
|
|
12254
12321
|
* @param {string} id Instance ID
|
|
@@ -12348,6 +12415,16 @@ var Class3CXApi = /** @class */ (function (_super) {
|
|
|
12348
12415
|
var _this = this;
|
|
12349
12416
|
return (0, exports.Class3CXApiFp)(this.configuration).getGetTcxPartners(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12350
12417
|
};
|
|
12418
|
+
/**
|
|
12419
|
+
* Add to 3CX call log
|
|
12420
|
+
* @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
|
|
12421
|
+
* @param {*} [options] Override http request option.
|
|
12422
|
+
* @throws {RequiredError}
|
|
12423
|
+
*/
|
|
12424
|
+
Class3CXApi.prototype.postAddCallLog = function (tcxCallLogEntity, options) {
|
|
12425
|
+
var _this = this;
|
|
12426
|
+
return (0, exports.Class3CXApiFp)(this.configuration).postAddCallLog(tcxCallLogEntity, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12427
|
+
};
|
|
12351
12428
|
/**
|
|
12352
12429
|
* Get 3CX service principals
|
|
12353
12430
|
* @param {string} id Instance ID
|
package/docs/Class3CXApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
11
11
|
|[**getGetTcxExpiringKeys**](#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys|
|
|
12
12
|
|[**getGetTcxExpiringKeysCsv**](#getgettcxexpiringkeyscsv) | **GET** /tcx/admin/keys/expiring/csv | Get 3CX Expiring Keys|
|
|
13
13
|
|[**getGetTcxPartners**](#getgettcxpartners) | **GET** /tcx/admin/partners | Get 3CX Partners|
|
|
14
|
+
|[**postAddCallLog**](#postaddcalllog) | **POST** /tcx/cc/call/log | |
|
|
14
15
|
|[**postAuthenticateInstanceWebsocket**](#postauthenticateinstancewebsocket) | **POST** /tcx/cc/instance/auth/{id} | |
|
|
15
16
|
|[**postGetBulkLicenceDetails**](#postgetbulklicencedetails) | **POST** /tcx/licences/bulk/details | Get bulk 3CX Licence Details|
|
|
16
17
|
|
|
@@ -350,6 +351,61 @@ No authorization required
|
|
|
350
351
|
|
|
351
352
|
[[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)
|
|
352
353
|
|
|
354
|
+
# **postAddCallLog**
|
|
355
|
+
> postAddCallLog()
|
|
356
|
+
|
|
357
|
+
Add to 3CX call log
|
|
358
|
+
|
|
359
|
+
### Example
|
|
360
|
+
|
|
361
|
+
```typescript
|
|
362
|
+
import {
|
|
363
|
+
Class3CXApi,
|
|
364
|
+
Configuration,
|
|
365
|
+
TcxCallLogEntity
|
|
366
|
+
} from 'yellowgrid-api-ts';
|
|
367
|
+
|
|
368
|
+
const configuration = new Configuration();
|
|
369
|
+
const apiInstance = new Class3CXApi(configuration);
|
|
370
|
+
|
|
371
|
+
let tcxCallLogEntity: TcxCallLogEntity; //Call Log (optional)
|
|
372
|
+
|
|
373
|
+
const { status, data } = await apiInstance.postAddCallLog(
|
|
374
|
+
tcxCallLogEntity
|
|
375
|
+
);
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Parameters
|
|
379
|
+
|
|
380
|
+
|Name | Type | Description | Notes|
|
|
381
|
+
|------------- | ------------- | ------------- | -------------|
|
|
382
|
+
| **tcxCallLogEntity** | **TcxCallLogEntity**| Call Log | |
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### Return type
|
|
386
|
+
|
|
387
|
+
void (empty response body)
|
|
388
|
+
|
|
389
|
+
### Authorization
|
|
390
|
+
|
|
391
|
+
No authorization required
|
|
392
|
+
|
|
393
|
+
### HTTP request headers
|
|
394
|
+
|
|
395
|
+
- **Content-Type**: application/json
|
|
396
|
+
- **Accept**: Not defined
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
### HTTP response details
|
|
400
|
+
| Status code | Description | Response headers |
|
|
401
|
+
|-------------|-------------|------------------|
|
|
402
|
+
|**204** | No Response | - |
|
|
403
|
+
|**400** | Bad Request | - |
|
|
404
|
+
|**401** | Unauthorised | - |
|
|
405
|
+
|**403** | Access Denied | - |
|
|
406
|
+
|
|
407
|
+
[[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)
|
|
408
|
+
|
|
353
409
|
# **postAuthenticateInstanceWebsocket**
|
|
354
410
|
> postAuthenticateInstanceWebsocket()
|
|
355
411
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# TcxCallLogEntity
|
|
2
|
+
|
|
3
|
+
TcxCallLogEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**instanceId** | **string** | instanceId | [default to undefined]
|
|
10
|
+
**callId** | **number** | callId | [default to undefined]
|
|
11
|
+
**number** | **string** | number | [default to undefined]
|
|
12
|
+
**dn** | **string** | dn | [default to undefined]
|
|
13
|
+
**device** | **string** | device | [default to undefined]
|
|
14
|
+
**startedAt** | **string** | startedAt | [default to undefined]
|
|
15
|
+
**endedAt** | **string** | endedAt | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { TcxCallLogEntity } from 'yellowgrid-api-ts';
|
|
21
|
+
|
|
22
|
+
const instance: TcxCallLogEntity = {
|
|
23
|
+
instanceId,
|
|
24
|
+
callId,
|
|
25
|
+
number,
|
|
26
|
+
dn,
|
|
27
|
+
device,
|
|
28
|
+
startedAt,
|
|
29
|
+
endedAt,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|