ch-admin-api-client-typescript 4.0.8 → 4.1.1
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 +323 -32
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +502 -14
- package/package.json +1 -1
- package/src/api.ts +553 -39
package/lib/api.js
CHANGED
|
@@ -2633,7 +2633,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
2633
2633
|
* @param {string} [id]
|
|
2634
2634
|
* @param {string} [name]
|
|
2635
2635
|
* @param {string} [description]
|
|
2636
|
-
* @param {ArticleStatus} [status]
|
|
2637
2636
|
* @param {MarketingType} [marketingType]
|
|
2638
2637
|
* @param {string} [userId]
|
|
2639
2638
|
* @param {string} [userName]
|
|
@@ -2652,7 +2651,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
2652
2651
|
* @param {*} [options] Override http request option.
|
|
2653
2652
|
* @throws {RequiredError}
|
|
2654
2653
|
*/
|
|
2655
|
-
apiV1ArticlesGet: function (id, name, description,
|
|
2654
|
+
apiV1ArticlesGet: function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
2656
2655
|
if (options === void 0) { options = {}; }
|
|
2657
2656
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2658
2657
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2683,9 +2682,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
2683
2682
|
if (description !== undefined) {
|
|
2684
2683
|
localVarQueryParameter['Description'] = description;
|
|
2685
2684
|
}
|
|
2686
|
-
if (status !== undefined) {
|
|
2687
|
-
localVarQueryParameter['Status'] = status;
|
|
2688
|
-
}
|
|
2689
2685
|
if (marketingType !== undefined) {
|
|
2690
2686
|
localVarQueryParameter['MarketingType'] = marketingType;
|
|
2691
2687
|
}
|
|
@@ -3337,7 +3333,6 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
3337
3333
|
* @param {string} [id]
|
|
3338
3334
|
* @param {string} [name]
|
|
3339
3335
|
* @param {string} [description]
|
|
3340
|
-
* @param {ArticleStatus} [status]
|
|
3341
3336
|
* @param {MarketingType} [marketingType]
|
|
3342
3337
|
* @param {string} [userId]
|
|
3343
3338
|
* @param {string} [userName]
|
|
@@ -3356,12 +3351,12 @@ exports.ArticlesApiFp = function (configuration) {
|
|
|
3356
3351
|
* @param {*} [options] Override http request option.
|
|
3357
3352
|
* @throws {RequiredError}
|
|
3358
3353
|
*/
|
|
3359
|
-
apiV1ArticlesGet: function (id, name, description,
|
|
3354
|
+
apiV1ArticlesGet: function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
3360
3355
|
return __awaiter(this, void 0, void 0, function () {
|
|
3361
3356
|
var localVarAxiosArgs;
|
|
3362
3357
|
return __generator(this, function (_a) {
|
|
3363
3358
|
switch (_a.label) {
|
|
3364
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description,
|
|
3359
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
3365
3360
|
case 1:
|
|
3366
3361
|
localVarAxiosArgs = _a.sent();
|
|
3367
3362
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3691,7 +3686,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
3691
3686
|
* @param {string} [id]
|
|
3692
3687
|
* @param {string} [name]
|
|
3693
3688
|
* @param {string} [description]
|
|
3694
|
-
* @param {ArticleStatus} [status]
|
|
3695
3689
|
* @param {MarketingType} [marketingType]
|
|
3696
3690
|
* @param {string} [userId]
|
|
3697
3691
|
* @param {string} [userName]
|
|
@@ -3710,8 +3704,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
3710
3704
|
* @param {*} [options] Override http request option.
|
|
3711
3705
|
* @throws {RequiredError}
|
|
3712
3706
|
*/
|
|
3713
|
-
apiV1ArticlesGet: function (id, name, description,
|
|
3714
|
-
return localVarFp.apiV1ArticlesGet(id, name, description,
|
|
3707
|
+
apiV1ArticlesGet: function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
3708
|
+
return localVarFp.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
3715
3709
|
},
|
|
3716
3710
|
/**
|
|
3717
3711
|
*
|
|
@@ -4063,7 +4057,6 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
4063
4057
|
* @param {string} [id]
|
|
4064
4058
|
* @param {string} [name]
|
|
4065
4059
|
* @param {string} [description]
|
|
4066
|
-
* @param {ArticleStatus} [status]
|
|
4067
4060
|
* @param {MarketingType} [marketingType]
|
|
4068
4061
|
* @param {string} [userId]
|
|
4069
4062
|
* @param {string} [userName]
|
|
@@ -4083,9 +4076,9 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
4083
4076
|
* @throws {RequiredError}
|
|
4084
4077
|
* @memberof ArticlesApi
|
|
4085
4078
|
*/
|
|
4086
|
-
ArticlesApi.prototype.apiV1ArticlesGet = function (id, name, description,
|
|
4079
|
+
ArticlesApi.prototype.apiV1ArticlesGet = function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
4087
4080
|
var _this = this;
|
|
4088
|
-
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description,
|
|
4081
|
+
return exports.ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4089
4082
|
};
|
|
4090
4083
|
/**
|
|
4091
4084
|
*
|
|
@@ -12148,6 +12141,261 @@ exports.DealsApi = DealsApi;
|
|
|
12148
12141
|
exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
12149
12142
|
var _this = this;
|
|
12150
12143
|
return {
|
|
12144
|
+
/**
|
|
12145
|
+
*
|
|
12146
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
12147
|
+
* @param {string} doctorAffiliationId
|
|
12148
|
+
* @param {string} [id]
|
|
12149
|
+
* @param {MediaType} [mediaType]
|
|
12150
|
+
* @param {number} [page]
|
|
12151
|
+
* @param {number} [limit]
|
|
12152
|
+
* @param {Date} [lastRetrieved]
|
|
12153
|
+
* @param {*} [options] Override http request option.
|
|
12154
|
+
* @throws {RequiredError}
|
|
12155
|
+
*/
|
|
12156
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet: function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12157
|
+
if (options === void 0) { options = {}; }
|
|
12158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12159
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12160
|
+
return __generator(this, function (_a) {
|
|
12161
|
+
switch (_a.label) {
|
|
12162
|
+
case 0:
|
|
12163
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12164
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet', 'doctorAffiliationId', doctorAffiliationId);
|
|
12165
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias"
|
|
12166
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)));
|
|
12167
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12168
|
+
if (configuration) {
|
|
12169
|
+
baseOptions = configuration.baseOptions;
|
|
12170
|
+
}
|
|
12171
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
12172
|
+
localVarHeaderParameter = {};
|
|
12173
|
+
localVarQueryParameter = {};
|
|
12174
|
+
// authentication oauth2 required
|
|
12175
|
+
// oauth required
|
|
12176
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12177
|
+
case 1:
|
|
12178
|
+
// authentication oauth2 required
|
|
12179
|
+
// oauth required
|
|
12180
|
+
_a.sent();
|
|
12181
|
+
if (id !== undefined) {
|
|
12182
|
+
localVarQueryParameter['Id'] = id;
|
|
12183
|
+
}
|
|
12184
|
+
if (mediaType !== undefined) {
|
|
12185
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
12186
|
+
}
|
|
12187
|
+
if (page !== undefined) {
|
|
12188
|
+
localVarQueryParameter['page'] = page;
|
|
12189
|
+
}
|
|
12190
|
+
if (limit !== undefined) {
|
|
12191
|
+
localVarQueryParameter['limit'] = limit;
|
|
12192
|
+
}
|
|
12193
|
+
if (lastRetrieved !== undefined) {
|
|
12194
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
12195
|
+
lastRetrieved.toISOString() :
|
|
12196
|
+
lastRetrieved;
|
|
12197
|
+
}
|
|
12198
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12199
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12200
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12201
|
+
return [2 /*return*/, {
|
|
12202
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12203
|
+
options: localVarRequestOptions,
|
|
12204
|
+
}];
|
|
12205
|
+
}
|
|
12206
|
+
});
|
|
12207
|
+
});
|
|
12208
|
+
},
|
|
12209
|
+
/**
|
|
12210
|
+
*
|
|
12211
|
+
* @summary Delete DoctorAffiliationMedia
|
|
12212
|
+
* @param {string} doctorAffiliationId
|
|
12213
|
+
* @param {string} mediaId
|
|
12214
|
+
* @param {*} [options] Override http request option.
|
|
12215
|
+
* @throws {RequiredError}
|
|
12216
|
+
*/
|
|
12217
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete: function (doctorAffiliationId, mediaId, options) {
|
|
12218
|
+
if (options === void 0) { options = {}; }
|
|
12219
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12220
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12221
|
+
return __generator(this, function (_a) {
|
|
12222
|
+
switch (_a.label) {
|
|
12223
|
+
case 0:
|
|
12224
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12225
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete', 'doctorAffiliationId', doctorAffiliationId);
|
|
12226
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
12227
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
12228
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}"
|
|
12229
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)))
|
|
12230
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
12231
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12232
|
+
if (configuration) {
|
|
12233
|
+
baseOptions = configuration.baseOptions;
|
|
12234
|
+
}
|
|
12235
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
12236
|
+
localVarHeaderParameter = {};
|
|
12237
|
+
localVarQueryParameter = {};
|
|
12238
|
+
// authentication oauth2 required
|
|
12239
|
+
// oauth required
|
|
12240
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12241
|
+
case 1:
|
|
12242
|
+
// authentication oauth2 required
|
|
12243
|
+
// oauth required
|
|
12244
|
+
_a.sent();
|
|
12245
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12246
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12247
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12248
|
+
return [2 /*return*/, {
|
|
12249
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12250
|
+
options: localVarRequestOptions,
|
|
12251
|
+
}];
|
|
12252
|
+
}
|
|
12253
|
+
});
|
|
12254
|
+
});
|
|
12255
|
+
},
|
|
12256
|
+
/**
|
|
12257
|
+
*
|
|
12258
|
+
* @summary Get DoctorAffiliationMedia.
|
|
12259
|
+
* @param {string} doctorAffiliationId
|
|
12260
|
+
* @param {string} mediaId
|
|
12261
|
+
* @param {*} [options] Override http request option.
|
|
12262
|
+
* @throws {RequiredError}
|
|
12263
|
+
*/
|
|
12264
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: function (doctorAffiliationId, mediaId, options) {
|
|
12265
|
+
if (options === void 0) { options = {}; }
|
|
12266
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12267
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12268
|
+
return __generator(this, function (_a) {
|
|
12269
|
+
switch (_a.label) {
|
|
12270
|
+
case 0:
|
|
12271
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12272
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet', 'doctorAffiliationId', doctorAffiliationId);
|
|
12273
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
12274
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
12275
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}"
|
|
12276
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)))
|
|
12277
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
12278
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12279
|
+
if (configuration) {
|
|
12280
|
+
baseOptions = configuration.baseOptions;
|
|
12281
|
+
}
|
|
12282
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
12283
|
+
localVarHeaderParameter = {};
|
|
12284
|
+
localVarQueryParameter = {};
|
|
12285
|
+
// authentication oauth2 required
|
|
12286
|
+
// oauth required
|
|
12287
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12288
|
+
case 1:
|
|
12289
|
+
// authentication oauth2 required
|
|
12290
|
+
// oauth required
|
|
12291
|
+
_a.sent();
|
|
12292
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12293
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12294
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12295
|
+
return [2 /*return*/, {
|
|
12296
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12297
|
+
options: localVarRequestOptions,
|
|
12298
|
+
}];
|
|
12299
|
+
}
|
|
12300
|
+
});
|
|
12301
|
+
});
|
|
12302
|
+
},
|
|
12303
|
+
/**
|
|
12304
|
+
*
|
|
12305
|
+
* @summary Update DoctorAffiliationMedia.
|
|
12306
|
+
* @param {string} doctorAffiliationId
|
|
12307
|
+
* @param {string} mediaId
|
|
12308
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
12309
|
+
* @param {*} [options] Override http request option.
|
|
12310
|
+
* @throws {RequiredError}
|
|
12311
|
+
*/
|
|
12312
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut: function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
12313
|
+
if (options === void 0) { options = {}; }
|
|
12314
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12315
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12316
|
+
return __generator(this, function (_a) {
|
|
12317
|
+
switch (_a.label) {
|
|
12318
|
+
case 0:
|
|
12319
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12320
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut', 'doctorAffiliationId', doctorAffiliationId);
|
|
12321
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
12322
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
12323
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}"
|
|
12324
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)))
|
|
12325
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
12326
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12327
|
+
if (configuration) {
|
|
12328
|
+
baseOptions = configuration.baseOptions;
|
|
12329
|
+
}
|
|
12330
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
12331
|
+
localVarHeaderParameter = {};
|
|
12332
|
+
localVarQueryParameter = {};
|
|
12333
|
+
// authentication oauth2 required
|
|
12334
|
+
// oauth required
|
|
12335
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12336
|
+
case 1:
|
|
12337
|
+
// authentication oauth2 required
|
|
12338
|
+
// oauth required
|
|
12339
|
+
_a.sent();
|
|
12340
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12341
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12342
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12343
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12344
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
12345
|
+
return [2 /*return*/, {
|
|
12346
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12347
|
+
options: localVarRequestOptions,
|
|
12348
|
+
}];
|
|
12349
|
+
}
|
|
12350
|
+
});
|
|
12351
|
+
});
|
|
12352
|
+
},
|
|
12353
|
+
/**
|
|
12354
|
+
*
|
|
12355
|
+
* @summary Create DoctorAffiliationMedia.
|
|
12356
|
+
* @param {string} doctorAffiliationId
|
|
12357
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
12358
|
+
* @param {*} [options] Override http request option.
|
|
12359
|
+
* @throws {RequiredError}
|
|
12360
|
+
*/
|
|
12361
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost: function (doctorAffiliationId, createMediaCommand, options) {
|
|
12362
|
+
if (options === void 0) { options = {}; }
|
|
12363
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12364
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12365
|
+
return __generator(this, function (_a) {
|
|
12366
|
+
switch (_a.label) {
|
|
12367
|
+
case 0:
|
|
12368
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
12369
|
+
common_1.assertParamExists('apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost', 'doctorAffiliationId', doctorAffiliationId);
|
|
12370
|
+
localVarPath = "/api/v1/doctoraffiliations/{doctorAffiliationId}/medias"
|
|
12371
|
+
.replace("{" + "doctorAffiliationId" + "}", encodeURIComponent(String(doctorAffiliationId)));
|
|
12372
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12373
|
+
if (configuration) {
|
|
12374
|
+
baseOptions = configuration.baseOptions;
|
|
12375
|
+
}
|
|
12376
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12377
|
+
localVarHeaderParameter = {};
|
|
12378
|
+
localVarQueryParameter = {};
|
|
12379
|
+
// authentication oauth2 required
|
|
12380
|
+
// oauth required
|
|
12381
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12382
|
+
case 1:
|
|
12383
|
+
// authentication oauth2 required
|
|
12384
|
+
// oauth required
|
|
12385
|
+
_a.sent();
|
|
12386
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12387
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12388
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12389
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12390
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
12391
|
+
return [2 /*return*/, {
|
|
12392
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12393
|
+
options: localVarRequestOptions,
|
|
12394
|
+
}];
|
|
12395
|
+
}
|
|
12396
|
+
});
|
|
12397
|
+
});
|
|
12398
|
+
},
|
|
12151
12399
|
/**
|
|
12152
12400
|
*
|
|
12153
12401
|
* @summary Get all doctor affiliations.
|
|
@@ -12419,6 +12667,116 @@ exports.DoctorAffiliationsApiAxiosParamCreator = function (configuration) {
|
|
|
12419
12667
|
exports.DoctorAffiliationsApiFp = function (configuration) {
|
|
12420
12668
|
var localVarAxiosParamCreator = exports.DoctorAffiliationsApiAxiosParamCreator(configuration);
|
|
12421
12669
|
return {
|
|
12670
|
+
/**
|
|
12671
|
+
*
|
|
12672
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
12673
|
+
* @param {string} doctorAffiliationId
|
|
12674
|
+
* @param {string} [id]
|
|
12675
|
+
* @param {MediaType} [mediaType]
|
|
12676
|
+
* @param {number} [page]
|
|
12677
|
+
* @param {number} [limit]
|
|
12678
|
+
* @param {Date} [lastRetrieved]
|
|
12679
|
+
* @param {*} [options] Override http request option.
|
|
12680
|
+
* @throws {RequiredError}
|
|
12681
|
+
*/
|
|
12682
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet: function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12683
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12684
|
+
var localVarAxiosArgs;
|
|
12685
|
+
return __generator(this, function (_a) {
|
|
12686
|
+
switch (_a.label) {
|
|
12687
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
12688
|
+
case 1:
|
|
12689
|
+
localVarAxiosArgs = _a.sent();
|
|
12690
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12691
|
+
}
|
|
12692
|
+
});
|
|
12693
|
+
});
|
|
12694
|
+
},
|
|
12695
|
+
/**
|
|
12696
|
+
*
|
|
12697
|
+
* @summary Delete DoctorAffiliationMedia
|
|
12698
|
+
* @param {string} doctorAffiliationId
|
|
12699
|
+
* @param {string} mediaId
|
|
12700
|
+
* @param {*} [options] Override http request option.
|
|
12701
|
+
* @throws {RequiredError}
|
|
12702
|
+
*/
|
|
12703
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete: function (doctorAffiliationId, mediaId, options) {
|
|
12704
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12705
|
+
var localVarAxiosArgs;
|
|
12706
|
+
return __generator(this, function (_a) {
|
|
12707
|
+
switch (_a.label) {
|
|
12708
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete(doctorAffiliationId, mediaId, options)];
|
|
12709
|
+
case 1:
|
|
12710
|
+
localVarAxiosArgs = _a.sent();
|
|
12711
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12712
|
+
}
|
|
12713
|
+
});
|
|
12714
|
+
});
|
|
12715
|
+
},
|
|
12716
|
+
/**
|
|
12717
|
+
*
|
|
12718
|
+
* @summary Get DoctorAffiliationMedia.
|
|
12719
|
+
* @param {string} doctorAffiliationId
|
|
12720
|
+
* @param {string} mediaId
|
|
12721
|
+
* @param {*} [options] Override http request option.
|
|
12722
|
+
* @throws {RequiredError}
|
|
12723
|
+
*/
|
|
12724
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: function (doctorAffiliationId, mediaId, options) {
|
|
12725
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12726
|
+
var localVarAxiosArgs;
|
|
12727
|
+
return __generator(this, function (_a) {
|
|
12728
|
+
switch (_a.label) {
|
|
12729
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options)];
|
|
12730
|
+
case 1:
|
|
12731
|
+
localVarAxiosArgs = _a.sent();
|
|
12732
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12733
|
+
}
|
|
12734
|
+
});
|
|
12735
|
+
});
|
|
12736
|
+
},
|
|
12737
|
+
/**
|
|
12738
|
+
*
|
|
12739
|
+
* @summary Update DoctorAffiliationMedia.
|
|
12740
|
+
* @param {string} doctorAffiliationId
|
|
12741
|
+
* @param {string} mediaId
|
|
12742
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
12743
|
+
* @param {*} [options] Override http request option.
|
|
12744
|
+
* @throws {RequiredError}
|
|
12745
|
+
*/
|
|
12746
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut: function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
12747
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12748
|
+
var localVarAxiosArgs;
|
|
12749
|
+
return __generator(this, function (_a) {
|
|
12750
|
+
switch (_a.label) {
|
|
12751
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut(doctorAffiliationId, mediaId, updateMediaCommand, options)];
|
|
12752
|
+
case 1:
|
|
12753
|
+
localVarAxiosArgs = _a.sent();
|
|
12754
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12755
|
+
}
|
|
12756
|
+
});
|
|
12757
|
+
});
|
|
12758
|
+
},
|
|
12759
|
+
/**
|
|
12760
|
+
*
|
|
12761
|
+
* @summary Create DoctorAffiliationMedia.
|
|
12762
|
+
* @param {string} doctorAffiliationId
|
|
12763
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
12764
|
+
* @param {*} [options] Override http request option.
|
|
12765
|
+
* @throws {RequiredError}
|
|
12766
|
+
*/
|
|
12767
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost: function (doctorAffiliationId, createMediaCommand, options) {
|
|
12768
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12769
|
+
var localVarAxiosArgs;
|
|
12770
|
+
return __generator(this, function (_a) {
|
|
12771
|
+
switch (_a.label) {
|
|
12772
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost(doctorAffiliationId, createMediaCommand, options)];
|
|
12773
|
+
case 1:
|
|
12774
|
+
localVarAxiosArgs = _a.sent();
|
|
12775
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
12776
|
+
}
|
|
12777
|
+
});
|
|
12778
|
+
});
|
|
12779
|
+
},
|
|
12422
12780
|
/**
|
|
12423
12781
|
*
|
|
12424
12782
|
* @summary Get all doctor affiliations.
|
|
@@ -12539,6 +12897,66 @@ exports.DoctorAffiliationsApiFp = function (configuration) {
|
|
|
12539
12897
|
exports.DoctorAffiliationsApiFactory = function (configuration, basePath, axios) {
|
|
12540
12898
|
var localVarFp = exports.DoctorAffiliationsApiFp(configuration);
|
|
12541
12899
|
return {
|
|
12900
|
+
/**
|
|
12901
|
+
*
|
|
12902
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
12903
|
+
* @param {string} doctorAffiliationId
|
|
12904
|
+
* @param {string} [id]
|
|
12905
|
+
* @param {MediaType} [mediaType]
|
|
12906
|
+
* @param {number} [page]
|
|
12907
|
+
* @param {number} [limit]
|
|
12908
|
+
* @param {Date} [lastRetrieved]
|
|
12909
|
+
* @param {*} [options] Override http request option.
|
|
12910
|
+
* @throws {RequiredError}
|
|
12911
|
+
*/
|
|
12912
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet: function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12913
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12914
|
+
},
|
|
12915
|
+
/**
|
|
12916
|
+
*
|
|
12917
|
+
* @summary Delete DoctorAffiliationMedia
|
|
12918
|
+
* @param {string} doctorAffiliationId
|
|
12919
|
+
* @param {string} mediaId
|
|
12920
|
+
* @param {*} [options] Override http request option.
|
|
12921
|
+
* @throws {RequiredError}
|
|
12922
|
+
*/
|
|
12923
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete: function (doctorAffiliationId, mediaId, options) {
|
|
12924
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete(doctorAffiliationId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
12925
|
+
},
|
|
12926
|
+
/**
|
|
12927
|
+
*
|
|
12928
|
+
* @summary Get DoctorAffiliationMedia.
|
|
12929
|
+
* @param {string} doctorAffiliationId
|
|
12930
|
+
* @param {string} mediaId
|
|
12931
|
+
* @param {*} [options] Override http request option.
|
|
12932
|
+
* @throws {RequiredError}
|
|
12933
|
+
*/
|
|
12934
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: function (doctorAffiliationId, mediaId, options) {
|
|
12935
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
12936
|
+
},
|
|
12937
|
+
/**
|
|
12938
|
+
*
|
|
12939
|
+
* @summary Update DoctorAffiliationMedia.
|
|
12940
|
+
* @param {string} doctorAffiliationId
|
|
12941
|
+
* @param {string} mediaId
|
|
12942
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
12943
|
+
* @param {*} [options] Override http request option.
|
|
12944
|
+
* @throws {RequiredError}
|
|
12945
|
+
*/
|
|
12946
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut: function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
12947
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut(doctorAffiliationId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
12948
|
+
},
|
|
12949
|
+
/**
|
|
12950
|
+
*
|
|
12951
|
+
* @summary Create DoctorAffiliationMedia.
|
|
12952
|
+
* @param {string} doctorAffiliationId
|
|
12953
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
12954
|
+
* @param {*} [options] Override http request option.
|
|
12955
|
+
* @throws {RequiredError}
|
|
12956
|
+
*/
|
|
12957
|
+
apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost: function (doctorAffiliationId, createMediaCommand, options) {
|
|
12958
|
+
return localVarFp.apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost(doctorAffiliationId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
12959
|
+
},
|
|
12542
12960
|
/**
|
|
12543
12961
|
*
|
|
12544
12962
|
* @summary Get all doctor affiliations.
|
|
@@ -12613,6 +13031,76 @@ var DoctorAffiliationsApi = /** @class */ (function (_super) {
|
|
|
12613
13031
|
function DoctorAffiliationsApi() {
|
|
12614
13032
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12615
13033
|
}
|
|
13034
|
+
/**
|
|
13035
|
+
*
|
|
13036
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
13037
|
+
* @param {string} doctorAffiliationId
|
|
13038
|
+
* @param {string} [id]
|
|
13039
|
+
* @param {MediaType} [mediaType]
|
|
13040
|
+
* @param {number} [page]
|
|
13041
|
+
* @param {number} [limit]
|
|
13042
|
+
* @param {Date} [lastRetrieved]
|
|
13043
|
+
* @param {*} [options] Override http request option.
|
|
13044
|
+
* @throws {RequiredError}
|
|
13045
|
+
* @memberof DoctorAffiliationsApi
|
|
13046
|
+
*/
|
|
13047
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet = function (doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
13048
|
+
var _this = this;
|
|
13049
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13050
|
+
};
|
|
13051
|
+
/**
|
|
13052
|
+
*
|
|
13053
|
+
* @summary Delete DoctorAffiliationMedia
|
|
13054
|
+
* @param {string} doctorAffiliationId
|
|
13055
|
+
* @param {string} mediaId
|
|
13056
|
+
* @param {*} [options] Override http request option.
|
|
13057
|
+
* @throws {RequiredError}
|
|
13058
|
+
* @memberof DoctorAffiliationsApi
|
|
13059
|
+
*/
|
|
13060
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete = function (doctorAffiliationId, mediaId, options) {
|
|
13061
|
+
var _this = this;
|
|
13062
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdDelete(doctorAffiliationId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13063
|
+
};
|
|
13064
|
+
/**
|
|
13065
|
+
*
|
|
13066
|
+
* @summary Get DoctorAffiliationMedia.
|
|
13067
|
+
* @param {string} doctorAffiliationId
|
|
13068
|
+
* @param {string} mediaId
|
|
13069
|
+
* @param {*} [options] Override http request option.
|
|
13070
|
+
* @throws {RequiredError}
|
|
13071
|
+
* @memberof DoctorAffiliationsApi
|
|
13072
|
+
*/
|
|
13073
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet = function (doctorAffiliationId, mediaId, options) {
|
|
13074
|
+
var _this = this;
|
|
13075
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13076
|
+
};
|
|
13077
|
+
/**
|
|
13078
|
+
*
|
|
13079
|
+
* @summary Update DoctorAffiliationMedia.
|
|
13080
|
+
* @param {string} doctorAffiliationId
|
|
13081
|
+
* @param {string} mediaId
|
|
13082
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
13083
|
+
* @param {*} [options] Override http request option.
|
|
13084
|
+
* @throws {RequiredError}
|
|
13085
|
+
* @memberof DoctorAffiliationsApi
|
|
13086
|
+
*/
|
|
13087
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut = function (doctorAffiliationId, mediaId, updateMediaCommand, options) {
|
|
13088
|
+
var _this = this;
|
|
13089
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasMediaIdPut(doctorAffiliationId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13090
|
+
};
|
|
13091
|
+
/**
|
|
13092
|
+
*
|
|
13093
|
+
* @summary Create DoctorAffiliationMedia.
|
|
13094
|
+
* @param {string} doctorAffiliationId
|
|
13095
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
13096
|
+
* @param {*} [options] Override http request option.
|
|
13097
|
+
* @throws {RequiredError}
|
|
13098
|
+
* @memberof DoctorAffiliationsApi
|
|
13099
|
+
*/
|
|
13100
|
+
DoctorAffiliationsApi.prototype.apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost = function (doctorAffiliationId, createMediaCommand, options) {
|
|
13101
|
+
var _this = this;
|
|
13102
|
+
return exports.DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsDoctorAffiliationIdMediasPost(doctorAffiliationId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13103
|
+
};
|
|
12616
13104
|
/**
|
|
12617
13105
|
*
|
|
12618
13106
|
* @summary Get all doctor affiliations.
|