yellowgrid-api-ts 3.2.342 → 3.2.344

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.
@@ -101,6 +101,7 @@ docs/DdiRangeRequestModel.md
101
101
  docs/DdiRangesRequestModel.md
102
102
  docs/DetailedItemRequestDTO.md
103
103
  docs/DetailedOrderRequestDTO.md
104
+ docs/DeviceModel.md
104
105
  docs/DivertRequestModel.md
105
106
  docs/DivertResponseModel.md
106
107
  docs/EdTechProClientEntity.md
@@ -260,8 +261,10 @@ docs/RecurringCharge.md
260
261
  docs/RemoteStorageDTO.md
261
262
  docs/ReportRequestDTO.md
262
263
  docs/ReportsApi.md
264
+ docs/RequestDTO.md
263
265
  docs/ResolutionRequestModel.md
264
266
  docs/ResourceNotReadyException.md
267
+ docs/ResponseDTO.md
265
268
  docs/RmaCollectionDTO.md
266
269
  docs/RmaCreditItemRequestDTO.md
267
270
  docs/RmaDTO.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* | [**getGetCCDevices**](docs/Class3CXApi.md#getgetccdevices) | **GET** /tcx/cc/devices |
184
185
  *Class3CXApi* | [**getGetLicenceDetails**](docs/Class3CXApi.md#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details
185
186
  *Class3CXApi* | [**getGetTcxCreditStatus**](docs/Class3CXApi.md#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status
186
187
  *Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
@@ -541,6 +542,7 @@ Class | Method | HTTP request | Description
541
542
  - [DdiRangesRequestModel](docs/DdiRangesRequestModel.md)
542
543
  - [DetailedItemRequestDTO](docs/DetailedItemRequestDTO.md)
543
544
  - [DetailedOrderRequestDTO](docs/DetailedOrderRequestDTO.md)
545
+ - [DeviceModel](docs/DeviceModel.md)
544
546
  - [DivertRequestModel](docs/DivertRequestModel.md)
545
547
  - [DivertResponseModel](docs/DivertResponseModel.md)
546
548
  - [EdTechProClientEntity](docs/EdTechProClientEntity.md)
@@ -688,8 +690,10 @@ Class | Method | HTTP request | Description
688
690
  - [RecurringCharge](docs/RecurringCharge.md)
689
691
  - [RemoteStorageDTO](docs/RemoteStorageDTO.md)
690
692
  - [ReportRequestDTO](docs/ReportRequestDTO.md)
693
+ - [RequestDTO](docs/RequestDTO.md)
691
694
  - [ResolutionRequestModel](docs/ResolutionRequestModel.md)
692
695
  - [ResourceNotReadyException](docs/ResourceNotReadyException.md)
696
+ - [ResponseDTO](docs/ResponseDTO.md)
693
697
  - [RmaCollectionDTO](docs/RmaCollectionDTO.md)
694
698
  - [RmaCreditItemRequestDTO](docs/RmaCreditItemRequestDTO.md)
695
699
  - [RmaDTO](docs/RmaDTO.md)
package/api.ts CHANGED
@@ -1053,6 +1053,10 @@ export interface AdminUserModel {
1053
1053
  * Groups
1054
1054
  */
1055
1055
  'permissions': Array<AdminUserModelPermissionsEnum>;
1056
+ /**
1057
+ * Extension Number
1058
+ */
1059
+ 'extNo': number;
1056
1060
  }
1057
1061
 
1058
1062
  export const AdminUserModelRoleEnum = {
@@ -3014,6 +3018,23 @@ export interface DetailedOrderRequestDTO {
3014
3018
  */
3015
3019
  'quote': boolean;
3016
3020
  }
3021
+ /**
3022
+ * 3CX Call Control Device
3023
+ */
3024
+ export interface DeviceModel {
3025
+ /**
3026
+ * DN
3027
+ */
3028
+ 'dn'?: string | null;
3029
+ /**
3030
+ * Device ID
3031
+ */
3032
+ 'deviceId'?: string | null;
3033
+ /**
3034
+ * User Agent
3035
+ */
3036
+ 'userAgent'?: string | null;
3037
+ }
3017
3038
  /**
3018
3039
  * Divert Request
3019
3040
  */
@@ -6914,6 +6935,45 @@ export const ReportRequestDTOGraphTypeEnum = {
6914
6935
 
6915
6936
  export type ReportRequestDTOGraphTypeEnum = typeof ReportRequestDTOGraphTypeEnum[keyof typeof ReportRequestDTOGraphTypeEnum];
6916
6937
 
6938
+ /**
6939
+ * 3CX Call Control Request
6940
+ */
6941
+ export interface RequestDTO {
6942
+ /**
6943
+ * ID
6944
+ */
6945
+ 'id'?: number | null;
6946
+ /**
6947
+ * Action
6948
+ */
6949
+ 'action': RequestDTOActionEnum;
6950
+ /**
6951
+ * Number
6952
+ */
6953
+ 'number'?: string | null;
6954
+ /**
6955
+ * From
6956
+ */
6957
+ 'from'?: string | null;
6958
+ /**
6959
+ * Device ID
6960
+ */
6961
+ 'deviceId'?: string | null;
6962
+ }
6963
+
6964
+ export const RequestDTOActionEnum = {
6965
+ Drop: 'drop',
6966
+ Answer: 'answer',
6967
+ Divert: 'divert',
6968
+ Routeto: 'routeto',
6969
+ Transferto: 'transferto',
6970
+ AttachParticipantData: 'attach_participant_data',
6971
+ AttachPartyData: 'attach_party_data',
6972
+ Dial: 'dial',
6973
+ } as const;
6974
+
6975
+ export type RequestDTOActionEnum = typeof RequestDTOActionEnum[keyof typeof RequestDTOActionEnum];
6976
+
6917
6977
  /**
6918
6978
  * RMA Resolution Request Model
6919
6979
  */
@@ -6949,6 +7009,54 @@ export interface ResourceNotReadyException {
6949
7009
  */
6950
7010
  'status': string;
6951
7011
  }
7012
+ /**
7013
+ * 3CX Call Control Response
7014
+ */
7015
+ export interface ResponseDTO {
7016
+ /**
7017
+ * ID
7018
+ */
7019
+ 'id': number;
7020
+ /**
7021
+ * Call ID
7022
+ */
7023
+ 'callId': number;
7024
+ /**
7025
+ * Type
7026
+ */
7027
+ 'type': ResponseDTOTypeEnum;
7028
+ /**
7029
+ * Number
7030
+ */
7031
+ 'number': string;
7032
+ /**
7033
+ * DN
7034
+ */
7035
+ 'dn': string;
7036
+ /**
7037
+ * Date Time
7038
+ */
7039
+ 'startedAt': string;
7040
+ /**
7041
+ * Device ID
7042
+ */
7043
+ 'account'?: AccountSummaryDTO | null;
7044
+ /**
7045
+ * Device
7046
+ */
7047
+ 'device'?: string | null;
7048
+ }
7049
+
7050
+ export const ResponseDTOTypeEnum = {
7051
+ Dialing: 'dialing',
7052
+ Ended: 'ended',
7053
+ Call: 'call',
7054
+ Ringing: 'ringing',
7055
+ Connected: 'connected',
7056
+ } as const;
7057
+
7058
+ export type ResponseDTOTypeEnum = typeof ResponseDTOTypeEnum[keyof typeof ResponseDTOTypeEnum];
7059
+
6952
7060
  /**
6953
7061
  * RMA Collection Request
6954
7062
  */
@@ -20568,6 +20676,35 @@ export type GetGetCrmActivitiesTypeEnum = typeof GetGetCrmActivitiesTypeEnum[key
20568
20676
  */
20569
20677
  export const Class3CXApiAxiosParamCreator = function (configuration?: Configuration) {
20570
20678
  return {
20679
+ /**
20680
+ * Get a list of 3CX call control devices
20681
+ * @param {*} [options] Override http request option.
20682
+ * @throws {RequiredError}
20683
+ */
20684
+ getGetCCDevices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20685
+ const localVarPath = `/tcx/cc/devices`;
20686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20687
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20688
+ let baseOptions;
20689
+ if (configuration) {
20690
+ baseOptions = configuration.baseOptions;
20691
+ }
20692
+
20693
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20694
+ const localVarHeaderParameter = {} as any;
20695
+ const localVarQueryParameter = {} as any;
20696
+
20697
+ localVarHeaderParameter['Accept'] = 'application/json';
20698
+
20699
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20700
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20701
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20702
+
20703
+ return {
20704
+ url: toPathString(localVarUrlObj),
20705
+ options: localVarRequestOptions,
20706
+ };
20707
+ },
20571
20708
  /**
20572
20709
  * Get 3CX Licence Details
20573
20710
  * @summary Get 3CX Licence Details
@@ -20767,6 +20904,17 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
20767
20904
  export const Class3CXApiFp = function(configuration?: Configuration) {
20768
20905
  const localVarAxiosParamCreator = Class3CXApiAxiosParamCreator(configuration)
20769
20906
  return {
20907
+ /**
20908
+ * Get a list of 3CX call control devices
20909
+ * @param {*} [options] Override http request option.
20910
+ * @throws {RequiredError}
20911
+ */
20912
+ async getGetCCDevices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DeviceModel>>> {
20913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCCDevices(options);
20914
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20915
+ const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetCCDevices']?.[localVarOperationServerIndex]?.url;
20916
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20917
+ },
20770
20918
  /**
20771
20919
  * Get 3CX Licence Details
20772
20920
  * @summary Get 3CX Licence Details
@@ -20850,6 +20998,14 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
20850
20998
  export const Class3CXApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20851
20999
  const localVarFp = Class3CXApiFp(configuration)
20852
21000
  return {
21001
+ /**
21002
+ * Get a list of 3CX call control devices
21003
+ * @param {*} [options] Override http request option.
21004
+ * @throws {RequiredError}
21005
+ */
21006
+ getGetCCDevices(options?: RawAxiosRequestConfig): AxiosPromise<Array<DeviceModel>> {
21007
+ return localVarFp.getGetCCDevices(options).then((request) => request(axios, basePath));
21008
+ },
20853
21009
  /**
20854
21010
  * Get 3CX Licence Details
20855
21011
  * @summary Get 3CX Licence Details
@@ -20913,6 +21069,15 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
20913
21069
  * Class3CXApi - object-oriented interface
20914
21070
  */
20915
21071
  export class Class3CXApi extends BaseAPI {
21072
+ /**
21073
+ * Get a list of 3CX call control devices
21074
+ * @param {*} [options] Override http request option.
21075
+ * @throws {RequiredError}
21076
+ */
21077
+ public getGetCCDevices(options?: RawAxiosRequestConfig) {
21078
+ return Class3CXApiFp(this.configuration).getGetCCDevices(options).then((request) => request(this.axios, this.basePath));
21079
+ }
21080
+
20916
21081
  /**
20917
21082
  * Get 3CX Licence Details
20918
21083
  * @summary Get 3CX Licence Details
package/config.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "npmName": "yellowgrid-api-ts",
3
- "axiosVersion": "1.18.1"
3
+ "axiosVersion": "1.20.0"
4
4
  }