ch-admin-api-client-typescript 5.91.12 → 5.91.24
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/accreditations-api.d.ts +10 -9
- package/lib/api/accreditations-api.d.ts.map +1 -1
- package/lib/api/accreditations-api.js +13 -13
- package/lib/api/hospitals-api.d.ts +292 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +372 -0
- package/lib/api/patient-review-form-settings-api.d.ts +460 -0
- package/lib/api/patient-review-form-settings-api.d.ts.map +1 -0
- package/lib/api/patient-review-form-settings-api.js +824 -0
- package/lib/api/patient-reviews-api.d.ts +753 -0
- package/lib/api/patient-reviews-api.d.ts.map +1 -0
- package/lib/api/patient-reviews-api.js +1310 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -0
- package/lib/models/accreditation-item-model.d.ts +7 -0
- package/lib/models/accreditation-item-model.d.ts.map +1 -1
- package/lib/models/accreditation-model.d.ts +7 -0
- package/lib/models/accreditation-model.d.ts.map +1 -1
- package/lib/models/accreditation-type.d.ts +22 -0
- package/lib/models/accreditation-type.d.ts.map +1 -0
- package/lib/models/accreditation-type.js +25 -0
- package/lib/models/accreditation-verification-file-model.d.ts +49 -0
- package/lib/models/accreditation-verification-file-model.d.ts.map +1 -0
- package/lib/models/accreditation-verification-file-model.js +15 -0
- package/lib/models/article-item-model.d.ts +18 -0
- package/lib/models/article-item-model.d.ts.map +1 -1
- package/lib/models/article-model.d.ts +18 -0
- package/lib/models/article-model.d.ts.map +1 -1
- package/lib/models/create-accreditation-command.d.ts +7 -0
- package/lib/models/create-accreditation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-accreditation-command.d.ts +32 -0
- package/lib/models/create-hospital-accreditation-command.d.ts.map +1 -1
- package/lib/models/create-patient-review-form-setting-command.d.ts +81 -0
- package/lib/models/create-patient-review-form-setting-command.d.ts.map +1 -0
- package/lib/models/create-patient-review-form-setting-command.js +15 -0
- package/lib/models/deal-item-model.d.ts +18 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +18 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +18 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +18 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/form-result-item-model.d.ts +7 -0
- package/lib/models/form-result-item-model.d.ts.map +1 -1
- package/lib/models/form-result-model.d.ts +7 -0
- package/lib/models/form-result-model.d.ts.map +1 -1
- package/lib/models/hospital-accreditation-item-model.d.ts +32 -0
- package/lib/models/hospital-accreditation-item-model.d.ts.map +1 -1
- package/lib/models/hospital-accreditation-model.d.ts +32 -0
- package/lib/models/hospital-accreditation-model.d.ts.map +1 -1
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +6 -6
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/hospital-service-item-model.d.ts +18 -0
- package/lib/models/hospital-service-item-model.d.ts.map +1 -1
- package/lib/models/hospital-service-model.d.ts +18 -0
- package/lib/models/hospital-service-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-item-model.d.ts +18 -0
- package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-model.d.ts +18 -0
- package/lib/models/hospital-specialty-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +33 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +33 -0
- package/lib/models/patch-patient-review-input-model.d.ts +50 -0
- package/lib/models/patch-patient-review-input-model.d.ts.map +1 -0
- package/lib/models/patch-patient-review-input-model.js +15 -0
- package/lib/models/patient-review-activity-action.d.ts +29 -0
- package/lib/models/patient-review-activity-action.d.ts.map +1 -0
- package/lib/models/patient-review-activity-action.js +32 -0
- package/lib/models/patient-review-activity-log-model.d.ts +69 -0
- package/lib/models/patient-review-activity-log-model.d.ts.map +1 -0
- package/lib/models/patient-review-activity-log-model.js +15 -0
- package/lib/models/patient-review-before-and-after-photo-model.d.ts +61 -0
- package/lib/models/patient-review-before-and-after-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-before-and-after-photo-model.js +15 -0
- package/lib/models/patient-review-before-and-after-public-photo-model.d.ts +73 -0
- package/lib/models/patient-review-before-and-after-public-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-before-and-after-public-photo-model.js +15 -0
- package/lib/models/patient-review-content-verification-input-model.d.ts +31 -0
- package/lib/models/patient-review-content-verification-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-content-verification-input-model.js +15 -0
- package/lib/models/patient-review-detail-model.d.ts +44 -0
- package/lib/models/patient-review-detail-model.d.ts.map +1 -0
- package/lib/models/patient-review-detail-model.js +15 -0
- package/lib/models/patient-review-form-setting-detail-input-model.d.ts +67 -0
- package/lib/models/patient-review-form-setting-detail-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-detail-input-model.js +15 -0
- package/lib/models/patient-review-form-setting-detail-model.d.ts +79 -0
- package/lib/models/patient-review-form-setting-detail-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-detail-model.js +15 -0
- package/lib/models/patient-review-form-setting-item-model.d.ts +87 -0
- package/lib/models/patient-review-form-setting-item-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-item-model.js +15 -0
- package/lib/models/patient-review-form-setting-model.d.ts +94 -0
- package/lib/models/patient-review-form-setting-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-model.js +15 -0
- package/lib/models/patient-review-form-settings-model.d.ts +33 -0
- package/lib/models/patient-review-form-settings-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-settings-model.js +15 -0
- package/lib/models/patient-review-general-photo-model.d.ts +49 -0
- package/lib/models/patient-review-general-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-general-photo-model.js +15 -0
- package/lib/models/patient-review-general-public-photo-model.d.ts +61 -0
- package/lib/models/patient-review-general-public-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-general-public-photo-model.js +15 -0
- package/lib/models/patient-review-item-model.d.ts +166 -0
- package/lib/models/patient-review-item-model.d.ts.map +1 -0
- package/lib/models/patient-review-item-model.js +15 -0
- package/lib/models/patient-review-model.d.ts +318 -0
- package/lib/models/patient-review-model.d.ts.map +1 -0
- package/lib/models/patient-review-model.js +15 -0
- package/lib/models/patient-review-platform.d.ts +23 -0
- package/lib/models/patient-review-platform.d.ts.map +1 -0
- package/lib/models/patient-review-platform.js +26 -0
- package/lib/models/patient-review-public-before-after-image-input-model.d.ts +61 -0
- package/lib/models/patient-review-public-before-after-image-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-public-before-after-image-input-model.js +15 -0
- package/lib/models/patient-review-public-general-image-input-model.d.ts +49 -0
- package/lib/models/patient-review-public-general-image-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-public-general-image-input-model.js +15 -0
- package/lib/models/patient-review-public-photo-patch-input-model.d.ts +33 -0
- package/lib/models/patient-review-public-photo-patch-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-public-photo-patch-input-model.js +15 -0
- package/lib/models/patient-review-status.d.ts +23 -0
- package/lib/models/patient-review-status.d.ts.map +1 -0
- package/lib/models/patient-review-status.js +26 -0
- package/lib/models/patient-review-translation-model.d.ts +55 -0
- package/lib/models/patient-review-translation-model.d.ts.map +1 -0
- package/lib/models/patient-review-translation-model.js +15 -0
- package/lib/models/patient-review-verification-document-model.d.ts +37 -0
- package/lib/models/patient-review-verification-document-model.d.ts.map +1 -0
- package/lib/models/patient-review-verification-document-model.js +15 -0
- package/lib/models/patient-reviews-model.d.ts +33 -0
- package/lib/models/patient-reviews-model.d.ts.map +1 -0
- package/lib/models/patient-reviews-model.js +15 -0
- package/lib/models/survey-result-item-model.d.ts +13 -0
- package/lib/models/survey-result-item-model.d.ts.map +1 -1
- package/lib/models/survey-result-model.d.ts +13 -0
- package/lib/models/survey-result-model.d.ts.map +1 -1
- package/lib/models/translate-patient-review-form-setting-command.d.ts +44 -0
- package/lib/models/translate-patient-review-form-setting-command.d.ts.map +1 -0
- package/lib/models/translate-patient-review-form-setting-command.js +15 -0
- package/lib/models/translation-model.d.ts +103 -0
- package/lib/models/translation-model.d.ts.map +1 -0
- package/lib/models/translation-model.js +15 -0
- package/lib/models/update-accreditation-command.d.ts +7 -0
- package/lib/models/update-accreditation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-accreditation-command.d.ts +51 -0
- package/lib/models/update-hospital-accreditation-command.d.ts.map +1 -0
- package/lib/models/update-hospital-accreditation-command.js +15 -0
- package/lib/models/update-patient-review-form-setting-command.d.ts +81 -0
- package/lib/models/update-patient-review-form-setting-command.d.ts.map +1 -0
- package/lib/models/update-patient-review-form-setting-command.js +15 -0
- package/lib/models/update-patient-review-status-command.d.ts +38 -0
- package/lib/models/update-patient-review-status-command.d.ts.map +1 -0
- package/lib/models/update-patient-review-status-command.js +15 -0
- package/lib/models/verify-patient-review-content-command.d.ts +38 -0
- package/lib/models/verify-patient-review-content-command.d.ts.map +1 -0
- package/lib/models/verify-patient-review-content-command.js +15 -0
- package/package.json +1 -1
package/lib/api/hospitals-api.js
CHANGED
|
@@ -314,6 +314,60 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
316
|
},
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @summary Update HospitalAccreditation. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
320
|
+
* @param {string} hospitalId
|
|
321
|
+
* @param {string} accreditationId
|
|
322
|
+
* @param {UpdateHospitalAccreditationCommand} [updateHospitalAccreditationCommand]
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut: function (hospitalId_1, accreditationId_1, updateHospitalAccreditationCommand_1) {
|
|
327
|
+
var args_1 = [];
|
|
328
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
329
|
+
args_1[_i - 3] = arguments[_i];
|
|
330
|
+
}
|
|
331
|
+
return __awaiter(_this, __spreadArray([hospitalId_1, accreditationId_1, updateHospitalAccreditationCommand_1], args_1, true), void 0, function (hospitalId, accreditationId, updateHospitalAccreditationCommand, options) {
|
|
332
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
333
|
+
if (options === void 0) { options = {}; }
|
|
334
|
+
return __generator(this, function (_a) {
|
|
335
|
+
switch (_a.label) {
|
|
336
|
+
case 0:
|
|
337
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
338
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut', 'hospitalId', hospitalId);
|
|
339
|
+
// verify required parameter 'accreditationId' is not null or undefined
|
|
340
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut', 'accreditationId', accreditationId);
|
|
341
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/accreditations/{accreditationId}"
|
|
342
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
343
|
+
.replace("{".concat("accreditationId", "}"), encodeURIComponent(String(accreditationId)));
|
|
344
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
+
if (configuration) {
|
|
346
|
+
baseOptions = configuration.baseOptions;
|
|
347
|
+
}
|
|
348
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
349
|
+
localVarHeaderParameter = {};
|
|
350
|
+
localVarQueryParameter = {};
|
|
351
|
+
// authentication oauth2 required
|
|
352
|
+
// oauth required
|
|
353
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
354
|
+
case 1:
|
|
355
|
+
// authentication oauth2 required
|
|
356
|
+
// oauth required
|
|
357
|
+
_a.sent();
|
|
358
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
359
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
360
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
361
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
362
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalAccreditationCommand, localVarRequestOptions, configuration);
|
|
363
|
+
return [2 /*return*/, {
|
|
364
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
365
|
+
options: localVarRequestOptions,
|
|
366
|
+
}];
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
});
|
|
370
|
+
},
|
|
317
371
|
/**
|
|
318
372
|
*
|
|
319
373
|
* @summary Get all HospitalAccreditations. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
@@ -7317,6 +7371,164 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
7317
7371
|
});
|
|
7318
7372
|
});
|
|
7319
7373
|
},
|
|
7374
|
+
/**
|
|
7375
|
+
*
|
|
7376
|
+
* @summary Get all services of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
7377
|
+
* @param {string} hospitalId
|
|
7378
|
+
* @param {string} [id]
|
|
7379
|
+
* @param {string} [name]
|
|
7380
|
+
* @param {string} [slug]
|
|
7381
|
+
* @param {string} [serviceCategoryId]
|
|
7382
|
+
* @param {MarketingType} [marketingType]
|
|
7383
|
+
* @param {Procedure} [procedure]
|
|
7384
|
+
* @param {Date} [created]
|
|
7385
|
+
* @param {boolean} [showHidden]
|
|
7386
|
+
* @param {string} [languageCode]
|
|
7387
|
+
* @param {number} [page]
|
|
7388
|
+
* @param {number} [limit]
|
|
7389
|
+
* @param {Date} [lastRetrieved]
|
|
7390
|
+
* @param {*} [options] Override http request option.
|
|
7391
|
+
* @throws {RequiredError}
|
|
7392
|
+
*/
|
|
7393
|
+
apiV1HospitalsHospitalIdServicesGet: function (hospitalId_1, id_1, name_1, slug_1, serviceCategoryId_1, marketingType_1, procedure_1, created_1, showHidden_1, languageCode_1, page_1, limit_1, lastRetrieved_1) {
|
|
7394
|
+
var args_1 = [];
|
|
7395
|
+
for (var _i = 13; _i < arguments.length; _i++) {
|
|
7396
|
+
args_1[_i - 13] = arguments[_i];
|
|
7397
|
+
}
|
|
7398
|
+
return __awaiter(_this, __spreadArray([hospitalId_1, id_1, name_1, slug_1, serviceCategoryId_1, marketingType_1, procedure_1, created_1, showHidden_1, languageCode_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (hospitalId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
|
|
7399
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7400
|
+
if (options === void 0) { options = {}; }
|
|
7401
|
+
return __generator(this, function (_a) {
|
|
7402
|
+
switch (_a.label) {
|
|
7403
|
+
case 0:
|
|
7404
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
7405
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdServicesGet', 'hospitalId', hospitalId);
|
|
7406
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/services"
|
|
7407
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
7408
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7409
|
+
if (configuration) {
|
|
7410
|
+
baseOptions = configuration.baseOptions;
|
|
7411
|
+
}
|
|
7412
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
7413
|
+
localVarHeaderParameter = {};
|
|
7414
|
+
localVarQueryParameter = {};
|
|
7415
|
+
// authentication oauth2 required
|
|
7416
|
+
// oauth required
|
|
7417
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
7418
|
+
case 1:
|
|
7419
|
+
// authentication oauth2 required
|
|
7420
|
+
// oauth required
|
|
7421
|
+
_a.sent();
|
|
7422
|
+
if (id !== undefined) {
|
|
7423
|
+
localVarQueryParameter['id'] = id;
|
|
7424
|
+
}
|
|
7425
|
+
if (name !== undefined) {
|
|
7426
|
+
localVarQueryParameter['name'] = name;
|
|
7427
|
+
}
|
|
7428
|
+
if (slug !== undefined) {
|
|
7429
|
+
localVarQueryParameter['slug'] = slug;
|
|
7430
|
+
}
|
|
7431
|
+
if (serviceCategoryId !== undefined) {
|
|
7432
|
+
localVarQueryParameter['serviceCategoryId'] = serviceCategoryId;
|
|
7433
|
+
}
|
|
7434
|
+
if (marketingType !== undefined) {
|
|
7435
|
+
localVarQueryParameter['marketingType'] = marketingType;
|
|
7436
|
+
}
|
|
7437
|
+
if (procedure !== undefined) {
|
|
7438
|
+
localVarQueryParameter['procedure'] = procedure;
|
|
7439
|
+
}
|
|
7440
|
+
if (created !== undefined) {
|
|
7441
|
+
localVarQueryParameter['created'] = (created instanceof Date) ?
|
|
7442
|
+
created.toISOString() :
|
|
7443
|
+
created;
|
|
7444
|
+
}
|
|
7445
|
+
if (showHidden !== undefined) {
|
|
7446
|
+
localVarQueryParameter['showHidden'] = showHidden;
|
|
7447
|
+
}
|
|
7448
|
+
if (languageCode !== undefined) {
|
|
7449
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
7450
|
+
}
|
|
7451
|
+
if (page !== undefined) {
|
|
7452
|
+
localVarQueryParameter['page'] = page;
|
|
7453
|
+
}
|
|
7454
|
+
if (limit !== undefined) {
|
|
7455
|
+
localVarQueryParameter['limit'] = limit;
|
|
7456
|
+
}
|
|
7457
|
+
if (lastRetrieved !== undefined) {
|
|
7458
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
7459
|
+
lastRetrieved.toISOString() :
|
|
7460
|
+
lastRetrieved;
|
|
7461
|
+
}
|
|
7462
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7463
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7464
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7465
|
+
return [2 /*return*/, {
|
|
7466
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7467
|
+
options: localVarRequestOptions,
|
|
7468
|
+
}];
|
|
7469
|
+
}
|
|
7470
|
+
});
|
|
7471
|
+
});
|
|
7472
|
+
},
|
|
7473
|
+
/**
|
|
7474
|
+
*
|
|
7475
|
+
* @summary Get a service of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
7476
|
+
* @param {string} hospitalId
|
|
7477
|
+
* @param {string} serviceId
|
|
7478
|
+
* @param {string} [languageCode] Language code. Accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
7479
|
+
* @param {boolean} [returnDefaultValue]
|
|
7480
|
+
* @param {*} [options] Override http request option.
|
|
7481
|
+
* @throws {RequiredError}
|
|
7482
|
+
*/
|
|
7483
|
+
apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId_1, serviceId_1, languageCode_1, returnDefaultValue_1) {
|
|
7484
|
+
var args_1 = [];
|
|
7485
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
7486
|
+
args_1[_i - 4] = arguments[_i];
|
|
7487
|
+
}
|
|
7488
|
+
return __awaiter(_this, __spreadArray([hospitalId_1, serviceId_1, languageCode_1, returnDefaultValue_1], args_1, true), void 0, function (hospitalId, serviceId, languageCode, returnDefaultValue, options) {
|
|
7489
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7490
|
+
if (options === void 0) { options = {}; }
|
|
7491
|
+
return __generator(this, function (_a) {
|
|
7492
|
+
switch (_a.label) {
|
|
7493
|
+
case 0:
|
|
7494
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
7495
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdServicesServiceIdGet', 'hospitalId', hospitalId);
|
|
7496
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
7497
|
+
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdServicesServiceIdGet', 'serviceId', serviceId);
|
|
7498
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
|
|
7499
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
7500
|
+
.replace("{".concat("serviceId", "}"), encodeURIComponent(String(serviceId)));
|
|
7501
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7502
|
+
if (configuration) {
|
|
7503
|
+
baseOptions = configuration.baseOptions;
|
|
7504
|
+
}
|
|
7505
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
7506
|
+
localVarHeaderParameter = {};
|
|
7507
|
+
localVarQueryParameter = {};
|
|
7508
|
+
// authentication oauth2 required
|
|
7509
|
+
// oauth required
|
|
7510
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
7511
|
+
case 1:
|
|
7512
|
+
// authentication oauth2 required
|
|
7513
|
+
// oauth required
|
|
7514
|
+
_a.sent();
|
|
7515
|
+
if (languageCode !== undefined) {
|
|
7516
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
7517
|
+
}
|
|
7518
|
+
if (returnDefaultValue !== undefined) {
|
|
7519
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
7520
|
+
}
|
|
7521
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7522
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7523
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7524
|
+
return [2 /*return*/, {
|
|
7525
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7526
|
+
options: localVarRequestOptions,
|
|
7527
|
+
}];
|
|
7528
|
+
}
|
|
7529
|
+
});
|
|
7530
|
+
});
|
|
7531
|
+
},
|
|
7320
7532
|
/**
|
|
7321
7533
|
*
|
|
7322
7534
|
* @summary Get all Hospitals. (Auth policies: RequireDefaultAdminAppRole)
|
|
@@ -11226,6 +11438,28 @@ var HospitalsApiFp = function (configuration) {
|
|
|
11226
11438
|
});
|
|
11227
11439
|
});
|
|
11228
11440
|
},
|
|
11441
|
+
/**
|
|
11442
|
+
*
|
|
11443
|
+
* @summary Update HospitalAccreditation. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
11444
|
+
* @param {string} hospitalId
|
|
11445
|
+
* @param {string} accreditationId
|
|
11446
|
+
* @param {UpdateHospitalAccreditationCommand} [updateHospitalAccreditationCommand]
|
|
11447
|
+
* @param {*} [options] Override http request option.
|
|
11448
|
+
* @throws {RequiredError}
|
|
11449
|
+
*/
|
|
11450
|
+
apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut: function (hospitalId, accreditationId, updateHospitalAccreditationCommand, options) {
|
|
11451
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11452
|
+
var localVarAxiosArgs;
|
|
11453
|
+
return __generator(this, function (_a) {
|
|
11454
|
+
switch (_a.label) {
|
|
11455
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut(hospitalId, accreditationId, updateHospitalAccreditationCommand, options)];
|
|
11456
|
+
case 1:
|
|
11457
|
+
localVarAxiosArgs = _a.sent();
|
|
11458
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11459
|
+
}
|
|
11460
|
+
});
|
|
11461
|
+
});
|
|
11462
|
+
},
|
|
11229
11463
|
/**
|
|
11230
11464
|
*
|
|
11231
11465
|
* @summary Get all HospitalAccreditations. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
@@ -13998,6 +14232,61 @@ var HospitalsApiFp = function (configuration) {
|
|
|
13998
14232
|
});
|
|
13999
14233
|
});
|
|
14000
14234
|
},
|
|
14235
|
+
/**
|
|
14236
|
+
*
|
|
14237
|
+
* @summary Get all services of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
14238
|
+
* @param {string} hospitalId
|
|
14239
|
+
* @param {string} [id]
|
|
14240
|
+
* @param {string} [name]
|
|
14241
|
+
* @param {string} [slug]
|
|
14242
|
+
* @param {string} [serviceCategoryId]
|
|
14243
|
+
* @param {MarketingType} [marketingType]
|
|
14244
|
+
* @param {Procedure} [procedure]
|
|
14245
|
+
* @param {Date} [created]
|
|
14246
|
+
* @param {boolean} [showHidden]
|
|
14247
|
+
* @param {string} [languageCode]
|
|
14248
|
+
* @param {number} [page]
|
|
14249
|
+
* @param {number} [limit]
|
|
14250
|
+
* @param {Date} [lastRetrieved]
|
|
14251
|
+
* @param {*} [options] Override http request option.
|
|
14252
|
+
* @throws {RequiredError}
|
|
14253
|
+
*/
|
|
14254
|
+
apiV1HospitalsHospitalIdServicesGet: function (hospitalId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
|
|
14255
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14256
|
+
var localVarAxiosArgs;
|
|
14257
|
+
return __generator(this, function (_a) {
|
|
14258
|
+
switch (_a.label) {
|
|
14259
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(hospitalId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options)];
|
|
14260
|
+
case 1:
|
|
14261
|
+
localVarAxiosArgs = _a.sent();
|
|
14262
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14263
|
+
}
|
|
14264
|
+
});
|
|
14265
|
+
});
|
|
14266
|
+
},
|
|
14267
|
+
/**
|
|
14268
|
+
*
|
|
14269
|
+
* @summary Get a service of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
14270
|
+
* @param {string} hospitalId
|
|
14271
|
+
* @param {string} serviceId
|
|
14272
|
+
* @param {string} [languageCode] Language code. Accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
14273
|
+
* @param {boolean} [returnDefaultValue]
|
|
14274
|
+
* @param {*} [options] Override http request option.
|
|
14275
|
+
* @throws {RequiredError}
|
|
14276
|
+
*/
|
|
14277
|
+
apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, returnDefaultValue, options) {
|
|
14278
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14279
|
+
var localVarAxiosArgs;
|
|
14280
|
+
return __generator(this, function (_a) {
|
|
14281
|
+
switch (_a.label) {
|
|
14282
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, returnDefaultValue, options)];
|
|
14283
|
+
case 1:
|
|
14284
|
+
localVarAxiosArgs = _a.sent();
|
|
14285
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14286
|
+
}
|
|
14287
|
+
});
|
|
14288
|
+
});
|
|
14289
|
+
},
|
|
14001
14290
|
/**
|
|
14002
14291
|
*
|
|
14003
14292
|
* @summary Get all Hospitals. (Auth policies: RequireDefaultAdminAppRole)
|
|
@@ -15519,6 +15808,18 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
15519
15808
|
apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet: function (hospitalId, accreditationId, options) {
|
|
15520
15809
|
return localVarFp.apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet(hospitalId, accreditationId, options).then(function (request) { return request(axios, basePath); });
|
|
15521
15810
|
},
|
|
15811
|
+
/**
|
|
15812
|
+
*
|
|
15813
|
+
* @summary Update HospitalAccreditation. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
15814
|
+
* @param {string} hospitalId
|
|
15815
|
+
* @param {string} accreditationId
|
|
15816
|
+
* @param {UpdateHospitalAccreditationCommand} [updateHospitalAccreditationCommand]
|
|
15817
|
+
* @param {*} [options] Override http request option.
|
|
15818
|
+
* @throws {RequiredError}
|
|
15819
|
+
*/
|
|
15820
|
+
apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut: function (hospitalId, accreditationId, updateHospitalAccreditationCommand, options) {
|
|
15821
|
+
return localVarFp.apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut(hospitalId, accreditationId, updateHospitalAccreditationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
15822
|
+
},
|
|
15522
15823
|
/**
|
|
15523
15824
|
*
|
|
15524
15825
|
* @summary Get all HospitalAccreditations. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
@@ -17051,6 +17352,41 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
17051
17352
|
apiV1HospitalsHospitalIdSecurefilesReadGet: function (hospitalId, uri, minutesAvailableUntil, options) {
|
|
17052
17353
|
return localVarFp.apiV1HospitalsHospitalIdSecurefilesReadGet(hospitalId, uri, minutesAvailableUntil, options).then(function (request) { return request(axios, basePath); });
|
|
17053
17354
|
},
|
|
17355
|
+
/**
|
|
17356
|
+
*
|
|
17357
|
+
* @summary Get all services of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
17358
|
+
* @param {string} hospitalId
|
|
17359
|
+
* @param {string} [id]
|
|
17360
|
+
* @param {string} [name]
|
|
17361
|
+
* @param {string} [slug]
|
|
17362
|
+
* @param {string} [serviceCategoryId]
|
|
17363
|
+
* @param {MarketingType} [marketingType]
|
|
17364
|
+
* @param {Procedure} [procedure]
|
|
17365
|
+
* @param {Date} [created]
|
|
17366
|
+
* @param {boolean} [showHidden]
|
|
17367
|
+
* @param {string} [languageCode]
|
|
17368
|
+
* @param {number} [page]
|
|
17369
|
+
* @param {number} [limit]
|
|
17370
|
+
* @param {Date} [lastRetrieved]
|
|
17371
|
+
* @param {*} [options] Override http request option.
|
|
17372
|
+
* @throws {RequiredError}
|
|
17373
|
+
*/
|
|
17374
|
+
apiV1HospitalsHospitalIdServicesGet: function (hospitalId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
|
|
17375
|
+
return localVarFp.apiV1HospitalsHospitalIdServicesGet(hospitalId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
17376
|
+
},
|
|
17377
|
+
/**
|
|
17378
|
+
*
|
|
17379
|
+
* @summary Get a service of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
17380
|
+
* @param {string} hospitalId
|
|
17381
|
+
* @param {string} serviceId
|
|
17382
|
+
* @param {string} [languageCode] Language code. Accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
17383
|
+
* @param {boolean} [returnDefaultValue]
|
|
17384
|
+
* @param {*} [options] Override http request option.
|
|
17385
|
+
* @throws {RequiredError}
|
|
17386
|
+
*/
|
|
17387
|
+
apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, returnDefaultValue, options) {
|
|
17388
|
+
return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
17389
|
+
},
|
|
17054
17390
|
/**
|
|
17055
17391
|
*
|
|
17056
17392
|
* @summary Get all Hospitals. (Auth policies: RequireDefaultAdminAppRole)
|
|
@@ -17946,6 +18282,18 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
17946
18282
|
var _this = this;
|
|
17947
18283
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet(requestParameters.hospitalId, requestParameters.accreditationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17948
18284
|
};
|
|
18285
|
+
/**
|
|
18286
|
+
*
|
|
18287
|
+
* @summary Update HospitalAccreditation. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
18288
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdAccreditationsAccreditationIdPutRequest} requestParameters Request parameters.
|
|
18289
|
+
* @param {*} [options] Override http request option.
|
|
18290
|
+
* @throws {RequiredError}
|
|
18291
|
+
* @memberof HospitalsApi
|
|
18292
|
+
*/
|
|
18293
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut = function (requestParameters, options) {
|
|
18294
|
+
var _this = this;
|
|
18295
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdAccreditationsAccreditationIdPut(requestParameters.hospitalId, requestParameters.accreditationId, requestParameters.updateHospitalAccreditationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18296
|
+
};
|
|
17949
18297
|
/**
|
|
17950
18298
|
*
|
|
17951
18299
|
* @summary Get all HospitalAccreditations. (Auth policies: RequireLocalManagerOrContentManagerRole)
|
|
@@ -19434,6 +19782,30 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
19434
19782
|
var _this = this;
|
|
19435
19783
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdSecurefilesReadGet(requestParameters.hospitalId, requestParameters.uri, requestParameters.minutesAvailableUntil, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19436
19784
|
};
|
|
19785
|
+
/**
|
|
19786
|
+
*
|
|
19787
|
+
* @summary Get all services of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
19788
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdServicesGetRequest} requestParameters Request parameters.
|
|
19789
|
+
* @param {*} [options] Override http request option.
|
|
19790
|
+
* @throws {RequiredError}
|
|
19791
|
+
* @memberof HospitalsApi
|
|
19792
|
+
*/
|
|
19793
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesGet = function (requestParameters, options) {
|
|
19794
|
+
var _this = this;
|
|
19795
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdServicesGet(requestParameters.hospitalId, requestParameters.id, requestParameters.name, requestParameters.slug, requestParameters.serviceCategoryId, requestParameters.marketingType, requestParameters.procedure, requestParameters.created, requestParameters.showHidden, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19796
|
+
};
|
|
19797
|
+
/**
|
|
19798
|
+
*
|
|
19799
|
+
* @summary Get a service of a hospital, regardless of specialty. (Auth policies: RequireDefaultAdminAppRole)
|
|
19800
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdServicesServiceIdGetRequest} requestParameters Request parameters.
|
|
19801
|
+
* @param {*} [options] Override http request option.
|
|
19802
|
+
* @throws {RequiredError}
|
|
19803
|
+
* @memberof HospitalsApi
|
|
19804
|
+
*/
|
|
19805
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdGet = function (requestParameters, options) {
|
|
19806
|
+
var _this = this;
|
|
19807
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdGet(requestParameters.hospitalId, requestParameters.serviceId, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19808
|
+
};
|
|
19437
19809
|
/**
|
|
19438
19810
|
*
|
|
19439
19811
|
* @summary Get all Hospitals. (Auth policies: RequireDefaultAdminAppRole)
|