ch-admin-api-client-typescript 4.0.7 → 4.1.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.d.ts +223 -6
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +495 -0
- package/package.json +1 -1
- package/src/api.ts +450 -6
package/lib/api.js
CHANGED
|
@@ -12148,6 +12148,261 @@ exports.DealsApi = DealsApi;
|
|
|
12148
12148
|
exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
12149
12149
|
var _this = this;
|
|
12150
12150
|
return {
|
|
12151
|
+
/**
|
|
12152
|
+
*
|
|
12153
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
12154
|
+
* @param {string} doctorAffiliationId
|
|
12155
|
+
* @param {string} [id]
|
|
12156
|
+
* @param {MediaType} [mediaType]
|
|
12157
|
+
* @param {number} [page]
|
|
12158
|
+
* @param {number} [limit]
|
|
12159
|
+
* @param {Date} [lastRetrieved]
|
|
12160
|
+
* @param {*} [options] Override http request option.
|
|
12161
|
+
* @throws {RequiredError}
|
|
12162
|
+
*/
|
|
12163
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet: function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12164
|
+
if (options === void 0) { options = {}; }
|
|
12165
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12166
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12167
|
+
return __generator(this, function (_a) {
|
|
12168
|
+
switch (_a.label) {
|
|
12169
|
+
case 0:
|
|
12170
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12171
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet', 'doctorAffiliationId', doctorAffiliationId);
|
|
12172
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias"
|
|
12173
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)));
|
|
12174
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12175
|
+
if (configuration) {
|
|
12176
|
+
baseOptions = configuration.baseOptions;
|
|
12177
|
+
}
|
|
12178
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
12179
|
+
localVarHeaderParameter = {};
|
|
12180
|
+
localVarQueryParameter = {};
|
|
12181
|
+
// authentication oauth2 required
|
|
12182
|
+
// oauth required
|
|
12183
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12184
|
+
case 1:
|
|
12185
|
+
// authentication oauth2 required
|
|
12186
|
+
// oauth required
|
|
12187
|
+
_a.sent();
|
|
12188
|
+
if (id !== undefined) {
|
|
12189
|
+
localVarQueryParameter['Id'] = id;
|
|
12190
|
+
}
|
|
12191
|
+
if (mediaType !== undefined) {
|
|
12192
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
12193
|
+
}
|
|
12194
|
+
if (page !== undefined) {
|
|
12195
|
+
localVarQueryParameter['page'] = page;
|
|
12196
|
+
}
|
|
12197
|
+
if (limit !== undefined) {
|
|
12198
|
+
localVarQueryParameter['limit'] = limit;
|
|
12199
|
+
}
|
|
12200
|
+
if (lastRetrieved !== undefined) {
|
|
12201
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
12202
|
+
lastRetrieved.toISOString() :
|
|
12203
|
+
lastRetrieved;
|
|
12204
|
+
}
|
|
12205
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12206
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12207
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12208
|
+
return [2 /*return*/, {
|
|
12209
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12210
|
+
options: localVarRequestOptions,
|
|
12211
|
+
}];
|
|
12212
|
+
}
|
|
12213
|
+
});
|
|
12214
|
+
});
|
|
12215
|
+
},
|
|
12216
|
+
/**
|
|
12217
|
+
*
|
|
12218
|
+
* @summary Delete DoctorAffiliationMedia
|
|
12219
|
+
* @param {string} doctorAffiliationId
|
|
12220
|
+
* @param {string} mediaId
|
|
12221
|
+
* @param {*} [options] Override http request option.
|
|
12222
|
+
* @throws {RequiredError}
|
|
12223
|
+
*/
|
|
12224
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete: function (doctorAffiliationId, mediaId, options) {
|
|
12225
|
+
if (options === void 0) { options = {}; }
|
|
12226
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12227
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12228
|
+
return __generator(this, function (_a) {
|
|
12229
|
+
switch (_a.label) {
|
|
12230
|
+
case 0:
|
|
12231
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12232
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete', 'doctorAffiliationId', doctorAffiliationId);
|
|
12233
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
12234
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
12235
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}"
|
|
12236
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)))
|
|
12237
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
12238
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12239
|
+
if (configuration) {
|
|
12240
|
+
baseOptions = configuration.baseOptions;
|
|
12241
|
+
}
|
|
12242
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
12243
|
+
localVarHeaderParameter = {};
|
|
12244
|
+
localVarQueryParameter = {};
|
|
12245
|
+
// authentication oauth2 required
|
|
12246
|
+
// oauth required
|
|
12247
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12248
|
+
case 1:
|
|
12249
|
+
// authentication oauth2 required
|
|
12250
|
+
// oauth required
|
|
12251
|
+
_a.sent();
|
|
12252
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12253
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12254
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12255
|
+
return [2 /*return*/, {
|
|
12256
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12257
|
+
options: localVarRequestOptions,
|
|
12258
|
+
}];
|
|
12259
|
+
}
|
|
12260
|
+
});
|
|
12261
|
+
});
|
|
12262
|
+
},
|
|
12263
|
+
/**
|
|
12264
|
+
*
|
|
12265
|
+
* @summary Get DoctorAffiliationMedia.
|
|
12266
|
+
* @param {string} doctorAffiliationId
|
|
12267
|
+
* @param {string} mediaId
|
|
12268
|
+
* @param {*} [options] Override http request option.
|
|
12269
|
+
* @throws {RequiredError}
|
|
12270
|
+
*/
|
|
12271
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: function (doctorAffiliationId, mediaId, options) {
|
|
12272
|
+
if (options === void 0) { options = {}; }
|
|
12273
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12274
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12275
|
+
return __generator(this, function (_a) {
|
|
12276
|
+
switch (_a.label) {
|
|
12277
|
+
case 0:
|
|
12278
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12279
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet', 'doctorAffiliationId', doctorAffiliationId);
|
|
12280
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
12281
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
12282
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}"
|
|
12283
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)))
|
|
12284
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
12285
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12286
|
+
if (configuration) {
|
|
12287
|
+
baseOptions = configuration.baseOptions;
|
|
12288
|
+
}
|
|
12289
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
12290
|
+
localVarHeaderParameter = {};
|
|
12291
|
+
localVarQueryParameter = {};
|
|
12292
|
+
// authentication oauth2 required
|
|
12293
|
+
// oauth required
|
|
12294
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12295
|
+
case 1:
|
|
12296
|
+
// authentication oauth2 required
|
|
12297
|
+
// oauth required
|
|
12298
|
+
_a.sent();
|
|
12299
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12300
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12301
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12302
|
+
return [2 /*return*/, {
|
|
12303
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12304
|
+
options: localVarRequestOptions,
|
|
12305
|
+
}];
|
|
12306
|
+
}
|
|
12307
|
+
});
|
|
12308
|
+
});
|
|
12309
|
+
},
|
|
12310
|
+
/**
|
|
12311
|
+
*
|
|
12312
|
+
* @summary Update DoctorAffiliationMedia.
|
|
12313
|
+
* @param {string} doctorAffiliationId
|
|
12314
|
+
* @param {string} mediaId
|
|
12315
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
12316
|
+
* @param {*} [options] Override http request option.
|
|
12317
|
+
* @throws {RequiredError}
|
|
12318
|
+
*/
|
|
12319
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut: function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
12320
|
+
if (options === void 0) { options = {}; }
|
|
12321
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12322
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12323
|
+
return __generator(this, function (_a) {
|
|
12324
|
+
switch (_a.label) {
|
|
12325
|
+
case 0:
|
|
12326
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12327
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut', 'doctorAffiliationId', doctorAffiliationId);
|
|
12328
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
12329
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
12330
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}"
|
|
12331
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)))
|
|
12332
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
12333
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12334
|
+
if (configuration) {
|
|
12335
|
+
baseOptions = configuration.baseOptions;
|
|
12336
|
+
}
|
|
12337
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
12338
|
+
localVarHeaderParameter = {};
|
|
12339
|
+
localVarQueryParameter = {};
|
|
12340
|
+
// authentication oauth2 required
|
|
12341
|
+
// oauth required
|
|
12342
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12343
|
+
case 1:
|
|
12344
|
+
// authentication oauth2 required
|
|
12345
|
+
// oauth required
|
|
12346
|
+
_a.sent();
|
|
12347
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12348
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12349
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12350
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12351
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
12352
|
+
return [2 /*return*/, {
|
|
12353
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12354
|
+
options: localVarRequestOptions,
|
|
12355
|
+
}];
|
|
12356
|
+
}
|
|
12357
|
+
});
|
|
12358
|
+
});
|
|
12359
|
+
},
|
|
12360
|
+
/**
|
|
12361
|
+
*
|
|
12362
|
+
* @summary Create DoctorAffiliationMedia.
|
|
12363
|
+
* @param {string} doctorAffiliationId
|
|
12364
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
12365
|
+
* @param {*} [options] Override http request option.
|
|
12366
|
+
* @throws {RequiredError}
|
|
12367
|
+
*/
|
|
12368
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost: function (doctorAffiliationId, createMediaCommand, options) {
|
|
12369
|
+
if (options === void 0) { options = {}; }
|
|
12370
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12371
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12372
|
+
return __generator(this, function (_a) {
|
|
12373
|
+
switch (_a.label) {
|
|
12374
|
+
case 0:
|
|
12375
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12376
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost', 'doctorAffiliationId', doctorAffiliationId);
|
|
12377
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias"
|
|
12378
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)));
|
|
12379
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12380
|
+
if (configuration) {
|
|
12381
|
+
baseOptions = configuration.baseOptions;
|
|
12382
|
+
}
|
|
12383
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12384
|
+
localVarHeaderParameter = {};
|
|
12385
|
+
localVarQueryParameter = {};
|
|
12386
|
+
// authentication oauth2 required
|
|
12387
|
+
// oauth required
|
|
12388
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12389
|
+
case 1:
|
|
12390
|
+
// authentication oauth2 required
|
|
12391
|
+
// oauth required
|
|
12392
|
+
_a.sent();
|
|
12393
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12394
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12395
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12396
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12397
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
12398
|
+
return [2 /*return*/, {
|
|
12399
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12400
|
+
options: localVarRequestOptions,
|
|
12401
|
+
}];
|
|
12402
|
+
}
|
|
12403
|
+
});
|
|
12404
|
+
});
|
|
12405
|
+
},
|
|
12151
12406
|
/**
|
|
12152
12407
|
*
|
|
12153
12408
|
* @summary Get all doctor affiliations.
|
|
@@ -12419,6 +12674,116 @@ exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
|
12419
12674
|
exports.DoctorAffiliationsApiFp = function (configuration) {
|
|
12420
12675
|
var localVarAxiosParamCreator = exports.DoctorAffiliationsApiAxiosParamCreator(configuration);
|
|
12421
12676
|
return {
|
|
12677
|
+
/**
|
|
12678
|
+
*
|
|
12679
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
12680
|
+
* @param {string} doctorAffiliationId
|
|
12681
|
+
* @param {string} [id]
|
|
12682
|
+
* @param {MediaType} [mediaType]
|
|
12683
|
+
* @param {number} [page]
|
|
12684
|
+
* @param {number} [limit]
|
|
12685
|
+
* @param {Date} [lastRetrieved]
|
|
12686
|
+
* @param {*} [options] Override http request option.
|
|
12687
|
+
* @throws {RequiredError}
|
|
12688
|
+
*/
|
|
12689
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet: function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12690
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12691
|
+
var localVarAxiosArgs;
|
|
12692
|
+
return __generator(this, function (_a) {
|
|
12693
|
+
switch (_a.label) {
|
|
12694
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
12695
|
+
case 1:
|
|
12696
|
+
localVarAxiosArgs = _a.sent();
|
|
12697
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12698
|
+
}
|
|
12699
|
+
});
|
|
12700
|
+
});
|
|
12701
|
+
},
|
|
12702
|
+
/**
|
|
12703
|
+
*
|
|
12704
|
+
* @summary Delete DoctorAffiliationMedia
|
|
12705
|
+
* @param {string} doctorAffiliationId
|
|
12706
|
+
* @param {string} mediaId
|
|
12707
|
+
* @param {*} [options] Override http request option.
|
|
12708
|
+
* @throws {RequiredError}
|
|
12709
|
+
*/
|
|
12710
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete: function (doctorAffiliationId, mediaId, options) {
|
|
12711
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12712
|
+
var localVarAxiosArgs;
|
|
12713
|
+
return __generator(this, function (_a) {
|
|
12714
|
+
switch (_a.label) {
|
|
12715
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete(doctorAffiliationId, mediaId, options)];
|
|
12716
|
+
case 1:
|
|
12717
|
+
localVarAxiosArgs = _a.sent();
|
|
12718
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12719
|
+
}
|
|
12720
|
+
});
|
|
12721
|
+
});
|
|
12722
|
+
},
|
|
12723
|
+
/**
|
|
12724
|
+
*
|
|
12725
|
+
* @summary Get DoctorAffiliationMedia.
|
|
12726
|
+
* @param {string} doctorAffiliationId
|
|
12727
|
+
* @param {string} mediaId
|
|
12728
|
+
* @param {*} [options] Override http request option.
|
|
12729
|
+
* @throws {RequiredError}
|
|
12730
|
+
*/
|
|
12731
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: function (doctorAffiliationId, mediaId, options) {
|
|
12732
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12733
|
+
var localVarAxiosArgs;
|
|
12734
|
+
return __generator(this, function (_a) {
|
|
12735
|
+
switch (_a.label) {
|
|
12736
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options)];
|
|
12737
|
+
case 1:
|
|
12738
|
+
localVarAxiosArgs = _a.sent();
|
|
12739
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12740
|
+
}
|
|
12741
|
+
});
|
|
12742
|
+
});
|
|
12743
|
+
},
|
|
12744
|
+
/**
|
|
12745
|
+
*
|
|
12746
|
+
* @summary Update DoctorAffiliationMedia.
|
|
12747
|
+
* @param {string} doctorAffiliationId
|
|
12748
|
+
* @param {string} mediaId
|
|
12749
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
12750
|
+
* @param {*} [options] Override http request option.
|
|
12751
|
+
* @throws {RequiredError}
|
|
12752
|
+
*/
|
|
12753
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut: function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
12754
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12755
|
+
var localVarAxiosArgs;
|
|
12756
|
+
return __generator(this, function (_a) {
|
|
12757
|
+
switch (_a.label) {
|
|
12758
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut(doctorAffiliationId, mediaId, updateMediaCommand, options)];
|
|
12759
|
+
case 1:
|
|
12760
|
+
localVarAxiosArgs = _a.sent();
|
|
12761
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12762
|
+
}
|
|
12763
|
+
});
|
|
12764
|
+
});
|
|
12765
|
+
},
|
|
12766
|
+
/**
|
|
12767
|
+
*
|
|
12768
|
+
* @summary Create DoctorAffiliationMedia.
|
|
12769
|
+
* @param {string} doctorAffiliationId
|
|
12770
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
12771
|
+
* @param {*} [options] Override http request option.
|
|
12772
|
+
* @throws {RequiredError}
|
|
12773
|
+
*/
|
|
12774
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost: function (doctorAffiliationId, createMediaCommand, options) {
|
|
12775
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12776
|
+
var localVarAxiosArgs;
|
|
12777
|
+
return __generator(this, function (_a) {
|
|
12778
|
+
switch (_a.label) {
|
|
12779
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost(doctorAffiliationId, createMediaCommand, options)];
|
|
12780
|
+
case 1:
|
|
12781
|
+
localVarAxiosArgs = _a.sent();
|
|
12782
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12783
|
+
}
|
|
12784
|
+
});
|
|
12785
|
+
});
|
|
12786
|
+
},
|
|
12422
12787
|
/**
|
|
12423
12788
|
*
|
|
12424
12789
|
* @summary Get all doctor affiliations.
|
|
@@ -12539,6 +12904,66 @@ exports.DoctorAffiliationsApiFp = function (configuration) {
|
|
|
12539
12904
|
exports.DoctorAffiliationsApiFactory = function (configuration, basePath, axios) {
|
|
12540
12905
|
var localVarFp = exports.DoctorAffiliationsApiFp(configuration);
|
|
12541
12906
|
return {
|
|
12907
|
+
/**
|
|
12908
|
+
*
|
|
12909
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
12910
|
+
* @param {string} doctorAffiliationId
|
|
12911
|
+
* @param {string} [id]
|
|
12912
|
+
* @param {MediaType} [mediaType]
|
|
12913
|
+
* @param {number} [page]
|
|
12914
|
+
* @param {number} [limit]
|
|
12915
|
+
* @param {Date} [lastRetrieved]
|
|
12916
|
+
* @param {*} [options] Override http request option.
|
|
12917
|
+
* @throws {RequiredError}
|
|
12918
|
+
*/
|
|
12919
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet: function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12920
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12921
|
+
},
|
|
12922
|
+
/**
|
|
12923
|
+
*
|
|
12924
|
+
* @summary Delete DoctorAffiliationMedia
|
|
12925
|
+
* @param {string} doctorAffiliationId
|
|
12926
|
+
* @param {string} mediaId
|
|
12927
|
+
* @param {*} [options] Override http request option.
|
|
12928
|
+
* @throws {RequiredError}
|
|
12929
|
+
*/
|
|
12930
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete: function (doctorAffiliationId, mediaId, options) {
|
|
12931
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete(doctorAffiliationId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
12932
|
+
},
|
|
12933
|
+
/**
|
|
12934
|
+
*
|
|
12935
|
+
* @summary Get DoctorAffiliationMedia.
|
|
12936
|
+
* @param {string} doctorAffiliationId
|
|
12937
|
+
* @param {string} mediaId
|
|
12938
|
+
* @param {*} [options] Override http request option.
|
|
12939
|
+
* @throws {RequiredError}
|
|
12940
|
+
*/
|
|
12941
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: function (doctorAffiliationId, mediaId, options) {
|
|
12942
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
12943
|
+
},
|
|
12944
|
+
/**
|
|
12945
|
+
*
|
|
12946
|
+
* @summary Update DoctorAffiliationMedia.
|
|
12947
|
+
* @param {string} doctorAffiliationId
|
|
12948
|
+
* @param {string} mediaId
|
|
12949
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
12950
|
+
* @param {*} [options] Override http request option.
|
|
12951
|
+
* @throws {RequiredError}
|
|
12952
|
+
*/
|
|
12953
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut: function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
12954
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut(doctorAffiliationId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
12955
|
+
},
|
|
12956
|
+
/**
|
|
12957
|
+
*
|
|
12958
|
+
* @summary Create DoctorAffiliationMedia.
|
|
12959
|
+
* @param {string} doctorAffiliationId
|
|
12960
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
12961
|
+
* @param {*} [options] Override http request option.
|
|
12962
|
+
* @throws {RequiredError}
|
|
12963
|
+
*/
|
|
12964
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost: function (doctorAffiliationId, createMediaCommand, options) {
|
|
12965
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost(doctorAffiliationId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
12966
|
+
},
|
|
12542
12967
|
/**
|
|
12543
12968
|
*
|
|
12544
12969
|
* @summary Get all doctor affiliations.
|
|
@@ -12613,6 +13038,76 @@ var DoctorAffiliationsApi = /** @class */ (function (_super) {
|
|
|
12613
13038
|
function DoctorAffiliationsApi() {
|
|
12614
13039
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12615
13040
|
}
|
|
13041
|
+
/**
|
|
13042
|
+
*
|
|
13043
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
13044
|
+
* @param {string} doctorAffiliationId
|
|
13045
|
+
* @param {string} [id]
|
|
13046
|
+
* @param {MediaType} [mediaType]
|
|
13047
|
+
* @param {number} [page]
|
|
13048
|
+
* @param {number} [limit]
|
|
13049
|
+
* @param {Date} [lastRetrieved]
|
|
13050
|
+
* @param {*} [options] Override http request option.
|
|
13051
|
+
* @throws {RequiredError}
|
|
13052
|
+
* @memberof DoctorAffiliationsApi
|
|
13053
|
+
*/
|
|
13054
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet = function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
13055
|
+
var _this = this;
|
|
13056
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13057
|
+
};
|
|
13058
|
+
/**
|
|
13059
|
+
*
|
|
13060
|
+
* @summary Delete DoctorAffiliationMedia
|
|
13061
|
+
* @param {string} doctorAffiliationId
|
|
13062
|
+
* @param {string} mediaId
|
|
13063
|
+
* @param {*} [options] Override http request option.
|
|
13064
|
+
* @throws {RequiredError}
|
|
13065
|
+
* @memberof DoctorAffiliationsApi
|
|
13066
|
+
*/
|
|
13067
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete = function (doctorAffiliationId, mediaId, options) {
|
|
13068
|
+
var _this = this;
|
|
13069
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete(doctorAffiliationId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13070
|
+
};
|
|
13071
|
+
/**
|
|
13072
|
+
*
|
|
13073
|
+
* @summary Get DoctorAffiliationMedia.
|
|
13074
|
+
* @param {string} doctorAffiliationId
|
|
13075
|
+
* @param {string} mediaId
|
|
13076
|
+
* @param {*} [options] Override http request option.
|
|
13077
|
+
* @throws {RequiredError}
|
|
13078
|
+
* @memberof DoctorAffiliationsApi
|
|
13079
|
+
*/
|
|
13080
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet = function (doctorAffiliationId, mediaId, options) {
|
|
13081
|
+
var _this = this;
|
|
13082
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13083
|
+
};
|
|
13084
|
+
/**
|
|
13085
|
+
*
|
|
13086
|
+
* @summary Update DoctorAffiliationMedia.
|
|
13087
|
+
* @param {string} doctorAffiliationId
|
|
13088
|
+
* @param {string} mediaId
|
|
13089
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
13090
|
+
* @param {*} [options] Override http request option.
|
|
13091
|
+
* @throws {RequiredError}
|
|
13092
|
+
* @memberof DoctorAffiliationsApi
|
|
13093
|
+
*/
|
|
13094
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut = function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
13095
|
+
var _this = this;
|
|
13096
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut(doctorAffiliationId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13097
|
+
};
|
|
13098
|
+
/**
|
|
13099
|
+
*
|
|
13100
|
+
* @summary Create DoctorAffiliationMedia.
|
|
13101
|
+
* @param {string} doctorAffiliationId
|
|
13102
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
13103
|
+
* @param {*} [options] Override http request option.
|
|
13104
|
+
* @throws {RequiredError}
|
|
13105
|
+
* @memberof DoctorAffiliationsApi
|
|
13106
|
+
*/
|
|
13107
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost = function (doctorAffiliationId, createMediaCommand, options) {
|
|
13108
|
+
var _this = this;
|
|
13109
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost(doctorAffiliationId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13110
|
+
};
|
|
12616
13111
|
/**
|
|
12617
13112
|
*
|
|
12618
13113
|
* @summary Get all doctor affiliations.
|