ch-api-client-typescript2 2.9.5 → 2.9.8
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 +496 -435
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +647 -993
- package/package.json +1 -1
- package/src/api.ts +886 -961
package/lib/api.js
CHANGED
|
@@ -305,6 +305,8 @@ var SnsType;
|
|
|
305
305
|
SnsType["Twitter"] = "Twitter";
|
|
306
306
|
SnsType["Facebook"] = "Facebook";
|
|
307
307
|
SnsType["Instagram"] = "Instagram";
|
|
308
|
+
SnsType["LinkedIn"] = "LinkedIn";
|
|
309
|
+
SnsType["Youtube"] = "Youtube";
|
|
308
310
|
})(SnsType = exports.SnsType || (exports.SnsType = {}));
|
|
309
311
|
/**
|
|
310
312
|
*
|
|
@@ -323,47 +325,6 @@ var UserLocationType;
|
|
|
323
325
|
var AboutUsApiAxiosParamCreator = function (configuration) {
|
|
324
326
|
var _this = this;
|
|
325
327
|
return {
|
|
326
|
-
/**
|
|
327
|
-
*
|
|
328
|
-
* @summary Get AboutUs.
|
|
329
|
-
* @param {string} aboutUsId
|
|
330
|
-
* @param {string} [languageCode]
|
|
331
|
-
* @param {boolean} [returnDefaultValue]
|
|
332
|
-
* @param {*} [options] Override http request option.
|
|
333
|
-
* @throws {RequiredError}
|
|
334
|
-
*/
|
|
335
|
-
apiV2AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
336
|
-
if (options === void 0) { options = {}; }
|
|
337
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
338
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
339
|
-
return __generator(this, function (_a) {
|
|
340
|
-
// verify required parameter 'aboutUsId' is not null or undefined
|
|
341
|
-
(0, common_1.assertParamExists)('apiV2AboutusAboutUsIdGet', 'aboutUsId', aboutUsId);
|
|
342
|
-
localVarPath = "/api/v2/aboutus/{aboutUsId}"
|
|
343
|
-
.replace("{".concat("aboutUsId", "}"), encodeURIComponent(String(aboutUsId)));
|
|
344
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
-
if (configuration) {
|
|
346
|
-
baseOptions = configuration.baseOptions;
|
|
347
|
-
}
|
|
348
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
349
|
-
localVarHeaderParameter = {};
|
|
350
|
-
localVarQueryParameter = {};
|
|
351
|
-
if (languageCode !== undefined) {
|
|
352
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
353
|
-
}
|
|
354
|
-
if (returnDefaultValue !== undefined) {
|
|
355
|
-
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
356
|
-
}
|
|
357
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
-
return [2 /*return*/, {
|
|
361
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
362
|
-
options: localVarRequestOptions,
|
|
363
|
-
}];
|
|
364
|
-
});
|
|
365
|
-
});
|
|
366
|
-
},
|
|
367
328
|
/**
|
|
368
329
|
*
|
|
369
330
|
* @summary Get all AboutUsList.
|
|
@@ -459,6 +420,47 @@ var AboutUsApiAxiosParamCreator = function (configuration) {
|
|
|
459
420
|
});
|
|
460
421
|
});
|
|
461
422
|
},
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @summary Get AboutUs.
|
|
426
|
+
* @param {string} hospitalId
|
|
427
|
+
* @param {string} [languageCode]
|
|
428
|
+
* @param {boolean} [returnDefaultValue]
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
apiV2AboutusHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
|
|
433
|
+
if (options === void 0) { options = {}; }
|
|
434
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
435
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
436
|
+
return __generator(this, function (_a) {
|
|
437
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
438
|
+
(0, common_1.assertParamExists)('apiV2AboutusHospitalIdGet', 'hospitalId', hospitalId);
|
|
439
|
+
localVarPath = "/api/v2/aboutus/{hospitalId}"
|
|
440
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
441
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
442
|
+
if (configuration) {
|
|
443
|
+
baseOptions = configuration.baseOptions;
|
|
444
|
+
}
|
|
445
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
446
|
+
localVarHeaderParameter = {};
|
|
447
|
+
localVarQueryParameter = {};
|
|
448
|
+
if (languageCode !== undefined) {
|
|
449
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
450
|
+
}
|
|
451
|
+
if (returnDefaultValue !== undefined) {
|
|
452
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
453
|
+
}
|
|
454
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
455
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
456
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
457
|
+
return [2 /*return*/, {
|
|
458
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
459
|
+
options: localVarRequestOptions,
|
|
460
|
+
}];
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
},
|
|
462
464
|
/**
|
|
463
465
|
*
|
|
464
466
|
* @param {string} slug
|
|
@@ -511,19 +513,32 @@ var AboutUsApiFp = function (configuration) {
|
|
|
511
513
|
return {
|
|
512
514
|
/**
|
|
513
515
|
*
|
|
514
|
-
* @summary Get
|
|
515
|
-
* @param {string}
|
|
516
|
+
* @summary Get all AboutUsList.
|
|
517
|
+
* @param {string} [hospitalId]
|
|
518
|
+
* @param {string} [hospitalName]
|
|
519
|
+
* @param {string} [hospitalSlug]
|
|
520
|
+
* @param {string} [overviewTitle]
|
|
521
|
+
* @param {string} [normalizedOverviewTitle]
|
|
522
|
+
* @param {string} [overview]
|
|
523
|
+
* @param {string} [content]
|
|
524
|
+
* @param {string} [customStyle]
|
|
525
|
+
* @param {string} [background]
|
|
526
|
+
* @param {string} [backgroundThumbnail]
|
|
516
527
|
* @param {string} [languageCode]
|
|
517
528
|
* @param {boolean} [returnDefaultValue]
|
|
529
|
+
* @param {boolean} [confirmed]
|
|
530
|
+
* @param {number} [page]
|
|
531
|
+
* @param {number} [limit]
|
|
532
|
+
* @param {Date} [lastRetrieved]
|
|
518
533
|
* @param {*} [options] Override http request option.
|
|
519
534
|
* @throws {RequiredError}
|
|
520
535
|
*/
|
|
521
|
-
|
|
536
|
+
apiV2AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
|
|
522
537
|
return __awaiter(this, void 0, void 0, function () {
|
|
523
538
|
var localVarAxiosArgs;
|
|
524
539
|
return __generator(this, function (_a) {
|
|
525
540
|
switch (_a.label) {
|
|
526
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
541
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options)];
|
|
527
542
|
case 1:
|
|
528
543
|
localVarAxiosArgs = _a.sent();
|
|
529
544
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -533,32 +548,19 @@ var AboutUsApiFp = function (configuration) {
|
|
|
533
548
|
},
|
|
534
549
|
/**
|
|
535
550
|
*
|
|
536
|
-
* @summary Get
|
|
537
|
-
* @param {string}
|
|
538
|
-
* @param {string} [hospitalName]
|
|
539
|
-
* @param {string} [hospitalSlug]
|
|
540
|
-
* @param {string} [overviewTitle]
|
|
541
|
-
* @param {string} [normalizedOverviewTitle]
|
|
542
|
-
* @param {string} [overview]
|
|
543
|
-
* @param {string} [content]
|
|
544
|
-
* @param {string} [customStyle]
|
|
545
|
-
* @param {string} [background]
|
|
546
|
-
* @param {string} [backgroundThumbnail]
|
|
551
|
+
* @summary Get AboutUs.
|
|
552
|
+
* @param {string} hospitalId
|
|
547
553
|
* @param {string} [languageCode]
|
|
548
554
|
* @param {boolean} [returnDefaultValue]
|
|
549
|
-
* @param {boolean} [confirmed]
|
|
550
|
-
* @param {number} [page]
|
|
551
|
-
* @param {number} [limit]
|
|
552
|
-
* @param {Date} [lastRetrieved]
|
|
553
555
|
* @param {*} [options] Override http request option.
|
|
554
556
|
* @throws {RequiredError}
|
|
555
557
|
*/
|
|
556
|
-
|
|
558
|
+
apiV2AboutusHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
|
|
557
559
|
return __awaiter(this, void 0, void 0, function () {
|
|
558
560
|
var localVarAxiosArgs;
|
|
559
561
|
return __generator(this, function (_a) {
|
|
560
562
|
switch (_a.label) {
|
|
561
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
563
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options)];
|
|
562
564
|
case 1:
|
|
563
565
|
localVarAxiosArgs = _a.sent();
|
|
564
566
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -597,18 +599,6 @@ exports.AboutUsApiFp = AboutUsApiFp;
|
|
|
597
599
|
var AboutUsApiFactory = function (configuration, basePath, axios) {
|
|
598
600
|
var localVarFp = (0, exports.AboutUsApiFp)(configuration);
|
|
599
601
|
return {
|
|
600
|
-
/**
|
|
601
|
-
*
|
|
602
|
-
* @summary Get AboutUs.
|
|
603
|
-
* @param {string} aboutUsId
|
|
604
|
-
* @param {string} [languageCode]
|
|
605
|
-
* @param {boolean} [returnDefaultValue]
|
|
606
|
-
* @param {*} [options] Override http request option.
|
|
607
|
-
* @throws {RequiredError}
|
|
608
|
-
*/
|
|
609
|
-
apiV2AboutusAboutUsIdGet: function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
610
|
-
return localVarFp.apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
611
|
-
},
|
|
612
602
|
/**
|
|
613
603
|
*
|
|
614
604
|
* @summary Get all AboutUsList.
|
|
@@ -634,6 +624,18 @@ var AboutUsApiFactory = function (configuration, basePath, axios) {
|
|
|
634
624
|
apiV2AboutusGet: function (hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options) {
|
|
635
625
|
return localVarFp.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
636
626
|
},
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @summary Get AboutUs.
|
|
630
|
+
* @param {string} hospitalId
|
|
631
|
+
* @param {string} [languageCode]
|
|
632
|
+
* @param {boolean} [returnDefaultValue]
|
|
633
|
+
* @param {*} [options] Override http request option.
|
|
634
|
+
* @throws {RequiredError}
|
|
635
|
+
*/
|
|
636
|
+
apiV2AboutusHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
|
|
637
|
+
return localVarFp.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
638
|
+
},
|
|
637
639
|
/**
|
|
638
640
|
*
|
|
639
641
|
* @param {string} slug
|
|
@@ -659,20 +661,6 @@ var AboutUsApi = /** @class */ (function (_super) {
|
|
|
659
661
|
function AboutUsApi() {
|
|
660
662
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
661
663
|
}
|
|
662
|
-
/**
|
|
663
|
-
*
|
|
664
|
-
* @summary Get AboutUs.
|
|
665
|
-
* @param {string} aboutUsId
|
|
666
|
-
* @param {string} [languageCode]
|
|
667
|
-
* @param {boolean} [returnDefaultValue]
|
|
668
|
-
* @param {*} [options] Override http request option.
|
|
669
|
-
* @throws {RequiredError}
|
|
670
|
-
* @memberof AboutUsApi
|
|
671
|
-
*/
|
|
672
|
-
AboutUsApi.prototype.apiV2AboutusAboutUsIdGet = function (aboutUsId, languageCode, returnDefaultValue, options) {
|
|
673
|
-
var _this = this;
|
|
674
|
-
return (0, exports.AboutUsApiFp)(this.configuration).apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
675
|
-
};
|
|
676
664
|
/**
|
|
677
665
|
*
|
|
678
666
|
* @summary Get all AboutUsList.
|
|
@@ -700,6 +688,20 @@ var AboutUsApi = /** @class */ (function (_super) {
|
|
|
700
688
|
var _this = this;
|
|
701
689
|
return (0, exports.AboutUsApiFp)(this.configuration).apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
702
690
|
};
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Get AboutUs.
|
|
694
|
+
* @param {string} hospitalId
|
|
695
|
+
* @param {string} [languageCode]
|
|
696
|
+
* @param {boolean} [returnDefaultValue]
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
* @memberof AboutUsApi
|
|
700
|
+
*/
|
|
701
|
+
AboutUsApi.prototype.apiV2AboutusHospitalIdGet = function (hospitalId, languageCode, returnDefaultValue, options) {
|
|
702
|
+
var _this = this;
|
|
703
|
+
return (0, exports.AboutUsApiFp)(this.configuration).apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
704
|
+
};
|
|
703
705
|
/**
|
|
704
706
|
*
|
|
705
707
|
* @param {string} slug
|
|
@@ -1385,6 +1387,7 @@ var ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1385
1387
|
* @param {string} [hospitalName]
|
|
1386
1388
|
* @param {string} [countryId]
|
|
1387
1389
|
* @param {string} [tag]
|
|
1390
|
+
* @param {string} [exceptArticleId]
|
|
1388
1391
|
* @param {string} [exceptHospitalId]
|
|
1389
1392
|
* @param {string} [contributorId]
|
|
1390
1393
|
* @param {string} [languageCode]
|
|
@@ -1396,7 +1399,7 @@ var ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1396
1399
|
* @param {*} [options] Override http request option.
|
|
1397
1400
|
* @throws {RequiredError}
|
|
1398
1401
|
*/
|
|
1399
|
-
apiV2ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1402
|
+
apiV2ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1400
1403
|
if (options === void 0) { options = {}; }
|
|
1401
1404
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1402
1405
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1442,6 +1445,9 @@ var ArticlesApiAxiosParamCreator = function (configuration) {
|
|
|
1442
1445
|
if (tag !== undefined) {
|
|
1443
1446
|
localVarQueryParameter['Tag'] = tag;
|
|
1444
1447
|
}
|
|
1448
|
+
if (exceptArticleId !== undefined) {
|
|
1449
|
+
localVarQueryParameter['ExceptArticleId'] = exceptArticleId;
|
|
1450
|
+
}
|
|
1445
1451
|
if (exceptHospitalId !== undefined) {
|
|
1446
1452
|
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
1447
1453
|
}
|
|
@@ -1750,6 +1756,7 @@ var ArticlesApiFp = function (configuration) {
|
|
|
1750
1756
|
* @param {string} [hospitalName]
|
|
1751
1757
|
* @param {string} [countryId]
|
|
1752
1758
|
* @param {string} [tag]
|
|
1759
|
+
* @param {string} [exceptArticleId]
|
|
1753
1760
|
* @param {string} [exceptHospitalId]
|
|
1754
1761
|
* @param {string} [contributorId]
|
|
1755
1762
|
* @param {string} [languageCode]
|
|
@@ -1761,12 +1768,12 @@ var ArticlesApiFp = function (configuration) {
|
|
|
1761
1768
|
* @param {*} [options] Override http request option.
|
|
1762
1769
|
* @throws {RequiredError}
|
|
1763
1770
|
*/
|
|
1764
|
-
apiV2ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1771
|
+
apiV2ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1765
1772
|
return __awaiter(this, void 0, void 0, function () {
|
|
1766
1773
|
var localVarAxiosArgs;
|
|
1767
1774
|
return __generator(this, function (_a) {
|
|
1768
1775
|
switch (_a.label) {
|
|
1769
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
1776
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
1770
1777
|
case 1:
|
|
1771
1778
|
localVarAxiosArgs = _a.sent();
|
|
1772
1779
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1937,6 +1944,7 @@ var ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
1937
1944
|
* @param {string} [hospitalName]
|
|
1938
1945
|
* @param {string} [countryId]
|
|
1939
1946
|
* @param {string} [tag]
|
|
1947
|
+
* @param {string} [exceptArticleId]
|
|
1940
1948
|
* @param {string} [exceptHospitalId]
|
|
1941
1949
|
* @param {string} [contributorId]
|
|
1942
1950
|
* @param {string} [languageCode]
|
|
@@ -1948,8 +1956,8 @@ var ArticlesApiFactory = function (configuration, basePath, axios) {
|
|
|
1948
1956
|
* @param {*} [options] Override http request option.
|
|
1949
1957
|
* @throws {RequiredError}
|
|
1950
1958
|
*/
|
|
1951
|
-
apiV2ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1952
|
-
return localVarFp.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1959
|
+
apiV2ArticlesGet: function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
1960
|
+
return localVarFp.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1953
1961
|
},
|
|
1954
1962
|
/**
|
|
1955
1963
|
*
|
|
@@ -2126,6 +2134,7 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
2126
2134
|
* @param {string} [hospitalName]
|
|
2127
2135
|
* @param {string} [countryId]
|
|
2128
2136
|
* @param {string} [tag]
|
|
2137
|
+
* @param {string} [exceptArticleId]
|
|
2129
2138
|
* @param {string} [exceptHospitalId]
|
|
2130
2139
|
* @param {string} [contributorId]
|
|
2131
2140
|
* @param {string} [languageCode]
|
|
@@ -2138,9 +2147,9 @@ var ArticlesApi = /** @class */ (function (_super) {
|
|
|
2138
2147
|
* @throws {RequiredError}
|
|
2139
2148
|
* @memberof ArticlesApi
|
|
2140
2149
|
*/
|
|
2141
|
-
ArticlesApi.prototype.apiV2ArticlesGet = function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
2150
|
+
ArticlesApi.prototype.apiV2ArticlesGet = function (id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
2142
2151
|
var _this = this;
|
|
2143
|
-
return (0, exports.ArticlesApiFp)(this.configuration).apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2152
|
+
return (0, exports.ArticlesApiFp)(this.configuration).apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2144
2153
|
};
|
|
2145
2154
|
/**
|
|
2146
2155
|
*
|
|
@@ -2167,13 +2176,12 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2167
2176
|
return {
|
|
2168
2177
|
/**
|
|
2169
2178
|
*
|
|
2170
|
-
* @summary
|
|
2179
|
+
* @summary Get booking.
|
|
2171
2180
|
* @param {string} bookingId
|
|
2172
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
2173
2181
|
* @param {*} [options] Override http request option.
|
|
2174
2182
|
* @throws {RequiredError}
|
|
2175
2183
|
*/
|
|
2176
|
-
|
|
2184
|
+
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2177
2185
|
if (options === void 0) { options = {}; }
|
|
2178
2186
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2179
2187
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2181,14 +2189,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2181
2189
|
switch (_a.label) {
|
|
2182
2190
|
case 0:
|
|
2183
2191
|
// verify required parameter 'bookingId' is not null or undefined
|
|
2184
|
-
(0, common_1.assertParamExists)('
|
|
2185
|
-
localVarPath = "/api/v2/bookings/{bookingId}
|
|
2192
|
+
(0, common_1.assertParamExists)('apiV2BookingsBookingIdGet', 'bookingId', bookingId);
|
|
2193
|
+
localVarPath = "/api/v2/bookings/{bookingId}"
|
|
2186
2194
|
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2187
2195
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2188
2196
|
if (configuration) {
|
|
2189
2197
|
baseOptions = configuration.baseOptions;
|
|
2190
2198
|
}
|
|
2191
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2199
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2192
2200
|
localVarHeaderParameter = {};
|
|
2193
2201
|
localVarQueryParameter = {};
|
|
2194
2202
|
// authentication oauth2 required
|
|
@@ -2198,11 +2206,9 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2198
2206
|
// authentication oauth2 required
|
|
2199
2207
|
// oauth required
|
|
2200
2208
|
_a.sent();
|
|
2201
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2202
2209
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2203
2210
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2204
2211
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2205
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(approveBookingCommand, localVarRequestOptions, configuration);
|
|
2206
2212
|
return [2 /*return*/, {
|
|
2207
2213
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2208
2214
|
options: localVarRequestOptions,
|
|
@@ -2213,12 +2219,12 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2213
2219
|
},
|
|
2214
2220
|
/**
|
|
2215
2221
|
*
|
|
2216
|
-
* @summary
|
|
2222
|
+
* @summary Pay booking.
|
|
2217
2223
|
* @param {string} bookingId
|
|
2218
2224
|
* @param {*} [options] Override http request option.
|
|
2219
2225
|
* @throws {RequiredError}
|
|
2220
2226
|
*/
|
|
2221
|
-
|
|
2227
|
+
apiV2BookingsBookingIdPayPost: function (bookingId, options) {
|
|
2222
2228
|
if (options === void 0) { options = {}; }
|
|
2223
2229
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2224
2230
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2226,14 +2232,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2226
2232
|
switch (_a.label) {
|
|
2227
2233
|
case 0:
|
|
2228
2234
|
// verify required parameter 'bookingId' is not null or undefined
|
|
2229
|
-
(0, common_1.assertParamExists)('
|
|
2230
|
-
localVarPath = "/api/v2/bookings/{bookingId}/
|
|
2235
|
+
(0, common_1.assertParamExists)('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId);
|
|
2236
|
+
localVarPath = "/api/v2/bookings/{bookingId}/pay"
|
|
2231
2237
|
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2232
2238
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2233
2239
|
if (configuration) {
|
|
2234
2240
|
baseOptions = configuration.baseOptions;
|
|
2235
2241
|
}
|
|
2236
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2242
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2237
2243
|
localVarHeaderParameter = {};
|
|
2238
2244
|
localVarQueryParameter = {};
|
|
2239
2245
|
// authentication oauth2 required
|
|
@@ -2256,12 +2262,13 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2256
2262
|
},
|
|
2257
2263
|
/**
|
|
2258
2264
|
*
|
|
2259
|
-
* @summary
|
|
2265
|
+
* @summary Update booking.
|
|
2260
2266
|
* @param {string} bookingId
|
|
2267
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2261
2268
|
* @param {*} [options] Override http request option.
|
|
2262
2269
|
* @throws {RequiredError}
|
|
2263
2270
|
*/
|
|
2264
|
-
|
|
2271
|
+
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2265
2272
|
if (options === void 0) { options = {}; }
|
|
2266
2273
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2267
2274
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2269,14 +2276,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2269
2276
|
switch (_a.label) {
|
|
2270
2277
|
case 0:
|
|
2271
2278
|
// verify required parameter 'bookingId' is not null or undefined
|
|
2272
|
-
(0, common_1.assertParamExists)('
|
|
2279
|
+
(0, common_1.assertParamExists)('apiV2BookingsBookingIdPut', 'bookingId', bookingId);
|
|
2273
2280
|
localVarPath = "/api/v2/bookings/{bookingId}"
|
|
2274
2281
|
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2275
2282
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2276
2283
|
if (configuration) {
|
|
2277
2284
|
baseOptions = configuration.baseOptions;
|
|
2278
2285
|
}
|
|
2279
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2286
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2280
2287
|
localVarHeaderParameter = {};
|
|
2281
2288
|
localVarQueryParameter = {};
|
|
2282
2289
|
// authentication oauth2 required
|
|
@@ -2286,9 +2293,11 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2286
2293
|
// authentication oauth2 required
|
|
2287
2294
|
// oauth required
|
|
2288
2295
|
_a.sent();
|
|
2296
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2289
2297
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2290
2298
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2291
2299
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2300
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBookingCommand, localVarRequestOptions, configuration);
|
|
2292
2301
|
return [2 /*return*/, {
|
|
2293
2302
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2294
2303
|
options: localVarRequestOptions,
|
|
@@ -2299,22 +2308,27 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2299
2308
|
},
|
|
2300
2309
|
/**
|
|
2301
2310
|
*
|
|
2302
|
-
* @summary Get
|
|
2303
|
-
* @param {string}
|
|
2311
|
+
* @summary Get all bookings.
|
|
2312
|
+
* @param {string} [searchString]
|
|
2313
|
+
* @param {boolean} [isOpen]
|
|
2314
|
+
* @param {boolean} [isCompleted]
|
|
2315
|
+
* @param {BookingStatus} [status]
|
|
2316
|
+
* @param {string} [dealPackageId]
|
|
2317
|
+
* @param {string} [hospitalId]
|
|
2318
|
+
* @param {number} [page]
|
|
2319
|
+
* @param {number} [limit]
|
|
2320
|
+
* @param {Date} [lastRetrieved]
|
|
2304
2321
|
* @param {*} [options] Override http request option.
|
|
2305
2322
|
* @throws {RequiredError}
|
|
2306
2323
|
*/
|
|
2307
|
-
|
|
2324
|
+
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
|
|
2308
2325
|
if (options === void 0) { options = {}; }
|
|
2309
2326
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2310
2327
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2311
2328
|
return __generator(this, function (_a) {
|
|
2312
2329
|
switch (_a.label) {
|
|
2313
2330
|
case 0:
|
|
2314
|
-
|
|
2315
|
-
(0, common_1.assertParamExists)('apiV2BookingsBookingIdGet', 'bookingId', bookingId);
|
|
2316
|
-
localVarPath = "/api/v2/bookings/{bookingId}"
|
|
2317
|
-
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2331
|
+
localVarPath = "/api/v2/bookings";
|
|
2318
2332
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2319
2333
|
if (configuration) {
|
|
2320
2334
|
baseOptions = configuration.baseOptions;
|
|
@@ -2329,6 +2343,35 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2329
2343
|
// authentication oauth2 required
|
|
2330
2344
|
// oauth required
|
|
2331
2345
|
_a.sent();
|
|
2346
|
+
if (searchString !== undefined) {
|
|
2347
|
+
localVarQueryParameter['SearchString'] = searchString;
|
|
2348
|
+
}
|
|
2349
|
+
if (isOpen !== undefined) {
|
|
2350
|
+
localVarQueryParameter['IsOpen'] = isOpen;
|
|
2351
|
+
}
|
|
2352
|
+
if (isCompleted !== undefined) {
|
|
2353
|
+
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
2354
|
+
}
|
|
2355
|
+
if (status !== undefined) {
|
|
2356
|
+
localVarQueryParameter['Status'] = status;
|
|
2357
|
+
}
|
|
2358
|
+
if (dealPackageId !== undefined) {
|
|
2359
|
+
localVarQueryParameter['DealPackageId'] = dealPackageId;
|
|
2360
|
+
}
|
|
2361
|
+
if (hospitalId !== undefined) {
|
|
2362
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
2363
|
+
}
|
|
2364
|
+
if (page !== undefined) {
|
|
2365
|
+
localVarQueryParameter['page'] = page;
|
|
2366
|
+
}
|
|
2367
|
+
if (limit !== undefined) {
|
|
2368
|
+
localVarQueryParameter['limit'] = limit;
|
|
2369
|
+
}
|
|
2370
|
+
if (lastRetrieved !== undefined) {
|
|
2371
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
2372
|
+
lastRetrieved.toISOString() :
|
|
2373
|
+
lastRetrieved;
|
|
2374
|
+
}
|
|
2332
2375
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2333
2376
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2334
2377
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2342,22 +2385,23 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2342
2385
|
},
|
|
2343
2386
|
/**
|
|
2344
2387
|
*
|
|
2345
|
-
* @summary
|
|
2346
|
-
* @param {string}
|
|
2388
|
+
* @summary Create booking.
|
|
2389
|
+
* @param {string} requestId
|
|
2390
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
2347
2391
|
* @param {*} [options] Override http request option.
|
|
2348
2392
|
* @throws {RequiredError}
|
|
2349
2393
|
*/
|
|
2350
|
-
|
|
2394
|
+
apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
|
|
2351
2395
|
if (options === void 0) { options = {}; }
|
|
2352
2396
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2353
2397
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2354
2398
|
return __generator(this, function (_a) {
|
|
2355
2399
|
switch (_a.label) {
|
|
2356
2400
|
case 0:
|
|
2357
|
-
// verify required parameter '
|
|
2358
|
-
(0, common_1.assertParamExists)('
|
|
2359
|
-
localVarPath = "/api/v2/bookings/{
|
|
2360
|
-
.replace("{".concat("
|
|
2401
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
2402
|
+
(0, common_1.assertParamExists)('apiV2BookingsRequestIdPost', 'requestId', requestId);
|
|
2403
|
+
localVarPath = "/api/v2/bookings/{requestId}"
|
|
2404
|
+
.replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
|
|
2361
2405
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2362
2406
|
if (configuration) {
|
|
2363
2407
|
baseOptions = configuration.baseOptions;
|
|
@@ -2372,9 +2416,11 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2372
2416
|
// authentication oauth2 required
|
|
2373
2417
|
// oauth required
|
|
2374
2418
|
_a.sent();
|
|
2419
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2375
2420
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2376
2421
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2377
2422
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2423
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingCommand, localVarRequestOptions, configuration);
|
|
2378
2424
|
return [2 /*return*/, {
|
|
2379
2425
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2380
2426
|
options: localVarRequestOptions,
|
|
@@ -2383,345 +2429,26 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2383
2429
|
});
|
|
2384
2430
|
});
|
|
2385
2431
|
},
|
|
2432
|
+
};
|
|
2433
|
+
};
|
|
2434
|
+
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
2435
|
+
/**
|
|
2436
|
+
* BookingsApi - functional programming interface
|
|
2437
|
+
* @export
|
|
2438
|
+
*/
|
|
2439
|
+
var BookingsApiFp = function (configuration) {
|
|
2440
|
+
var localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
2441
|
+
return {
|
|
2386
2442
|
/**
|
|
2387
2443
|
*
|
|
2388
|
-
* @summary
|
|
2444
|
+
* @summary Get booking.
|
|
2389
2445
|
* @param {string} bookingId
|
|
2390
2446
|
* @param {*} [options] Override http request option.
|
|
2391
2447
|
* @throws {RequiredError}
|
|
2392
2448
|
*/
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2397
|
-
return __generator(this, function (_a) {
|
|
2398
|
-
switch (_a.label) {
|
|
2399
|
-
case 0:
|
|
2400
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
2401
|
-
(0, common_1.assertParamExists)('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId);
|
|
2402
|
-
localVarPath = "/api/v2/bookings/{bookingId}/pay"
|
|
2403
|
-
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2404
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2405
|
-
if (configuration) {
|
|
2406
|
-
baseOptions = configuration.baseOptions;
|
|
2407
|
-
}
|
|
2408
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2409
|
-
localVarHeaderParameter = {};
|
|
2410
|
-
localVarQueryParameter = {};
|
|
2411
|
-
// authentication oauth2 required
|
|
2412
|
-
// oauth required
|
|
2413
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2414
|
-
case 1:
|
|
2415
|
-
// authentication oauth2 required
|
|
2416
|
-
// oauth required
|
|
2417
|
-
_a.sent();
|
|
2418
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2419
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2420
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2421
|
-
return [2 /*return*/, {
|
|
2422
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2423
|
-
options: localVarRequestOptions,
|
|
2424
|
-
}];
|
|
2425
|
-
}
|
|
2426
|
-
});
|
|
2427
|
-
});
|
|
2428
|
-
},
|
|
2429
|
-
/**
|
|
2430
|
-
*
|
|
2431
|
-
* @summary Update booking.
|
|
2432
|
-
* @param {string} bookingId
|
|
2433
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2434
|
-
* @param {*} [options] Override http request option.
|
|
2435
|
-
* @throws {RequiredError}
|
|
2436
|
-
*/
|
|
2437
|
-
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2438
|
-
if (options === void 0) { options = {}; }
|
|
2439
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
2440
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2441
|
-
return __generator(this, function (_a) {
|
|
2442
|
-
switch (_a.label) {
|
|
2443
|
-
case 0:
|
|
2444
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
2445
|
-
(0, common_1.assertParamExists)('apiV2BookingsBookingIdPut', 'bookingId', bookingId);
|
|
2446
|
-
localVarPath = "/api/v2/bookings/{bookingId}"
|
|
2447
|
-
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2448
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2449
|
-
if (configuration) {
|
|
2450
|
-
baseOptions = configuration.baseOptions;
|
|
2451
|
-
}
|
|
2452
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2453
|
-
localVarHeaderParameter = {};
|
|
2454
|
-
localVarQueryParameter = {};
|
|
2455
|
-
// authentication oauth2 required
|
|
2456
|
-
// oauth required
|
|
2457
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2458
|
-
case 1:
|
|
2459
|
-
// authentication oauth2 required
|
|
2460
|
-
// oauth required
|
|
2461
|
-
_a.sent();
|
|
2462
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2463
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2464
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2465
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2466
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBookingCommand, localVarRequestOptions, configuration);
|
|
2467
|
-
return [2 /*return*/, {
|
|
2468
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2469
|
-
options: localVarRequestOptions,
|
|
2470
|
-
}];
|
|
2471
|
-
}
|
|
2472
|
-
});
|
|
2473
|
-
});
|
|
2474
|
-
},
|
|
2475
|
-
/**
|
|
2476
|
-
*
|
|
2477
|
-
* @summary Reject booking.
|
|
2478
|
-
* @param {string} bookingId
|
|
2479
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
2480
|
-
* @param {*} [options] Override http request option.
|
|
2481
|
-
* @throws {RequiredError}
|
|
2482
|
-
*/
|
|
2483
|
-
apiV2BookingsBookingIdRejectPut: function (bookingId, rejectBookingCommand, options) {
|
|
2484
|
-
if (options === void 0) { options = {}; }
|
|
2485
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
2486
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2487
|
-
return __generator(this, function (_a) {
|
|
2488
|
-
switch (_a.label) {
|
|
2489
|
-
case 0:
|
|
2490
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
2491
|
-
(0, common_1.assertParamExists)('apiV2BookingsBookingIdRejectPut', 'bookingId', bookingId);
|
|
2492
|
-
localVarPath = "/api/v2/bookings/{bookingId}/reject"
|
|
2493
|
-
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2494
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2495
|
-
if (configuration) {
|
|
2496
|
-
baseOptions = configuration.baseOptions;
|
|
2497
|
-
}
|
|
2498
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2499
|
-
localVarHeaderParameter = {};
|
|
2500
|
-
localVarQueryParameter = {};
|
|
2501
|
-
// authentication oauth2 required
|
|
2502
|
-
// oauth required
|
|
2503
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2504
|
-
case 1:
|
|
2505
|
-
// authentication oauth2 required
|
|
2506
|
-
// oauth required
|
|
2507
|
-
_a.sent();
|
|
2508
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2509
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2510
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2511
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2512
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rejectBookingCommand, localVarRequestOptions, configuration);
|
|
2513
|
-
return [2 /*return*/, {
|
|
2514
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2515
|
-
options: localVarRequestOptions,
|
|
2516
|
-
}];
|
|
2517
|
-
}
|
|
2518
|
-
});
|
|
2519
|
-
});
|
|
2520
|
-
},
|
|
2521
|
-
/**
|
|
2522
|
-
*
|
|
2523
|
-
* @summary Get all bookings.
|
|
2524
|
-
* @param {string} [searchString]
|
|
2525
|
-
* @param {boolean} [isOpen]
|
|
2526
|
-
* @param {boolean} [isCompleted]
|
|
2527
|
-
* @param {BookingStatus} [status]
|
|
2528
|
-
* @param {string} [dealPackageId]
|
|
2529
|
-
* @param {string} [hospitalId]
|
|
2530
|
-
* @param {number} [page]
|
|
2531
|
-
* @param {number} [limit]
|
|
2532
|
-
* @param {Date} [lastRetrieved]
|
|
2533
|
-
* @param {*} [options] Override http request option.
|
|
2534
|
-
* @throws {RequiredError}
|
|
2535
|
-
*/
|
|
2536
|
-
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
|
|
2537
|
-
if (options === void 0) { options = {}; }
|
|
2538
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
2539
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2540
|
-
return __generator(this, function (_a) {
|
|
2541
|
-
switch (_a.label) {
|
|
2542
|
-
case 0:
|
|
2543
|
-
localVarPath = "/api/v2/bookings";
|
|
2544
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2545
|
-
if (configuration) {
|
|
2546
|
-
baseOptions = configuration.baseOptions;
|
|
2547
|
-
}
|
|
2548
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2549
|
-
localVarHeaderParameter = {};
|
|
2550
|
-
localVarQueryParameter = {};
|
|
2551
|
-
// authentication oauth2 required
|
|
2552
|
-
// oauth required
|
|
2553
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2554
|
-
case 1:
|
|
2555
|
-
// authentication oauth2 required
|
|
2556
|
-
// oauth required
|
|
2557
|
-
_a.sent();
|
|
2558
|
-
if (searchString !== undefined) {
|
|
2559
|
-
localVarQueryParameter['SearchString'] = searchString;
|
|
2560
|
-
}
|
|
2561
|
-
if (isOpen !== undefined) {
|
|
2562
|
-
localVarQueryParameter['IsOpen'] = isOpen;
|
|
2563
|
-
}
|
|
2564
|
-
if (isCompleted !== undefined) {
|
|
2565
|
-
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
2566
|
-
}
|
|
2567
|
-
if (status !== undefined) {
|
|
2568
|
-
localVarQueryParameter['Status'] = status;
|
|
2569
|
-
}
|
|
2570
|
-
if (dealPackageId !== undefined) {
|
|
2571
|
-
localVarQueryParameter['DealPackageId'] = dealPackageId;
|
|
2572
|
-
}
|
|
2573
|
-
if (hospitalId !== undefined) {
|
|
2574
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
2575
|
-
}
|
|
2576
|
-
if (page !== undefined) {
|
|
2577
|
-
localVarQueryParameter['page'] = page;
|
|
2578
|
-
}
|
|
2579
|
-
if (limit !== undefined) {
|
|
2580
|
-
localVarQueryParameter['limit'] = limit;
|
|
2581
|
-
}
|
|
2582
|
-
if (lastRetrieved !== undefined) {
|
|
2583
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
2584
|
-
lastRetrieved.toISOString() :
|
|
2585
|
-
lastRetrieved;
|
|
2586
|
-
}
|
|
2587
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2588
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2589
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2590
|
-
return [2 /*return*/, {
|
|
2591
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2592
|
-
options: localVarRequestOptions,
|
|
2593
|
-
}];
|
|
2594
|
-
}
|
|
2595
|
-
});
|
|
2596
|
-
});
|
|
2597
|
-
},
|
|
2598
|
-
/**
|
|
2599
|
-
*
|
|
2600
|
-
* @summary Create booking.
|
|
2601
|
-
* @param {string} requestId
|
|
2602
|
-
* @param {CreateBookingCommand} [createBookingCommand]
|
|
2603
|
-
* @param {*} [options] Override http request option.
|
|
2604
|
-
* @throws {RequiredError}
|
|
2605
|
-
*/
|
|
2606
|
-
apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
|
|
2607
|
-
if (options === void 0) { options = {}; }
|
|
2608
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
2609
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2610
|
-
return __generator(this, function (_a) {
|
|
2611
|
-
switch (_a.label) {
|
|
2612
|
-
case 0:
|
|
2613
|
-
// verify required parameter 'requestId' is not null or undefined
|
|
2614
|
-
(0, common_1.assertParamExists)('apiV2BookingsRequestIdPost', 'requestId', requestId);
|
|
2615
|
-
localVarPath = "/api/v2/bookings/{requestId}"
|
|
2616
|
-
.replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
|
|
2617
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2618
|
-
if (configuration) {
|
|
2619
|
-
baseOptions = configuration.baseOptions;
|
|
2620
|
-
}
|
|
2621
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2622
|
-
localVarHeaderParameter = {};
|
|
2623
|
-
localVarQueryParameter = {};
|
|
2624
|
-
// authentication oauth2 required
|
|
2625
|
-
// oauth required
|
|
2626
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2627
|
-
case 1:
|
|
2628
|
-
// authentication oauth2 required
|
|
2629
|
-
// oauth required
|
|
2630
|
-
_a.sent();
|
|
2631
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2632
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2633
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2634
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2635
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingCommand, localVarRequestOptions, configuration);
|
|
2636
|
-
return [2 /*return*/, {
|
|
2637
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2638
|
-
options: localVarRequestOptions,
|
|
2639
|
-
}];
|
|
2640
|
-
}
|
|
2641
|
-
});
|
|
2642
|
-
});
|
|
2643
|
-
},
|
|
2644
|
-
};
|
|
2645
|
-
};
|
|
2646
|
-
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
2647
|
-
/**
|
|
2648
|
-
* BookingsApi - functional programming interface
|
|
2649
|
-
* @export
|
|
2650
|
-
*/
|
|
2651
|
-
var BookingsApiFp = function (configuration) {
|
|
2652
|
-
var localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
2653
|
-
return {
|
|
2654
|
-
/**
|
|
2655
|
-
*
|
|
2656
|
-
* @summary Approve booking.
|
|
2657
|
-
* @param {string} bookingId
|
|
2658
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
2659
|
-
* @param {*} [options] Override http request option.
|
|
2660
|
-
* @throws {RequiredError}
|
|
2661
|
-
*/
|
|
2662
|
-
apiV2BookingsBookingIdApprovePut: function (bookingId, approveBookingCommand, options) {
|
|
2663
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2664
|
-
var localVarAxiosArgs;
|
|
2665
|
-
return __generator(this, function (_a) {
|
|
2666
|
-
switch (_a.label) {
|
|
2667
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options)];
|
|
2668
|
-
case 1:
|
|
2669
|
-
localVarAxiosArgs = _a.sent();
|
|
2670
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2671
|
-
}
|
|
2672
|
-
});
|
|
2673
|
-
});
|
|
2674
|
-
},
|
|
2675
|
-
/**
|
|
2676
|
-
*
|
|
2677
|
-
* @summary Cancel booking.
|
|
2678
|
-
* @param {string} bookingId
|
|
2679
|
-
* @param {*} [options] Override http request option.
|
|
2680
|
-
* @throws {RequiredError}
|
|
2681
|
-
*/
|
|
2682
|
-
apiV2BookingsBookingIdCancelPut: function (bookingId, options) {
|
|
2683
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2684
|
-
var localVarAxiosArgs;
|
|
2685
|
-
return __generator(this, function (_a) {
|
|
2686
|
-
switch (_a.label) {
|
|
2687
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options)];
|
|
2688
|
-
case 1:
|
|
2689
|
-
localVarAxiosArgs = _a.sent();
|
|
2690
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2691
|
-
}
|
|
2692
|
-
});
|
|
2693
|
-
});
|
|
2694
|
-
},
|
|
2695
|
-
/**
|
|
2696
|
-
*
|
|
2697
|
-
* @summary Delete booking.
|
|
2698
|
-
* @param {string} bookingId
|
|
2699
|
-
* @param {*} [options] Override http request option.
|
|
2700
|
-
* @throws {RequiredError}
|
|
2701
|
-
*/
|
|
2702
|
-
apiV2BookingsBookingIdDelete: function (bookingId, options) {
|
|
2703
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2704
|
-
var localVarAxiosArgs;
|
|
2705
|
-
return __generator(this, function (_a) {
|
|
2706
|
-
switch (_a.label) {
|
|
2707
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options)];
|
|
2708
|
-
case 1:
|
|
2709
|
-
localVarAxiosArgs = _a.sent();
|
|
2710
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2711
|
-
}
|
|
2712
|
-
});
|
|
2713
|
-
});
|
|
2714
|
-
},
|
|
2715
|
-
/**
|
|
2716
|
-
*
|
|
2717
|
-
* @summary Get booking.
|
|
2718
|
-
* @param {string} bookingId
|
|
2719
|
-
* @param {*} [options] Override http request option.
|
|
2720
|
-
* @throws {RequiredError}
|
|
2721
|
-
*/
|
|
2722
|
-
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2723
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2724
|
-
var localVarAxiosArgs;
|
|
2449
|
+
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2451
|
+
var localVarAxiosArgs;
|
|
2725
2452
|
return __generator(this, function (_a) {
|
|
2726
2453
|
switch (_a.label) {
|
|
2727
2454
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options)];
|
|
@@ -2732,26 +2459,6 @@ var BookingsApiFp = function (configuration) {
|
|
|
2732
2459
|
});
|
|
2733
2460
|
});
|
|
2734
2461
|
},
|
|
2735
|
-
/**
|
|
2736
|
-
*
|
|
2737
|
-
* @summary Mark as Paid booking.
|
|
2738
|
-
* @param {string} bookingId
|
|
2739
|
-
* @param {*} [options] Override http request option.
|
|
2740
|
-
* @throws {RequiredError}
|
|
2741
|
-
*/
|
|
2742
|
-
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2743
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2744
|
-
var localVarAxiosArgs;
|
|
2745
|
-
return __generator(this, function (_a) {
|
|
2746
|
-
switch (_a.label) {
|
|
2747
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options)];
|
|
2748
|
-
case 1:
|
|
2749
|
-
localVarAxiosArgs = _a.sent();
|
|
2750
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2751
|
-
}
|
|
2752
|
-
});
|
|
2753
|
-
});
|
|
2754
|
-
},
|
|
2755
2462
|
/**
|
|
2756
2463
|
*
|
|
2757
2464
|
* @summary Pay booking.
|
|
@@ -2759,33 +2466,12 @@ var BookingsApiFp = function (configuration) {
|
|
|
2759
2466
|
* @param {*} [options] Override http request option.
|
|
2760
2467
|
* @throws {RequiredError}
|
|
2761
2468
|
*/
|
|
2762
|
-
apiV2BookingsBookingIdPayPost: function (bookingId, options) {
|
|
2763
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2764
|
-
var localVarAxiosArgs;
|
|
2765
|
-
return __generator(this, function (_a) {
|
|
2766
|
-
switch (_a.label) {
|
|
2767
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options)];
|
|
2768
|
-
case 1:
|
|
2769
|
-
localVarAxiosArgs = _a.sent();
|
|
2770
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2771
|
-
}
|
|
2772
|
-
});
|
|
2773
|
-
});
|
|
2774
|
-
},
|
|
2775
|
-
/**
|
|
2776
|
-
*
|
|
2777
|
-
* @summary Update booking.
|
|
2778
|
-
* @param {string} bookingId
|
|
2779
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2780
|
-
* @param {*} [options] Override http request option.
|
|
2781
|
-
* @throws {RequiredError}
|
|
2782
|
-
*/
|
|
2783
|
-
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2469
|
+
apiV2BookingsBookingIdPayPost: function (bookingId, options) {
|
|
2784
2470
|
return __awaiter(this, void 0, void 0, function () {
|
|
2785
2471
|
var localVarAxiosArgs;
|
|
2786
2472
|
return __generator(this, function (_a) {
|
|
2787
2473
|
switch (_a.label) {
|
|
2788
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2474
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options)];
|
|
2789
2475
|
case 1:
|
|
2790
2476
|
localVarAxiosArgs = _a.sent();
|
|
2791
2477
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2795,18 +2481,18 @@ var BookingsApiFp = function (configuration) {
|
|
|
2795
2481
|
},
|
|
2796
2482
|
/**
|
|
2797
2483
|
*
|
|
2798
|
-
* @summary
|
|
2484
|
+
* @summary Update booking.
|
|
2799
2485
|
* @param {string} bookingId
|
|
2800
|
-
* @param {
|
|
2486
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2801
2487
|
* @param {*} [options] Override http request option.
|
|
2802
2488
|
* @throws {RequiredError}
|
|
2803
2489
|
*/
|
|
2804
|
-
|
|
2490
|
+
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2805
2491
|
return __awaiter(this, void 0, void 0, function () {
|
|
2806
2492
|
var localVarAxiosArgs;
|
|
2807
2493
|
return __generator(this, function (_a) {
|
|
2808
2494
|
switch (_a.label) {
|
|
2809
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2495
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options)];
|
|
2810
2496
|
case 1:
|
|
2811
2497
|
localVarAxiosArgs = _a.sent();
|
|
2812
2498
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2873,37 +2559,6 @@ exports.BookingsApiFp = BookingsApiFp;
|
|
|
2873
2559
|
var BookingsApiFactory = function (configuration, basePath, axios) {
|
|
2874
2560
|
var localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
2875
2561
|
return {
|
|
2876
|
-
/**
|
|
2877
|
-
*
|
|
2878
|
-
* @summary Approve booking.
|
|
2879
|
-
* @param {string} bookingId
|
|
2880
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
2881
|
-
* @param {*} [options] Override http request option.
|
|
2882
|
-
* @throws {RequiredError}
|
|
2883
|
-
*/
|
|
2884
|
-
apiV2BookingsBookingIdApprovePut: function (bookingId, approveBookingCommand, options) {
|
|
2885
|
-
return localVarFp.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2886
|
-
},
|
|
2887
|
-
/**
|
|
2888
|
-
*
|
|
2889
|
-
* @summary Cancel booking.
|
|
2890
|
-
* @param {string} bookingId
|
|
2891
|
-
* @param {*} [options] Override http request option.
|
|
2892
|
-
* @throws {RequiredError}
|
|
2893
|
-
*/
|
|
2894
|
-
apiV2BookingsBookingIdCancelPut: function (bookingId, options) {
|
|
2895
|
-
return localVarFp.apiV2BookingsBookingIdCancelPut(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2896
|
-
},
|
|
2897
|
-
/**
|
|
2898
|
-
*
|
|
2899
|
-
* @summary Delete booking.
|
|
2900
|
-
* @param {string} bookingId
|
|
2901
|
-
* @param {*} [options] Override http request option.
|
|
2902
|
-
* @throws {RequiredError}
|
|
2903
|
-
*/
|
|
2904
|
-
apiV2BookingsBookingIdDelete: function (bookingId, options) {
|
|
2905
|
-
return localVarFp.apiV2BookingsBookingIdDelete(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2906
|
-
},
|
|
2907
2562
|
/**
|
|
2908
2563
|
*
|
|
2909
2564
|
* @summary Get booking.
|
|
@@ -2914,16 +2569,6 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2914
2569
|
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2915
2570
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2916
2571
|
},
|
|
2917
|
-
/**
|
|
2918
|
-
*
|
|
2919
|
-
* @summary Mark as Paid booking.
|
|
2920
|
-
* @param {string} bookingId
|
|
2921
|
-
* @param {*} [options] Override http request option.
|
|
2922
|
-
* @throws {RequiredError}
|
|
2923
|
-
*/
|
|
2924
|
-
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2925
|
-
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2926
|
-
},
|
|
2927
2572
|
/**
|
|
2928
2573
|
*
|
|
2929
2574
|
* @summary Pay booking.
|
|
@@ -2945,17 +2590,6 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2945
2590
|
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2946
2591
|
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2947
2592
|
},
|
|
2948
|
-
/**
|
|
2949
|
-
*
|
|
2950
|
-
* @summary Reject booking.
|
|
2951
|
-
* @param {string} bookingId
|
|
2952
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
2953
|
-
* @param {*} [options] Override http request option.
|
|
2954
|
-
* @throws {RequiredError}
|
|
2955
|
-
*/
|
|
2956
|
-
apiV2BookingsBookingIdRejectPut: function (bookingId, rejectBookingCommand, options) {
|
|
2957
|
-
return localVarFp.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2958
|
-
},
|
|
2959
2593
|
/**
|
|
2960
2594
|
*
|
|
2961
2595
|
* @summary Get all bookings.
|
|
@@ -2999,43 +2633,6 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2999
2633
|
function BookingsApi() {
|
|
3000
2634
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3001
2635
|
}
|
|
3002
|
-
/**
|
|
3003
|
-
*
|
|
3004
|
-
* @summary Approve booking.
|
|
3005
|
-
* @param {string} bookingId
|
|
3006
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
3007
|
-
* @param {*} [options] Override http request option.
|
|
3008
|
-
* @throws {RequiredError}
|
|
3009
|
-
* @memberof BookingsApi
|
|
3010
|
-
*/
|
|
3011
|
-
BookingsApi.prototype.apiV2BookingsBookingIdApprovePut = function (bookingId, approveBookingCommand, options) {
|
|
3012
|
-
var _this = this;
|
|
3013
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3014
|
-
};
|
|
3015
|
-
/**
|
|
3016
|
-
*
|
|
3017
|
-
* @summary Cancel booking.
|
|
3018
|
-
* @param {string} bookingId
|
|
3019
|
-
* @param {*} [options] Override http request option.
|
|
3020
|
-
* @throws {RequiredError}
|
|
3021
|
-
* @memberof BookingsApi
|
|
3022
|
-
*/
|
|
3023
|
-
BookingsApi.prototype.apiV2BookingsBookingIdCancelPut = function (bookingId, options) {
|
|
3024
|
-
var _this = this;
|
|
3025
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdCancelPut(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3026
|
-
};
|
|
3027
|
-
/**
|
|
3028
|
-
*
|
|
3029
|
-
* @summary Delete booking.
|
|
3030
|
-
* @param {string} bookingId
|
|
3031
|
-
* @param {*} [options] Override http request option.
|
|
3032
|
-
* @throws {RequiredError}
|
|
3033
|
-
* @memberof BookingsApi
|
|
3034
|
-
*/
|
|
3035
|
-
BookingsApi.prototype.apiV2BookingsBookingIdDelete = function (bookingId, options) {
|
|
3036
|
-
var _this = this;
|
|
3037
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdDelete(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3038
|
-
};
|
|
3039
2636
|
/**
|
|
3040
2637
|
*
|
|
3041
2638
|
* @summary Get booking.
|
|
@@ -3048,18 +2645,6 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
3048
2645
|
var _this = this;
|
|
3049
2646
|
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3050
2647
|
};
|
|
3051
|
-
/**
|
|
3052
|
-
*
|
|
3053
|
-
* @summary Mark as Paid booking.
|
|
3054
|
-
* @param {string} bookingId
|
|
3055
|
-
* @param {*} [options] Override http request option.
|
|
3056
|
-
* @throws {RequiredError}
|
|
3057
|
-
* @memberof BookingsApi
|
|
3058
|
-
*/
|
|
3059
|
-
BookingsApi.prototype.apiV2BookingsBookingIdPaidPost = function (bookingId, options) {
|
|
3060
|
-
var _this = this;
|
|
3061
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3062
|
-
};
|
|
3063
2648
|
/**
|
|
3064
2649
|
*
|
|
3065
2650
|
* @summary Pay booking.
|
|
@@ -3085,19 +2670,6 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
3085
2670
|
var _this = this;
|
|
3086
2671
|
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3087
2672
|
};
|
|
3088
|
-
/**
|
|
3089
|
-
*
|
|
3090
|
-
* @summary Reject booking.
|
|
3091
|
-
* @param {string} bookingId
|
|
3092
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
3093
|
-
* @param {*} [options] Override http request option.
|
|
3094
|
-
* @throws {RequiredError}
|
|
3095
|
-
* @memberof BookingsApi
|
|
3096
|
-
*/
|
|
3097
|
-
BookingsApi.prototype.apiV2BookingsBookingIdRejectPut = function (bookingId, rejectBookingCommand, options) {
|
|
3098
|
-
var _this = this;
|
|
3099
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3100
|
-
};
|
|
3101
2673
|
/**
|
|
3102
2674
|
*
|
|
3103
2675
|
* @summary Get all bookings.
|
|
@@ -3990,194 +3562,19 @@ var CommunicationsApi = /** @class */ (function (_super) {
|
|
|
3990
3562
|
exports.CommunicationsApi = CommunicationsApi;
|
|
3991
3563
|
/**
|
|
3992
3564
|
* ConsultationsApi - axios parameter creator
|
|
3993
|
-
* @export
|
|
3994
|
-
*/
|
|
3995
|
-
var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
3996
|
-
var _this = this;
|
|
3997
|
-
return {
|
|
3998
|
-
/**
|
|
3999
|
-
*
|
|
4000
|
-
* @summary Approve consultation.
|
|
4001
|
-
* @param {string} consultationId
|
|
4002
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
4003
|
-
* @param {*} [options] Override http request option.
|
|
4004
|
-
* @throws {RequiredError}
|
|
4005
|
-
*/
|
|
4006
|
-
apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
4007
|
-
if (options === void 0) { options = {}; }
|
|
4008
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
4009
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4010
|
-
return __generator(this, function (_a) {
|
|
4011
|
-
switch (_a.label) {
|
|
4012
|
-
case 0:
|
|
4013
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
4014
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdApprovePut', 'consultationId', consultationId);
|
|
4015
|
-
localVarPath = "/api/v2/consultations/{consultationId}/approve"
|
|
4016
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4017
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4018
|
-
if (configuration) {
|
|
4019
|
-
baseOptions = configuration.baseOptions;
|
|
4020
|
-
}
|
|
4021
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
4022
|
-
localVarHeaderParameter = {};
|
|
4023
|
-
localVarQueryParameter = {};
|
|
4024
|
-
// authentication oauth2 required
|
|
4025
|
-
// oauth required
|
|
4026
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
4027
|
-
case 1:
|
|
4028
|
-
// authentication oauth2 required
|
|
4029
|
-
// oauth required
|
|
4030
|
-
_a.sent();
|
|
4031
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4032
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4033
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4034
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4035
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(approveConsultationCommand, localVarRequestOptions, configuration);
|
|
4036
|
-
return [2 /*return*/, {
|
|
4037
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4038
|
-
options: localVarRequestOptions,
|
|
4039
|
-
}];
|
|
4040
|
-
}
|
|
4041
|
-
});
|
|
4042
|
-
});
|
|
4043
|
-
},
|
|
4044
|
-
/**
|
|
4045
|
-
*
|
|
4046
|
-
* @summary Cancel consultation.
|
|
4047
|
-
* @param {string} consultationId
|
|
4048
|
-
* @param {*} [options] Override http request option.
|
|
4049
|
-
* @throws {RequiredError}
|
|
4050
|
-
*/
|
|
4051
|
-
apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
4052
|
-
if (options === void 0) { options = {}; }
|
|
4053
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
4054
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4055
|
-
return __generator(this, function (_a) {
|
|
4056
|
-
switch (_a.label) {
|
|
4057
|
-
case 0:
|
|
4058
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
4059
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdCancelPut', 'consultationId', consultationId);
|
|
4060
|
-
localVarPath = "/api/v2/consultations/{consultationId}/cancel"
|
|
4061
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4062
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4063
|
-
if (configuration) {
|
|
4064
|
-
baseOptions = configuration.baseOptions;
|
|
4065
|
-
}
|
|
4066
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
4067
|
-
localVarHeaderParameter = {};
|
|
4068
|
-
localVarQueryParameter = {};
|
|
4069
|
-
// authentication oauth2 required
|
|
4070
|
-
// oauth required
|
|
4071
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
4072
|
-
case 1:
|
|
4073
|
-
// authentication oauth2 required
|
|
4074
|
-
// oauth required
|
|
4075
|
-
_a.sent();
|
|
4076
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4077
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4078
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4079
|
-
return [2 /*return*/, {
|
|
4080
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4081
|
-
options: localVarRequestOptions,
|
|
4082
|
-
}];
|
|
4083
|
-
}
|
|
4084
|
-
});
|
|
4085
|
-
});
|
|
4086
|
-
},
|
|
4087
|
-
/**
|
|
4088
|
-
*
|
|
4089
|
-
* @summary Delete consultation.
|
|
4090
|
-
* @param {string} consultationId
|
|
4091
|
-
* @param {*} [options] Override http request option.
|
|
4092
|
-
* @throws {RequiredError}
|
|
4093
|
-
*/
|
|
4094
|
-
apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
4095
|
-
if (options === void 0) { options = {}; }
|
|
4096
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
4097
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4098
|
-
return __generator(this, function (_a) {
|
|
4099
|
-
switch (_a.label) {
|
|
4100
|
-
case 0:
|
|
4101
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
4102
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdDelete', 'consultationId', consultationId);
|
|
4103
|
-
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
4104
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4105
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4106
|
-
if (configuration) {
|
|
4107
|
-
baseOptions = configuration.baseOptions;
|
|
4108
|
-
}
|
|
4109
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
4110
|
-
localVarHeaderParameter = {};
|
|
4111
|
-
localVarQueryParameter = {};
|
|
4112
|
-
// authentication oauth2 required
|
|
4113
|
-
// oauth required
|
|
4114
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
4115
|
-
case 1:
|
|
4116
|
-
// authentication oauth2 required
|
|
4117
|
-
// oauth required
|
|
4118
|
-
_a.sent();
|
|
4119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4120
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4121
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4122
|
-
return [2 /*return*/, {
|
|
4123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4124
|
-
options: localVarRequestOptions,
|
|
4125
|
-
}];
|
|
4126
|
-
}
|
|
4127
|
-
});
|
|
4128
|
-
});
|
|
4129
|
-
},
|
|
4130
|
-
/**
|
|
4131
|
-
*
|
|
4132
|
-
* @summary Get consultation.
|
|
4133
|
-
* @param {string} consultationId
|
|
4134
|
-
* @param {*} [options] Override http request option.
|
|
4135
|
-
* @throws {RequiredError}
|
|
4136
|
-
*/
|
|
4137
|
-
apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
4138
|
-
if (options === void 0) { options = {}; }
|
|
4139
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
4140
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4141
|
-
return __generator(this, function (_a) {
|
|
4142
|
-
switch (_a.label) {
|
|
4143
|
-
case 0:
|
|
4144
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
4145
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdGet', 'consultationId', consultationId);
|
|
4146
|
-
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
4147
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4148
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4149
|
-
if (configuration) {
|
|
4150
|
-
baseOptions = configuration.baseOptions;
|
|
4151
|
-
}
|
|
4152
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4153
|
-
localVarHeaderParameter = {};
|
|
4154
|
-
localVarQueryParameter = {};
|
|
4155
|
-
// authentication oauth2 required
|
|
4156
|
-
// oauth required
|
|
4157
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
4158
|
-
case 1:
|
|
4159
|
-
// authentication oauth2 required
|
|
4160
|
-
// oauth required
|
|
4161
|
-
_a.sent();
|
|
4162
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4163
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4164
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4165
|
-
return [2 /*return*/, {
|
|
4166
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4167
|
-
options: localVarRequestOptions,
|
|
4168
|
-
}];
|
|
4169
|
-
}
|
|
4170
|
-
});
|
|
4171
|
-
});
|
|
4172
|
-
},
|
|
3565
|
+
* @export
|
|
3566
|
+
*/
|
|
3567
|
+
var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
3568
|
+
var _this = this;
|
|
3569
|
+
return {
|
|
4173
3570
|
/**
|
|
4174
3571
|
*
|
|
4175
|
-
* @summary
|
|
3572
|
+
* @summary Get consultation.
|
|
4176
3573
|
* @param {string} consultationId
|
|
4177
3574
|
* @param {*} [options] Override http request option.
|
|
4178
3575
|
* @throws {RequiredError}
|
|
4179
3576
|
*/
|
|
4180
|
-
|
|
3577
|
+
apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
4181
3578
|
if (options === void 0) { options = {}; }
|
|
4182
3579
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4183
3580
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4185,14 +3582,14 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4185
3582
|
switch (_a.label) {
|
|
4186
3583
|
case 0:
|
|
4187
3584
|
// verify required parameter 'consultationId' is not null or undefined
|
|
4188
|
-
(0, common_1.assertParamExists)('
|
|
4189
|
-
localVarPath = "/api/v2/consultations/{consultationId}
|
|
3585
|
+
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdGet', 'consultationId', consultationId);
|
|
3586
|
+
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
4190
3587
|
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4191
3588
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4192
3589
|
if (configuration) {
|
|
4193
3590
|
baseOptions = configuration.baseOptions;
|
|
4194
3591
|
}
|
|
4195
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
3592
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4196
3593
|
localVarHeaderParameter = {};
|
|
4197
3594
|
localVarQueryParameter = {};
|
|
4198
3595
|
// authentication oauth2 required
|
|
@@ -4215,13 +3612,12 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4215
3612
|
},
|
|
4216
3613
|
/**
|
|
4217
3614
|
*
|
|
4218
|
-
* @summary
|
|
3615
|
+
* @summary Pay consultation.
|
|
4219
3616
|
* @param {string} consultationId
|
|
4220
|
-
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
4221
3617
|
* @param {*} [options] Override http request option.
|
|
4222
3618
|
* @throws {RequiredError}
|
|
4223
3619
|
*/
|
|
4224
|
-
|
|
3620
|
+
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
4225
3621
|
if (options === void 0) { options = {}; }
|
|
4226
3622
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4227
3623
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4229,14 +3625,14 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4229
3625
|
switch (_a.label) {
|
|
4230
3626
|
case 0:
|
|
4231
3627
|
// verify required parameter 'consultationId' is not null or undefined
|
|
4232
|
-
(0, common_1.assertParamExists)('
|
|
4233
|
-
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
3628
|
+
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId);
|
|
3629
|
+
localVarPath = "/api/v2/consultations/{consultationId}/pay"
|
|
4234
3630
|
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4235
3631
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4236
3632
|
if (configuration) {
|
|
4237
3633
|
baseOptions = configuration.baseOptions;
|
|
4238
3634
|
}
|
|
4239
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
3635
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
4240
3636
|
localVarHeaderParameter = {};
|
|
4241
3637
|
localVarQueryParameter = {};
|
|
4242
3638
|
// authentication oauth2 required
|
|
@@ -4246,11 +3642,9 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4246
3642
|
// authentication oauth2 required
|
|
4247
3643
|
// oauth required
|
|
4248
3644
|
_a.sent();
|
|
4249
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4250
3645
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4251
3646
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4252
3647
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4253
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConsultationCommand, localVarRequestOptions, configuration);
|
|
4254
3648
|
return [2 /*return*/, {
|
|
4255
3649
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4256
3650
|
options: localVarRequestOptions,
|
|
@@ -4261,13 +3655,13 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4261
3655
|
},
|
|
4262
3656
|
/**
|
|
4263
3657
|
*
|
|
4264
|
-
* @summary
|
|
3658
|
+
* @summary Update consultation.
|
|
4265
3659
|
* @param {string} consultationId
|
|
4266
|
-
* @param {
|
|
3660
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
4267
3661
|
* @param {*} [options] Override http request option.
|
|
4268
3662
|
* @throws {RequiredError}
|
|
4269
3663
|
*/
|
|
4270
|
-
|
|
3664
|
+
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
4271
3665
|
if (options === void 0) { options = {}; }
|
|
4272
3666
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4273
3667
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4275,8 +3669,8 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4275
3669
|
switch (_a.label) {
|
|
4276
3670
|
case 0:
|
|
4277
3671
|
// verify required parameter 'consultationId' is not null or undefined
|
|
4278
|
-
(0, common_1.assertParamExists)('
|
|
4279
|
-
localVarPath = "/api/v2/consultations/{consultationId}
|
|
3672
|
+
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId);
|
|
3673
|
+
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
4280
3674
|
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
4281
3675
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4282
3676
|
if (configuration) {
|
|
@@ -4296,7 +3690,7 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
4296
3690
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4297
3691
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4298
3692
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4299
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3693
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConsultationCommand, localVarRequestOptions, configuration);
|
|
4300
3694
|
return [2 /*return*/, {
|
|
4301
3695
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4302
3696
|
options: localVarRequestOptions,
|
|
@@ -4438,67 +3832,6 @@ exports.ConsultationsApiAxiosParamCreator = ConsultationsApiAxiosParamCreator;
|
|
|
4438
3832
|
var ConsultationsApiFp = function (configuration) {
|
|
4439
3833
|
var localVarAxiosParamCreator = (0, exports.ConsultationsApiAxiosParamCreator)(configuration);
|
|
4440
3834
|
return {
|
|
4441
|
-
/**
|
|
4442
|
-
*
|
|
4443
|
-
* @summary Approve consultation.
|
|
4444
|
-
* @param {string} consultationId
|
|
4445
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
4446
|
-
* @param {*} [options] Override http request option.
|
|
4447
|
-
* @throws {RequiredError}
|
|
4448
|
-
*/
|
|
4449
|
-
apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
4450
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4451
|
-
var localVarAxiosArgs;
|
|
4452
|
-
return __generator(this, function (_a) {
|
|
4453
|
-
switch (_a.label) {
|
|
4454
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options)];
|
|
4455
|
-
case 1:
|
|
4456
|
-
localVarAxiosArgs = _a.sent();
|
|
4457
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4458
|
-
}
|
|
4459
|
-
});
|
|
4460
|
-
});
|
|
4461
|
-
},
|
|
4462
|
-
/**
|
|
4463
|
-
*
|
|
4464
|
-
* @summary Cancel consultation.
|
|
4465
|
-
* @param {string} consultationId
|
|
4466
|
-
* @param {*} [options] Override http request option.
|
|
4467
|
-
* @throws {RequiredError}
|
|
4468
|
-
*/
|
|
4469
|
-
apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
4470
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4471
|
-
var localVarAxiosArgs;
|
|
4472
|
-
return __generator(this, function (_a) {
|
|
4473
|
-
switch (_a.label) {
|
|
4474
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdCancelPut(consultationId, options)];
|
|
4475
|
-
case 1:
|
|
4476
|
-
localVarAxiosArgs = _a.sent();
|
|
4477
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4478
|
-
}
|
|
4479
|
-
});
|
|
4480
|
-
});
|
|
4481
|
-
},
|
|
4482
|
-
/**
|
|
4483
|
-
*
|
|
4484
|
-
* @summary Delete consultation.
|
|
4485
|
-
* @param {string} consultationId
|
|
4486
|
-
* @param {*} [options] Override http request option.
|
|
4487
|
-
* @throws {RequiredError}
|
|
4488
|
-
*/
|
|
4489
|
-
apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
4490
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4491
|
-
var localVarAxiosArgs;
|
|
4492
|
-
return __generator(this, function (_a) {
|
|
4493
|
-
switch (_a.label) {
|
|
4494
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdDelete(consultationId, options)];
|
|
4495
|
-
case 1:
|
|
4496
|
-
localVarAxiosArgs = _a.sent();
|
|
4497
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4498
|
-
}
|
|
4499
|
-
});
|
|
4500
|
-
});
|
|
4501
|
-
},
|
|
4502
3835
|
/**
|
|
4503
3836
|
*
|
|
4504
3837
|
* @summary Get consultation.
|
|
@@ -4560,27 +3893,6 @@ var ConsultationsApiFp = function (configuration) {
|
|
|
4560
3893
|
});
|
|
4561
3894
|
});
|
|
4562
3895
|
},
|
|
4563
|
-
/**
|
|
4564
|
-
*
|
|
4565
|
-
* @summary Reject consultation.
|
|
4566
|
-
* @param {string} consultationId
|
|
4567
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
4568
|
-
* @param {*} [options] Override http request option.
|
|
4569
|
-
* @throws {RequiredError}
|
|
4570
|
-
*/
|
|
4571
|
-
apiV2ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
|
|
4572
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4573
|
-
var localVarAxiosArgs;
|
|
4574
|
-
return __generator(this, function (_a) {
|
|
4575
|
-
switch (_a.label) {
|
|
4576
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options)];
|
|
4577
|
-
case 1:
|
|
4578
|
-
localVarAxiosArgs = _a.sent();
|
|
4579
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4580
|
-
}
|
|
4581
|
-
});
|
|
4582
|
-
});
|
|
4583
|
-
},
|
|
4584
3896
|
/**
|
|
4585
3897
|
*
|
|
4586
3898
|
* @summary Get all consultations.
|
|
@@ -4640,37 +3952,6 @@ exports.ConsultationsApiFp = ConsultationsApiFp;
|
|
|
4640
3952
|
var ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
4641
3953
|
var localVarFp = (0, exports.ConsultationsApiFp)(configuration);
|
|
4642
3954
|
return {
|
|
4643
|
-
/**
|
|
4644
|
-
*
|
|
4645
|
-
* @summary Approve consultation.
|
|
4646
|
-
* @param {string} consultationId
|
|
4647
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
4648
|
-
* @param {*} [options] Override http request option.
|
|
4649
|
-
* @throws {RequiredError}
|
|
4650
|
-
*/
|
|
4651
|
-
apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
4652
|
-
return localVarFp.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
4653
|
-
},
|
|
4654
|
-
/**
|
|
4655
|
-
*
|
|
4656
|
-
* @summary Cancel consultation.
|
|
4657
|
-
* @param {string} consultationId
|
|
4658
|
-
* @param {*} [options] Override http request option.
|
|
4659
|
-
* @throws {RequiredError}
|
|
4660
|
-
*/
|
|
4661
|
-
apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
4662
|
-
return localVarFp.apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
4663
|
-
},
|
|
4664
|
-
/**
|
|
4665
|
-
*
|
|
4666
|
-
* @summary Delete consultation.
|
|
4667
|
-
* @param {string} consultationId
|
|
4668
|
-
* @param {*} [options] Override http request option.
|
|
4669
|
-
* @throws {RequiredError}
|
|
4670
|
-
*/
|
|
4671
|
-
apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
4672
|
-
return localVarFp.apiV2ConsultationsConsultationIdDelete(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
4673
|
-
},
|
|
4674
3955
|
/**
|
|
4675
3956
|
*
|
|
4676
3957
|
* @summary Get consultation.
|
|
@@ -4702,17 +3983,6 @@ var ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
4702
3983
|
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
4703
3984
|
return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
4704
3985
|
},
|
|
4705
|
-
/**
|
|
4706
|
-
*
|
|
4707
|
-
* @summary Reject consultation.
|
|
4708
|
-
* @param {string} consultationId
|
|
4709
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
4710
|
-
* @param {*} [options] Override http request option.
|
|
4711
|
-
* @throws {RequiredError}
|
|
4712
|
-
*/
|
|
4713
|
-
apiV2ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
|
|
4714
|
-
return localVarFp.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
4715
|
-
},
|
|
4716
3986
|
/**
|
|
4717
3987
|
*
|
|
4718
3988
|
* @summary Get all consultations.
|
|
@@ -4756,43 +4026,6 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
4756
4026
|
function ConsultationsApi() {
|
|
4757
4027
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4758
4028
|
}
|
|
4759
|
-
/**
|
|
4760
|
-
*
|
|
4761
|
-
* @summary Approve consultation.
|
|
4762
|
-
* @param {string} consultationId
|
|
4763
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
4764
|
-
* @param {*} [options] Override http request option.
|
|
4765
|
-
* @throws {RequiredError}
|
|
4766
|
-
* @memberof ConsultationsApi
|
|
4767
|
-
*/
|
|
4768
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdApprovePut = function (consultationId, approveConsultationCommand, options) {
|
|
4769
|
-
var _this = this;
|
|
4770
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4771
|
-
};
|
|
4772
|
-
/**
|
|
4773
|
-
*
|
|
4774
|
-
* @summary Cancel consultation.
|
|
4775
|
-
* @param {string} consultationId
|
|
4776
|
-
* @param {*} [options] Override http request option.
|
|
4777
|
-
* @throws {RequiredError}
|
|
4778
|
-
* @memberof ConsultationsApi
|
|
4779
|
-
*/
|
|
4780
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdCancelPut = function (consultationId, options) {
|
|
4781
|
-
var _this = this;
|
|
4782
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4783
|
-
};
|
|
4784
|
-
/**
|
|
4785
|
-
*
|
|
4786
|
-
* @summary Delete consultation.
|
|
4787
|
-
* @param {string} consultationId
|
|
4788
|
-
* @param {*} [options] Override http request option.
|
|
4789
|
-
* @throws {RequiredError}
|
|
4790
|
-
* @memberof ConsultationsApi
|
|
4791
|
-
*/
|
|
4792
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdDelete = function (consultationId, options) {
|
|
4793
|
-
var _this = this;
|
|
4794
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdDelete(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4795
|
-
};
|
|
4796
4029
|
/**
|
|
4797
4030
|
*
|
|
4798
4031
|
* @summary Get consultation.
|
|
@@ -4830,19 +4063,6 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
4830
4063
|
var _this = this;
|
|
4831
4064
|
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4832
4065
|
};
|
|
4833
|
-
/**
|
|
4834
|
-
*
|
|
4835
|
-
* @summary Reject consultation.
|
|
4836
|
-
* @param {string} consultationId
|
|
4837
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
4838
|
-
* @param {*} [options] Override http request option.
|
|
4839
|
-
* @throws {RequiredError}
|
|
4840
|
-
* @memberof ConsultationsApi
|
|
4841
|
-
*/
|
|
4842
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdRejectPut = function (consultationId, rejectConsultationCommand, options) {
|
|
4843
|
-
var _this = this;
|
|
4844
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4845
|
-
};
|
|
4846
4066
|
/**
|
|
4847
4067
|
*
|
|
4848
4068
|
* @summary Get all consultations.
|
|
@@ -10740,6 +9960,106 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
10740
9960
|
});
|
|
10741
9961
|
});
|
|
10742
9962
|
},
|
|
9963
|
+
/**
|
|
9964
|
+
*
|
|
9965
|
+
* @summary Get all HospitalHandles.
|
|
9966
|
+
* @param {string} hospitalId
|
|
9967
|
+
* @param {string} [hospitalId2]
|
|
9968
|
+
* @param {string} [id]
|
|
9969
|
+
* @param {SnsType} [snsType]
|
|
9970
|
+
* @param {string} [handle]
|
|
9971
|
+
* @param {number} [page]
|
|
9972
|
+
* @param {number} [limit]
|
|
9973
|
+
* @param {Date} [lastRetrieved]
|
|
9974
|
+
* @param {*} [options] Override http request option.
|
|
9975
|
+
* @throws {RequiredError}
|
|
9976
|
+
*/
|
|
9977
|
+
apiV2HospitalsHospitalIdHandlesGet: function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
|
|
9978
|
+
if (options === void 0) { options = {}; }
|
|
9979
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9980
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9981
|
+
return __generator(this, function (_a) {
|
|
9982
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
9983
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdHandlesGet', 'hospitalId', hospitalId);
|
|
9984
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/handles"
|
|
9985
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
9986
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9987
|
+
if (configuration) {
|
|
9988
|
+
baseOptions = configuration.baseOptions;
|
|
9989
|
+
}
|
|
9990
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9991
|
+
localVarHeaderParameter = {};
|
|
9992
|
+
localVarQueryParameter = {};
|
|
9993
|
+
if (hospitalId2 !== undefined) {
|
|
9994
|
+
localVarQueryParameter['HospitalId'] = hospitalId2;
|
|
9995
|
+
}
|
|
9996
|
+
if (id !== undefined) {
|
|
9997
|
+
localVarQueryParameter['Id'] = id;
|
|
9998
|
+
}
|
|
9999
|
+
if (snsType !== undefined) {
|
|
10000
|
+
localVarQueryParameter['SnsType'] = snsType;
|
|
10001
|
+
}
|
|
10002
|
+
if (handle !== undefined) {
|
|
10003
|
+
localVarQueryParameter['Handle'] = handle;
|
|
10004
|
+
}
|
|
10005
|
+
if (page !== undefined) {
|
|
10006
|
+
localVarQueryParameter['page'] = page;
|
|
10007
|
+
}
|
|
10008
|
+
if (limit !== undefined) {
|
|
10009
|
+
localVarQueryParameter['limit'] = limit;
|
|
10010
|
+
}
|
|
10011
|
+
if (lastRetrieved !== undefined) {
|
|
10012
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
10013
|
+
lastRetrieved.toISOString() :
|
|
10014
|
+
lastRetrieved;
|
|
10015
|
+
}
|
|
10016
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10017
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10018
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10019
|
+
return [2 /*return*/, {
|
|
10020
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10021
|
+
options: localVarRequestOptions,
|
|
10022
|
+
}];
|
|
10023
|
+
});
|
|
10024
|
+
});
|
|
10025
|
+
},
|
|
10026
|
+
/**
|
|
10027
|
+
*
|
|
10028
|
+
* @summary Get HospitalHandle.
|
|
10029
|
+
* @param {string} hospitalId
|
|
10030
|
+
* @param {string} handleId
|
|
10031
|
+
* @param {*} [options] Override http request option.
|
|
10032
|
+
* @throws {RequiredError}
|
|
10033
|
+
*/
|
|
10034
|
+
apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
|
|
10035
|
+
if (options === void 0) { options = {}; }
|
|
10036
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10037
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10038
|
+
return __generator(this, function (_a) {
|
|
10039
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10040
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'hospitalId', hospitalId);
|
|
10041
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
10042
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'handleId', handleId);
|
|
10043
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/handles/{handleId}"
|
|
10044
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
10045
|
+
.replace("{".concat("handleId", "}"), encodeURIComponent(String(handleId)));
|
|
10046
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10047
|
+
if (configuration) {
|
|
10048
|
+
baseOptions = configuration.baseOptions;
|
|
10049
|
+
}
|
|
10050
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10051
|
+
localVarHeaderParameter = {};
|
|
10052
|
+
localVarQueryParameter = {};
|
|
10053
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10054
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10055
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10056
|
+
return [2 /*return*/, {
|
|
10057
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10058
|
+
options: localVarRequestOptions,
|
|
10059
|
+
}];
|
|
10060
|
+
});
|
|
10061
|
+
});
|
|
10062
|
+
},
|
|
10743
10063
|
/**
|
|
10744
10064
|
*
|
|
10745
10065
|
* @summary Get all HospitalMedias.
|
|
@@ -11337,6 +10657,118 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
11337
10657
|
});
|
|
11338
10658
|
});
|
|
11339
10659
|
},
|
|
10660
|
+
/**
|
|
10661
|
+
*
|
|
10662
|
+
* @summary Get all HospitalWorkingDays.
|
|
10663
|
+
* @param {string} hospitalId
|
|
10664
|
+
* @param {string} [hospitalId2]
|
|
10665
|
+
* @param {string} [id]
|
|
10666
|
+
* @param {string} [dayOfWeek]
|
|
10667
|
+
* @param {Date} [timeFrom]
|
|
10668
|
+
* @param {Date} [timeTo]
|
|
10669
|
+
* @param {boolean} [checkHoliday]
|
|
10670
|
+
* @param {number} [page]
|
|
10671
|
+
* @param {number} [limit]
|
|
10672
|
+
* @param {Date} [lastRetrieved]
|
|
10673
|
+
* @param {*} [options] Override http request option.
|
|
10674
|
+
* @throws {RequiredError}
|
|
10675
|
+
*/
|
|
10676
|
+
apiV2HospitalsHospitalIdWorkingdaysGet: function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
|
|
10677
|
+
if (options === void 0) { options = {}; }
|
|
10678
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10679
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10680
|
+
return __generator(this, function (_a) {
|
|
10681
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10682
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdWorkingdaysGet', 'hospitalId', hospitalId);
|
|
10683
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/workingdays"
|
|
10684
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
10685
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10686
|
+
if (configuration) {
|
|
10687
|
+
baseOptions = configuration.baseOptions;
|
|
10688
|
+
}
|
|
10689
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10690
|
+
localVarHeaderParameter = {};
|
|
10691
|
+
localVarQueryParameter = {};
|
|
10692
|
+
if (hospitalId2 !== undefined) {
|
|
10693
|
+
localVarQueryParameter['HospitalId'] = hospitalId2;
|
|
10694
|
+
}
|
|
10695
|
+
if (id !== undefined) {
|
|
10696
|
+
localVarQueryParameter['Id'] = id;
|
|
10697
|
+
}
|
|
10698
|
+
if (dayOfWeek !== undefined) {
|
|
10699
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
10700
|
+
}
|
|
10701
|
+
if (timeFrom !== undefined) {
|
|
10702
|
+
localVarQueryParameter['TimeFrom'] = (timeFrom instanceof Date) ?
|
|
10703
|
+
timeFrom.toISOString() :
|
|
10704
|
+
timeFrom;
|
|
10705
|
+
}
|
|
10706
|
+
if (timeTo !== undefined) {
|
|
10707
|
+
localVarQueryParameter['TimeTo'] = (timeTo instanceof Date) ?
|
|
10708
|
+
timeTo.toISOString() :
|
|
10709
|
+
timeTo;
|
|
10710
|
+
}
|
|
10711
|
+
if (checkHoliday !== undefined) {
|
|
10712
|
+
localVarQueryParameter['CheckHoliday'] = checkHoliday;
|
|
10713
|
+
}
|
|
10714
|
+
if (page !== undefined) {
|
|
10715
|
+
localVarQueryParameter['page'] = page;
|
|
10716
|
+
}
|
|
10717
|
+
if (limit !== undefined) {
|
|
10718
|
+
localVarQueryParameter['limit'] = limit;
|
|
10719
|
+
}
|
|
10720
|
+
if (lastRetrieved !== undefined) {
|
|
10721
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
10722
|
+
lastRetrieved.toISOString() :
|
|
10723
|
+
lastRetrieved;
|
|
10724
|
+
}
|
|
10725
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10726
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10727
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10728
|
+
return [2 /*return*/, {
|
|
10729
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10730
|
+
options: localVarRequestOptions,
|
|
10731
|
+
}];
|
|
10732
|
+
});
|
|
10733
|
+
});
|
|
10734
|
+
},
|
|
10735
|
+
/**
|
|
10736
|
+
*
|
|
10737
|
+
* @summary Get HospitalWorkingDay.
|
|
10738
|
+
* @param {string} hospitalId
|
|
10739
|
+
* @param {string} workingDayId
|
|
10740
|
+
* @param {*} [options] Override http request option.
|
|
10741
|
+
* @throws {RequiredError}
|
|
10742
|
+
*/
|
|
10743
|
+
apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: function (hospitalId, workingDayId, options) {
|
|
10744
|
+
if (options === void 0) { options = {}; }
|
|
10745
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10746
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10747
|
+
return __generator(this, function (_a) {
|
|
10748
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10749
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'hospitalId', hospitalId);
|
|
10750
|
+
// verify required parameter 'workingDayId' is not null or undefined
|
|
10751
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'workingDayId', workingDayId);
|
|
10752
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/workingdays/{workingDayId}"
|
|
10753
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
10754
|
+
.replace("{".concat("workingDayId", "}"), encodeURIComponent(String(workingDayId)));
|
|
10755
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10756
|
+
if (configuration) {
|
|
10757
|
+
baseOptions = configuration.baseOptions;
|
|
10758
|
+
}
|
|
10759
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10760
|
+
localVarHeaderParameter = {};
|
|
10761
|
+
localVarQueryParameter = {};
|
|
10762
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10763
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10764
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10765
|
+
return [2 /*return*/, {
|
|
10766
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10767
|
+
options: localVarRequestOptions,
|
|
10768
|
+
}];
|
|
10769
|
+
});
|
|
10770
|
+
});
|
|
10771
|
+
},
|
|
11340
10772
|
/**
|
|
11341
10773
|
*
|
|
11342
10774
|
* @summary Get all Hospitals.
|
|
@@ -11732,6 +11164,54 @@ var HospitalsApiFp = function (configuration) {
|
|
|
11732
11164
|
});
|
|
11733
11165
|
});
|
|
11734
11166
|
},
|
|
11167
|
+
/**
|
|
11168
|
+
*
|
|
11169
|
+
* @summary Get all HospitalHandles.
|
|
11170
|
+
* @param {string} hospitalId
|
|
11171
|
+
* @param {string} [hospitalId2]
|
|
11172
|
+
* @param {string} [id]
|
|
11173
|
+
* @param {SnsType} [snsType]
|
|
11174
|
+
* @param {string} [handle]
|
|
11175
|
+
* @param {number} [page]
|
|
11176
|
+
* @param {number} [limit]
|
|
11177
|
+
* @param {Date} [lastRetrieved]
|
|
11178
|
+
* @param {*} [options] Override http request option.
|
|
11179
|
+
* @throws {RequiredError}
|
|
11180
|
+
*/
|
|
11181
|
+
apiV2HospitalsHospitalIdHandlesGet: function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
|
|
11182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11183
|
+
var localVarAxiosArgs;
|
|
11184
|
+
return __generator(this, function (_a) {
|
|
11185
|
+
switch (_a.label) {
|
|
11186
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options)];
|
|
11187
|
+
case 1:
|
|
11188
|
+
localVarAxiosArgs = _a.sent();
|
|
11189
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11190
|
+
}
|
|
11191
|
+
});
|
|
11192
|
+
});
|
|
11193
|
+
},
|
|
11194
|
+
/**
|
|
11195
|
+
*
|
|
11196
|
+
* @summary Get HospitalHandle.
|
|
11197
|
+
* @param {string} hospitalId
|
|
11198
|
+
* @param {string} handleId
|
|
11199
|
+
* @param {*} [options] Override http request option.
|
|
11200
|
+
* @throws {RequiredError}
|
|
11201
|
+
*/
|
|
11202
|
+
apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
|
|
11203
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11204
|
+
var localVarAxiosArgs;
|
|
11205
|
+
return __generator(this, function (_a) {
|
|
11206
|
+
switch (_a.label) {
|
|
11207
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options)];
|
|
11208
|
+
case 1:
|
|
11209
|
+
localVarAxiosArgs = _a.sent();
|
|
11210
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11211
|
+
}
|
|
11212
|
+
});
|
|
11213
|
+
});
|
|
11214
|
+
},
|
|
11735
11215
|
/**
|
|
11736
11216
|
*
|
|
11737
11217
|
* @summary Get all HospitalMedias.
|
|
@@ -11984,6 +11464,56 @@ var HospitalsApiFp = function (configuration) {
|
|
|
11984
11464
|
});
|
|
11985
11465
|
});
|
|
11986
11466
|
},
|
|
11467
|
+
/**
|
|
11468
|
+
*
|
|
11469
|
+
* @summary Get all HospitalWorkingDays.
|
|
11470
|
+
* @param {string} hospitalId
|
|
11471
|
+
* @param {string} [hospitalId2]
|
|
11472
|
+
* @param {string} [id]
|
|
11473
|
+
* @param {string} [dayOfWeek]
|
|
11474
|
+
* @param {Date} [timeFrom]
|
|
11475
|
+
* @param {Date} [timeTo]
|
|
11476
|
+
* @param {boolean} [checkHoliday]
|
|
11477
|
+
* @param {number} [page]
|
|
11478
|
+
* @param {number} [limit]
|
|
11479
|
+
* @param {Date} [lastRetrieved]
|
|
11480
|
+
* @param {*} [options] Override http request option.
|
|
11481
|
+
* @throws {RequiredError}
|
|
11482
|
+
*/
|
|
11483
|
+
apiV2HospitalsHospitalIdWorkingdaysGet: function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
|
|
11484
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11485
|
+
var localVarAxiosArgs;
|
|
11486
|
+
return __generator(this, function (_a) {
|
|
11487
|
+
switch (_a.label) {
|
|
11488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options)];
|
|
11489
|
+
case 1:
|
|
11490
|
+
localVarAxiosArgs = _a.sent();
|
|
11491
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11492
|
+
}
|
|
11493
|
+
});
|
|
11494
|
+
});
|
|
11495
|
+
},
|
|
11496
|
+
/**
|
|
11497
|
+
*
|
|
11498
|
+
* @summary Get HospitalWorkingDay.
|
|
11499
|
+
* @param {string} hospitalId
|
|
11500
|
+
* @param {string} workingDayId
|
|
11501
|
+
* @param {*} [options] Override http request option.
|
|
11502
|
+
* @throws {RequiredError}
|
|
11503
|
+
*/
|
|
11504
|
+
apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: function (hospitalId, workingDayId, options) {
|
|
11505
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11506
|
+
var localVarAxiosArgs;
|
|
11507
|
+
return __generator(this, function (_a) {
|
|
11508
|
+
switch (_a.label) {
|
|
11509
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options)];
|
|
11510
|
+
case 1:
|
|
11511
|
+
localVarAxiosArgs = _a.sent();
|
|
11512
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11513
|
+
}
|
|
11514
|
+
});
|
|
11515
|
+
});
|
|
11516
|
+
},
|
|
11987
11517
|
/**
|
|
11988
11518
|
*
|
|
11989
11519
|
* @summary Get all Hospitals.
|
|
@@ -12198,6 +11728,34 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
12198
11728
|
apiV2HospitalsHospitalIdGet: function (hospitalId, languageCode, returnDefaultValue, options) {
|
|
12199
11729
|
return localVarFp.apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
12200
11730
|
},
|
|
11731
|
+
/**
|
|
11732
|
+
*
|
|
11733
|
+
* @summary Get all HospitalHandles.
|
|
11734
|
+
* @param {string} hospitalId
|
|
11735
|
+
* @param {string} [hospitalId2]
|
|
11736
|
+
* @param {string} [id]
|
|
11737
|
+
* @param {SnsType} [snsType]
|
|
11738
|
+
* @param {string} [handle]
|
|
11739
|
+
* @param {number} [page]
|
|
11740
|
+
* @param {number} [limit]
|
|
11741
|
+
* @param {Date} [lastRetrieved]
|
|
11742
|
+
* @param {*} [options] Override http request option.
|
|
11743
|
+
* @throws {RequiredError}
|
|
11744
|
+
*/
|
|
11745
|
+
apiV2HospitalsHospitalIdHandlesGet: function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
|
|
11746
|
+
return localVarFp.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
11747
|
+
},
|
|
11748
|
+
/**
|
|
11749
|
+
*
|
|
11750
|
+
* @summary Get HospitalHandle.
|
|
11751
|
+
* @param {string} hospitalId
|
|
11752
|
+
* @param {string} handleId
|
|
11753
|
+
* @param {*} [options] Override http request option.
|
|
11754
|
+
* @throws {RequiredError}
|
|
11755
|
+
*/
|
|
11756
|
+
apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
|
|
11757
|
+
return localVarFp.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then(function (request) { return request(axios, basePath); });
|
|
11758
|
+
},
|
|
12201
11759
|
/**
|
|
12202
11760
|
*
|
|
12203
11761
|
* @summary Get all HospitalMedias.
|
|
@@ -12360,6 +11918,36 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
12360
11918
|
apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
|
|
12361
11919
|
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
12362
11920
|
},
|
|
11921
|
+
/**
|
|
11922
|
+
*
|
|
11923
|
+
* @summary Get all HospitalWorkingDays.
|
|
11924
|
+
* @param {string} hospitalId
|
|
11925
|
+
* @param {string} [hospitalId2]
|
|
11926
|
+
* @param {string} [id]
|
|
11927
|
+
* @param {string} [dayOfWeek]
|
|
11928
|
+
* @param {Date} [timeFrom]
|
|
11929
|
+
* @param {Date} [timeTo]
|
|
11930
|
+
* @param {boolean} [checkHoliday]
|
|
11931
|
+
* @param {number} [page]
|
|
11932
|
+
* @param {number} [limit]
|
|
11933
|
+
* @param {Date} [lastRetrieved]
|
|
11934
|
+
* @param {*} [options] Override http request option.
|
|
11935
|
+
* @throws {RequiredError}
|
|
11936
|
+
*/
|
|
11937
|
+
apiV2HospitalsHospitalIdWorkingdaysGet: function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
|
|
11938
|
+
return localVarFp.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
11939
|
+
},
|
|
11940
|
+
/**
|
|
11941
|
+
*
|
|
11942
|
+
* @summary Get HospitalWorkingDay.
|
|
11943
|
+
* @param {string} hospitalId
|
|
11944
|
+
* @param {string} workingDayId
|
|
11945
|
+
* @param {*} [options] Override http request option.
|
|
11946
|
+
* @throws {RequiredError}
|
|
11947
|
+
*/
|
|
11948
|
+
apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: function (hospitalId, workingDayId, options) {
|
|
11949
|
+
return localVarFp.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then(function (request) { return request(axios, basePath); });
|
|
11950
|
+
},
|
|
12363
11951
|
/**
|
|
12364
11952
|
*
|
|
12365
11953
|
* @summary Get all Hospitals.
|
|
@@ -12578,6 +12166,38 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
12578
12166
|
var _this = this;
|
|
12579
12167
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12580
12168
|
};
|
|
12169
|
+
/**
|
|
12170
|
+
*
|
|
12171
|
+
* @summary Get all HospitalHandles.
|
|
12172
|
+
* @param {string} hospitalId
|
|
12173
|
+
* @param {string} [hospitalId2]
|
|
12174
|
+
* @param {string} [id]
|
|
12175
|
+
* @param {SnsType} [snsType]
|
|
12176
|
+
* @param {string} [handle]
|
|
12177
|
+
* @param {number} [page]
|
|
12178
|
+
* @param {number} [limit]
|
|
12179
|
+
* @param {Date} [lastRetrieved]
|
|
12180
|
+
* @param {*} [options] Override http request option.
|
|
12181
|
+
* @throws {RequiredError}
|
|
12182
|
+
* @memberof HospitalsApi
|
|
12183
|
+
*/
|
|
12184
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdHandlesGet = function (hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options) {
|
|
12185
|
+
var _this = this;
|
|
12186
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12187
|
+
};
|
|
12188
|
+
/**
|
|
12189
|
+
*
|
|
12190
|
+
* @summary Get HospitalHandle.
|
|
12191
|
+
* @param {string} hospitalId
|
|
12192
|
+
* @param {string} handleId
|
|
12193
|
+
* @param {*} [options] Override http request option.
|
|
12194
|
+
* @throws {RequiredError}
|
|
12195
|
+
* @memberof HospitalsApi
|
|
12196
|
+
*/
|
|
12197
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdHandlesHandleIdGet = function (hospitalId, handleId, options) {
|
|
12198
|
+
var _this = this;
|
|
12199
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12200
|
+
};
|
|
12581
12201
|
/**
|
|
12582
12202
|
*
|
|
12583
12203
|
* @summary Get all HospitalMedias.
|
|
@@ -12758,6 +12378,40 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
12758
12378
|
var _this = this;
|
|
12759
12379
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12760
12380
|
};
|
|
12381
|
+
/**
|
|
12382
|
+
*
|
|
12383
|
+
* @summary Get all HospitalWorkingDays.
|
|
12384
|
+
* @param {string} hospitalId
|
|
12385
|
+
* @param {string} [hospitalId2]
|
|
12386
|
+
* @param {string} [id]
|
|
12387
|
+
* @param {string} [dayOfWeek]
|
|
12388
|
+
* @param {Date} [timeFrom]
|
|
12389
|
+
* @param {Date} [timeTo]
|
|
12390
|
+
* @param {boolean} [checkHoliday]
|
|
12391
|
+
* @param {number} [page]
|
|
12392
|
+
* @param {number} [limit]
|
|
12393
|
+
* @param {Date} [lastRetrieved]
|
|
12394
|
+
* @param {*} [options] Override http request option.
|
|
12395
|
+
* @throws {RequiredError}
|
|
12396
|
+
* @memberof HospitalsApi
|
|
12397
|
+
*/
|
|
12398
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdWorkingdaysGet = function (hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options) {
|
|
12399
|
+
var _this = this;
|
|
12400
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12401
|
+
};
|
|
12402
|
+
/**
|
|
12403
|
+
*
|
|
12404
|
+
* @summary Get HospitalWorkingDay.
|
|
12405
|
+
* @param {string} hospitalId
|
|
12406
|
+
* @param {string} workingDayId
|
|
12407
|
+
* @param {*} [options] Override http request option.
|
|
12408
|
+
* @throws {RequiredError}
|
|
12409
|
+
* @memberof HospitalsApi
|
|
12410
|
+
*/
|
|
12411
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet = function (hospitalId, workingDayId, options) {
|
|
12412
|
+
var _this = this;
|
|
12413
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12414
|
+
};
|
|
12761
12415
|
/**
|
|
12762
12416
|
*
|
|
12763
12417
|
* @summary Get all Hospitals.
|