yellowgrid-api-ts 3.2.347 → 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.
@@ -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,8 @@ docs/TcxBackupEntity.md
368
367
  docs/TcxBackupModel.md
369
368
  docs/TcxBillingEntity.md
370
369
  docs/TcxBulkLicenceDetailsModel.md
370
+ docs/TcxCallLogCollectionModel.md
371
+ docs/TcxCallLogEntity.md
371
372
  docs/TcxDeadLicenceEntity.md
372
373
  docs/TcxEngineerTaskDTO.md
373
374
  docs/TcxEngineeringDTO.md
@@ -416,4 +417,3 @@ docs/XeroLogEntity.md
416
417
  git_push.sh
417
418
  index.ts
418
419
  package.json
419
- tsconfig.json
@@ -1 +1 @@
1
- 7.26.0
1
+ 7.27.0
@@ -21,3 +21,4 @@
21
21
  #docs/*.md
22
22
  # Then explicitly reverse the ignore rule for a single file:
23
23
  #!docs/README.md
24
+ tsconfig.json
package/README.md CHANGED
@@ -182,12 +182,14 @@ 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
188
189
  *Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
189
190
  *Class3CXApi* | [**getGetTcxExpiringKeysCsv**](docs/Class3CXApi.md#getgettcxexpiringkeyscsv) | **GET** /tcx/admin/keys/expiring/csv | Get 3CX Expiring Keys
190
191
  *Class3CXApi* | [**getGetTcxPartners**](docs/Class3CXApi.md#getgettcxpartners) | **GET** /tcx/admin/partners | Get 3CX Partners
192
+ *Class3CXApi* | [**postAddCallLog**](docs/Class3CXApi.md#postaddcalllog) | **POST** /tcx/cc/call/log |
191
193
  *Class3CXApi* | [**postAuthenticateInstanceWebsocket**](docs/Class3CXApi.md#postauthenticateinstancewebsocket) | **POST** /tcx/cc/instance/auth/{id} |
192
194
  *Class3CXApi* | [**postGetBulkLicenceDetails**](docs/Class3CXApi.md#postgetbulklicencedetails) | **POST** /tcx/licences/bulk/details | Get bulk 3CX Licence Details
193
195
  *Class3CXInstallationWizardApi* | [**deleteAddExtensions**](docs/Class3CXInstallationWizardApi.md#deleteaddextensions) | **DELETE** /tcx/wizards/extensions | Delete 3CX Installation Wizard Extensions
@@ -792,6 +794,8 @@ Class | Method | HTTP request | Description
792
794
  - [TcxBackupModel](docs/TcxBackupModel.md)
793
795
  - [TcxBillingEntity](docs/TcxBillingEntity.md)
794
796
  - [TcxBulkLicenceDetailsModel](docs/TcxBulkLicenceDetailsModel.md)
797
+ - [TcxCallLogCollectionModel](docs/TcxCallLogCollectionModel.md)
798
+ - [TcxCallLogEntity](docs/TcxCallLogEntity.md)
795
799
  - [TcxDeadLicenceEntity](docs/TcxDeadLicenceEntity.md)
796
800
  - [TcxEngineerTaskDTO](docs/TcxEngineerTaskDTO.md)
797
801
  - [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,67 @@ export interface TcxBulkLicenceDetailsModel {
9971
9972
  */
9972
9973
  'errors': Array<TcxLicenceDetailsErrorModel>;
9973
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
+ }
9988
+ /**
9989
+ * TcxCallLogEntity
9990
+ */
9991
+ export interface TcxCallLogEntity {
9992
+ /**
9993
+ * instanceId
9994
+ */
9995
+ 'instanceId': string;
9996
+ /**
9997
+ * callId
9998
+ */
9999
+ 'callId': number;
10000
+ /**
10001
+ * number
10002
+ */
10003
+ 'type': string;
10004
+ /**
10005
+ * type
10006
+ */
10007
+ 'number': TcxCallLogEntityNumberEnum;
10008
+ /**
10009
+ * dn
10010
+ */
10011
+ 'dn': string;
10012
+ /**
10013
+ * device
10014
+ */
10015
+ 'device': string;
10016
+ /**
10017
+ * startedAt
10018
+ */
10019
+ 'startedAt': string;
10020
+ /**
10021
+ * endedAt
10022
+ */
10023
+ 'endedAt': string;
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
+
9974
10036
  /**
9975
10037
  * DeadLicencesEntity
9976
10038
  */
@@ -20737,6 +20799,60 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
20737
20799
  options: localVarRequestOptions,
20738
20800
  };
20739
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
+ },
20740
20856
  /**
20741
20857
  * Get 3CX Licence Details
20742
20858
  * @summary Get 3CX Licence Details
@@ -20923,6 +21039,37 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
20923
21039
  options: localVarRequestOptions,
20924
21040
  };
20925
21041
  },
21042
+ /**
21043
+ * Add to 3CX call log
21044
+ * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
21045
+ * @param {*} [options] Override http request option.
21046
+ * @throws {RequiredError}
21047
+ */
21048
+ postAddCallLog: async (tcxCallLogEntity?: TcxCallLogEntity, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21049
+ const localVarPath = `/tcx/cc/call/log`;
21050
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21051
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21052
+ let baseOptions;
21053
+ if (configuration) {
21054
+ baseOptions = configuration.baseOptions;
21055
+ }
21056
+
21057
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21058
+ const localVarHeaderParameter = {} as any;
21059
+ const localVarQueryParameter = {} as any;
21060
+
21061
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21062
+
21063
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21064
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21065
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21066
+ localVarRequestOptions.data = serializeDataIfNeeded(tcxCallLogEntity, localVarRequestOptions, configuration)
21067
+
21068
+ return {
21069
+ url: toPathString(localVarUrlObj),
21070
+ options: localVarRequestOptions,
21071
+ };
21072
+ },
20926
21073
  /**
20927
21074
  * Get 3CX service principals
20928
21075
  * @param {string} id Instance ID
@@ -21008,6 +21155,21 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
21008
21155
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetCCDevices']?.[localVarOperationServerIndex]?.url;
21009
21156
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21010
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
+ },
21011
21173
  /**
21012
21174
  * Get 3CX Licence Details
21013
21175
  * @summary Get 3CX Licence Details
@@ -21080,6 +21242,18 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
21080
21242
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetTcxPartners']?.[localVarOperationServerIndex]?.url;
21081
21243
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21082
21244
  },
21245
+ /**
21246
+ * Add to 3CX call log
21247
+ * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
21248
+ * @param {*} [options] Override http request option.
21249
+ * @throws {RequiredError}
21250
+ */
21251
+ async postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddCallLog(tcxCallLogEntity, options);
21253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21254
+ const localVarOperationServerBasePath = operationServerMap['Class3CXApi.postAddCallLog']?.[localVarOperationServerIndex]?.url;
21255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21256
+ },
21083
21257
  /**
21084
21258
  * Get 3CX service principals
21085
21259
  * @param {string} id Instance ID
@@ -21122,6 +21296,18 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
21122
21296
  getGetCCDevices(options?: RawAxiosRequestConfig): AxiosPromise<Array<DeviceModel>> {
21123
21297
  return localVarFp.getGetCCDevices(options).then((request) => request(axios, basePath));
21124
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
+ },
21125
21311
  /**
21126
21312
  * Get 3CX Licence Details
21127
21313
  * @summary Get 3CX Licence Details
@@ -21176,6 +21362,15 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
21176
21362
  getGetTcxPartners(options?: RawAxiosRequestConfig): AxiosPromise<Array<PartnerDTO>> {
21177
21363
  return localVarFp.getGetTcxPartners(options).then((request) => request(axios, basePath));
21178
21364
  },
21365
+ /**
21366
+ * Add to 3CX call log
21367
+ * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
21368
+ * @param {*} [options] Override http request option.
21369
+ * @throws {RequiredError}
21370
+ */
21371
+ postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21372
+ return localVarFp.postAddCallLog(tcxCallLogEntity, options).then((request) => request(axios, basePath));
21373
+ },
21179
21374
  /**
21180
21375
  * Get 3CX service principals
21181
21376
  * @param {string} id Instance ID
@@ -21211,6 +21406,19 @@ export class Class3CXApi extends BaseAPI {
21211
21406
  return Class3CXApiFp(this.configuration).getGetCCDevices(options).then((request) => request(this.axios, this.basePath));
21212
21407
  }
21213
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
+
21214
21422
  /**
21215
21423
  * Get 3CX Licence Details
21216
21424
  * @summary Get 3CX Licence Details
@@ -21271,6 +21479,16 @@ export class Class3CXApi extends BaseAPI {
21271
21479
  return Class3CXApiFp(this.configuration).getGetTcxPartners(options).then((request) => request(this.axios, this.basePath));
21272
21480
  }
21273
21481
 
21482
+ /**
21483
+ * Add to 3CX call log
21484
+ * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
21485
+ * @param {*} [options] Override http request option.
21486
+ * @throws {RequiredError}
21487
+ */
21488
+ public postAddCallLog(tcxCallLogEntity?: TcxCallLogEntity, options?: RawAxiosRequestConfig) {
21489
+ return Class3CXApiFp(this.configuration).postAddCallLog(tcxCallLogEntity, options).then((request) => request(this.axios, this.basePath));
21490
+ }
21491
+
21274
21492
  /**
21275
21493
  * Get 3CX service principals
21276
21494
  * @param {string} id Instance ID