yellowgrid-api-ts 3.2.256 → 3.2.258
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/README.md +1 -0
- package/api.ts +72 -0
- package/dist/api.d.ts +32 -0
- package/dist/api.js +85 -0
- package/dist/models/ConnectionTypeEnum.d.ts +63 -0
- package/dist/models/ConnectionTypeEnum.js +65 -0
- package/docs/BillingApi.md +58 -0
- package/models/ConnectionTypeEnum.ts +64 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,6 +121,7 @@ Class | Method | HTTP request | Description
|
|
|
121
121
|
*BillingApi* | [**getGetCallTariffs**](docs/BillingApi.md#getgetcalltariffs) | **GET** /billing/admin/callTariffs |
|
|
122
122
|
*BillingApi* | [**getGetCallTariffsDetails**](docs/BillingApi.md#getgetcalltariffsdetails) | **GET** /billing/admin/callTariffs/details |
|
|
123
123
|
*BillingApi* | [**getGetChildren**](docs/BillingApi.md#getgetchildren) | **GET** /billing/customer/children |
|
|
124
|
+
*BillingApi* | [**getGetConnection**](docs/BillingApi.md#getgetconnection) | **GET** /billing/customer/connections/{id} |
|
|
124
125
|
*BillingApi* | [**getGetConnections**](docs/BillingApi.md#getgetconnections) | **GET** /billing/customer/connections |
|
|
125
126
|
*BillingApi* | [**getGetCustomer**](docs/BillingApi.md#getgetcustomer) | **GET** /billing/admin/customer |
|
|
126
127
|
*BillingApi* | [**getGetInboundTariffs**](docs/BillingApi.md#getgetinboundtariffs) | **GET** /billing/admin/inboundTariffs |
|
package/api.ts
CHANGED
|
@@ -13851,6 +13851,44 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13851
13851
|
options: localVarRequestOptions,
|
|
13852
13852
|
};
|
|
13853
13853
|
},
|
|
13854
|
+
/**
|
|
13855
|
+
* Get Connection
|
|
13856
|
+
* @param {number} id Connection ID
|
|
13857
|
+
* @param {number} [billCustomerId] Customer ID
|
|
13858
|
+
* @param {*} [options] Override http request option.
|
|
13859
|
+
* @throws {RequiredError}
|
|
13860
|
+
*/
|
|
13861
|
+
getGetConnection: async (id: number, billCustomerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13862
|
+
// verify required parameter 'id' is not null or undefined
|
|
13863
|
+
assertParamExists('getGetConnection', 'id', id)
|
|
13864
|
+
const localVarPath = `/billing/customer/connections/{id}`
|
|
13865
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
13866
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13867
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13868
|
+
let baseOptions;
|
|
13869
|
+
if (configuration) {
|
|
13870
|
+
baseOptions = configuration.baseOptions;
|
|
13871
|
+
}
|
|
13872
|
+
|
|
13873
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13874
|
+
const localVarHeaderParameter = {} as any;
|
|
13875
|
+
const localVarQueryParameter = {} as any;
|
|
13876
|
+
|
|
13877
|
+
if (billCustomerId !== undefined) {
|
|
13878
|
+
localVarQueryParameter['billCustomerId'] = billCustomerId;
|
|
13879
|
+
}
|
|
13880
|
+
|
|
13881
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
13882
|
+
|
|
13883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13885
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13886
|
+
|
|
13887
|
+
return {
|
|
13888
|
+
url: toPathString(localVarUrlObj),
|
|
13889
|
+
options: localVarRequestOptions,
|
|
13890
|
+
};
|
|
13891
|
+
},
|
|
13854
13892
|
/**
|
|
13855
13893
|
* Get Connections
|
|
13856
13894
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -15697,6 +15735,19 @@ export const BillingApiFp = function(configuration?: Configuration) {
|
|
|
15697
15735
|
const localVarOperationServerBasePath = operationServerMap['BillingApi.getGetChildren']?.[localVarOperationServerIndex]?.url;
|
|
15698
15736
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15699
15737
|
},
|
|
15738
|
+
/**
|
|
15739
|
+
* Get Connection
|
|
15740
|
+
* @param {number} id Connection ID
|
|
15741
|
+
* @param {number} [billCustomerId] Customer ID
|
|
15742
|
+
* @param {*} [options] Override http request option.
|
|
15743
|
+
* @throws {RequiredError}
|
|
15744
|
+
*/
|
|
15745
|
+
async getGetConnection(id: number, billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OutboundCli>> {
|
|
15746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetConnection(id, billCustomerId, options);
|
|
15747
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15748
|
+
const localVarOperationServerBasePath = operationServerMap['BillingApi.getGetConnection']?.[localVarOperationServerIndex]?.url;
|
|
15749
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15750
|
+
},
|
|
15700
15751
|
/**
|
|
15701
15752
|
* Get Connections
|
|
15702
15753
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -16439,6 +16490,16 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
|
|
|
16439
16490
|
getGetChildren(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>> {
|
|
16440
16491
|
return localVarFp.getGetChildren(billCustomerId, options).then((request) => request(axios, basePath));
|
|
16441
16492
|
},
|
|
16493
|
+
/**
|
|
16494
|
+
* Get Connection
|
|
16495
|
+
* @param {number} id Connection ID
|
|
16496
|
+
* @param {number} [billCustomerId] Customer ID
|
|
16497
|
+
* @param {*} [options] Override http request option.
|
|
16498
|
+
* @throws {RequiredError}
|
|
16499
|
+
*/
|
|
16500
|
+
getGetConnection(id: number, billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<OutboundCli> {
|
|
16501
|
+
return localVarFp.getGetConnection(id, billCustomerId, options).then((request) => request(axios, basePath));
|
|
16502
|
+
},
|
|
16442
16503
|
/**
|
|
16443
16504
|
* Get Connections
|
|
16444
16505
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -17072,6 +17133,17 @@ export class BillingApi extends BaseAPI {
|
|
|
17072
17133
|
return BillingApiFp(this.configuration).getGetChildren(billCustomerId, options).then((request) => request(this.axios, this.basePath));
|
|
17073
17134
|
}
|
|
17074
17135
|
|
|
17136
|
+
/**
|
|
17137
|
+
* Get Connection
|
|
17138
|
+
* @param {number} id Connection ID
|
|
17139
|
+
* @param {number} [billCustomerId] Customer ID
|
|
17140
|
+
* @param {*} [options] Override http request option.
|
|
17141
|
+
* @throws {RequiredError}
|
|
17142
|
+
*/
|
|
17143
|
+
public getGetConnection(id: number, billCustomerId?: number, options?: RawAxiosRequestConfig) {
|
|
17144
|
+
return BillingApiFp(this.configuration).getGetConnection(id, billCustomerId, options).then((request) => request(this.axios, this.basePath));
|
|
17145
|
+
}
|
|
17146
|
+
|
|
17075
17147
|
/**
|
|
17076
17148
|
* Get Connections
|
|
17077
17149
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
package/dist/api.d.ts
CHANGED
|
@@ -11311,6 +11311,14 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
11311
11311
|
* @throws {RequiredError}
|
|
11312
11312
|
*/
|
|
11313
11313
|
getGetChildren: (billCustomerId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11314
|
+
/**
|
|
11315
|
+
* Get Connection
|
|
11316
|
+
* @param {number} id Connection ID
|
|
11317
|
+
* @param {number} [billCustomerId] Customer ID
|
|
11318
|
+
* @param {*} [options] Override http request option.
|
|
11319
|
+
* @throws {RequiredError}
|
|
11320
|
+
*/
|
|
11321
|
+
getGetConnection: (id: number, billCustomerId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11314
11322
|
/**
|
|
11315
11323
|
* Get Connections
|
|
11316
11324
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -11794,6 +11802,14 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
|
|
|
11794
11802
|
* @throws {RequiredError}
|
|
11795
11803
|
*/
|
|
11796
11804
|
getGetChildren(billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<object>>>;
|
|
11805
|
+
/**
|
|
11806
|
+
* Get Connection
|
|
11807
|
+
* @param {number} id Connection ID
|
|
11808
|
+
* @param {number} [billCustomerId] Customer ID
|
|
11809
|
+
* @param {*} [options] Override http request option.
|
|
11810
|
+
* @throws {RequiredError}
|
|
11811
|
+
*/
|
|
11812
|
+
getGetConnection(id: number, billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OutboundCli>>;
|
|
11797
11813
|
/**
|
|
11798
11814
|
* Get Connections
|
|
11799
11815
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -12277,6 +12293,14 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
|
|
|
12277
12293
|
* @throws {RequiredError}
|
|
12278
12294
|
*/
|
|
12279
12295
|
getGetChildren(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>>;
|
|
12296
|
+
/**
|
|
12297
|
+
* Get Connection
|
|
12298
|
+
* @param {number} id Connection ID
|
|
12299
|
+
* @param {number} [billCustomerId] Customer ID
|
|
12300
|
+
* @param {*} [options] Override http request option.
|
|
12301
|
+
* @throws {RequiredError}
|
|
12302
|
+
*/
|
|
12303
|
+
getGetConnection(id: number, billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<OutboundCli>;
|
|
12280
12304
|
/**
|
|
12281
12305
|
* Get Connections
|
|
12282
12306
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -12760,6 +12784,14 @@ export declare class BillingApi extends BaseAPI {
|
|
|
12760
12784
|
* @throws {RequiredError}
|
|
12761
12785
|
*/
|
|
12762
12786
|
getGetChildren(billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object[], any, {}>>;
|
|
12787
|
+
/**
|
|
12788
|
+
* Get Connection
|
|
12789
|
+
* @param {number} id Connection ID
|
|
12790
|
+
* @param {number} [billCustomerId] Customer ID
|
|
12791
|
+
* @param {*} [options] Override http request option.
|
|
12792
|
+
* @throws {RequiredError}
|
|
12793
|
+
*/
|
|
12794
|
+
getGetConnection(id: number, billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OutboundCli, any, {}>>;
|
|
12763
12795
|
/**
|
|
12764
12796
|
* Get Connections
|
|
12765
12797
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
package/dist/api.js
CHANGED
|
@@ -5410,6 +5410,47 @@ var BillingApiAxiosParamCreator = function (configuration) {
|
|
|
5410
5410
|
});
|
|
5411
5411
|
});
|
|
5412
5412
|
},
|
|
5413
|
+
/**
|
|
5414
|
+
* Get Connection
|
|
5415
|
+
* @param {number} id Connection ID
|
|
5416
|
+
* @param {number} [billCustomerId] Customer ID
|
|
5417
|
+
* @param {*} [options] Override http request option.
|
|
5418
|
+
* @throws {RequiredError}
|
|
5419
|
+
*/
|
|
5420
|
+
getGetConnection: function (id_1, billCustomerId_1) {
|
|
5421
|
+
var args_1 = [];
|
|
5422
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5423
|
+
args_1[_i - 2] = arguments[_i];
|
|
5424
|
+
}
|
|
5425
|
+
return __awaiter(_this, __spreadArray([id_1, billCustomerId_1], args_1, true), void 0, function (id, billCustomerId, options) {
|
|
5426
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5427
|
+
if (options === void 0) { options = {}; }
|
|
5428
|
+
return __generator(this, function (_a) {
|
|
5429
|
+
// verify required parameter 'id' is not null or undefined
|
|
5430
|
+
(0, common_1.assertParamExists)('getGetConnection', 'id', id);
|
|
5431
|
+
localVarPath = "/billing/customer/connections/{id}"
|
|
5432
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
5433
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5434
|
+
if (configuration) {
|
|
5435
|
+
baseOptions = configuration.baseOptions;
|
|
5436
|
+
}
|
|
5437
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5438
|
+
localVarHeaderParameter = {};
|
|
5439
|
+
localVarQueryParameter = {};
|
|
5440
|
+
if (billCustomerId !== undefined) {
|
|
5441
|
+
localVarQueryParameter['billCustomerId'] = billCustomerId;
|
|
5442
|
+
}
|
|
5443
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5444
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5445
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5446
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5447
|
+
return [2 /*return*/, {
|
|
5448
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5449
|
+
options: localVarRequestOptions,
|
|
5450
|
+
}];
|
|
5451
|
+
});
|
|
5452
|
+
});
|
|
5453
|
+
},
|
|
5413
5454
|
/**
|
|
5414
5455
|
* Get Connections
|
|
5415
5456
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -7609,6 +7650,29 @@ var BillingApiFp = function (configuration) {
|
|
|
7609
7650
|
});
|
|
7610
7651
|
});
|
|
7611
7652
|
},
|
|
7653
|
+
/**
|
|
7654
|
+
* Get Connection
|
|
7655
|
+
* @param {number} id Connection ID
|
|
7656
|
+
* @param {number} [billCustomerId] Customer ID
|
|
7657
|
+
* @param {*} [options] Override http request option.
|
|
7658
|
+
* @throws {RequiredError}
|
|
7659
|
+
*/
|
|
7660
|
+
getGetConnection: function (id, billCustomerId, options) {
|
|
7661
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7662
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
7663
|
+
var _a, _b, _c;
|
|
7664
|
+
return __generator(this, function (_d) {
|
|
7665
|
+
switch (_d.label) {
|
|
7666
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetConnection(id, billCustomerId, options)];
|
|
7667
|
+
case 1:
|
|
7668
|
+
localVarAxiosArgs = _d.sent();
|
|
7669
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7670
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.getGetConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7671
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
7672
|
+
}
|
|
7673
|
+
});
|
|
7674
|
+
});
|
|
7675
|
+
},
|
|
7612
7676
|
/**
|
|
7613
7677
|
* Get Connections
|
|
7614
7678
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -8781,6 +8845,16 @@ var BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
8781
8845
|
getGetChildren: function (billCustomerId, options) {
|
|
8782
8846
|
return localVarFp.getGetChildren(billCustomerId, options).then(function (request) { return request(axios, basePath); });
|
|
8783
8847
|
},
|
|
8848
|
+
/**
|
|
8849
|
+
* Get Connection
|
|
8850
|
+
* @param {number} id Connection ID
|
|
8851
|
+
* @param {number} [billCustomerId] Customer ID
|
|
8852
|
+
* @param {*} [options] Override http request option.
|
|
8853
|
+
* @throws {RequiredError}
|
|
8854
|
+
*/
|
|
8855
|
+
getGetConnection: function (id, billCustomerId, options) {
|
|
8856
|
+
return localVarFp.getGetConnection(id, billCustomerId, options).then(function (request) { return request(axios, basePath); });
|
|
8857
|
+
},
|
|
8784
8858
|
/**
|
|
8785
8859
|
* Get Connections
|
|
8786
8860
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -9418,6 +9492,17 @@ var BillingApi = /** @class */ (function (_super) {
|
|
|
9418
9492
|
var _this = this;
|
|
9419
9493
|
return (0, exports.BillingApiFp)(this.configuration).getGetChildren(billCustomerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9420
9494
|
};
|
|
9495
|
+
/**
|
|
9496
|
+
* Get Connection
|
|
9497
|
+
* @param {number} id Connection ID
|
|
9498
|
+
* @param {number} [billCustomerId] Customer ID
|
|
9499
|
+
* @param {*} [options] Override http request option.
|
|
9500
|
+
* @throws {RequiredError}
|
|
9501
|
+
*/
|
|
9502
|
+
BillingApi.prototype.getGetConnection = function (id, billCustomerId, options) {
|
|
9503
|
+
var _this = this;
|
|
9504
|
+
return (0, exports.BillingApiFp)(this.configuration).getGetConnection(id, billCustomerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9505
|
+
};
|
|
9421
9506
|
/**
|
|
9422
9507
|
* Get Connections
|
|
9423
9508
|
* @param {GetGetConnectionsTypeEnum} [type] Connection Type
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const ConnectionTypeEnum: {
|
|
2
|
+
readonly SIP_TRUNK: {
|
|
3
|
+
readonly name: "SIP_TRUNK";
|
|
4
|
+
readonly value: "SIP Trunks";
|
|
5
|
+
readonly publicValue: "SIP Trunks";
|
|
6
|
+
};
|
|
7
|
+
readonly BROADBAND: {
|
|
8
|
+
readonly name: "BROADBAND";
|
|
9
|
+
readonly value: "Broadband";
|
|
10
|
+
readonly publicValue: "Broadband";
|
|
11
|
+
};
|
|
12
|
+
readonly ETHERNET: {
|
|
13
|
+
readonly name: "ETHERNET";
|
|
14
|
+
readonly value: "Ethernet";
|
|
15
|
+
readonly publicValue: "Ethernet";
|
|
16
|
+
};
|
|
17
|
+
readonly MOBILE: {
|
|
18
|
+
readonly name: "MOBILE";
|
|
19
|
+
readonly value: "Mobile";
|
|
20
|
+
readonly publicValue: "Mobile";
|
|
21
|
+
};
|
|
22
|
+
readonly WLR: {
|
|
23
|
+
readonly name: "WLR";
|
|
24
|
+
readonly value: "WLR";
|
|
25
|
+
readonly publicValue: "WLR";
|
|
26
|
+
};
|
|
27
|
+
readonly HZN: {
|
|
28
|
+
readonly name: "HZN";
|
|
29
|
+
readonly value: "Horizon";
|
|
30
|
+
readonly publicValue: "Horizon";
|
|
31
|
+
};
|
|
32
|
+
readonly NTS: {
|
|
33
|
+
readonly name: "NTS";
|
|
34
|
+
readonly value: "NTS";
|
|
35
|
+
readonly publicValue: "NTS";
|
|
36
|
+
};
|
|
37
|
+
readonly HOSTING: {
|
|
38
|
+
readonly name: "HOSTING";
|
|
39
|
+
readonly value: "Hosting";
|
|
40
|
+
readonly publicValue: "Hosting";
|
|
41
|
+
};
|
|
42
|
+
readonly CRM: {
|
|
43
|
+
readonly name: "CRM";
|
|
44
|
+
readonly value: "CRM";
|
|
45
|
+
readonly publicValue: "CRM";
|
|
46
|
+
};
|
|
47
|
+
readonly TCX_MULTITENANT: {
|
|
48
|
+
readonly name: "TCX_MULTITENANT";
|
|
49
|
+
readonly value: "Starter Bundle";
|
|
50
|
+
readonly publicValue: "Starter Bundle";
|
|
51
|
+
};
|
|
52
|
+
readonly OTHER: {
|
|
53
|
+
readonly name: "OTHER";
|
|
54
|
+
readonly value: "Other";
|
|
55
|
+
readonly publicValue: "Other";
|
|
56
|
+
};
|
|
57
|
+
readonly RECURRING_CHARGES: {
|
|
58
|
+
readonly name: "RECURRING_CHARGES";
|
|
59
|
+
readonly value: "Recurring Charges";
|
|
60
|
+
readonly publicValue: "Recurring Charges";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type ConnectionTypeEnum = typeof ConnectionTypeEnum;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectionTypeEnum = void 0;
|
|
4
|
+
exports.ConnectionTypeEnum = {
|
|
5
|
+
"SIP_TRUNK": {
|
|
6
|
+
"name": "SIP_TRUNK",
|
|
7
|
+
"value": "SIP Trunks",
|
|
8
|
+
"publicValue": "SIP Trunks"
|
|
9
|
+
},
|
|
10
|
+
"BROADBAND": {
|
|
11
|
+
"name": "BROADBAND",
|
|
12
|
+
"value": "Broadband",
|
|
13
|
+
"publicValue": "Broadband"
|
|
14
|
+
},
|
|
15
|
+
"ETHERNET": {
|
|
16
|
+
"name": "ETHERNET",
|
|
17
|
+
"value": "Ethernet",
|
|
18
|
+
"publicValue": "Ethernet"
|
|
19
|
+
},
|
|
20
|
+
"MOBILE": {
|
|
21
|
+
"name": "MOBILE",
|
|
22
|
+
"value": "Mobile",
|
|
23
|
+
"publicValue": "Mobile"
|
|
24
|
+
},
|
|
25
|
+
"WLR": {
|
|
26
|
+
"name": "WLR",
|
|
27
|
+
"value": "WLR",
|
|
28
|
+
"publicValue": "WLR"
|
|
29
|
+
},
|
|
30
|
+
"HZN": {
|
|
31
|
+
"name": "HZN",
|
|
32
|
+
"value": "Horizon",
|
|
33
|
+
"publicValue": "Horizon"
|
|
34
|
+
},
|
|
35
|
+
"NTS": {
|
|
36
|
+
"name": "NTS",
|
|
37
|
+
"value": "NTS",
|
|
38
|
+
"publicValue": "NTS"
|
|
39
|
+
},
|
|
40
|
+
"HOSTING": {
|
|
41
|
+
"name": "HOSTING",
|
|
42
|
+
"value": "Hosting",
|
|
43
|
+
"publicValue": "Hosting"
|
|
44
|
+
},
|
|
45
|
+
"CRM": {
|
|
46
|
+
"name": "CRM",
|
|
47
|
+
"value": "CRM",
|
|
48
|
+
"publicValue": "CRM"
|
|
49
|
+
},
|
|
50
|
+
"TCX_MULTITENANT": {
|
|
51
|
+
"name": "TCX_MULTITENANT",
|
|
52
|
+
"value": "Starter Bundle",
|
|
53
|
+
"publicValue": "Starter Bundle"
|
|
54
|
+
},
|
|
55
|
+
"OTHER": {
|
|
56
|
+
"name": "OTHER",
|
|
57
|
+
"value": "Other",
|
|
58
|
+
"publicValue": "Other"
|
|
59
|
+
},
|
|
60
|
+
"RECURRING_CHARGES": {
|
|
61
|
+
"name": "RECURRING_CHARGES",
|
|
62
|
+
"value": "Recurring Charges",
|
|
63
|
+
"publicValue": "Recurring Charges"
|
|
64
|
+
}
|
|
65
|
+
};
|
package/docs/BillingApi.md
CHANGED
|
@@ -26,6 +26,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
26
26
|
|[**getGetCallTariffs**](#getgetcalltariffs) | **GET** /billing/admin/callTariffs | |
|
|
27
27
|
|[**getGetCallTariffsDetails**](#getgetcalltariffsdetails) | **GET** /billing/admin/callTariffs/details | |
|
|
28
28
|
|[**getGetChildren**](#getgetchildren) | **GET** /billing/customer/children | |
|
|
29
|
+
|[**getGetConnection**](#getgetconnection) | **GET** /billing/customer/connections/{id} | |
|
|
29
30
|
|[**getGetConnections**](#getgetconnections) | **GET** /billing/customer/connections | |
|
|
30
31
|
|[**getGetCustomer**](#getgetcustomer) | **GET** /billing/admin/customer | |
|
|
31
32
|
|[**getGetInboundTariffs**](#getgetinboundtariffs) | **GET** /billing/admin/inboundTariffs | |
|
|
@@ -1232,6 +1233,63 @@ No authorization required
|
|
|
1232
1233
|
|
|
1233
1234
|
[[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)
|
|
1234
1235
|
|
|
1236
|
+
# **getGetConnection**
|
|
1237
|
+
> OutboundCli getGetConnection()
|
|
1238
|
+
|
|
1239
|
+
Get Connection
|
|
1240
|
+
|
|
1241
|
+
### Example
|
|
1242
|
+
|
|
1243
|
+
```typescript
|
|
1244
|
+
import {
|
|
1245
|
+
BillingApi,
|
|
1246
|
+
Configuration
|
|
1247
|
+
} from 'yellowgrid-api-ts';
|
|
1248
|
+
|
|
1249
|
+
const configuration = new Configuration();
|
|
1250
|
+
const apiInstance = new BillingApi(configuration);
|
|
1251
|
+
|
|
1252
|
+
let id: number; //Connection ID (default to undefined)
|
|
1253
|
+
let billCustomerId: number; //Customer ID (optional) (default to undefined)
|
|
1254
|
+
|
|
1255
|
+
const { status, data } = await apiInstance.getGetConnection(
|
|
1256
|
+
id,
|
|
1257
|
+
billCustomerId
|
|
1258
|
+
);
|
|
1259
|
+
```
|
|
1260
|
+
|
|
1261
|
+
### Parameters
|
|
1262
|
+
|
|
1263
|
+
|Name | Type | Description | Notes|
|
|
1264
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1265
|
+
| **id** | [**number**] | Connection ID | defaults to undefined|
|
|
1266
|
+
| **billCustomerId** | [**number**] | Customer ID | (optional) defaults to undefined|
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
### Return type
|
|
1270
|
+
|
|
1271
|
+
**OutboundCli**
|
|
1272
|
+
|
|
1273
|
+
### Authorization
|
|
1274
|
+
|
|
1275
|
+
No authorization required
|
|
1276
|
+
|
|
1277
|
+
### HTTP request headers
|
|
1278
|
+
|
|
1279
|
+
- **Content-Type**: Not defined
|
|
1280
|
+
- **Accept**: application/json
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
### HTTP response details
|
|
1284
|
+
| Status code | Description | Response headers |
|
|
1285
|
+
|-------------|-------------|------------------|
|
|
1286
|
+
|**200** | Connection | - |
|
|
1287
|
+
|**400** | Bad Request | - |
|
|
1288
|
+
|**401** | Unauthorised | - |
|
|
1289
|
+
|**403** | Access Denied | - |
|
|
1290
|
+
|
|
1291
|
+
[[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)
|
|
1292
|
+
|
|
1235
1293
|
# **getGetConnections**
|
|
1236
1294
|
> Array<OutboundCli> getGetConnections()
|
|
1237
1295
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export const ConnectionTypeEnum = {
|
|
2
|
+
"SIP_TRUNK": {
|
|
3
|
+
"name": "SIP_TRUNK",
|
|
4
|
+
"value": "SIP Trunks",
|
|
5
|
+
"publicValue": "SIP Trunks"
|
|
6
|
+
},
|
|
7
|
+
"BROADBAND": {
|
|
8
|
+
"name": "BROADBAND",
|
|
9
|
+
"value": "Broadband",
|
|
10
|
+
"publicValue": "Broadband"
|
|
11
|
+
},
|
|
12
|
+
"ETHERNET": {
|
|
13
|
+
"name": "ETHERNET",
|
|
14
|
+
"value": "Ethernet",
|
|
15
|
+
"publicValue": "Ethernet"
|
|
16
|
+
},
|
|
17
|
+
"MOBILE": {
|
|
18
|
+
"name": "MOBILE",
|
|
19
|
+
"value": "Mobile",
|
|
20
|
+
"publicValue": "Mobile"
|
|
21
|
+
},
|
|
22
|
+
"WLR": {
|
|
23
|
+
"name": "WLR",
|
|
24
|
+
"value": "WLR",
|
|
25
|
+
"publicValue": "WLR"
|
|
26
|
+
},
|
|
27
|
+
"HZN": {
|
|
28
|
+
"name": "HZN",
|
|
29
|
+
"value": "Horizon",
|
|
30
|
+
"publicValue": "Horizon"
|
|
31
|
+
},
|
|
32
|
+
"NTS": {
|
|
33
|
+
"name": "NTS",
|
|
34
|
+
"value": "NTS",
|
|
35
|
+
"publicValue": "NTS"
|
|
36
|
+
},
|
|
37
|
+
"HOSTING": {
|
|
38
|
+
"name": "HOSTING",
|
|
39
|
+
"value": "Hosting",
|
|
40
|
+
"publicValue": "Hosting"
|
|
41
|
+
},
|
|
42
|
+
"CRM": {
|
|
43
|
+
"name": "CRM",
|
|
44
|
+
"value": "CRM",
|
|
45
|
+
"publicValue": "CRM"
|
|
46
|
+
},
|
|
47
|
+
"TCX_MULTITENANT": {
|
|
48
|
+
"name": "TCX_MULTITENANT",
|
|
49
|
+
"value": "Starter Bundle",
|
|
50
|
+
"publicValue": "Starter Bundle"
|
|
51
|
+
},
|
|
52
|
+
"OTHER": {
|
|
53
|
+
"name": "OTHER",
|
|
54
|
+
"value": "Other",
|
|
55
|
+
"publicValue": "Other"
|
|
56
|
+
},
|
|
57
|
+
"RECURRING_CHARGES": {
|
|
58
|
+
"name": "RECURRING_CHARGES",
|
|
59
|
+
"value": "Recurring Charges",
|
|
60
|
+
"publicValue": "Recurring Charges"
|
|
61
|
+
}
|
|
62
|
+
} as const;
|
|
63
|
+
|
|
64
|
+
export type ConnectionTypeEnum = typeof ConnectionTypeEnum;
|