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/.openapi-generator/FILES
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
|
-
.openapi-generator-ignore
|
|
4
3
|
README.md
|
|
5
4
|
api.ts
|
|
6
5
|
base.ts
|
|
@@ -368,6 +367,7 @@ docs/TcxBackupEntity.md
|
|
|
368
367
|
docs/TcxBackupModel.md
|
|
369
368
|
docs/TcxBillingEntity.md
|
|
370
369
|
docs/TcxBulkLicenceDetailsModel.md
|
|
370
|
+
docs/TcxCallLogCollectionModel.md
|
|
371
371
|
docs/TcxCallLogEntity.md
|
|
372
372
|
docs/TcxDeadLicenceEntity.md
|
|
373
373
|
docs/TcxEngineerTaskDTO.md
|
|
@@ -417,4 +417,3 @@ docs/XeroLogEntity.md
|
|
|
417
417
|
git_push.sh
|
|
418
418
|
index.ts
|
|
419
419
|
package.json
|
|
420
|
-
tsconfig.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.27.0
|
package/README.md
CHANGED
|
@@ -182,6 +182,7 @@ Class | Method | HTTP request | Description
|
|
|
182
182
|
*CRMApi* | [**postCreateCrmNote**](docs/CRMApi.md#postcreatecrmnote) | **POST** /admin/crm/{id}/activities/note |
|
|
183
183
|
*CRMApi* | [**postJournalCall**](docs/CRMApi.md#postjournalcall) | **POST** /crm/contact/{id}/journal |
|
|
184
184
|
*Class3CXApi* | [**getGetCCDevices**](docs/Class3CXApi.md#getgetccdevices) | **GET** /tcx/cc/devices |
|
|
185
|
+
*Class3CXApi* | [**getGetCallHistory**](docs/Class3CXApi.md#getgetcallhistory) | **GET** /tcx/cc/instance/{id}/calls |
|
|
185
186
|
*Class3CXApi* | [**getGetLicenceDetails**](docs/Class3CXApi.md#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details
|
|
186
187
|
*Class3CXApi* | [**getGetServicePrincipals**](docs/Class3CXApi.md#getgetserviceprincipals) | **GET** /tcx/cc/services |
|
|
187
188
|
*Class3CXApi* | [**getGetTcxCreditStatus**](docs/Class3CXApi.md#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status
|
|
@@ -793,6 +794,7 @@ Class | Method | HTTP request | Description
|
|
|
793
794
|
- [TcxBackupModel](docs/TcxBackupModel.md)
|
|
794
795
|
- [TcxBillingEntity](docs/TcxBillingEntity.md)
|
|
795
796
|
- [TcxBulkLicenceDetailsModel](docs/TcxBulkLicenceDetailsModel.md)
|
|
797
|
+
- [TcxCallLogCollectionModel](docs/TcxCallLogCollectionModel.md)
|
|
796
798
|
- [TcxCallLogEntity](docs/TcxCallLogEntity.md)
|
|
797
799
|
- [TcxDeadLicenceEntity](docs/TcxDeadLicenceEntity.md)
|
|
798
800
|
- [TcxEngineerTaskDTO](docs/TcxEngineerTaskDTO.md)
|
package/api.ts
CHANGED
|
@@ -9972,6 +9972,19 @@ export interface TcxBulkLicenceDetailsModel {
|
|
|
9972
9972
|
*/
|
|
9973
9973
|
'errors': Array<TcxLicenceDetailsErrorModel>;
|
|
9974
9974
|
}
|
|
9975
|
+
/**
|
|
9976
|
+
* 3CX Call Log Collection
|
|
9977
|
+
*/
|
|
9978
|
+
export interface TcxCallLogCollectionModel {
|
|
9979
|
+
/**
|
|
9980
|
+
* Calls
|
|
9981
|
+
*/
|
|
9982
|
+
'calls': Array<TcxCallLogEntity>;
|
|
9983
|
+
/**
|
|
9984
|
+
* Peak Active Calls
|
|
9985
|
+
*/
|
|
9986
|
+
'active': number;
|
|
9987
|
+
}
|
|
9975
9988
|
/**
|
|
9976
9989
|
* TcxCallLogEntity
|
|
9977
9990
|
*/
|
|
@@ -9987,7 +10000,11 @@ export interface TcxCallLogEntity {
|
|
|
9987
10000
|
/**
|
|
9988
10001
|
* number
|
|
9989
10002
|
*/
|
|
9990
|
-
'
|
|
10003
|
+
'type': string;
|
|
10004
|
+
/**
|
|
10005
|
+
* type
|
|
10006
|
+
*/
|
|
10007
|
+
'number': TcxCallLogEntityNumberEnum;
|
|
9991
10008
|
/**
|
|
9992
10009
|
* dn
|
|
9993
10010
|
*/
|
|
@@ -10005,6 +10022,17 @@ export interface TcxCallLogEntity {
|
|
|
10005
10022
|
*/
|
|
10006
10023
|
'endedAt': string;
|
|
10007
10024
|
}
|
|
10025
|
+
|
|
10026
|
+
export const TcxCallLogEntityNumberEnum = {
|
|
10027
|
+
Dialing: 'dialing',
|
|
10028
|
+
Ended: 'ended',
|
|
10029
|
+
Call: 'call',
|
|
10030
|
+
Ringing: 'ringing',
|
|
10031
|
+
Connected: 'connected',
|
|
10032
|
+
} as const;
|
|
10033
|
+
|
|
10034
|
+
export type TcxCallLogEntityNumberEnum = typeof TcxCallLogEntityNumberEnum[keyof typeof TcxCallLogEntityNumberEnum];
|
|
10035
|
+
|
|
10008
10036
|
/**
|
|
10009
10037
|
* DeadLicencesEntity
|
|
10010
10038
|
*/
|
|
@@ -20771,6 +20799,60 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
20771
20799
|
options: localVarRequestOptions,
|
|
20772
20800
|
};
|
|
20773
20801
|
},
|
|
20802
|
+
/**
|
|
20803
|
+
* Get 3CX call history
|
|
20804
|
+
* @param {string} id Instance ID
|
|
20805
|
+
* @param {string} trunk Trunk
|
|
20806
|
+
* @param {string} [start] Start Date
|
|
20807
|
+
* @param {string} [end] End Date
|
|
20808
|
+
* @param {*} [options] Override http request option.
|
|
20809
|
+
* @throws {RequiredError}
|
|
20810
|
+
*/
|
|
20811
|
+
getGetCallHistory: async (id: string, trunk: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20812
|
+
// verify required parameter 'id' is not null or undefined
|
|
20813
|
+
assertParamExists('getGetCallHistory', 'id', id)
|
|
20814
|
+
// verify required parameter 'trunk' is not null or undefined
|
|
20815
|
+
assertParamExists('getGetCallHistory', 'trunk', trunk)
|
|
20816
|
+
const localVarPath = `/tcx/cc/instance/{id}/calls`
|
|
20817
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
20818
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20819
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20820
|
+
let baseOptions;
|
|
20821
|
+
if (configuration) {
|
|
20822
|
+
baseOptions = configuration.baseOptions;
|
|
20823
|
+
}
|
|
20824
|
+
|
|
20825
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20826
|
+
const localVarHeaderParameter = {} as any;
|
|
20827
|
+
const localVarQueryParameter = {} as any;
|
|
20828
|
+
|
|
20829
|
+
if (start !== undefined) {
|
|
20830
|
+
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
20831
|
+
(start as any).toISOString().substring(0,10) :
|
|
20832
|
+
start;
|
|
20833
|
+
}
|
|
20834
|
+
|
|
20835
|
+
if (end !== undefined) {
|
|
20836
|
+
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
20837
|
+
(end as any).toISOString().substring(0,10) :
|
|
20838
|
+
end;
|
|
20839
|
+
}
|
|
20840
|
+
|
|
20841
|
+
if (trunk !== undefined) {
|
|
20842
|
+
localVarQueryParameter['trunk'] = trunk;
|
|
20843
|
+
}
|
|
20844
|
+
|
|
20845
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
20846
|
+
|
|
20847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20849
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20850
|
+
|
|
20851
|
+
return {
|
|
20852
|
+
url: toPathString(localVarUrlObj),
|
|
20853
|
+
options: localVarRequestOptions,
|
|
20854
|
+
};
|
|
20855
|
+
},
|
|
20774
20856
|
/**
|
|
20775
20857
|
* Get 3CX Licence Details
|
|
20776
20858
|
* @summary Get 3CX Licence Details
|
|
@@ -21073,6 +21155,21 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
21073
21155
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetCCDevices']?.[localVarOperationServerIndex]?.url;
|
|
21074
21156
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21075
21157
|
},
|
|
21158
|
+
/**
|
|
21159
|
+
* Get 3CX call history
|
|
21160
|
+
* @param {string} id Instance ID
|
|
21161
|
+
* @param {string} trunk Trunk
|
|
21162
|
+
* @param {string} [start] Start Date
|
|
21163
|
+
* @param {string} [end] End Date
|
|
21164
|
+
* @param {*} [options] Override http request option.
|
|
21165
|
+
* @throws {RequiredError}
|
|
21166
|
+
*/
|
|
21167
|
+
async getGetCallHistory(id: string, trunk: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxCallLogCollectionModel>> {
|
|
21168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCallHistory(id, trunk, start, end, options);
|
|
21169
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21170
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetCallHistory']?.[localVarOperationServerIndex]?.url;
|
|
21171
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21172
|
+
},
|
|
21076
21173
|
/**
|
|
21077
21174
|
* Get 3CX Licence Details
|
|
21078
21175
|
* @summary Get 3CX Licence Details
|
|
@@ -21199,6 +21296,18 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
21199
21296
|
getGetCCDevices(options?: RawAxiosRequestConfig): AxiosPromise<Array<DeviceModel>> {
|
|
21200
21297
|
return localVarFp.getGetCCDevices(options).then((request) => request(axios, basePath));
|
|
21201
21298
|
},
|
|
21299
|
+
/**
|
|
21300
|
+
* Get 3CX call history
|
|
21301
|
+
* @param {string} id Instance ID
|
|
21302
|
+
* @param {string} trunk Trunk
|
|
21303
|
+
* @param {string} [start] Start Date
|
|
21304
|
+
* @param {string} [end] End Date
|
|
21305
|
+
* @param {*} [options] Override http request option.
|
|
21306
|
+
* @throws {RequiredError}
|
|
21307
|
+
*/
|
|
21308
|
+
getGetCallHistory(id: string, trunk: string, start?: string, end?: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxCallLogCollectionModel> {
|
|
21309
|
+
return localVarFp.getGetCallHistory(id, trunk, start, end, options).then((request) => request(axios, basePath));
|
|
21310
|
+
},
|
|
21202
21311
|
/**
|
|
21203
21312
|
* Get 3CX Licence Details
|
|
21204
21313
|
* @summary Get 3CX Licence Details
|
|
@@ -21297,6 +21406,19 @@ export class Class3CXApi extends BaseAPI {
|
|
|
21297
21406
|
return Class3CXApiFp(this.configuration).getGetCCDevices(options).then((request) => request(this.axios, this.basePath));
|
|
21298
21407
|
}
|
|
21299
21408
|
|
|
21409
|
+
/**
|
|
21410
|
+
* Get 3CX call history
|
|
21411
|
+
* @param {string} id Instance ID
|
|
21412
|
+
* @param {string} trunk Trunk
|
|
21413
|
+
* @param {string} [start] Start Date
|
|
21414
|
+
* @param {string} [end] End Date
|
|
21415
|
+
* @param {*} [options] Override http request option.
|
|
21416
|
+
* @throws {RequiredError}
|
|
21417
|
+
*/
|
|
21418
|
+
public getGetCallHistory(id: string, trunk: string, start?: string, end?: string, options?: RawAxiosRequestConfig) {
|
|
21419
|
+
return Class3CXApiFp(this.configuration).getGetCallHistory(id, trunk, start, end, options).then((request) => request(this.axios, this.basePath));
|
|
21420
|
+
}
|
|
21421
|
+
|
|
21300
21422
|
/**
|
|
21301
21423
|
* Get 3CX Licence Details
|
|
21302
21424
|
* @summary Get 3CX Licence Details
|