ch-admin-api-client-typescript 5.4.6 → 5.4.7
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/deals-api.d.ts +0 -303
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +0 -424
- package/lib/api/vonage-accounts-api.d.ts +220 -129
- package/lib/api/vonage-accounts-api.d.ts.map +1 -1
- package/lib/api/vonage-accounts-api.js +309 -178
- package/lib/api/vonage-applications-api.d.ts +12 -4
- package/lib/api/vonage-applications-api.d.ts.map +1 -1
- package/lib/api/vonage-applications-api.js +12 -4
- package/lib/api/vonage-numbers-api.d.ts +8 -4
- package/lib/api/vonage-numbers-api.d.ts.map +1 -1
- package/lib/api/vonage-numbers-api.js +8 -4
- package/lib/api/vonage-users-api.d.ts +95 -5
- package/lib/api/vonage-users-api.d.ts.map +1 -1
- package/lib/api/vonage-users-api.js +120 -7
- package/lib/models/appointment-type.d.ts +0 -1
- package/lib/models/appointment-type.d.ts.map +1 -1
- package/lib/models/appointment-type.js +0 -1
- package/lib/models/create-deal-command.d.ts +0 -20
- package/lib/models/create-deal-command.d.ts.map +1 -1
- package/lib/models/create-doctor-affiliation-command.d.ts +0 -13
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +3 -9
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/deal-item-model.d.ts +0 -13
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +0 -13
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +6 -19
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +6 -19
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/hospital-domain-input-model.d.ts +50 -0
- package/lib/models/hospital-domain-input-model.d.ts.map +1 -0
- package/lib/models/hospital-domain-model.d.ts +50 -0
- package/lib/models/hospital-domain-model.d.ts.map +1 -0
- package/lib/models/hospital-feature-detail-input-model.d.ts +49 -0
- package/lib/models/hospital-feature-detail-input-model.d.ts.map +1 -0
- package/lib/models/hospital-feature-detail-model.d.ts +56 -0
- package/lib/models/hospital-feature-detail-model.d.ts.map +1 -0
- package/lib/models/hospital-feature-input-model.d.ts +32 -0
- package/lib/models/hospital-feature-input-model.d.ts.map +1 -0
- package/lib/models/{feature-model.d.ts → hospital-feature-model.d.ts} +10 -15
- package/lib/models/hospital-feature-model.d.ts.map +1 -0
- package/lib/models/hospital-item-model.d.ts +28 -4
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +28 -4
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +12 -8
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +12 -8
- package/lib/models/links.d.ts +19 -9
- package/lib/models/links.d.ts.map +1 -1
- package/lib/models/{get-users-result-embedded.d.ts → list-users-result-embedded.d.ts} +4 -4
- package/lib/models/list-users-result-embedded.d.ts.map +1 -0
- package/lib/models/{get-users-result.d.ts → list-users-result.d.ts} +10 -10
- package/lib/models/list-users-result.d.ts.map +1 -0
- package/lib/models/survey-form-simple-mapping-model.d.ts +39 -0
- package/lib/models/survey-form-simple-mapping-model.d.ts.map +1 -0
- package/lib/models/survey-form-simple-mapping-model.js +15 -0
- package/lib/models/transfer-number-command.d.ts +43 -0
- package/lib/models/transfer-number-command.d.ts.map +1 -0
- package/lib/models/transfer-number-command.js +15 -0
- package/lib/models/transfer-number-result.d.ts +49 -0
- package/lib/models/transfer-number-result.d.ts.map +1 -0
- package/lib/models/transfer-number-result.js +15 -0
- package/lib/models/translation-simple-model.d.ts +55 -0
- package/lib/models/translation-simple-model.d.ts.map +1 -0
- package/lib/models/translation-simple-model.js +15 -0
- package/lib/models/update-deal-command.d.ts +0 -20
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-doctor-affiliation-command.d.ts +0 -13
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +3 -9
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +12 -8
- package/src/api/deals-api.ts +0 -532
- package/src/api/vonage-accounts-api.ts +354 -227
- package/src/api/vonage-applications-api.ts +12 -4
- package/src/api/vonage-numbers-api.ts +8 -4
- package/src/api/vonage-users-api.ts +153 -8
- package/src/models/appointment-type.ts +0 -1
- package/src/models/create-deal-command.ts +0 -24
- package/src/models/create-doctor-affiliation-command.ts +0 -15
- package/src/models/create-hospital-command.ts +4 -10
- package/src/models/deal-item-model.ts +0 -15
- package/src/models/deal-model.ts +0 -15
- package/src/models/doctor-affiliation-item-model.ts +6 -21
- package/src/models/doctor-affiliation-model.ts +6 -21
- package/src/models/hospital-domain-input-model.ts +57 -0
- package/src/models/hospital-domain-model.ts +57 -0
- package/src/models/hospital-feature-detail-input-model.ts +54 -0
- package/src/models/hospital-feature-detail-model.ts +63 -0
- package/src/models/hospital-feature-input-model.ts +39 -0
- package/src/models/{save-deal-appointment-timetable-overrides-command.ts → hospital-feature-model.ts} +12 -6
- package/src/models/hospital-item-model.ts +30 -6
- package/src/models/hospital-model.ts +30 -6
- package/src/models/index.ts +12 -8
- package/src/models/links.ts +19 -13
- package/src/models/{get-users-result-embedded.ts → list-users-result-embedded.ts} +3 -3
- package/src/models/{get-users-result.ts → list-users-result.ts} +10 -10
- package/src/models/survey-form-simple-mapping-model.ts +48 -0
- package/src/models/{feature-model.ts → transfer-number-command.ts} +17 -11
- package/src/models/transfer-number-result.ts +54 -0
- package/src/models/translation-simple-model.ts +60 -0
- package/src/models/update-deal-command.ts +0 -24
- package/src/models/update-doctor-affiliation-command.ts +0 -15
- package/src/models/update-hospital-command.ts +4 -10
- package/lib/models/batch-deal-appointment-timetables-command.d.ts +0 -39
- package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +0 -1
- package/lib/models/feature-model.d.ts.map +0 -1
- package/lib/models/first.d.ts +0 -25
- package/lib/models/first.d.ts.map +0 -1
- package/lib/models/get-users-result-embedded.d.ts.map +0 -1
- package/lib/models/get-users-result.d.ts.map +0 -1
- package/lib/models/last.d.ts +0 -25
- package/lib/models/last.d.ts.map +0 -1
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +0 -26
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +0 -1
- package/lib/models/self.d.ts +0 -25
- package/lib/models/self.d.ts.map +0 -1
- package/src/models/batch-deal-appointment-timetables-command.ts +0 -48
- package/src/models/first.ts +0 -30
- package/src/models/last.ts +0 -30
- package/src/models/self.ts +0 -30
- /package/lib/models/{batch-deal-appointment-timetables-command.js → hospital-domain-input-model.js} +0 -0
- /package/lib/models/{feature-model.js → hospital-domain-model.js} +0 -0
- /package/lib/models/{first.js → hospital-feature-detail-input-model.js} +0 -0
- /package/lib/models/{get-users-result-embedded.js → hospital-feature-detail-model.js} +0 -0
- /package/lib/models/{get-users-result.js → hospital-feature-input-model.js} +0 -0
- /package/lib/models/{last.js → hospital-feature-model.js} +0 -0
- /package/lib/models/{save-deal-appointment-timetable-overrides-command.js → list-users-result-embedded.js} +0 -0
- /package/lib/models/{self.js → list-users-result.js} +0 -0
|
@@ -94,6 +94,7 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
+
* @summary Retrieve the balance of the account.
|
|
97
98
|
* @param {*} [options] Override http request option.
|
|
98
99
|
* @throws {RequiredError}
|
|
99
100
|
*/
|
|
@@ -132,23 +133,26 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
132
133
|
},
|
|
133
134
|
/**
|
|
134
135
|
*
|
|
135
|
-
* @
|
|
136
|
+
* @summary Retrieve the balanceTransfer history of the account.
|
|
137
|
+
* @param {string} [apiKey]
|
|
138
|
+
* @param {Date} [startDate]
|
|
139
|
+
* @param {Date} [endDate]
|
|
136
140
|
* @param {*} [options] Override http request option.
|
|
137
141
|
* @throws {RequiredError}
|
|
138
142
|
*/
|
|
139
|
-
|
|
143
|
+
apiV1VonageaccountsBalancetransfersGet: function (apiKey, startDate, endDate, options) {
|
|
140
144
|
if (options === void 0) { options = {}; }
|
|
141
145
|
return __awaiter(_this, void 0, void 0, function () {
|
|
142
146
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
143
147
|
return __generator(this, function (_a) {
|
|
144
148
|
switch (_a.label) {
|
|
145
149
|
case 0:
|
|
146
|
-
localVarPath = "/api/v1/vonageaccounts/
|
|
150
|
+
localVarPath = "/api/v1/vonageaccounts/balancetransfers";
|
|
147
151
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
148
152
|
if (configuration) {
|
|
149
153
|
baseOptions = configuration.baseOptions;
|
|
150
154
|
}
|
|
151
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
155
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
152
156
|
localVarHeaderParameter = {};
|
|
153
157
|
localVarQueryParameter = {};
|
|
154
158
|
// authentication oauth2 required
|
|
@@ -158,11 +162,22 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
158
162
|
// authentication oauth2 required
|
|
159
163
|
// oauth required
|
|
160
164
|
_a.sent();
|
|
161
|
-
|
|
165
|
+
if (apiKey !== undefined) {
|
|
166
|
+
localVarQueryParameter['ApiKey'] = apiKey;
|
|
167
|
+
}
|
|
168
|
+
if (startDate !== undefined) {
|
|
169
|
+
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
170
|
+
startDate.toISOString() :
|
|
171
|
+
startDate;
|
|
172
|
+
}
|
|
173
|
+
if (endDate !== undefined) {
|
|
174
|
+
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
175
|
+
endDate.toISOString() :
|
|
176
|
+
endDate;
|
|
177
|
+
}
|
|
162
178
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
163
179
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
164
180
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
165
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferBalanceCommand, localVarRequestOptions, configuration);
|
|
166
181
|
return [2 /*return*/, {
|
|
167
182
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
168
183
|
options: localVarRequestOptions,
|
|
@@ -173,20 +188,19 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
173
188
|
},
|
|
174
189
|
/**
|
|
175
190
|
*
|
|
191
|
+
* @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
176
192
|
* @param {string} [apiKey]
|
|
177
|
-
* @param {Date} [startDate]
|
|
178
|
-
* @param {Date} [endDate]
|
|
179
193
|
* @param {*} [options] Override http request option.
|
|
180
194
|
* @throws {RequiredError}
|
|
181
195
|
*/
|
|
182
|
-
|
|
196
|
+
apiV1VonageaccountsSecretsGet: function (apiKey, options) {
|
|
183
197
|
if (options === void 0) { options = {}; }
|
|
184
198
|
return __awaiter(_this, void 0, void 0, function () {
|
|
185
199
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
186
200
|
return __generator(this, function (_a) {
|
|
187
201
|
switch (_a.label) {
|
|
188
202
|
case 0:
|
|
189
|
-
localVarPath = "/api/v1/vonageaccounts/
|
|
203
|
+
localVarPath = "/api/v1/vonageaccounts/secrets";
|
|
190
204
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
191
205
|
if (configuration) {
|
|
192
206
|
baseOptions = configuration.baseOptions;
|
|
@@ -204,16 +218,6 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
204
218
|
if (apiKey !== undefined) {
|
|
205
219
|
localVarQueryParameter['ApiKey'] = apiKey;
|
|
206
220
|
}
|
|
207
|
-
if (startDate !== undefined) {
|
|
208
|
-
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
209
|
-
startDate.toISOString() :
|
|
210
|
-
startDate;
|
|
211
|
-
}
|
|
212
|
-
if (endDate !== undefined) {
|
|
213
|
-
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
214
|
-
endDate.toISOString() :
|
|
215
|
-
endDate;
|
|
216
|
-
}
|
|
217
221
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
218
222
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
223
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -227,22 +231,24 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
227
231
|
},
|
|
228
232
|
/**
|
|
229
233
|
*
|
|
234
|
+
* @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
235
|
+
* @param {CreateSecretCommand} [createSecretCommand]
|
|
230
236
|
* @param {*} [options] Override http request option.
|
|
231
237
|
* @throws {RequiredError}
|
|
232
238
|
*/
|
|
233
|
-
|
|
239
|
+
apiV1VonageaccountsSecretsPost: function (createSecretCommand, options) {
|
|
234
240
|
if (options === void 0) { options = {}; }
|
|
235
241
|
return __awaiter(_this, void 0, void 0, function () {
|
|
236
242
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
237
243
|
return __generator(this, function (_a) {
|
|
238
244
|
switch (_a.label) {
|
|
239
245
|
case 0:
|
|
240
|
-
localVarPath = "/api/v1/vonageaccounts";
|
|
246
|
+
localVarPath = "/api/v1/vonageaccounts/secrets";
|
|
241
247
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
242
248
|
if (configuration) {
|
|
243
249
|
baseOptions = configuration.baseOptions;
|
|
244
250
|
}
|
|
245
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
251
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
246
252
|
localVarHeaderParameter = {};
|
|
247
253
|
localVarQueryParameter = {};
|
|
248
254
|
// authentication oauth2 required
|
|
@@ -252,9 +258,11 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
252
258
|
// authentication oauth2 required
|
|
253
259
|
// oauth required
|
|
254
260
|
_a.sent();
|
|
261
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
255
262
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
256
263
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
264
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
265
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSecretCommand, localVarRequestOptions, configuration);
|
|
258
266
|
return [2 /*return*/, {
|
|
259
267
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
260
268
|
options: localVarRequestOptions,
|
|
@@ -265,23 +273,28 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
265
273
|
},
|
|
266
274
|
/**
|
|
267
275
|
*
|
|
268
|
-
* @
|
|
276
|
+
* @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
277
|
+
* @param {string} secretId
|
|
278
|
+
* @param {string} [apiKey]
|
|
269
279
|
* @param {*} [options] Override http request option.
|
|
270
280
|
* @throws {RequiredError}
|
|
271
281
|
*/
|
|
272
|
-
|
|
282
|
+
apiV1VonageaccountsSecretsSecretIdDelete: function (secretId, apiKey, options) {
|
|
273
283
|
if (options === void 0) { options = {}; }
|
|
274
284
|
return __awaiter(_this, void 0, void 0, function () {
|
|
275
285
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
276
286
|
return __generator(this, function (_a) {
|
|
277
287
|
switch (_a.label) {
|
|
278
288
|
case 0:
|
|
279
|
-
|
|
289
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
290
|
+
(0, common_1.assertParamExists)('apiV1VonageaccountsSecretsSecretIdDelete', 'secretId', secretId);
|
|
291
|
+
localVarPath = "/api/v1/vonageaccounts/secrets/{secretId}"
|
|
292
|
+
.replace("{".concat("secretId", "}"), encodeURIComponent(String(secretId)));
|
|
280
293
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
294
|
if (configuration) {
|
|
282
295
|
baseOptions = configuration.baseOptions;
|
|
283
296
|
}
|
|
284
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
297
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
285
298
|
localVarHeaderParameter = {};
|
|
286
299
|
localVarQueryParameter = {};
|
|
287
300
|
// authentication oauth2 required
|
|
@@ -291,11 +304,12 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
291
304
|
// authentication oauth2 required
|
|
292
305
|
// oauth required
|
|
293
306
|
_a.sent();
|
|
294
|
-
|
|
307
|
+
if (apiKey !== undefined) {
|
|
308
|
+
localVarQueryParameter['apiKey'] = apiKey;
|
|
309
|
+
}
|
|
295
310
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
296
311
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
312
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
298
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubAccountCommand, localVarRequestOptions, configuration);
|
|
299
313
|
return [2 /*return*/, {
|
|
300
314
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
301
315
|
options: localVarRequestOptions,
|
|
@@ -306,18 +320,23 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
306
320
|
},
|
|
307
321
|
/**
|
|
308
322
|
*
|
|
323
|
+
* @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
324
|
+
* @param {string} secretId
|
|
309
325
|
* @param {string} [apiKey]
|
|
310
326
|
* @param {*} [options] Override http request option.
|
|
311
327
|
* @throws {RequiredError}
|
|
312
328
|
*/
|
|
313
|
-
|
|
329
|
+
apiV1VonageaccountsSecretsSecretIdGet: function (secretId, apiKey, options) {
|
|
314
330
|
if (options === void 0) { options = {}; }
|
|
315
331
|
return __awaiter(_this, void 0, void 0, function () {
|
|
316
332
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
317
333
|
return __generator(this, function (_a) {
|
|
318
334
|
switch (_a.label) {
|
|
319
335
|
case 0:
|
|
320
|
-
|
|
336
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
337
|
+
(0, common_1.assertParamExists)('apiV1VonageaccountsSecretsSecretIdGet', 'secretId', secretId);
|
|
338
|
+
localVarPath = "/api/v1/vonageaccounts/secrets/{secretId}"
|
|
339
|
+
.replace("{".concat("secretId", "}"), encodeURIComponent(String(secretId)));
|
|
321
340
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
322
341
|
if (configuration) {
|
|
323
342
|
baseOptions = configuration.baseOptions;
|
|
@@ -333,7 +352,7 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
333
352
|
// oauth required
|
|
334
353
|
_a.sent();
|
|
335
354
|
if (apiKey !== undefined) {
|
|
336
|
-
localVarQueryParameter['
|
|
355
|
+
localVarQueryParameter['apiKey'] = apiKey;
|
|
337
356
|
}
|
|
338
357
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
339
358
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -348,18 +367,58 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
348
367
|
},
|
|
349
368
|
/**
|
|
350
369
|
*
|
|
351
|
-
* @
|
|
370
|
+
* @summary Only main account can retrieve sub accounts.
|
|
352
371
|
* @param {*} [options] Override http request option.
|
|
353
372
|
* @throws {RequiredError}
|
|
354
373
|
*/
|
|
355
|
-
|
|
374
|
+
apiV1VonageaccountsSubaccountsGet: function (options) {
|
|
356
375
|
if (options === void 0) { options = {}; }
|
|
357
376
|
return __awaiter(_this, void 0, void 0, function () {
|
|
358
377
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
359
378
|
return __generator(this, function (_a) {
|
|
360
379
|
switch (_a.label) {
|
|
361
380
|
case 0:
|
|
362
|
-
localVarPath = "/api/v1/vonageaccounts/
|
|
381
|
+
localVarPath = "/api/v1/vonageaccounts/subaccounts";
|
|
382
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
383
|
+
if (configuration) {
|
|
384
|
+
baseOptions = configuration.baseOptions;
|
|
385
|
+
}
|
|
386
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
387
|
+
localVarHeaderParameter = {};
|
|
388
|
+
localVarQueryParameter = {};
|
|
389
|
+
// authentication oauth2 required
|
|
390
|
+
// oauth required
|
|
391
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
392
|
+
case 1:
|
|
393
|
+
// authentication oauth2 required
|
|
394
|
+
// oauth required
|
|
395
|
+
_a.sent();
|
|
396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
397
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
399
|
+
return [2 /*return*/, {
|
|
400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
401
|
+
options: localVarRequestOptions,
|
|
402
|
+
}];
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @summary Create sub account. Only main account can create sub account.
|
|
410
|
+
* @param {CreateSubAccountCommand} [createSubAccountCommand]
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
apiV1VonageaccountsSubaccountsPost: function (createSubAccountCommand, options) {
|
|
415
|
+
if (options === void 0) { options = {}; }
|
|
416
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
417
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
418
|
+
return __generator(this, function (_a) {
|
|
419
|
+
switch (_a.label) {
|
|
420
|
+
case 0:
|
|
421
|
+
localVarPath = "/api/v1/vonageaccounts/subaccounts";
|
|
363
422
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
364
423
|
if (configuration) {
|
|
365
424
|
baseOptions = configuration.baseOptions;
|
|
@@ -378,7 +437,7 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
378
437
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
379
438
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
380
439
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
381
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
440
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubAccountCommand, localVarRequestOptions, configuration);
|
|
382
441
|
return [2 /*return*/, {
|
|
383
442
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
384
443
|
options: localVarRequestOptions,
|
|
@@ -389,22 +448,22 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
389
448
|
},
|
|
390
449
|
/**
|
|
391
450
|
*
|
|
392
|
-
* @
|
|
393
|
-
* @param {string}
|
|
451
|
+
* @summary Only main account can suspend sub account.
|
|
452
|
+
* @param {string} subAccountKey
|
|
394
453
|
* @param {*} [options] Override http request option.
|
|
395
454
|
* @throws {RequiredError}
|
|
396
455
|
*/
|
|
397
|
-
|
|
456
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyDelete: function (subAccountKey, options) {
|
|
398
457
|
if (options === void 0) { options = {}; }
|
|
399
458
|
return __awaiter(_this, void 0, void 0, function () {
|
|
400
459
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
401
460
|
return __generator(this, function (_a) {
|
|
402
461
|
switch (_a.label) {
|
|
403
462
|
case 0:
|
|
404
|
-
// verify required parameter '
|
|
405
|
-
(0, common_1.assertParamExists)('
|
|
406
|
-
localVarPath = "/api/v1/vonageaccounts/
|
|
407
|
-
.replace("{".concat("
|
|
463
|
+
// verify required parameter 'subAccountKey' is not null or undefined
|
|
464
|
+
(0, common_1.assertParamExists)('apiV1VonageaccountsSubaccountsSubAccountKeyDelete', 'subAccountKey', subAccountKey);
|
|
465
|
+
localVarPath = "/api/v1/vonageaccounts/subaccounts/{subAccountKey}"
|
|
466
|
+
.replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
|
|
408
467
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
409
468
|
if (configuration) {
|
|
410
469
|
baseOptions = configuration.baseOptions;
|
|
@@ -419,9 +478,6 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
419
478
|
// authentication oauth2 required
|
|
420
479
|
// oauth required
|
|
421
480
|
_a.sent();
|
|
422
|
-
if (apiKey !== undefined) {
|
|
423
|
-
localVarQueryParameter['apiKey'] = apiKey;
|
|
424
|
-
}
|
|
425
481
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
426
482
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
427
483
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -435,23 +491,22 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
435
491
|
},
|
|
436
492
|
/**
|
|
437
493
|
*
|
|
438
|
-
* @
|
|
439
|
-
* @param {string}
|
|
440
|
-
* @param {string} [apiKey]
|
|
494
|
+
* @summary Only main account can retrieve sub account.
|
|
495
|
+
* @param {string} subAccountKey
|
|
441
496
|
* @param {*} [options] Override http request option.
|
|
442
497
|
* @throws {RequiredError}
|
|
443
498
|
*/
|
|
444
|
-
|
|
499
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyGet: function (subAccountKey, options) {
|
|
445
500
|
if (options === void 0) { options = {}; }
|
|
446
501
|
return __awaiter(_this, void 0, void 0, function () {
|
|
447
502
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
448
503
|
return __generator(this, function (_a) {
|
|
449
504
|
switch (_a.label) {
|
|
450
505
|
case 0:
|
|
451
|
-
// verify required parameter '
|
|
452
|
-
(0, common_1.assertParamExists)('
|
|
453
|
-
localVarPath = "/api/v1/vonageaccounts/
|
|
454
|
-
.replace("{".concat("
|
|
506
|
+
// verify required parameter 'subAccountKey' is not null or undefined
|
|
507
|
+
(0, common_1.assertParamExists)('apiV1VonageaccountsSubaccountsSubAccountKeyGet', 'subAccountKey', subAccountKey);
|
|
508
|
+
localVarPath = "/api/v1/vonageaccounts/subaccounts/{subAccountKey}"
|
|
509
|
+
.replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
|
|
455
510
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
456
511
|
if (configuration) {
|
|
457
512
|
baseOptions = configuration.baseOptions;
|
|
@@ -466,12 +521,6 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
466
521
|
// authentication oauth2 required
|
|
467
522
|
// oauth required
|
|
468
523
|
_a.sent();
|
|
469
|
-
if (secretId2 !== undefined) {
|
|
470
|
-
localVarQueryParameter['SecretId'] = secretId2;
|
|
471
|
-
}
|
|
472
|
-
if (apiKey !== undefined) {
|
|
473
|
-
localVarQueryParameter['ApiKey'] = apiKey;
|
|
474
|
-
}
|
|
475
524
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
476
525
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
477
526
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -485,11 +534,12 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
485
534
|
},
|
|
486
535
|
/**
|
|
487
536
|
*
|
|
537
|
+
* @summary Only main account can reactivate sub account.
|
|
488
538
|
* @param {string} subAccountKey
|
|
489
539
|
* @param {*} [options] Override http request option.
|
|
490
540
|
* @throws {RequiredError}
|
|
491
541
|
*/
|
|
492
|
-
|
|
542
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyPut: function (subAccountKey, options) {
|
|
493
543
|
if (options === void 0) { options = {}; }
|
|
494
544
|
return __awaiter(_this, void 0, void 0, function () {
|
|
495
545
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -497,14 +547,14 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
497
547
|
switch (_a.label) {
|
|
498
548
|
case 0:
|
|
499
549
|
// verify required parameter 'subAccountKey' is not null or undefined
|
|
500
|
-
(0, common_1.assertParamExists)('
|
|
501
|
-
localVarPath = "/api/v1/vonageaccounts/{subAccountKey}"
|
|
550
|
+
(0, common_1.assertParamExists)('apiV1VonageaccountsSubaccountsSubAccountKeyPut', 'subAccountKey', subAccountKey);
|
|
551
|
+
localVarPath = "/api/v1/vonageaccounts/subaccounts/{subAccountKey}"
|
|
502
552
|
.replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
|
|
503
553
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
504
554
|
if (configuration) {
|
|
505
555
|
baseOptions = configuration.baseOptions;
|
|
506
556
|
}
|
|
507
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
557
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
508
558
|
localVarHeaderParameter = {};
|
|
509
559
|
localVarQueryParameter = {};
|
|
510
560
|
// authentication oauth2 required
|
|
@@ -527,26 +577,24 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
527
577
|
},
|
|
528
578
|
/**
|
|
529
579
|
*
|
|
530
|
-
* @
|
|
580
|
+
* @summary Transfer balance between accounts.
|
|
581
|
+
* @param {TransferBalanceCommand} [transferBalanceCommand]
|
|
531
582
|
* @param {*} [options] Override http request option.
|
|
532
583
|
* @throws {RequiredError}
|
|
533
584
|
*/
|
|
534
|
-
|
|
585
|
+
apiV1VonageaccountsTransferbalancePost: function (transferBalanceCommand, options) {
|
|
535
586
|
if (options === void 0) { options = {}; }
|
|
536
587
|
return __awaiter(_this, void 0, void 0, function () {
|
|
537
588
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
538
589
|
return __generator(this, function (_a) {
|
|
539
590
|
switch (_a.label) {
|
|
540
591
|
case 0:
|
|
541
|
-
|
|
542
|
-
(0, common_1.assertParamExists)('apiV1VonageaccountsSubAccountKeyGet', 'subAccountKey', subAccountKey);
|
|
543
|
-
localVarPath = "/api/v1/vonageaccounts/{subAccountKey}"
|
|
544
|
-
.replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
|
|
592
|
+
localVarPath = "/api/v1/vonageaccounts/transferbalance";
|
|
545
593
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
546
594
|
if (configuration) {
|
|
547
595
|
baseOptions = configuration.baseOptions;
|
|
548
596
|
}
|
|
549
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
597
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
550
598
|
localVarHeaderParameter = {};
|
|
551
599
|
localVarQueryParameter = {};
|
|
552
600
|
// authentication oauth2 required
|
|
@@ -556,9 +604,11 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
556
604
|
// authentication oauth2 required
|
|
557
605
|
// oauth required
|
|
558
606
|
_a.sent();
|
|
607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
559
608
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
560
609
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
610
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
611
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferBalanceCommand, localVarRequestOptions, configuration);
|
|
562
612
|
return [2 /*return*/, {
|
|
563
613
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
564
614
|
options: localVarRequestOptions,
|
|
@@ -569,26 +619,24 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
569
619
|
},
|
|
570
620
|
/**
|
|
571
621
|
*
|
|
572
|
-
* @
|
|
622
|
+
* @summary Transfer number from main account to subAccount.
|
|
623
|
+
* @param {TransferNumberCommand} [transferNumberCommand]
|
|
573
624
|
* @param {*} [options] Override http request option.
|
|
574
625
|
* @throws {RequiredError}
|
|
575
626
|
*/
|
|
576
|
-
|
|
627
|
+
apiV1VonageaccountsTrnasfernumberPost: function (transferNumberCommand, options) {
|
|
577
628
|
if (options === void 0) { options = {}; }
|
|
578
629
|
return __awaiter(_this, void 0, void 0, function () {
|
|
579
630
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
580
631
|
return __generator(this, function (_a) {
|
|
581
632
|
switch (_a.label) {
|
|
582
633
|
case 0:
|
|
583
|
-
|
|
584
|
-
(0, common_1.assertParamExists)('apiV1VonageaccountsSubAccountKeyPut', 'subAccountKey', subAccountKey);
|
|
585
|
-
localVarPath = "/api/v1/vonageaccounts/{subAccountKey}"
|
|
586
|
-
.replace("{".concat("subAccountKey", "}"), encodeURIComponent(String(subAccountKey)));
|
|
634
|
+
localVarPath = "/api/v1/vonageaccounts/trnasfernumber";
|
|
587
635
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
588
636
|
if (configuration) {
|
|
589
637
|
baseOptions = configuration.baseOptions;
|
|
590
638
|
}
|
|
591
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
639
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
592
640
|
localVarHeaderParameter = {};
|
|
593
641
|
localVarQueryParameter = {};
|
|
594
642
|
// authentication oauth2 required
|
|
@@ -598,9 +646,11 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
598
646
|
// authentication oauth2 required
|
|
599
647
|
// oauth required
|
|
600
648
|
_a.sent();
|
|
649
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
601
650
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
602
651
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
603
652
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
653
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferNumberCommand, localVarRequestOptions, configuration);
|
|
604
654
|
return [2 /*return*/, {
|
|
605
655
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
606
656
|
options: localVarRequestOptions,
|
|
@@ -611,6 +661,7 @@ var VonageAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
611
661
|
},
|
|
612
662
|
/**
|
|
613
663
|
*
|
|
664
|
+
* @summary Update account settings
|
|
614
665
|
* @param {UpdateAccountCommand} [updateAccountCommand]
|
|
615
666
|
* @param {*} [options] Override http request option.
|
|
616
667
|
* @throws {RequiredError}
|
|
@@ -662,6 +713,7 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
662
713
|
return {
|
|
663
714
|
/**
|
|
664
715
|
*
|
|
716
|
+
* @summary Retrieve the balance of the account.
|
|
665
717
|
* @param {*} [options] Override http request option.
|
|
666
718
|
* @throws {RequiredError}
|
|
667
719
|
*/
|
|
@@ -680,16 +732,19 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
680
732
|
},
|
|
681
733
|
/**
|
|
682
734
|
*
|
|
683
|
-
* @
|
|
735
|
+
* @summary Retrieve the balanceTransfer history of the account.
|
|
736
|
+
* @param {string} [apiKey]
|
|
737
|
+
* @param {Date} [startDate]
|
|
738
|
+
* @param {Date} [endDate]
|
|
684
739
|
* @param {*} [options] Override http request option.
|
|
685
740
|
* @throws {RequiredError}
|
|
686
741
|
*/
|
|
687
|
-
|
|
742
|
+
apiV1VonageaccountsBalancetransfersGet: function (apiKey, startDate, endDate, options) {
|
|
688
743
|
return __awaiter(this, void 0, void 0, function () {
|
|
689
744
|
var localVarAxiosArgs;
|
|
690
745
|
return __generator(this, function (_a) {
|
|
691
746
|
switch (_a.label) {
|
|
692
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
747
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options)];
|
|
693
748
|
case 1:
|
|
694
749
|
localVarAxiosArgs = _a.sent();
|
|
695
750
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -699,18 +754,17 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
699
754
|
},
|
|
700
755
|
/**
|
|
701
756
|
*
|
|
757
|
+
* @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
702
758
|
* @param {string} [apiKey]
|
|
703
|
-
* @param {Date} [startDate]
|
|
704
|
-
* @param {Date} [endDate]
|
|
705
759
|
* @param {*} [options] Override http request option.
|
|
706
760
|
* @throws {RequiredError}
|
|
707
761
|
*/
|
|
708
|
-
|
|
762
|
+
apiV1VonageaccountsSecretsGet: function (apiKey, options) {
|
|
709
763
|
return __awaiter(this, void 0, void 0, function () {
|
|
710
764
|
var localVarAxiosArgs;
|
|
711
765
|
return __generator(this, function (_a) {
|
|
712
766
|
switch (_a.label) {
|
|
713
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
767
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsGet(apiKey, options)];
|
|
714
768
|
case 1:
|
|
715
769
|
localVarAxiosArgs = _a.sent();
|
|
716
770
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -720,15 +774,17 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
720
774
|
},
|
|
721
775
|
/**
|
|
722
776
|
*
|
|
777
|
+
* @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
778
|
+
* @param {CreateSecretCommand} [createSecretCommand]
|
|
723
779
|
* @param {*} [options] Override http request option.
|
|
724
780
|
* @throws {RequiredError}
|
|
725
781
|
*/
|
|
726
|
-
|
|
782
|
+
apiV1VonageaccountsSecretsPost: function (createSecretCommand, options) {
|
|
727
783
|
return __awaiter(this, void 0, void 0, function () {
|
|
728
784
|
var localVarAxiosArgs;
|
|
729
785
|
return __generator(this, function (_a) {
|
|
730
786
|
switch (_a.label) {
|
|
731
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
787
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsPost(createSecretCommand, options)];
|
|
732
788
|
case 1:
|
|
733
789
|
localVarAxiosArgs = _a.sent();
|
|
734
790
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -738,16 +794,18 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
738
794
|
},
|
|
739
795
|
/**
|
|
740
796
|
*
|
|
741
|
-
* @
|
|
797
|
+
* @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
798
|
+
* @param {string} secretId
|
|
799
|
+
* @param {string} [apiKey]
|
|
742
800
|
* @param {*} [options] Override http request option.
|
|
743
801
|
* @throws {RequiredError}
|
|
744
802
|
*/
|
|
745
|
-
|
|
803
|
+
apiV1VonageaccountsSecretsSecretIdDelete: function (secretId, apiKey, options) {
|
|
746
804
|
return __awaiter(this, void 0, void 0, function () {
|
|
747
805
|
var localVarAxiosArgs;
|
|
748
806
|
return __generator(this, function (_a) {
|
|
749
807
|
switch (_a.label) {
|
|
750
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
808
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options)];
|
|
751
809
|
case 1:
|
|
752
810
|
localVarAxiosArgs = _a.sent();
|
|
753
811
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -757,16 +815,18 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
757
815
|
},
|
|
758
816
|
/**
|
|
759
817
|
*
|
|
818
|
+
* @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
819
|
+
* @param {string} secretId
|
|
760
820
|
* @param {string} [apiKey]
|
|
761
821
|
* @param {*} [options] Override http request option.
|
|
762
822
|
* @throws {RequiredError}
|
|
763
823
|
*/
|
|
764
|
-
|
|
824
|
+
apiV1VonageaccountsSecretsSecretIdGet: function (secretId, apiKey, options) {
|
|
765
825
|
return __awaiter(this, void 0, void 0, function () {
|
|
766
826
|
var localVarAxiosArgs;
|
|
767
827
|
return __generator(this, function (_a) {
|
|
768
828
|
switch (_a.label) {
|
|
769
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
829
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSecretsSecretIdGet(secretId, apiKey, options)];
|
|
770
830
|
case 1:
|
|
771
831
|
localVarAxiosArgs = _a.sent();
|
|
772
832
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -776,16 +836,16 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
776
836
|
},
|
|
777
837
|
/**
|
|
778
838
|
*
|
|
779
|
-
* @
|
|
839
|
+
* @summary Only main account can retrieve sub accounts.
|
|
780
840
|
* @param {*} [options] Override http request option.
|
|
781
841
|
* @throws {RequiredError}
|
|
782
842
|
*/
|
|
783
|
-
|
|
843
|
+
apiV1VonageaccountsSubaccountsGet: function (options) {
|
|
784
844
|
return __awaiter(this, void 0, void 0, function () {
|
|
785
845
|
var localVarAxiosArgs;
|
|
786
846
|
return __generator(this, function (_a) {
|
|
787
847
|
switch (_a.label) {
|
|
788
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
848
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsGet(options)];
|
|
789
849
|
case 1:
|
|
790
850
|
localVarAxiosArgs = _a.sent();
|
|
791
851
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -795,17 +855,17 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
795
855
|
},
|
|
796
856
|
/**
|
|
797
857
|
*
|
|
798
|
-
* @
|
|
799
|
-
* @param {
|
|
858
|
+
* @summary Create sub account. Only main account can create sub account.
|
|
859
|
+
* @param {CreateSubAccountCommand} [createSubAccountCommand]
|
|
800
860
|
* @param {*} [options] Override http request option.
|
|
801
861
|
* @throws {RequiredError}
|
|
802
862
|
*/
|
|
803
|
-
|
|
863
|
+
apiV1VonageaccountsSubaccountsPost: function (createSubAccountCommand, options) {
|
|
804
864
|
return __awaiter(this, void 0, void 0, function () {
|
|
805
865
|
var localVarAxiosArgs;
|
|
806
866
|
return __generator(this, function (_a) {
|
|
807
867
|
switch (_a.label) {
|
|
808
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
868
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsPost(createSubAccountCommand, options)];
|
|
809
869
|
case 1:
|
|
810
870
|
localVarAxiosArgs = _a.sent();
|
|
811
871
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -815,18 +875,17 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
815
875
|
},
|
|
816
876
|
/**
|
|
817
877
|
*
|
|
818
|
-
* @
|
|
819
|
-
* @param {string}
|
|
820
|
-
* @param {string} [apiKey]
|
|
878
|
+
* @summary Only main account can suspend sub account.
|
|
879
|
+
* @param {string} subAccountKey
|
|
821
880
|
* @param {*} [options] Override http request option.
|
|
822
881
|
* @throws {RequiredError}
|
|
823
882
|
*/
|
|
824
|
-
|
|
883
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyDelete: function (subAccountKey, options) {
|
|
825
884
|
return __awaiter(this, void 0, void 0, function () {
|
|
826
885
|
var localVarAxiosArgs;
|
|
827
886
|
return __generator(this, function (_a) {
|
|
828
887
|
switch (_a.label) {
|
|
829
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
888
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey, options)];
|
|
830
889
|
case 1:
|
|
831
890
|
localVarAxiosArgs = _a.sent();
|
|
832
891
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -836,16 +895,17 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
836
895
|
},
|
|
837
896
|
/**
|
|
838
897
|
*
|
|
898
|
+
* @summary Only main account can retrieve sub account.
|
|
839
899
|
* @param {string} subAccountKey
|
|
840
900
|
* @param {*} [options] Override http request option.
|
|
841
901
|
* @throws {RequiredError}
|
|
842
902
|
*/
|
|
843
|
-
|
|
903
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyGet: function (subAccountKey, options) {
|
|
844
904
|
return __awaiter(this, void 0, void 0, function () {
|
|
845
905
|
var localVarAxiosArgs;
|
|
846
906
|
return __generator(this, function (_a) {
|
|
847
907
|
switch (_a.label) {
|
|
848
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
908
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey, options)];
|
|
849
909
|
case 1:
|
|
850
910
|
localVarAxiosArgs = _a.sent();
|
|
851
911
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -855,16 +915,17 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
855
915
|
},
|
|
856
916
|
/**
|
|
857
917
|
*
|
|
918
|
+
* @summary Only main account can reactivate sub account.
|
|
858
919
|
* @param {string} subAccountKey
|
|
859
920
|
* @param {*} [options] Override http request option.
|
|
860
921
|
* @throws {RequiredError}
|
|
861
922
|
*/
|
|
862
|
-
|
|
923
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyPut: function (subAccountKey, options) {
|
|
863
924
|
return __awaiter(this, void 0, void 0, function () {
|
|
864
925
|
var localVarAxiosArgs;
|
|
865
926
|
return __generator(this, function (_a) {
|
|
866
927
|
switch (_a.label) {
|
|
867
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
928
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey, options)];
|
|
868
929
|
case 1:
|
|
869
930
|
localVarAxiosArgs = _a.sent();
|
|
870
931
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -874,16 +935,37 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
874
935
|
},
|
|
875
936
|
/**
|
|
876
937
|
*
|
|
877
|
-
* @
|
|
938
|
+
* @summary Transfer balance between accounts.
|
|
939
|
+
* @param {TransferBalanceCommand} [transferBalanceCommand]
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
apiV1VonageaccountsTransferbalancePost: function (transferBalanceCommand, options) {
|
|
944
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
945
|
+
var localVarAxiosArgs;
|
|
946
|
+
return __generator(this, function (_a) {
|
|
947
|
+
switch (_a.label) {
|
|
948
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsTransferbalancePost(transferBalanceCommand, options)];
|
|
949
|
+
case 1:
|
|
950
|
+
localVarAxiosArgs = _a.sent();
|
|
951
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
});
|
|
955
|
+
},
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* @summary Transfer number from main account to subAccount.
|
|
959
|
+
* @param {TransferNumberCommand} [transferNumberCommand]
|
|
878
960
|
* @param {*} [options] Override http request option.
|
|
879
961
|
* @throws {RequiredError}
|
|
880
962
|
*/
|
|
881
|
-
|
|
963
|
+
apiV1VonageaccountsTrnasfernumberPost: function (transferNumberCommand, options) {
|
|
882
964
|
return __awaiter(this, void 0, void 0, function () {
|
|
883
965
|
var localVarAxiosArgs;
|
|
884
966
|
return __generator(this, function (_a) {
|
|
885
967
|
switch (_a.label) {
|
|
886
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
968
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand, options)];
|
|
887
969
|
case 1:
|
|
888
970
|
localVarAxiosArgs = _a.sent();
|
|
889
971
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -893,6 +975,7 @@ var VonageAccountsApiFp = function (configuration) {
|
|
|
893
975
|
},
|
|
894
976
|
/**
|
|
895
977
|
*
|
|
978
|
+
* @summary Update account settings
|
|
896
979
|
* @param {UpdateAccountCommand} [updateAccountCommand]
|
|
897
980
|
* @param {*} [options] Override http request option.
|
|
898
981
|
* @throws {RequiredError}
|
|
@@ -922,6 +1005,7 @@ var VonageAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
922
1005
|
return {
|
|
923
1006
|
/**
|
|
924
1007
|
*
|
|
1008
|
+
* @summary Retrieve the balance of the account.
|
|
925
1009
|
* @param {*} [options] Override http request option.
|
|
926
1010
|
* @throws {RequiredError}
|
|
927
1011
|
*/
|
|
@@ -930,109 +1014,130 @@ var VonageAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
930
1014
|
},
|
|
931
1015
|
/**
|
|
932
1016
|
*
|
|
933
|
-
* @
|
|
1017
|
+
* @summary Retrieve the balanceTransfer history of the account.
|
|
1018
|
+
* @param {string} [apiKey]
|
|
1019
|
+
* @param {Date} [startDate]
|
|
1020
|
+
* @param {Date} [endDate]
|
|
934
1021
|
* @param {*} [options] Override http request option.
|
|
935
1022
|
* @throws {RequiredError}
|
|
936
1023
|
*/
|
|
937
|
-
|
|
938
|
-
return localVarFp.
|
|
1024
|
+
apiV1VonageaccountsBalancetransfersGet: function (apiKey, startDate, endDate, options) {
|
|
1025
|
+
return localVarFp.apiV1VonageaccountsBalancetransfersGet(apiKey, startDate, endDate, options).then(function (request) { return request(axios, basePath); });
|
|
939
1026
|
},
|
|
940
1027
|
/**
|
|
941
1028
|
*
|
|
1029
|
+
* @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
942
1030
|
* @param {string} [apiKey]
|
|
943
|
-
* @param {Date} [startDate]
|
|
944
|
-
* @param {Date} [endDate]
|
|
945
1031
|
* @param {*} [options] Override http request option.
|
|
946
1032
|
* @throws {RequiredError}
|
|
947
1033
|
*/
|
|
948
|
-
|
|
949
|
-
return localVarFp.
|
|
1034
|
+
apiV1VonageaccountsSecretsGet: function (apiKey, options) {
|
|
1035
|
+
return localVarFp.apiV1VonageaccountsSecretsGet(apiKey, options).then(function (request) { return request(axios, basePath); });
|
|
950
1036
|
},
|
|
951
1037
|
/**
|
|
952
1038
|
*
|
|
1039
|
+
* @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1040
|
+
* @param {CreateSecretCommand} [createSecretCommand]
|
|
953
1041
|
* @param {*} [options] Override http request option.
|
|
954
1042
|
* @throws {RequiredError}
|
|
955
1043
|
*/
|
|
956
|
-
|
|
957
|
-
return localVarFp.
|
|
1044
|
+
apiV1VonageaccountsSecretsPost: function (createSecretCommand, options) {
|
|
1045
|
+
return localVarFp.apiV1VonageaccountsSecretsPost(createSecretCommand, options).then(function (request) { return request(axios, basePath); });
|
|
958
1046
|
},
|
|
959
1047
|
/**
|
|
960
1048
|
*
|
|
961
|
-
* @
|
|
1049
|
+
* @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1050
|
+
* @param {string} secretId
|
|
1051
|
+
* @param {string} [apiKey]
|
|
962
1052
|
* @param {*} [options] Override http request option.
|
|
963
1053
|
* @throws {RequiredError}
|
|
964
1054
|
*/
|
|
965
|
-
|
|
966
|
-
return localVarFp.
|
|
1055
|
+
apiV1VonageaccountsSecretsSecretIdDelete: function (secretId, apiKey, options) {
|
|
1056
|
+
return localVarFp.apiV1VonageaccountsSecretsSecretIdDelete(secretId, apiKey, options).then(function (request) { return request(axios, basePath); });
|
|
967
1057
|
},
|
|
968
1058
|
/**
|
|
969
1059
|
*
|
|
1060
|
+
* @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1061
|
+
* @param {string} secretId
|
|
970
1062
|
* @param {string} [apiKey]
|
|
971
1063
|
* @param {*} [options] Override http request option.
|
|
972
1064
|
* @throws {RequiredError}
|
|
973
1065
|
*/
|
|
974
|
-
|
|
975
|
-
return localVarFp.
|
|
1066
|
+
apiV1VonageaccountsSecretsSecretIdGet: function (secretId, apiKey, options) {
|
|
1067
|
+
return localVarFp.apiV1VonageaccountsSecretsSecretIdGet(secretId, apiKey, options).then(function (request) { return request(axios, basePath); });
|
|
976
1068
|
},
|
|
977
1069
|
/**
|
|
978
1070
|
*
|
|
979
|
-
* @
|
|
1071
|
+
* @summary Only main account can retrieve sub accounts.
|
|
980
1072
|
* @param {*} [options] Override http request option.
|
|
981
1073
|
* @throws {RequiredError}
|
|
982
1074
|
*/
|
|
983
|
-
|
|
984
|
-
return localVarFp.
|
|
1075
|
+
apiV1VonageaccountsSubaccountsGet: function (options) {
|
|
1076
|
+
return localVarFp.apiV1VonageaccountsSubaccountsGet(options).then(function (request) { return request(axios, basePath); });
|
|
985
1077
|
},
|
|
986
1078
|
/**
|
|
987
1079
|
*
|
|
988
|
-
* @
|
|
989
|
-
* @param {
|
|
1080
|
+
* @summary Create sub account. Only main account can create sub account.
|
|
1081
|
+
* @param {CreateSubAccountCommand} [createSubAccountCommand]
|
|
990
1082
|
* @param {*} [options] Override http request option.
|
|
991
1083
|
* @throws {RequiredError}
|
|
992
1084
|
*/
|
|
993
|
-
|
|
994
|
-
return localVarFp.
|
|
1085
|
+
apiV1VonageaccountsSubaccountsPost: function (createSubAccountCommand, options) {
|
|
1086
|
+
return localVarFp.apiV1VonageaccountsSubaccountsPost(createSubAccountCommand, options).then(function (request) { return request(axios, basePath); });
|
|
995
1087
|
},
|
|
996
1088
|
/**
|
|
997
1089
|
*
|
|
998
|
-
* @
|
|
999
|
-
* @param {string}
|
|
1000
|
-
* @param {string} [apiKey]
|
|
1090
|
+
* @summary Only main account can suspend sub account.
|
|
1091
|
+
* @param {string} subAccountKey
|
|
1001
1092
|
* @param {*} [options] Override http request option.
|
|
1002
1093
|
* @throws {RequiredError}
|
|
1003
1094
|
*/
|
|
1004
|
-
|
|
1005
|
-
return localVarFp.
|
|
1095
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyDelete: function (subAccountKey, options) {
|
|
1096
|
+
return localVarFp.apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey, options).then(function (request) { return request(axios, basePath); });
|
|
1006
1097
|
},
|
|
1007
1098
|
/**
|
|
1008
1099
|
*
|
|
1100
|
+
* @summary Only main account can retrieve sub account.
|
|
1009
1101
|
* @param {string} subAccountKey
|
|
1010
1102
|
* @param {*} [options] Override http request option.
|
|
1011
1103
|
* @throws {RequiredError}
|
|
1012
1104
|
*/
|
|
1013
|
-
|
|
1014
|
-
return localVarFp.
|
|
1105
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyGet: function (subAccountKey, options) {
|
|
1106
|
+
return localVarFp.apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey, options).then(function (request) { return request(axios, basePath); });
|
|
1015
1107
|
},
|
|
1016
1108
|
/**
|
|
1017
1109
|
*
|
|
1110
|
+
* @summary Only main account can reactivate sub account.
|
|
1018
1111
|
* @param {string} subAccountKey
|
|
1019
1112
|
* @param {*} [options] Override http request option.
|
|
1020
1113
|
* @throws {RequiredError}
|
|
1021
1114
|
*/
|
|
1022
|
-
|
|
1023
|
-
return localVarFp.
|
|
1115
|
+
apiV1VonageaccountsSubaccountsSubAccountKeyPut: function (subAccountKey, options) {
|
|
1116
|
+
return localVarFp.apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey, options).then(function (request) { return request(axios, basePath); });
|
|
1024
1117
|
},
|
|
1025
1118
|
/**
|
|
1026
1119
|
*
|
|
1027
|
-
* @
|
|
1120
|
+
* @summary Transfer balance between accounts.
|
|
1121
|
+
* @param {TransferBalanceCommand} [transferBalanceCommand]
|
|
1122
|
+
* @param {*} [options] Override http request option.
|
|
1123
|
+
* @throws {RequiredError}
|
|
1124
|
+
*/
|
|
1125
|
+
apiV1VonageaccountsTransferbalancePost: function (transferBalanceCommand, options) {
|
|
1126
|
+
return localVarFp.apiV1VonageaccountsTransferbalancePost(transferBalanceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1127
|
+
},
|
|
1128
|
+
/**
|
|
1129
|
+
*
|
|
1130
|
+
* @summary Transfer number from main account to subAccount.
|
|
1131
|
+
* @param {TransferNumberCommand} [transferNumberCommand]
|
|
1028
1132
|
* @param {*} [options] Override http request option.
|
|
1029
1133
|
* @throws {RequiredError}
|
|
1030
1134
|
*/
|
|
1031
|
-
|
|
1032
|
-
return localVarFp.
|
|
1135
|
+
apiV1VonageaccountsTrnasfernumberPost: function (transferNumberCommand, options) {
|
|
1136
|
+
return localVarFp.apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1033
1137
|
},
|
|
1034
1138
|
/**
|
|
1035
1139
|
*
|
|
1140
|
+
* @summary Update account settings
|
|
1036
1141
|
* @param {UpdateAccountCommand} [updateAccountCommand]
|
|
1037
1142
|
* @param {*} [options] Override http request option.
|
|
1038
1143
|
* @throws {RequiredError}
|
|
@@ -1056,6 +1161,7 @@ var VonageAccountsApi = /** @class */ (function (_super) {
|
|
|
1056
1161
|
}
|
|
1057
1162
|
/**
|
|
1058
1163
|
*
|
|
1164
|
+
* @summary Retrieve the balance of the account.
|
|
1059
1165
|
* @param {*} [options] Override http request option.
|
|
1060
1166
|
* @throws {RequiredError}
|
|
1061
1167
|
* @memberof VonageAccountsApi
|
|
@@ -1066,131 +1172,156 @@ var VonageAccountsApi = /** @class */ (function (_super) {
|
|
|
1066
1172
|
};
|
|
1067
1173
|
/**
|
|
1068
1174
|
*
|
|
1069
|
-
* @
|
|
1175
|
+
* @summary Retrieve the balanceTransfer history of the account.
|
|
1176
|
+
* @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
|
|
1070
1177
|
* @param {*} [options] Override http request option.
|
|
1071
1178
|
* @throws {RequiredError}
|
|
1072
1179
|
* @memberof VonageAccountsApi
|
|
1073
1180
|
*/
|
|
1074
|
-
VonageAccountsApi.prototype.
|
|
1181
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsBalancetransfersGet = function (requestParameters, options) {
|
|
1075
1182
|
var _this = this;
|
|
1076
1183
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1077
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).
|
|
1184
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsBalancetransfersGet(requestParameters.apiKey, requestParameters.startDate, requestParameters.endDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1078
1185
|
};
|
|
1079
1186
|
/**
|
|
1080
1187
|
*
|
|
1081
|
-
* @
|
|
1188
|
+
* @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1189
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
|
|
1082
1190
|
* @param {*} [options] Override http request option.
|
|
1083
1191
|
* @throws {RequiredError}
|
|
1084
1192
|
* @memberof VonageAccountsApi
|
|
1085
1193
|
*/
|
|
1086
|
-
VonageAccountsApi.prototype.
|
|
1194
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSecretsGet = function (requestParameters, options) {
|
|
1087
1195
|
var _this = this;
|
|
1088
1196
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1089
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).
|
|
1197
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsGet(requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1090
1198
|
};
|
|
1091
1199
|
/**
|
|
1092
1200
|
*
|
|
1201
|
+
* @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1202
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
|
|
1093
1203
|
* @param {*} [options] Override http request option.
|
|
1094
1204
|
* @throws {RequiredError}
|
|
1095
1205
|
* @memberof VonageAccountsApi
|
|
1096
1206
|
*/
|
|
1097
|
-
VonageAccountsApi.prototype.
|
|
1207
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSecretsPost = function (requestParameters, options) {
|
|
1098
1208
|
var _this = this;
|
|
1099
|
-
|
|
1209
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1210
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsPost(requestParameters.createSecretCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1100
1211
|
};
|
|
1101
1212
|
/**
|
|
1102
1213
|
*
|
|
1103
|
-
* @
|
|
1214
|
+
* @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1215
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
|
|
1104
1216
|
* @param {*} [options] Override http request option.
|
|
1105
1217
|
* @throws {RequiredError}
|
|
1106
1218
|
* @memberof VonageAccountsApi
|
|
1107
1219
|
*/
|
|
1108
|
-
VonageAccountsApi.prototype.
|
|
1220
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSecretsSecretIdDelete = function (requestParameters, options) {
|
|
1109
1221
|
var _this = this;
|
|
1110
|
-
|
|
1111
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsPost(requestParameters.createSubAccountCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1222
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsSecretIdDelete(requestParameters.secretId, requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1112
1223
|
};
|
|
1113
1224
|
/**
|
|
1114
1225
|
*
|
|
1115
|
-
* @
|
|
1226
|
+
* @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
|
|
1227
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
|
|
1116
1228
|
* @param {*} [options] Override http request option.
|
|
1117
1229
|
* @throws {RequiredError}
|
|
1118
1230
|
* @memberof VonageAccountsApi
|
|
1119
1231
|
*/
|
|
1120
|
-
VonageAccountsApi.prototype.
|
|
1232
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSecretsSecretIdGet = function (requestParameters, options) {
|
|
1121
1233
|
var _this = this;
|
|
1122
|
-
|
|
1123
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsGet(requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1234
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSecretsSecretIdGet(requestParameters.secretId, requestParameters.apiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1124
1235
|
};
|
|
1125
1236
|
/**
|
|
1126
1237
|
*
|
|
1127
|
-
* @
|
|
1238
|
+
* @summary Only main account can retrieve sub accounts.
|
|
1128
1239
|
* @param {*} [options] Override http request option.
|
|
1129
1240
|
* @throws {RequiredError}
|
|
1130
1241
|
* @memberof VonageAccountsApi
|
|
1131
1242
|
*/
|
|
1132
|
-
VonageAccountsApi.prototype.
|
|
1243
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSubaccountsGet = function (options) {
|
|
1244
|
+
var _this = this;
|
|
1245
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubaccountsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
*
|
|
1249
|
+
* @summary Create sub account. Only main account can create sub account.
|
|
1250
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest} requestParameters Request parameters.
|
|
1251
|
+
* @param {*} [options] Override http request option.
|
|
1252
|
+
* @throws {RequiredError}
|
|
1253
|
+
* @memberof VonageAccountsApi
|
|
1254
|
+
*/
|
|
1255
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSubaccountsPost = function (requestParameters, options) {
|
|
1133
1256
|
var _this = this;
|
|
1134
1257
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1135
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).
|
|
1258
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubaccountsPost(requestParameters.createSubAccountCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1136
1259
|
};
|
|
1137
1260
|
/**
|
|
1138
1261
|
*
|
|
1139
|
-
* @
|
|
1262
|
+
* @summary Only main account can suspend sub account.
|
|
1263
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
|
|
1140
1264
|
* @param {*} [options] Override http request option.
|
|
1141
1265
|
* @throws {RequiredError}
|
|
1142
1266
|
* @memberof VonageAccountsApi
|
|
1143
1267
|
*/
|
|
1144
|
-
VonageAccountsApi.prototype.
|
|
1268
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSubaccountsSubAccountKeyDelete = function (requestParameters, options) {
|
|
1145
1269
|
var _this = this;
|
|
1146
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).
|
|
1270
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubaccountsSubAccountKeyDelete(requestParameters.subAccountKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1147
1271
|
};
|
|
1148
1272
|
/**
|
|
1149
1273
|
*
|
|
1150
|
-
* @
|
|
1274
|
+
* @summary Only main account can retrieve sub account.
|
|
1275
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
|
|
1151
1276
|
* @param {*} [options] Override http request option.
|
|
1152
1277
|
* @throws {RequiredError}
|
|
1153
1278
|
* @memberof VonageAccountsApi
|
|
1154
1279
|
*/
|
|
1155
|
-
VonageAccountsApi.prototype.
|
|
1280
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSubaccountsSubAccountKeyGet = function (requestParameters, options) {
|
|
1156
1281
|
var _this = this;
|
|
1157
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).
|
|
1282
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubaccountsSubAccountKeyGet(requestParameters.subAccountKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1158
1283
|
};
|
|
1159
1284
|
/**
|
|
1160
1285
|
*
|
|
1161
|
-
* @
|
|
1286
|
+
* @summary Only main account can reactivate sub account.
|
|
1287
|
+
* @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
|
|
1162
1288
|
* @param {*} [options] Override http request option.
|
|
1163
1289
|
* @throws {RequiredError}
|
|
1164
1290
|
* @memberof VonageAccountsApi
|
|
1165
1291
|
*/
|
|
1166
|
-
VonageAccountsApi.prototype.
|
|
1292
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsSubaccountsSubAccountKeyPut = function (requestParameters, options) {
|
|
1167
1293
|
var _this = this;
|
|
1168
|
-
return (0, exports.VonageAccountsApiFp)(this.configuration).
|
|
1294
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsSubaccountsSubAccountKeyPut(requestParameters.subAccountKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1169
1295
|
};
|
|
1170
1296
|
/**
|
|
1171
1297
|
*
|
|
1172
|
-
* @
|
|
1298
|
+
* @summary Transfer balance between accounts.
|
|
1299
|
+
* @param {VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest} requestParameters Request parameters.
|
|
1173
1300
|
* @param {*} [options] Override http request option.
|
|
1174
1301
|
* @throws {RequiredError}
|
|
1175
1302
|
* @memberof VonageAccountsApi
|
|
1176
1303
|
*/
|
|
1177
|
-
VonageAccountsApi.prototype.
|
|
1304
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsTransferbalancePost = function (requestParameters, options) {
|
|
1178
1305
|
var _this = this;
|
|
1179
|
-
|
|
1306
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1307
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsTransferbalancePost(requestParameters.transferBalanceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1180
1308
|
};
|
|
1181
1309
|
/**
|
|
1182
1310
|
*
|
|
1183
|
-
* @
|
|
1311
|
+
* @summary Transfer number from main account to subAccount.
|
|
1312
|
+
* @param {VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest} requestParameters Request parameters.
|
|
1184
1313
|
* @param {*} [options] Override http request option.
|
|
1185
1314
|
* @throws {RequiredError}
|
|
1186
1315
|
* @memberof VonageAccountsApi
|
|
1187
1316
|
*/
|
|
1188
|
-
VonageAccountsApi.prototype.
|
|
1317
|
+
VonageAccountsApi.prototype.apiV1VonageaccountsTrnasfernumberPost = function (requestParameters, options) {
|
|
1189
1318
|
var _this = this;
|
|
1190
|
-
|
|
1319
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1320
|
+
return (0, exports.VonageAccountsApiFp)(this.configuration).apiV1VonageaccountsTrnasfernumberPost(requestParameters.transferNumberCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1191
1321
|
};
|
|
1192
1322
|
/**
|
|
1193
1323
|
*
|
|
1324
|
+
* @summary Update account settings
|
|
1194
1325
|
* @param {VonageAccountsApiApiV1VonageaccountsUpdatePutRequest} requestParameters Request parameters.
|
|
1195
1326
|
* @param {*} [options] Override http request option.
|
|
1196
1327
|
* @throws {RequiredError}
|