yellowgrid-api-ts 3.2.360 → 3.2.362

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.
@@ -393,10 +393,13 @@ docs/TcxSbcEntity.md
393
393
  docs/TcxSbcModel.md
394
394
  docs/TcxSbcResponseDTO.md
395
395
  docs/TcxServicePrincipalEntity.md
396
+ docs/TcxServicePrincipalModel.md
396
397
  docs/TcxSetupEntity.md
397
398
  docs/TcxSetupsModel.md
398
399
  docs/TcxSipTrunksEntity.md
399
400
  docs/TcxSummaryDTO.md
401
+ docs/TcxTccAlertsEntity.md
402
+ docs/TcxTccMonitoringEntity.md
400
403
  docs/TcxTemplateXmlEnum.md
401
404
  docs/TcxUsersEntity.md
402
405
  docs/TcxWizardConfigModel.md
package/README.md CHANGED
@@ -181,6 +181,7 @@ Class | Method | HTTP request | Description
181
181
  *CRMApi* | [**getSearchByPhone**](docs/CRMApi.md#getsearchbyphone) | **GET** /crm/contact/search |
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
+ *Class3CXApi* | [**getAddAlert**](docs/Class3CXApi.md#getaddalert) | **GET** /tcx/cc/instance/{id}/alerts |
184
185
  *Class3CXApi* | [**getGetCCDevices**](docs/Class3CXApi.md#getgetccdevices) | **GET** /tcx/cc/devices |
185
186
  *Class3CXApi* | [**getGetCallHistory**](docs/Class3CXApi.md#getgetcallhistory) | **GET** /tcx/cc/instance/{id}/calls |
186
187
  *Class3CXApi* | [**getGetLicenceDetails**](docs/Class3CXApi.md#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details
@@ -189,6 +190,7 @@ Class | Method | HTTP request | Description
189
190
  *Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
190
191
  *Class3CXApi* | [**getGetTcxExpiringKeysCsv**](docs/Class3CXApi.md#getgettcxexpiringkeyscsv) | **GET** /tcx/admin/keys/expiring/csv | Get 3CX Expiring Keys
191
192
  *Class3CXApi* | [**getGetTcxPartners**](docs/Class3CXApi.md#getgettcxpartners) | **GET** /tcx/admin/partners | Get 3CX Partners
193
+ *Class3CXApi* | [**postAddAlert**](docs/Class3CXApi.md#postaddalert) | **POST** /tcx/cc/instance/{id}/alerts |
192
194
  *Class3CXApi* | [**postAddCallLog**](docs/Class3CXApi.md#postaddcalllog) | **POST** /tcx/cc/call/log |
193
195
  *Class3CXApi* | [**postAuthenticateInstanceWebsocket**](docs/Class3CXApi.md#postauthenticateinstancewebsocket) | **POST** /tcx/cc/instance/auth/{id} |
194
196
  *Class3CXApi* | [**postGetBulkLicenceDetails**](docs/Class3CXApi.md#postgetbulklicencedetails) | **POST** /tcx/licences/bulk/details | Get bulk 3CX Licence Details
@@ -820,10 +822,13 @@ Class | Method | HTTP request | Description
820
822
  - [TcxSbcModel](docs/TcxSbcModel.md)
821
823
  - [TcxSbcResponseDTO](docs/TcxSbcResponseDTO.md)
822
824
  - [TcxServicePrincipalEntity](docs/TcxServicePrincipalEntity.md)
825
+ - [TcxServicePrincipalModel](docs/TcxServicePrincipalModel.md)
823
826
  - [TcxSetupEntity](docs/TcxSetupEntity.md)
824
827
  - [TcxSetupsModel](docs/TcxSetupsModel.md)
825
828
  - [TcxSipTrunksEntity](docs/TcxSipTrunksEntity.md)
826
829
  - [TcxSummaryDTO](docs/TcxSummaryDTO.md)
830
+ - [TcxTccAlertsEntity](docs/TcxTccAlertsEntity.md)
831
+ - [TcxTccMonitoringEntity](docs/TcxTccMonitoringEntity.md)
827
832
  - [TcxTemplateXmlEnum](docs/TcxTemplateXmlEnum.md)
828
833
  - [TcxUsersEntity](docs/TcxUsersEntity.md)
829
834
  - [TcxWizardConfigModel](docs/TcxWizardConfigModel.md)
package/api.ts CHANGED
@@ -1352,6 +1352,8 @@ export const AuditLogEntityTypeEnum = {
1352
1352
  Pops3cxUsers: 'pops_3cx_users',
1353
1353
  _3cxServicePrincipals: '3cx_service_principals',
1354
1354
  _3cxCallLog: '3cx_call_log',
1355
+ _3cxTccMonitoring: '3cx_tcc_monitoring',
1356
+ _3cxTccAlerts: '3cx_tcc_alerts',
1355
1357
  PopsUsers: 'pops_users',
1356
1358
  PopsVideoRequests: 'pops_video_requests',
1357
1359
  Webhook: 'webhook',
@@ -10929,6 +10931,39 @@ export interface TcxServicePrincipalEntity {
10929
10931
  */
10930
10932
  'appSecret': string;
10931
10933
  }
10934
+ /**
10935
+ * 3CX Service Principal
10936
+ */
10937
+ export interface TcxServicePrincipalModel {
10938
+ /**
10939
+ * id
10940
+ */
10941
+ 'id': string;
10942
+ /**
10943
+ * customerId
10944
+ */
10945
+ 'customerId': number;
10946
+ /**
10947
+ * pbxBase
10948
+ */
10949
+ 'pbxBase': string;
10950
+ /**
10951
+ * appId
10952
+ */
10953
+ 'appId': string;
10954
+ /**
10955
+ * appSecret
10956
+ */
10957
+ 'appSecret': string;
10958
+ /**
10959
+ * Monitoring
10960
+ */
10961
+ 'monitoring'?: Array<TcxTccMonitoringEntity>;
10962
+ /**
10963
+ * Alerts
10964
+ */
10965
+ 'alerts'?: Array<TcxTccAlertsEntity>;
10966
+ }
10932
10967
  /**
10933
10968
  * 3CX Wizard Setup Config
10934
10969
  */
@@ -11152,6 +11187,60 @@ export interface TcxSummaryDTO {
11152
11187
  */
11153
11188
  'licenceKey': string;
11154
11189
  }
11190
+ /**
11191
+ * TcxTccAlertsEntity
11192
+ */
11193
+ export interface TcxTccAlertsEntity {
11194
+ /**
11195
+ * instanceId
11196
+ */
11197
+ 'instanceId': string;
11198
+ /**
11199
+ * monitoring_id
11200
+ */
11201
+ 'monitoringId': number;
11202
+ /**
11203
+ * timestamp
11204
+ */
11205
+ 'timestamp': string;
11206
+ /**
11207
+ * alertSent
11208
+ */
11209
+ 'alertSent': number;
11210
+ }
11211
+ /**
11212
+ * TcxTccMonitoringEntity
11213
+ */
11214
+ export interface TcxTccMonitoringEntity {
11215
+ /**
11216
+ * id
11217
+ */
11218
+ 'id': number;
11219
+ /**
11220
+ * instanceId
11221
+ */
11222
+ 'instanceId': string;
11223
+ /**
11224
+ * maxCalls
11225
+ */
11226
+ 'maxCalls': number;
11227
+ /**
11228
+ * trunk
11229
+ */
11230
+ 'trunk': string;
11231
+ /**
11232
+ * type
11233
+ */
11234
+ 'type': string;
11235
+ /**
11236
+ * emails
11237
+ */
11238
+ 'emails': string;
11239
+ /**
11240
+ * sms
11241
+ */
11242
+ 'sms': string;
11243
+ }
11155
11244
  /**
11156
11245
  * 3CX Template
11157
11246
  */
@@ -20774,6 +20863,58 @@ export type GetGetCrmActivitiesTypeEnum = typeof GetGetCrmActivitiesTypeEnum[key
20774
20863
  */
20775
20864
  export const Class3CXApiAxiosParamCreator = function (configuration?: Configuration) {
20776
20865
  return {
20866
+ /**
20867
+ * Get 3CX call control alerts
20868
+ * @param {string} id Instance ID
20869
+ * @param {string} [start] Start Date
20870
+ * @param {string} [end] End Date
20871
+ * @param {number} [monitoringId] Monitoring ID
20872
+ * @param {*} [options] Override http request option.
20873
+ * @throws {RequiredError}
20874
+ */
20875
+ getAddAlert: async (id: string, start?: string, end?: string, monitoringId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20876
+ // verify required parameter 'id' is not null or undefined
20877
+ assertParamExists('getAddAlert', 'id', id)
20878
+ const localVarPath = `/tcx/cc/instance/{id}/alerts`
20879
+ .replace('{id}', encodeURIComponent(String(id)));
20880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20882
+ let baseOptions;
20883
+ if (configuration) {
20884
+ baseOptions = configuration.baseOptions;
20885
+ }
20886
+
20887
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20888
+ const localVarHeaderParameter = {} as any;
20889
+ const localVarQueryParameter = {} as any;
20890
+
20891
+ if (start !== undefined) {
20892
+ localVarQueryParameter['start'] = (start as any instanceof Date) ?
20893
+ (start as any).toISOString().substring(0,10) :
20894
+ start;
20895
+ }
20896
+
20897
+ if (end !== undefined) {
20898
+ localVarQueryParameter['end'] = (end as any instanceof Date) ?
20899
+ (end as any).toISOString().substring(0,10) :
20900
+ end;
20901
+ }
20902
+
20903
+ if (monitoringId !== undefined) {
20904
+ localVarQueryParameter['monitoring_id'] = monitoringId;
20905
+ }
20906
+
20907
+ localVarHeaderParameter['Accept'] = 'application/json';
20908
+
20909
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20910
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20911
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20912
+
20913
+ return {
20914
+ url: toPathString(localVarUrlObj),
20915
+ options: localVarRequestOptions,
20916
+ };
20917
+ },
20777
20918
  /**
20778
20919
  * Get a list of 3CX call control devices
20779
20920
  * @param {*} [options] Override http request option.
@@ -20806,17 +20947,16 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
20806
20947
  /**
20807
20948
  * Get 3CX call history
20808
20949
  * @param {string} id Instance ID
20809
- * @param {string} trunk Trunk
20810
20950
  * @param {string} [start] Start Date
20811
20951
  * @param {string} [end] End Date
20952
+ * @param {string} [trunk] Trunk
20953
+ * @param {GetGetCallHistoryTypeEnum} [type] Type
20812
20954
  * @param {*} [options] Override http request option.
20813
20955
  * @throws {RequiredError}
20814
20956
  */
20815
- getGetCallHistory: async (id: string, trunk: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20957
+ getGetCallHistory: async (id: string, start?: string, end?: string, trunk?: string, type?: GetGetCallHistoryTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20816
20958
  // verify required parameter 'id' is not null or undefined
20817
20959
  assertParamExists('getGetCallHistory', 'id', id)
20818
- // verify required parameter 'trunk' is not null or undefined
20819
- assertParamExists('getGetCallHistory', 'trunk', trunk)
20820
20960
  const localVarPath = `/tcx/cc/instance/{id}/calls`
20821
20961
  .replace('{id}', encodeURIComponent(String(id)));
20822
20962
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -20846,6 +20986,10 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
20846
20986
  localVarQueryParameter['trunk'] = trunk;
20847
20987
  }
20848
20988
 
20989
+ if (type !== undefined) {
20990
+ localVarQueryParameter['type'] = type;
20991
+ }
20992
+
20849
20993
  localVarHeaderParameter['Accept'] = 'application/json';
20850
20994
 
20851
20995
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -21034,6 +21178,45 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
21034
21178
 
21035
21179
  localVarHeaderParameter['Accept'] = 'application/json';
21036
21180
 
21181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21183
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21184
+
21185
+ return {
21186
+ url: toPathString(localVarUrlObj),
21187
+ options: localVarRequestOptions,
21188
+ };
21189
+ },
21190
+ /**
21191
+ * Add to 3CX call control alert
21192
+ * @param {string} id Instance ID
21193
+ * @param {number} monitoringId Monitoring ID
21194
+ * @param {*} [options] Override http request option.
21195
+ * @throws {RequiredError}
21196
+ */
21197
+ postAddAlert: async (id: string, monitoringId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21198
+ // verify required parameter 'id' is not null or undefined
21199
+ assertParamExists('postAddAlert', 'id', id)
21200
+ // verify required parameter 'monitoringId' is not null or undefined
21201
+ assertParamExists('postAddAlert', 'monitoringId', monitoringId)
21202
+ const localVarPath = `/tcx/cc/instance/{id}/alerts`
21203
+ .replace('{id}', encodeURIComponent(String(id)));
21204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21206
+ let baseOptions;
21207
+ if (configuration) {
21208
+ baseOptions = configuration.baseOptions;
21209
+ }
21210
+
21211
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21212
+ const localVarHeaderParameter = {} as any;
21213
+ const localVarQueryParameter = {} as any;
21214
+
21215
+ if (monitoringId !== undefined) {
21216
+ localVarQueryParameter['monitoring_id'] = monitoringId;
21217
+ }
21218
+
21219
+
21037
21220
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21038
21221
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21039
21222
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21149,6 +21332,21 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
21149
21332
  export const Class3CXApiFp = function(configuration?: Configuration) {
21150
21333
  const localVarAxiosParamCreator = Class3CXApiAxiosParamCreator(configuration)
21151
21334
  return {
21335
+ /**
21336
+ * Get 3CX call control alerts
21337
+ * @param {string} id Instance ID
21338
+ * @param {string} [start] Start Date
21339
+ * @param {string} [end] End Date
21340
+ * @param {number} [monitoringId] Monitoring ID
21341
+ * @param {*} [options] Override http request option.
21342
+ * @throws {RequiredError}
21343
+ */
21344
+ async getAddAlert(id: string, start?: string, end?: string, monitoringId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxTccAlertsEntity>>> {
21345
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAddAlert(id, start, end, monitoringId, options);
21346
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21347
+ const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getAddAlert']?.[localVarOperationServerIndex]?.url;
21348
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21349
+ },
21152
21350
  /**
21153
21351
  * Get a list of 3CX call control devices
21154
21352
  * @param {*} [options] Override http request option.
@@ -21163,14 +21361,15 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
21163
21361
  /**
21164
21362
  * Get 3CX call history
21165
21363
  * @param {string} id Instance ID
21166
- * @param {string} trunk Trunk
21167
21364
  * @param {string} [start] Start Date
21168
21365
  * @param {string} [end] End Date
21366
+ * @param {string} [trunk] Trunk
21367
+ * @param {GetGetCallHistoryTypeEnum} [type] Type
21169
21368
  * @param {*} [options] Override http request option.
21170
21369
  * @throws {RequiredError}
21171
21370
  */
21172
- async getGetCallHistory(id: string, trunk: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxCallLogCollectionModel>> {
21173
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCallHistory(id, trunk, start, end, options);
21371
+ async getGetCallHistory(id: string, start?: string, end?: string, trunk?: string, type?: GetGetCallHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxCallLogCollectionModel>> {
21372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCallHistory(id, start, end, trunk, type, options);
21174
21373
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21175
21374
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetCallHistory']?.[localVarOperationServerIndex]?.url;
21176
21375
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21193,7 +21392,7 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
21193
21392
  * @param {*} [options] Override http request option.
21194
21393
  * @throws {RequiredError}
21195
21394
  */
21196
- async getGetServicePrincipals(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxServicePrincipalEntity>>> {
21395
+ async getGetServicePrincipals(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxServicePrincipalModel>>> {
21197
21396
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetServicePrincipals(options);
21198
21397
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21199
21398
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetServicePrincipals']?.[localVarOperationServerIndex]?.url;
@@ -21247,6 +21446,19 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
21247
21446
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetTcxPartners']?.[localVarOperationServerIndex]?.url;
21248
21447
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21249
21448
  },
21449
+ /**
21450
+ * Add to 3CX call control alert
21451
+ * @param {string} id Instance ID
21452
+ * @param {number} monitoringId Monitoring ID
21453
+ * @param {*} [options] Override http request option.
21454
+ * @throws {RequiredError}
21455
+ */
21456
+ async postAddAlert(id: string, monitoringId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAlert(id, monitoringId, options);
21458
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21459
+ const localVarOperationServerBasePath = operationServerMap['Class3CXApi.postAddAlert']?.[localVarOperationServerIndex]?.url;
21460
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21461
+ },
21250
21462
  /**
21251
21463
  * Add to 3CX call log
21252
21464
  * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
@@ -21293,6 +21505,18 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
21293
21505
  export const Class3CXApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21294
21506
  const localVarFp = Class3CXApiFp(configuration)
21295
21507
  return {
21508
+ /**
21509
+ * Get 3CX call control alerts
21510
+ * @param {string} id Instance ID
21511
+ * @param {string} [start] Start Date
21512
+ * @param {string} [end] End Date
21513
+ * @param {number} [monitoringId] Monitoring ID
21514
+ * @param {*} [options] Override http request option.
21515
+ * @throws {RequiredError}
21516
+ */
21517
+ getAddAlert(id: string, start?: string, end?: string, monitoringId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTccAlertsEntity>> {
21518
+ return localVarFp.getAddAlert(id, start, end, monitoringId, options).then((request) => request(axios, basePath));
21519
+ },
21296
21520
  /**
21297
21521
  * Get a list of 3CX call control devices
21298
21522
  * @param {*} [options] Override http request option.
@@ -21304,14 +21528,15 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
21304
21528
  /**
21305
21529
  * Get 3CX call history
21306
21530
  * @param {string} id Instance ID
21307
- * @param {string} trunk Trunk
21308
21531
  * @param {string} [start] Start Date
21309
21532
  * @param {string} [end] End Date
21533
+ * @param {string} [trunk] Trunk
21534
+ * @param {GetGetCallHistoryTypeEnum} [type] Type
21310
21535
  * @param {*} [options] Override http request option.
21311
21536
  * @throws {RequiredError}
21312
21537
  */
21313
- getGetCallHistory(id: string, trunk: string, start?: string, end?: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxCallLogCollectionModel> {
21314
- return localVarFp.getGetCallHistory(id, trunk, start, end, options).then((request) => request(axios, basePath));
21538
+ getGetCallHistory(id: string, start?: string, end?: string, trunk?: string, type?: GetGetCallHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxCallLogCollectionModel> {
21539
+ return localVarFp.getGetCallHistory(id, start, end, trunk, type, options).then((request) => request(axios, basePath));
21315
21540
  },
21316
21541
  /**
21317
21542
  * Get 3CX Licence Details
@@ -21328,7 +21553,7 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
21328
21553
  * @param {*} [options] Override http request option.
21329
21554
  * @throws {RequiredError}
21330
21555
  */
21331
- getGetServicePrincipals(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxServicePrincipalEntity>> {
21556
+ getGetServicePrincipals(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxServicePrincipalModel>> {
21332
21557
  return localVarFp.getGetServicePrincipals(options).then((request) => request(axios, basePath));
21333
21558
  },
21334
21559
  /**
@@ -21367,6 +21592,16 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
21367
21592
  getGetTcxPartners(options?: RawAxiosRequestConfig): AxiosPromise<Array<PartnerDTO>> {
21368
21593
  return localVarFp.getGetTcxPartners(options).then((request) => request(axios, basePath));
21369
21594
  },
21595
+ /**
21596
+ * Add to 3CX call control alert
21597
+ * @param {string} id Instance ID
21598
+ * @param {number} monitoringId Monitoring ID
21599
+ * @param {*} [options] Override http request option.
21600
+ * @throws {RequiredError}
21601
+ */
21602
+ postAddAlert(id: string, monitoringId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21603
+ return localVarFp.postAddAlert(id, monitoringId, options).then((request) => request(axios, basePath));
21604
+ },
21370
21605
  /**
21371
21606
  * Add to 3CX call log
21372
21607
  * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
@@ -21402,6 +21637,19 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
21402
21637
  * Class3CXApi - object-oriented interface
21403
21638
  */
21404
21639
  export class Class3CXApi extends BaseAPI {
21640
+ /**
21641
+ * Get 3CX call control alerts
21642
+ * @param {string} id Instance ID
21643
+ * @param {string} [start] Start Date
21644
+ * @param {string} [end] End Date
21645
+ * @param {number} [monitoringId] Monitoring ID
21646
+ * @param {*} [options] Override http request option.
21647
+ * @throws {RequiredError}
21648
+ */
21649
+ public getAddAlert(id: string, start?: string, end?: string, monitoringId?: number, options?: RawAxiosRequestConfig) {
21650
+ return Class3CXApiFp(this.configuration).getAddAlert(id, start, end, monitoringId, options).then((request) => request(this.axios, this.basePath));
21651
+ }
21652
+
21405
21653
  /**
21406
21654
  * Get a list of 3CX call control devices
21407
21655
  * @param {*} [options] Override http request option.
@@ -21414,14 +21662,15 @@ export class Class3CXApi extends BaseAPI {
21414
21662
  /**
21415
21663
  * Get 3CX call history
21416
21664
  * @param {string} id Instance ID
21417
- * @param {string} trunk Trunk
21418
21665
  * @param {string} [start] Start Date
21419
21666
  * @param {string} [end] End Date
21667
+ * @param {string} [trunk] Trunk
21668
+ * @param {GetGetCallHistoryTypeEnum} [type] Type
21420
21669
  * @param {*} [options] Override http request option.
21421
21670
  * @throws {RequiredError}
21422
21671
  */
21423
- public getGetCallHistory(id: string, trunk: string, start?: string, end?: string, options?: RawAxiosRequestConfig) {
21424
- return Class3CXApiFp(this.configuration).getGetCallHistory(id, trunk, start, end, options).then((request) => request(this.axios, this.basePath));
21672
+ public getGetCallHistory(id: string, start?: string, end?: string, trunk?: string, type?: GetGetCallHistoryTypeEnum, options?: RawAxiosRequestConfig) {
21673
+ return Class3CXApiFp(this.configuration).getGetCallHistory(id, start, end, trunk, type, options).then((request) => request(this.axios, this.basePath));
21425
21674
  }
21426
21675
 
21427
21676
  /**
@@ -21484,6 +21733,17 @@ export class Class3CXApi extends BaseAPI {
21484
21733
  return Class3CXApiFp(this.configuration).getGetTcxPartners(options).then((request) => request(this.axios, this.basePath));
21485
21734
  }
21486
21735
 
21736
+ /**
21737
+ * Add to 3CX call control alert
21738
+ * @param {string} id Instance ID
21739
+ * @param {number} monitoringId Monitoring ID
21740
+ * @param {*} [options] Override http request option.
21741
+ * @throws {RequiredError}
21742
+ */
21743
+ public postAddAlert(id: string, monitoringId: number, options?: RawAxiosRequestConfig) {
21744
+ return Class3CXApiFp(this.configuration).postAddAlert(id, monitoringId, options).then((request) => request(this.axios, this.basePath));
21745
+ }
21746
+
21487
21747
  /**
21488
21748
  * Add to 3CX call log
21489
21749
  * @param {TcxCallLogEntity} [tcxCallLogEntity] Call Log
@@ -21516,6 +21776,14 @@ export class Class3CXApi extends BaseAPI {
21516
21776
  }
21517
21777
  }
21518
21778
 
21779
+ export const GetGetCallHistoryTypeEnum = {
21780
+ Dialing: 'dialing',
21781
+ Ended: 'ended',
21782
+ Call: 'call',
21783
+ Ringing: 'ringing',
21784
+ Connected: 'connected',
21785
+ } as const;
21786
+ export type GetGetCallHistoryTypeEnum = typeof GetGetCallHistoryTypeEnum[keyof typeof GetGetCallHistoryTypeEnum];
21519
21787
 
21520
21788
 
21521
21789
  /**