ch-admin-api-client-typescript 5.2.8 → 5.3.0
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/lib/api/tags-api.d.ts +13 -3
- package/lib/api/tags-api.d.ts.map +1 -1
- package/lib/api/tags-api.js +12 -6
- package/lib/api/vonage-accounts-api.d.ts +610 -0
- package/lib/api/vonage-accounts-api.d.ts.map +1 -0
- package/lib/api/vonage-accounts-api.js +1206 -0
- package/lib/api/vonage-applications-api.d.ts +283 -0
- package/lib/api/vonage-applications-api.d.ts.map +1 -0
- package/lib/api/vonage-applications-api.js +553 -0
- package/lib/api/vonage-numbers-api.d.ts +383 -0
- package/lib/api/vonage-numbers-api.d.ts.map +1 -0
- package/lib/api/vonage-numbers-api.js +622 -0
- package/lib/api.d.ts +3 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +3 -0
- package/lib/models/account-settings-result.d.ts +49 -0
- package/lib/models/account-settings-result.d.ts.map +1 -0
- package/lib/models/account-settings-result.js +15 -0
- package/lib/models/application-capabilities.d.ts +61 -0
- package/lib/models/application-capabilities.d.ts.map +1 -0
- package/lib/models/application-capabilities.js +15 -0
- package/lib/models/application-list.d.ts +26 -0
- package/lib/models/application-list.d.ts.map +1 -0
- package/lib/models/application-list.js +15 -0
- package/lib/models/application-page.d.ts +50 -0
- package/lib/models/application-page.d.ts.map +1 -0
- package/lib/models/application-page.js +15 -0
- package/lib/models/application.d.ts +45 -0
- package/lib/models/application.d.ts.map +1 -0
- package/lib/models/application.js +15 -0
- package/lib/models/balance-transfers.d.ts +55 -0
- package/lib/models/balance-transfers.d.ts.map +1 -0
- package/lib/models/balance-transfers.js +15 -0
- package/lib/models/balance.d.ts +31 -0
- package/lib/models/balance.d.ts.map +1 -0
- package/lib/models/balance.js +15 -0
- package/lib/models/buy-number-command.d.ts +37 -0
- package/lib/models/buy-number-command.d.ts.map +1 -0
- package/lib/models/buy-number-command.js +15 -0
- package/lib/models/cancel-number-command.d.ts +37 -0
- package/lib/models/cancel-number-command.d.ts.map +1 -0
- package/lib/models/cancel-number-command.js +15 -0
- package/lib/models/create-application-command.d.ts +39 -0
- package/lib/models/create-application-command.d.ts.map +1 -0
- package/lib/models/create-application-command.js +15 -0
- package/lib/models/create-deal-command.d.ts +7 -0
- package/lib/models/create-deal-command.d.ts.map +1 -1
- package/lib/models/create-doctor-affiliation-command.d.ts +7 -0
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +7 -0
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/create-secret-command.d.ts +31 -0
- package/lib/models/create-secret-command.d.ts.map +1 -0
- package/lib/models/create-secret-command.js +15 -0
- package/lib/models/create-sub-account-command.d.ts +37 -0
- package/lib/models/create-sub-account-command.d.ts.map +1 -0
- package/lib/models/create-sub-account-command.js +15 -0
- package/lib/models/deal-item-model.d.ts +7 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +7 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/delete-application-command.d.ts +25 -0
- package/lib/models/delete-application-command.d.ts.map +1 -0
- package/lib/models/delete-application-command.js +15 -0
- package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/feature-model.d.ts +37 -0
- package/lib/models/feature-model.d.ts.map +1 -0
- package/lib/models/feature-model.js +15 -0
- package/lib/models/first.d.ts +25 -0
- package/lib/models/first.d.ts.map +1 -0
- package/lib/models/first.js +15 -0
- package/lib/models/get-transfer-balance-embeded.d.ts +26 -0
- package/lib/models/get-transfer-balance-embeded.d.ts.map +1 -0
- package/lib/models/get-transfer-balance-embeded.js +15 -0
- package/lib/models/get-transfer-balance-result.d.ts +33 -0
- package/lib/models/get-transfer-balance-result.d.ts.map +1 -0
- package/lib/models/get-transfer-balance-result.js +15 -0
- package/lib/models/hallinks.d.ts +50 -0
- package/lib/models/hallinks.d.ts.map +1 -0
- package/lib/models/hallinks.js +15 -0
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +7 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +47 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +47 -0
- package/lib/models/keys.d.ts +31 -0
- package/lib/models/keys.d.ts.map +1 -0
- package/lib/models/keys.js +15 -0
- package/lib/models/last.d.ts +25 -0
- package/lib/models/last.d.ts.map +1 -0
- package/lib/models/last.js +15 -0
- package/lib/models/link.d.ts +25 -0
- package/lib/models/link.d.ts.map +1 -0
- package/lib/models/link.js +15 -0
- package/lib/models/links.d.ts +40 -0
- package/lib/models/links.d.ts.map +1 -0
- package/lib/models/links.js +15 -0
- package/lib/models/meetings.d.ts +28 -0
- package/lib/models/meetings.d.ts.map +1 -0
- package/lib/models/meetings.js +15 -0
- package/lib/models/messages.d.ts +28 -0
- package/lib/models/messages.d.ts.map +1 -0
- package/lib/models/messages.js +15 -0
- package/lib/models/number-transaction-response.d.ts +31 -0
- package/lib/models/number-transaction-response.d.ts.map +1 -0
- package/lib/models/number-transaction-response.js +15 -0
- package/lib/models/number.d.ts +49 -0
- package/lib/models/number.d.ts.map +1 -0
- package/lib/models/number.js +15 -0
- package/lib/models/numbers-search-response.d.ts +32 -0
- package/lib/models/numbers-search-response.d.ts.map +1 -0
- package/lib/models/numbers-search-response.js +15 -0
- package/lib/models/primary-account.d.ts +55 -0
- package/lib/models/primary-account.d.ts.map +1 -0
- package/lib/models/primary-account.js +15 -0
- package/lib/models/retrieve-sub-accounts-embedded.d.ts +33 -0
- package/lib/models/retrieve-sub-accounts-embedded.d.ts.map +1 -0
- package/lib/models/retrieve-sub-accounts-embedded.js +15 -0
- package/lib/models/retrieve-sub-accounts-result.d.ts +45 -0
- package/lib/models/retrieve-sub-accounts-result.d.ts.map +1 -0
- package/lib/models/retrieve-sub-accounts-result.js +15 -0
- package/lib/models/rtc.d.ts +28 -0
- package/lib/models/rtc.d.ts.map +1 -0
- package/lib/models/rtc.js +15 -0
- package/lib/models/search-pattern.d.ts +23 -0
- package/lib/models/search-pattern.d.ts.map +1 -0
- package/lib/models/search-pattern.js +26 -0
- package/lib/models/secret-list.d.ts +26 -0
- package/lib/models/secret-list.d.ts.map +1 -0
- package/lib/models/secret-list.js +15 -0
- package/lib/models/secret.d.ts +38 -0
- package/lib/models/secret.d.ts.map +1 -0
- package/lib/models/secret.js +15 -0
- package/lib/models/secrets-request-result.d.ts +33 -0
- package/lib/models/secrets-request-result.d.ts.map +1 -0
- package/lib/models/secrets-request-result.js +15 -0
- package/lib/models/self.d.ts +25 -0
- package/lib/models/self.d.ts.map +1 -0
- package/lib/models/self.js +15 -0
- package/lib/models/string-filter-types.d.ts +24 -0
- package/lib/models/string-filter-types.d.ts.map +1 -0
- package/lib/models/string-filter-types.js +27 -0
- package/lib/models/sub-account.d.ts +73 -0
- package/lib/models/sub-account.d.ts.map +1 -0
- package/lib/models/sub-account.js +15 -0
- package/lib/models/transfer-balance-command.d.ts +37 -0
- package/lib/models/transfer-balance-command.d.ts.map +1 -0
- package/lib/models/transfer-balance-command.js +15 -0
- package/lib/models/transfer-balance-result.d.ts +68 -0
- package/lib/models/transfer-balance-result.d.ts.map +1 -0
- package/lib/models/transfer-balance-result.js +15 -0
- package/lib/models/update-account-command.d.ts +31 -0
- package/lib/models/update-account-command.d.ts.map +1 -0
- package/lib/models/update-account-command.js +15 -0
- package/lib/models/update-application-command.d.ts +45 -0
- package/lib/models/update-application-command.d.ts.map +1 -0
- package/lib/models/update-application-command.js +15 -0
- package/lib/models/update-deal-command.d.ts +7 -0
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-doctor-affiliation-command.d.ts +7 -0
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +7 -0
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/lib/models/update-number-command.d.ts +67 -0
- package/lib/models/update-number-command.d.ts.map +1 -0
- package/lib/models/update-number-command.js +15 -0
- package/lib/models/vbc.d.ts +28 -0
- package/lib/models/vbc.d.ts.map +1 -0
- package/lib/models/vbc.js +15 -0
- package/lib/models/video.d.ts +28 -0
- package/lib/models/video.d.ts.map +1 -0
- package/lib/models/video.js +15 -0
- package/lib/models/voice.d.ts +28 -0
- package/lib/models/voice.d.ts.map +1 -0
- package/lib/models/voice.js +15 -0
- package/lib/models/webhook.d.ts +31 -0
- package/lib/models/webhook.d.ts.map +1 -0
- package/lib/models/webhook.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +50 -0
- package/src/api/tags-api.ts +22 -6
- package/src/api/vonage-accounts-api.ts +1171 -0
- package/src/api/vonage-applications-api.ts +516 -0
- package/src/api/vonage-numbers-api.ts +675 -0
- package/src/api.ts +3 -0
- package/src/models/account-settings-result.ts +54 -0
- package/src/models/application-capabilities.ts +78 -0
- package/src/models/application-list.ts +33 -0
- package/src/models/application-page.ts +57 -0
- package/src/models/application.ts +54 -0
- package/src/models/balance-transfers.ts +60 -0
- package/src/models/balance.ts +36 -0
- package/src/models/buy-number-command.ts +42 -0
- package/src/models/cancel-number-command.ts +42 -0
- package/src/models/create-application-command.ts +48 -0
- package/src/models/create-deal-command.ts +9 -0
- package/src/models/create-doctor-affiliation-command.ts +9 -0
- package/src/models/create-hospital-command.ts +9 -0
- package/src/models/create-secret-command.ts +36 -0
- package/src/models/create-sub-account-command.ts +42 -0
- package/src/models/deal-item-model.ts +9 -0
- package/src/models/deal-model.ts +9 -0
- package/src/models/delete-application-command.ts +30 -0
- package/src/models/doctor-affiliation-item-model.ts +9 -0
- package/src/models/doctor-affiliation-model.ts +9 -0
- package/src/models/feature-model.ts +42 -0
- package/src/models/first.ts +30 -0
- package/src/models/get-transfer-balance-embeded.ts +33 -0
- package/src/models/get-transfer-balance-result.ts +42 -0
- package/src/models/hallinks.ts +57 -0
- package/src/models/hospital-item-model.ts +9 -0
- package/src/models/hospital-model.ts +9 -0
- package/src/models/index.ts +47 -0
- package/src/models/keys.ts +36 -0
- package/src/models/last.ts +30 -0
- package/src/models/link.ts +30 -0
- package/src/models/links.ts +51 -0
- package/src/models/meetings.ts +33 -0
- package/src/models/messages.ts +33 -0
- package/src/models/number-transaction-response.ts +36 -0
- package/src/models/number.ts +54 -0
- package/src/models/numbers-search-response.ts +39 -0
- package/src/models/primary-account.ts +60 -0
- package/src/models/retrieve-sub-accounts-embedded.ts +42 -0
- package/src/models/retrieve-sub-accounts-result.ts +54 -0
- package/src/models/rtc.ts +33 -0
- package/src/models/search-pattern.ts +32 -0
- package/src/models/secret-list.ts +33 -0
- package/src/models/secret.ts +45 -0
- package/src/models/secrets-request-result.ts +42 -0
- package/src/models/self.ts +30 -0
- package/src/models/string-filter-types.ts +33 -0
- package/src/models/sub-account.ts +78 -0
- package/src/models/transfer-balance-command.ts +42 -0
- package/src/models/transfer-balance-result.ts +75 -0
- package/src/models/update-account-command.ts +36 -0
- package/src/models/update-application-command.ts +54 -0
- package/src/models/update-deal-command.ts +9 -0
- package/src/models/update-doctor-affiliation-command.ts +9 -0
- package/src/models/update-hospital-command.ts +9 -0
- package/src/models/update-number-command.ts +72 -0
- package/src/models/vbc.ts +33 -0
- package/src/models/video.ts +33 -0
- package/src/models/voice.ts +33 -0
- package/src/models/webhook.ts +36 -0
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
5
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { AccountSettingsResult } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { Balance } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CreateSecretCommand } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { CreateSubAccountCommand } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { GetTransferBalanceResult } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ProblemDetails } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { RetrieveSubAccountsResult } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { Secret } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { SecretsRequestResult } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { SubAccount } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { TransferBalanceCommand } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { TransferBalanceResult } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { UpdateAccountCommand } from '../models';
|
|
49
|
+
/**
|
|
50
|
+
* VonageAccountsApi - axios parameter creator
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export const VonageAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
54
|
+
return {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
apiV1VonageaccountsBalanceGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
|
+
const localVarPath = `/api/v1/vonageaccounts/balance`;
|
|
62
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64
|
+
let baseOptions;
|
|
65
|
+
if (configuration) {
|
|
66
|
+
baseOptions = configuration.baseOptions;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
70
|
+
const localVarHeaderParameter = {} as any;
|
|
71
|
+
const localVarQueryParameter = {} as any;
|
|
72
|
+
|
|
73
|
+
// authentication oauth2 required
|
|
74
|
+
// oauth required
|
|
75
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param {TransferBalanceCommand} [transferBalanceCommand]
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
apiV1VonageaccountsBalanceTransferPost: async (transferBalanceCommand?: TransferBalanceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
const localVarPath = `/api/v1/vonageaccounts/balance/transfer`;
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication oauth2 required
|
|
108
|
+
// oauth required
|
|
109
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
114
|
+
|
|
115
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
118
|
+
localVarRequestOptions.data = serializeDataIfNeeded(transferBalanceCommand, localVarRequestOptions, configuration)
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
url: toPathString(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions,
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @param {string} [apiKey]
|
|
128
|
+
* @param {Date} [startDate]
|
|
129
|
+
* @param {Date} [endDate]
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
apiV1VonageaccountsBalancetransfersGet: async (apiKey?: string, startDate?: Date, endDate?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
134
|
+
const localVarPath = `/api/v1/vonageaccounts/balancetransfers`;
|
|
135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
137
|
+
let baseOptions;
|
|
138
|
+
if (configuration) {
|
|
139
|
+
baseOptions = configuration.baseOptions;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
143
|
+
const localVarHeaderParameter = {} as any;
|
|
144
|
+
const localVarQueryParameter = {} as any;
|
|
145
|
+
|
|
146
|
+
// authentication oauth2 required
|
|
147
|
+
// oauth required
|
|
148
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
149
|
+
|
|
150
|
+
if (apiKey !== undefined) {
|
|
151
|
+
localVarQueryParameter['ApiKey'] = apiKey;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (startDate !== undefined) {
|
|
155
|
+
localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
|
|
156
|
+
(startDate as any).toISOString() :
|
|
157
|
+
startDate;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (endDate !== undefined) {
|
|
161
|
+
localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
|
|
162
|
+
(endDate as any).toISOString() :
|
|
163
|
+
endDate;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
171
|
+
|
|
172
|
+
return {
|
|
173
|
+
url: toPathString(localVarUrlObj),
|
|
174
|
+
options: localVarRequestOptions,
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
apiV1VonageaccountsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
183
|
+
const localVarPath = `/api/v1/vonageaccounts`;
|
|
184
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
185
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
186
|
+
let baseOptions;
|
|
187
|
+
if (configuration) {
|
|
188
|
+
baseOptions = configuration.baseOptions;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
192
|
+
const localVarHeaderParameter = {} as any;
|
|
193
|
+
const localVarQueryParameter = {} as any;
|
|
194
|
+
|
|
195
|
+
// authentication oauth2 required
|
|
196
|
+
// oauth required
|
|
197
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
203
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
204
|
+
|
|
205
|
+
return {
|
|
206
|
+
url: toPathString(localVarUrlObj),
|
|
207
|
+
options: localVarRequestOptions,
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @param {CreateSubAccountCommand} [createSubAccountCommand]
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
apiV1VonageaccountsPost: async (createSubAccountCommand?: CreateSubAccountCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
217
|
+
const localVarPath = `/api/v1/vonageaccounts`;
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
226
|
+
const localVarHeaderParameter = {} as any;
|
|
227
|
+
const localVarQueryParameter = {} as any;
|
|
228
|
+
|
|
229
|
+
// authentication oauth2 required
|
|
230
|
+
// oauth required
|
|
231
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
236
|
+
|
|
237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
240
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSubAccountCommand, localVarRequestOptions, configuration)
|
|
241
|
+
|
|
242
|
+
return {
|
|
243
|
+
url: toPathString(localVarUrlObj),
|
|
244
|
+
options: localVarRequestOptions,
|
|
245
|
+
};
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @param {string} [apiKey]
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
apiV1VonageaccountsSecretsGet: async (apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
254
|
+
const localVarPath = `/api/v1/vonageaccounts/secrets`;
|
|
255
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
257
|
+
let baseOptions;
|
|
258
|
+
if (configuration) {
|
|
259
|
+
baseOptions = configuration.baseOptions;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
263
|
+
const localVarHeaderParameter = {} as any;
|
|
264
|
+
const localVarQueryParameter = {} as any;
|
|
265
|
+
|
|
266
|
+
// authentication oauth2 required
|
|
267
|
+
// oauth required
|
|
268
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
269
|
+
|
|
270
|
+
if (apiKey !== undefined) {
|
|
271
|
+
localVarQueryParameter['ApiKey'] = apiKey;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
279
|
+
|
|
280
|
+
return {
|
|
281
|
+
url: toPathString(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
};
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @param {CreateSecretCommand} [createSecretCommand]
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
apiV1VonageaccountsSecretsPost: async (createSecretCommand?: CreateSecretCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
292
|
+
const localVarPath = `/api/v1/vonageaccounts/secrets`;
|
|
293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
294
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
295
|
+
let baseOptions;
|
|
296
|
+
if (configuration) {
|
|
297
|
+
baseOptions = configuration.baseOptions;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
301
|
+
const localVarHeaderParameter = {} as any;
|
|
302
|
+
const localVarQueryParameter = {} as any;
|
|
303
|
+
|
|
304
|
+
// authentication oauth2 required
|
|
305
|
+
// oauth required
|
|
306
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
311
|
+
|
|
312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
315
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSecretCommand, localVarRequestOptions, configuration)
|
|
316
|
+
|
|
317
|
+
return {
|
|
318
|
+
url: toPathString(localVarUrlObj),
|
|
319
|
+
options: localVarRequestOptions,
|
|
320
|
+
};
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @param {string} secretId
|
|
325
|
+
* @param {string} [apiKey]
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
apiV1VonageaccountsSecretsSecretIdDelete: async (secretId: string, apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
330
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
331
|
+
assertParamExists('apiV1VonageaccountsSecretsSecretIdDelete', 'secretId', secretId)
|
|
332
|
+
const localVarPath = `/api/v1/vonageaccounts/secrets/{secretId}`
|
|
333
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
335
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
336
|
+
let baseOptions;
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
342
|
+
const localVarHeaderParameter = {} as any;
|
|
343
|
+
const localVarQueryParameter = {} as any;
|
|
344
|
+
|
|
345
|
+
// authentication oauth2 required
|
|
346
|
+
// oauth required
|
|
347
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
348
|
+
|
|
349
|
+
if (apiKey !== undefined) {
|
|
350
|
+
localVarQueryParameter['apiKey'] = apiKey;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
358
|
+
|
|
359
|
+
return {
|
|
360
|
+
url: toPathString(localVarUrlObj),
|
|
361
|
+
options: localVarRequestOptions,
|
|
362
|
+
};
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @param {string} secretId
|
|
367
|
+
* @param {string} [secretId2]
|
|
368
|
+
* @param {string} [apiKey]
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
apiV1VonageaccountsSecretsSecretIdGet: async (secretId: string, secretId2?: string, apiKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
373
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
374
|
+
assertParamExists('apiV1VonageaccountsSecretsSecretIdGet', 'secretId', secretId)
|
|
375
|
+
const localVarPath = `/api/v1/vonageaccounts/secrets/{secretId}`
|
|
376
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
379
|
+
let baseOptions;
|
|
380
|
+
if (configuration) {
|
|
381
|
+
baseOptions = configuration.baseOptions;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
385
|
+
const localVarHeaderParameter = {} as any;
|
|
386
|
+
const localVarQueryParameter = {} as any;
|
|
387
|
+
|
|
388
|
+
// authentication oauth2 required
|
|
389
|
+
// oauth required
|
|
390
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
391
|
+
|
|
392
|
+
if (secretId2 !== undefined) {
|
|
393
|
+
localVarQueryParameter['SecretId'] = secretId2;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (apiKey !== undefined) {
|
|
397
|
+
localVarQueryParameter['ApiKey'] = apiKey;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
403
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
405
|
+
|
|
406
|
+
return {
|
|
407
|
+
url: toPathString(localVarUrlObj),
|
|
408
|
+
options: localVarRequestOptions,
|
|
409
|
+
};
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @param {string} subAccountKey
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
apiV1VonageaccountsSubAccountKeyDelete: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
418
|
+
// verify required parameter 'subAccountKey' is not null or undefined
|
|
419
|
+
assertParamExists('apiV1VonageaccountsSubAccountKeyDelete', 'subAccountKey', subAccountKey)
|
|
420
|
+
const localVarPath = `/api/v1/vonageaccounts/{subAccountKey}`
|
|
421
|
+
.replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
|
|
422
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
423
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
424
|
+
let baseOptions;
|
|
425
|
+
if (configuration) {
|
|
426
|
+
baseOptions = configuration.baseOptions;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
430
|
+
const localVarHeaderParameter = {} as any;
|
|
431
|
+
const localVarQueryParameter = {} as any;
|
|
432
|
+
|
|
433
|
+
// authentication oauth2 required
|
|
434
|
+
// oauth required
|
|
435
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
441
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
442
|
+
|
|
443
|
+
return {
|
|
444
|
+
url: toPathString(localVarUrlObj),
|
|
445
|
+
options: localVarRequestOptions,
|
|
446
|
+
};
|
|
447
|
+
},
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @param {string} subAccountKey
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
apiV1VonageaccountsSubAccountKeyGet: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
455
|
+
// verify required parameter 'subAccountKey' is not null or undefined
|
|
456
|
+
assertParamExists('apiV1VonageaccountsSubAccountKeyGet', 'subAccountKey', subAccountKey)
|
|
457
|
+
const localVarPath = `/api/v1/vonageaccounts/{subAccountKey}`
|
|
458
|
+
.replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
|
|
459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
460
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
461
|
+
let baseOptions;
|
|
462
|
+
if (configuration) {
|
|
463
|
+
baseOptions = configuration.baseOptions;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
467
|
+
const localVarHeaderParameter = {} as any;
|
|
468
|
+
const localVarQueryParameter = {} as any;
|
|
469
|
+
|
|
470
|
+
// authentication oauth2 required
|
|
471
|
+
// oauth required
|
|
472
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
477
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
478
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
479
|
+
|
|
480
|
+
return {
|
|
481
|
+
url: toPathString(localVarUrlObj),
|
|
482
|
+
options: localVarRequestOptions,
|
|
483
|
+
};
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @param {string} subAccountKey
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
*/
|
|
491
|
+
apiV1VonageaccountsSubAccountKeyPut: async (subAccountKey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
492
|
+
// verify required parameter 'subAccountKey' is not null or undefined
|
|
493
|
+
assertParamExists('apiV1VonageaccountsSubAccountKeyPut', 'subAccountKey', subAccountKey)
|
|
494
|
+
const localVarPath = `/api/v1/vonageaccounts/{subAccountKey}`
|
|
495
|
+
.replace(`{${"subAccountKey"}}`, encodeURIComponent(String(subAccountKey)));
|
|
496
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
497
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
498
|
+
let baseOptions;
|
|
499
|
+
if (configuration) {
|
|
500
|
+
baseOptions = configuration.baseOptions;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
504
|
+
const localVarHeaderParameter = {} as any;
|
|
505
|
+
const localVarQueryParameter = {} as any;
|
|
506
|
+
|
|
507
|
+
// authentication oauth2 required
|
|
508
|
+
// oauth required
|
|
509
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
516
|
+
|
|
517
|
+
return {
|
|
518
|
+
url: toPathString(localVarUrlObj),
|
|
519
|
+
options: localVarRequestOptions,
|
|
520
|
+
};
|
|
521
|
+
},
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @param {UpdateAccountCommand} [updateAccountCommand]
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
apiV1VonageaccountsUpdatePut: async (updateAccountCommand?: UpdateAccountCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
529
|
+
const localVarPath = `/api/v1/vonageaccounts/update`;
|
|
530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
532
|
+
let baseOptions;
|
|
533
|
+
if (configuration) {
|
|
534
|
+
baseOptions = configuration.baseOptions;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
538
|
+
const localVarHeaderParameter = {} as any;
|
|
539
|
+
const localVarQueryParameter = {} as any;
|
|
540
|
+
|
|
541
|
+
// authentication oauth2 required
|
|
542
|
+
// oauth required
|
|
543
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
548
|
+
|
|
549
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
551
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAccountCommand, localVarRequestOptions, configuration)
|
|
553
|
+
|
|
554
|
+
return {
|
|
555
|
+
url: toPathString(localVarUrlObj),
|
|
556
|
+
options: localVarRequestOptions,
|
|
557
|
+
};
|
|
558
|
+
},
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* VonageAccountsApi - functional programming interface
|
|
564
|
+
* @export
|
|
565
|
+
*/
|
|
566
|
+
export const VonageAccountsApiFp = function(configuration?: Configuration) {
|
|
567
|
+
const localVarAxiosParamCreator = VonageAccountsApiAxiosParamCreator(configuration)
|
|
568
|
+
return {
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
async apiV1VonageaccountsBalanceGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>> {
|
|
575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsBalanceGet(options);
|
|
576
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @param {TransferBalanceCommand} [transferBalanceCommand]
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
async apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferBalanceResult>> {
|
|
585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand, options);
|
|
586
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
587
|
+
},
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @param {string} [apiKey]
|
|
591
|
+
* @param {Date} [startDate]
|
|
592
|
+
* @param {Date} [endDate]
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
async apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransferBalanceResult>> {
|
|
597
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options);
|
|
598
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
599
|
+
},
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
*/
|
|
605
|
+
async apiV1VonageaccountsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveSubAccountsResult>> {
|
|
606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsGet(options);
|
|
607
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
608
|
+
},
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @param {CreateSubAccountCommand} [createSubAccountCommand]
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
async apiV1VonageaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
|
|
616
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsPost(createSubAccountCommand, options);
|
|
617
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @param {string} [apiKey]
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
async apiV1VonageaccountsSecretsGet(apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretsRequestResult>> {
|
|
626
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsGet(apiKey, options);
|
|
627
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
628
|
+
},
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {CreateSecretCommand} [createSecretCommand]
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
async apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
|
|
636
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsPost(createSecretCommand, options);
|
|
637
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @param {string} secretId
|
|
642
|
+
* @param {string} [apiKey]
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
async apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
647
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options);
|
|
648
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
649
|
+
},
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @param {string} secretId
|
|
653
|
+
* @param {string} [secretId2]
|
|
654
|
+
* @param {string} [apiKey]
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
async apiV1VonageaccountsSecretsSecretIdGet(secretId: string, secretId2?: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
|
|
659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdGet(secretId, secretId2, apiKey, options);
|
|
660
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
661
|
+
},
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @param {string} subAccountKey
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
async apiV1VonageaccountsSubAccountKeyDelete(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
|
|
669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyDelete(subAccountKey, options);
|
|
670
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @param {string} subAccountKey
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
async apiV1VonageaccountsSubAccountKeyGet(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
|
|
679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyGet(subAccountKey, options);
|
|
680
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @param {string} subAccountKey
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
async apiV1VonageaccountsSubAccountKeyPut(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>> {
|
|
689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsSubAccountKeyPut(subAccountKey, options);
|
|
690
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
691
|
+
},
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @param {UpdateAccountCommand} [updateAccountCommand]
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
async apiV1VonageaccountsUpdatePut(updateAccountCommand?: UpdateAccountCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountSettingsResult>> {
|
|
699
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageaccountsUpdatePut(updateAccountCommand, options);
|
|
700
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
701
|
+
},
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* VonageAccountsApi - factory interface
|
|
707
|
+
* @export
|
|
708
|
+
*/
|
|
709
|
+
export const VonageAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
710
|
+
const localVarFp = VonageAccountsApiFp(configuration)
|
|
711
|
+
return {
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
*/
|
|
717
|
+
apiV1VonageaccountsBalanceGet(options?: any): AxiosPromise<Balance> {
|
|
718
|
+
return localVarFp.apiV1VonageaccountsBalanceGet(options).then((request) => request(axios, basePath));
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @param {TransferBalanceCommand} [transferBalanceCommand]
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand?: TransferBalanceCommand, options?: any): AxiosPromise<TransferBalanceResult> {
|
|
727
|
+
return localVarFp.apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand, options).then((request) => request(axios, basePath));
|
|
728
|
+
},
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @param {string} [apiKey]
|
|
732
|
+
* @param {Date} [startDate]
|
|
733
|
+
* @param {Date} [endDate]
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: any): AxiosPromise<GetTransferBalanceResult> {
|
|
738
|
+
return localVarFp.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
739
|
+
},
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
apiV1VonageaccountsGet(options?: any): AxiosPromise<RetrieveSubAccountsResult> {
|
|
746
|
+
return localVarFp.apiV1VonageaccountsGet(options).then((request) => request(axios, basePath));
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @param {CreateSubAccountCommand} [createSubAccountCommand]
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
apiV1VonageaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: any): AxiosPromise<SubAccount> {
|
|
755
|
+
return localVarFp.apiV1VonageaccountsPost(createSubAccountCommand, options).then((request) => request(axios, basePath));
|
|
756
|
+
},
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @param {string} [apiKey]
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
apiV1VonageaccountsSecretsGet(apiKey?: string, options?: any): AxiosPromise<SecretsRequestResult> {
|
|
764
|
+
return localVarFp.apiV1VonageaccountsSecretsGet(apiKey, options).then((request) => request(axios, basePath));
|
|
765
|
+
},
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @param {CreateSecretCommand} [createSecretCommand]
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: any): AxiosPromise<Secret> {
|
|
773
|
+
return localVarFp.apiV1VonageaccountsSecretsPost(createSecretCommand, options).then((request) => request(axios, basePath));
|
|
774
|
+
},
|
|
775
|
+
/**
|
|
776
|
+
*
|
|
777
|
+
* @param {string} secretId
|
|
778
|
+
* @param {string} [apiKey]
|
|
779
|
+
* @param {*} [options] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
*/
|
|
782
|
+
apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: any): AxiosPromise<boolean> {
|
|
783
|
+
return localVarFp.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options).then((request) => request(axios, basePath));
|
|
784
|
+
},
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @param {string} secretId
|
|
788
|
+
* @param {string} [secretId2]
|
|
789
|
+
* @param {string} [apiKey]
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
apiV1VonageaccountsSecretsSecretIdGet(secretId: string, secretId2?: string, apiKey?: string, options?: any): AxiosPromise<Secret> {
|
|
794
|
+
return localVarFp.apiV1VonageaccountsSecretsSecretIdGet(secretId, secretId2, apiKey, options).then((request) => request(axios, basePath));
|
|
795
|
+
},
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @param {string} subAccountKey
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
apiV1VonageaccountsSubAccountKeyDelete(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
|
|
803
|
+
return localVarFp.apiV1VonageaccountsSubAccountKeyDelete(subAccountKey, options).then((request) => request(axios, basePath));
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @param {string} subAccountKey
|
|
808
|
+
* @param {*} [options] Override http request option.
|
|
809
|
+
* @throws {RequiredError}
|
|
810
|
+
*/
|
|
811
|
+
apiV1VonageaccountsSubAccountKeyGet(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
|
|
812
|
+
return localVarFp.apiV1VonageaccountsSubAccountKeyGet(subAccountKey, options).then((request) => request(axios, basePath));
|
|
813
|
+
},
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @param {string} subAccountKey
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
apiV1VonageaccountsSubAccountKeyPut(subAccountKey: string, options?: any): AxiosPromise<SubAccount> {
|
|
821
|
+
return localVarFp.apiV1VonageaccountsSubAccountKeyPut(subAccountKey, options).then((request) => request(axios, basePath));
|
|
822
|
+
},
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @param {UpdateAccountCommand} [updateAccountCommand]
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
apiV1VonageaccountsUpdatePut(updateAccountCommand?: UpdateAccountCommand, options?: any): AxiosPromise<AccountSettingsResult> {
|
|
830
|
+
return localVarFp.apiV1VonageaccountsUpdatePut(updateAccountCommand, options).then((request) => request(axios, basePath));
|
|
831
|
+
},
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Request parameters for apiV1VonageaccountsBalanceTransferPost operation in VonageAccountsApi.
|
|
837
|
+
* @export
|
|
838
|
+
* @interface VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest
|
|
839
|
+
*/
|
|
840
|
+
export interface VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest {
|
|
841
|
+
/**
|
|
842
|
+
*
|
|
843
|
+
* @type {TransferBalanceCommand}
|
|
844
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsBalanceTransferPost
|
|
845
|
+
*/
|
|
846
|
+
readonly transferBalanceCommand?: TransferBalanceCommand
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Request parameters for apiV1VonageaccountsBalancetransfersGet operation in VonageAccountsApi.
|
|
851
|
+
* @export
|
|
852
|
+
* @interface VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest
|
|
853
|
+
*/
|
|
854
|
+
export interface VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest {
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @type {string}
|
|
858
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsBalancetransfersGet
|
|
859
|
+
*/
|
|
860
|
+
readonly apiKey?: string
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {Date}
|
|
865
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsBalancetransfersGet
|
|
866
|
+
*/
|
|
867
|
+
readonly startDate?: Date
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @type {Date}
|
|
872
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsBalancetransfersGet
|
|
873
|
+
*/
|
|
874
|
+
readonly endDate?: Date
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Request parameters for apiV1VonageaccountsPost operation in VonageAccountsApi.
|
|
879
|
+
* @export
|
|
880
|
+
* @interface VonageAccountsApiApiV1VonageaccountsPostRequest
|
|
881
|
+
*/
|
|
882
|
+
export interface VonageAccountsApiApiV1VonageaccountsPostRequest {
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @type {CreateSubAccountCommand}
|
|
886
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsPost
|
|
887
|
+
*/
|
|
888
|
+
readonly createSubAccountCommand?: CreateSubAccountCommand
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Request parameters for apiV1VonageaccountsSecretsGet operation in VonageAccountsApi.
|
|
893
|
+
* @export
|
|
894
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSecretsGetRequest
|
|
895
|
+
*/
|
|
896
|
+
export interface VonageAccountsApiApiV1VonageaccountsSecretsGetRequest {
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @type {string}
|
|
900
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsGet
|
|
901
|
+
*/
|
|
902
|
+
readonly apiKey?: string
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Request parameters for apiV1VonageaccountsSecretsPost operation in VonageAccountsApi.
|
|
907
|
+
* @export
|
|
908
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSecretsPostRequest
|
|
909
|
+
*/
|
|
910
|
+
export interface VonageAccountsApiApiV1VonageaccountsSecretsPostRequest {
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @type {CreateSecretCommand}
|
|
914
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsPost
|
|
915
|
+
*/
|
|
916
|
+
readonly createSecretCommand?: CreateSecretCommand
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Request parameters for apiV1VonageaccountsSecretsSecretIdDelete operation in VonageAccountsApi.
|
|
921
|
+
* @export
|
|
922
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest
|
|
923
|
+
*/
|
|
924
|
+
export interface VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest {
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @type {string}
|
|
928
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDelete
|
|
929
|
+
*/
|
|
930
|
+
readonly secretId: string
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @type {string}
|
|
935
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDelete
|
|
936
|
+
*/
|
|
937
|
+
readonly apiKey?: string
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Request parameters for apiV1VonageaccountsSecretsSecretIdGet operation in VonageAccountsApi.
|
|
942
|
+
* @export
|
|
943
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest
|
|
944
|
+
*/
|
|
945
|
+
export interface VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest {
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @type {string}
|
|
949
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
|
|
950
|
+
*/
|
|
951
|
+
readonly secretId: string
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
*
|
|
955
|
+
* @type {string}
|
|
956
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
|
|
957
|
+
*/
|
|
958
|
+
readonly secretId2?: string
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
*
|
|
962
|
+
* @type {string}
|
|
963
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
|
|
964
|
+
*/
|
|
965
|
+
readonly apiKey?: string
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Request parameters for apiV1VonageaccountsSubAccountKeyDelete operation in VonageAccountsApi.
|
|
970
|
+
* @export
|
|
971
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest
|
|
972
|
+
*/
|
|
973
|
+
export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest {
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @type {string}
|
|
977
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyDelete
|
|
978
|
+
*/
|
|
979
|
+
readonly subAccountKey: string
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Request parameters for apiV1VonageaccountsSubAccountKeyGet operation in VonageAccountsApi.
|
|
984
|
+
* @export
|
|
985
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest
|
|
986
|
+
*/
|
|
987
|
+
export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest {
|
|
988
|
+
/**
|
|
989
|
+
*
|
|
990
|
+
* @type {string}
|
|
991
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyGet
|
|
992
|
+
*/
|
|
993
|
+
readonly subAccountKey: string
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Request parameters for apiV1VonageaccountsSubAccountKeyPut operation in VonageAccountsApi.
|
|
998
|
+
* @export
|
|
999
|
+
* @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest
|
|
1000
|
+
*/
|
|
1001
|
+
export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest {
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @type {string}
|
|
1005
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyPut
|
|
1006
|
+
*/
|
|
1007
|
+
readonly subAccountKey: string
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Request parameters for apiV1VonageaccountsUpdatePut operation in VonageAccountsApi.
|
|
1012
|
+
* @export
|
|
1013
|
+
* @interface VonageAccountsApiApiV1VonageaccountsUpdatePutRequest
|
|
1014
|
+
*/
|
|
1015
|
+
export interface VonageAccountsApiApiV1VonageaccountsUpdatePutRequest {
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @type {UpdateAccountCommand}
|
|
1019
|
+
* @memberof VonageAccountsApiApiV1VonageaccountsUpdatePut
|
|
1020
|
+
*/
|
|
1021
|
+
readonly updateAccountCommand?: UpdateAccountCommand
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* VonageAccountsApi - object-oriented interface
|
|
1026
|
+
* @export
|
|
1027
|
+
* @class VonageAccountsApi
|
|
1028
|
+
* @extends {BaseAPI}
|
|
1029
|
+
*/
|
|
1030
|
+
export class VonageAccountsApi extends BaseAPI {
|
|
1031
|
+
/**
|
|
1032
|
+
*
|
|
1033
|
+
* @param {*} [options] Override http request option.
|
|
1034
|
+
* @throws {RequiredError}
|
|
1035
|
+
* @memberof VonageAccountsApi
|
|
1036
|
+
*/
|
|
1037
|
+
public apiV1VonageaccountsBalanceGet(options?: AxiosRequestConfig) {
|
|
1038
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsBalanceGet(options).then((request) => request(this.axios, this.basePath));
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
* @param {VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest} requestParameters Request parameters.
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
* @memberof VonageAccountsApi
|
|
1047
|
+
*/
|
|
1048
|
+
public apiV1VonageaccountsBalanceTransferPost(requestParameters: VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest = {}, options?: AxiosRequestConfig) {
|
|
1049
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsBalanceTransferPost(requestParameters.transferBalanceCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @throws {RequiredError}
|
|
1057
|
+
* @memberof VonageAccountsApi
|
|
1058
|
+
*/
|
|
1059
|
+
public apiV1VonageaccountsBalancetransfersGet(requestParameters: VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest = {}, options?: AxiosRequestConfig) {
|
|
1060
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsBalancetransfersGet(requestParameters.apiKey, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
*
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
* @memberof VonageAccountsApi
|
|
1068
|
+
*/
|
|
1069
|
+
public apiV1VonageaccountsGet(options?: AxiosRequestConfig) {
|
|
1070
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsGet(options).then((request) => request(this.axios, this.basePath));
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @param {VonageAccountsApiApiV1VonageaccountsPostRequest} requestParameters Request parameters.
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
* @memberof VonageAccountsApi
|
|
1079
|
+
*/
|
|
1080
|
+
public apiV1VonageaccountsPost(requestParameters: VonageAccountsApiApiV1VonageaccountsPostRequest = {}, options?: AxiosRequestConfig) {
|
|
1081
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsPost(requestParameters.createSubAccountCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
|
|
1087
|
+
* @param {*} [options] Override http request option.
|
|
1088
|
+
* @throws {RequiredError}
|
|
1089
|
+
* @memberof VonageAccountsApi
|
|
1090
|
+
*/
|
|
1091
|
+
public apiV1VonageaccountsSecretsGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsGetRequest = {}, options?: AxiosRequestConfig) {
|
|
1092
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsGet(requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
|
|
1098
|
+
* @param {*} [options] Override http request option.
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
* @memberof VonageAccountsApi
|
|
1101
|
+
*/
|
|
1102
|
+
public apiV1VonageaccountsSecretsPost(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsPostRequest = {}, options?: AxiosRequestConfig) {
|
|
1103
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsPost(requestParameters.createSecretCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
*
|
|
1108
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
|
|
1109
|
+
* @param {*} [options] Override http request option.
|
|
1110
|
+
* @throws {RequiredError}
|
|
1111
|
+
* @memberof VonageAccountsApi
|
|
1112
|
+
*/
|
|
1113
|
+
public apiV1VonageaccountsSecretsSecretIdDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest, options?: AxiosRequestConfig) {
|
|
1114
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsSecretIdDelete(requestParameters.secretId, requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
*
|
|
1119
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof VonageAccountsApi
|
|
1123
|
+
*/
|
|
1124
|
+
public apiV1VonageaccountsSecretsSecretIdGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest, options?: AxiosRequestConfig) {
|
|
1125
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSecretsSecretIdGet(requestParameters.secretId, requestParameters.secretId2, requestParameters.apiKey, options).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
*
|
|
1130
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
|
|
1131
|
+
* @param {*} [options] Override http request option.
|
|
1132
|
+
* @throws {RequiredError}
|
|
1133
|
+
* @memberof VonageAccountsApi
|
|
1134
|
+
*/
|
|
1135
|
+
public apiV1VonageaccountsSubAccountKeyDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest, options?: AxiosRequestConfig) {
|
|
1136
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubAccountKeyDelete(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
*
|
|
1141
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
* @memberof VonageAccountsApi
|
|
1145
|
+
*/
|
|
1146
|
+
public apiV1VonageaccountsSubAccountKeyGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest, options?: AxiosRequestConfig) {
|
|
1147
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubAccountKeyGet(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
* @memberof VonageAccountsApi
|
|
1156
|
+
*/
|
|
1157
|
+
public apiV1VonageaccountsSubAccountKeyPut(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest, options?: AxiosRequestConfig) {
|
|
1158
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsSubAccountKeyPut(requestParameters.subAccountKey, options).then((request) => request(this.axios, this.basePath));
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
*
|
|
1163
|
+
* @param {VonageAccountsApiApiV1VonageaccountsUpdatePutRequest} requestParameters Request parameters.
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
* @memberof VonageAccountsApi
|
|
1167
|
+
*/
|
|
1168
|
+
public apiV1VonageaccountsUpdatePut(requestParameters: VonageAccountsApiApiV1VonageaccountsUpdatePutRequest = {}, options?: AxiosRequestConfig) {
|
|
1169
|
+
return VonageAccountsApiFp(this.configuration).apiV1VonageaccountsUpdatePut(requestParameters.updateAccountCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1170
|
+
}
|
|
1171
|
+
}
|