ch-admin-api-client-typescript 2.2.8 → 2.2.16

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.js CHANGED
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
76
76
  return (mod && mod.__esModule) ? mod : { "default": mod };
77
77
  };
78
78
  Object.defineProperty(exports, "__esModule", { value: true });
79
- exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
80
80
  var axios_1 = __importDefault(require("axios"));
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -1808,22 +1808,16 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1808
1808
  },
1809
1809
  /**
1810
1810
  *
1811
- * @summary GetAll ArticleContributors.
1811
+ * @summary GetAll ArticleTags.
1812
1812
  * @param {string} articleId
1813
- * @param {string} [articleName]
1814
- * @param {string} [contributorId]
1815
- * @param {string} [contributorName]
1816
- * @param {string} [email]
1817
- * @param {string} [description]
1818
- * @param {string} [website]
1819
- * @param {ContributionType} [contributionType]
1813
+ * @param {string} [tagId]
1820
1814
  * @param {number} [page]
1821
1815
  * @param {number} [limit]
1822
1816
  * @param {Date} [lastRetrieved]
1823
1817
  * @param {*} [options] Override http request option.
1824
1818
  * @throws {RequiredError}
1825
1819
  */
1826
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1820
+ apiV1ArticlesArticleIdTagsGet: function (articleId, tagId, page, limit, lastRetrieved, options) {
1827
1821
  if (options === void 0) { options = {}; }
1828
1822
  return __awaiter(_this, void 0, void 0, function () {
1829
1823
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1848,26 +1842,8 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1848
1842
  // authentication oauth2 required
1849
1843
  // oauth required
1850
1844
  _a.sent();
1851
- if (articleName !== undefined) {
1852
- localVarQueryParameter['ArticleName'] = articleName;
1853
- }
1854
- if (contributorId !== undefined) {
1855
- localVarQueryParameter['ContributorId'] = contributorId;
1856
- }
1857
- if (contributorName !== undefined) {
1858
- localVarQueryParameter['ContributorName'] = contributorName;
1859
- }
1860
- if (email !== undefined) {
1861
- localVarQueryParameter['Email'] = email;
1862
- }
1863
- if (description !== undefined) {
1864
- localVarQueryParameter['Description'] = description;
1865
- }
1866
- if (website !== undefined) {
1867
- localVarQueryParameter['Website'] = website;
1868
- }
1869
- if (contributionType !== undefined) {
1870
- localVarQueryParameter['ContributionType'] = contributionType;
1845
+ if (tagId !== undefined) {
1846
+ localVarQueryParameter['TagId'] = tagId;
1871
1847
  }
1872
1848
  if (page !== undefined) {
1873
1849
  localVarQueryParameter['page'] = page;
@@ -1893,12 +1869,13 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1893
1869
  },
1894
1870
  /**
1895
1871
  *
1872
+ * @summary Create ArticleTag.
1896
1873
  * @param {string} articleId
1897
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
1874
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
1898
1875
  * @param {*} [options] Override http request option.
1899
1876
  * @throws {RequiredError}
1900
1877
  */
1901
- apiV1ArticlesArticleIdTagsPost: function (articleId, createArticleContributorCommand, options) {
1878
+ apiV1ArticlesArticleIdTagsPost: function (articleId, createArticleTagCommand, options) {
1902
1879
  if (options === void 0) { options = {}; }
1903
1880
  return __awaiter(_this, void 0, void 0, function () {
1904
1881
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1927,7 +1904,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1927
1904
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1928
1905
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1929
1906
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1930
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createArticleContributorCommand, localVarRequestOptions, configuration);
1907
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createArticleTagCommand, localVarRequestOptions, configuration);
1931
1908
  return [2 /*return*/, {
1932
1909
  url: common_1.toPathString(localVarUrlObj),
1933
1910
  options: localVarRequestOptions,
@@ -1938,14 +1915,14 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1938
1915
  },
1939
1916
  /**
1940
1917
  *
1941
- * @summary Delete ArticleContributor.
1918
+ * @summary Delete ArticleTag.
1942
1919
  * @param {string} articleId
1943
- * @param {string} contributorId
1944
1920
  * @param {string} tagId
1921
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
1945
1922
  * @param {*} [options] Override http request option.
1946
1923
  * @throws {RequiredError}
1947
1924
  */
1948
- apiV1ArticlesArticleIdTagsTagIdDelete: function (articleId, contributorId, tagId, options) {
1925
+ apiV1ArticlesArticleIdTagsTagIdDelete: function (articleId, tagId, deleteArticleTagCommand, options) {
1949
1926
  if (options === void 0) { options = {}; }
1950
1927
  return __awaiter(_this, void 0, void 0, function () {
1951
1928
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1954,13 +1931,10 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1954
1931
  case 0:
1955
1932
  // verify required parameter 'articleId' is not null or undefined
1956
1933
  common_1.assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'articleId', articleId);
1957
- // verify required parameter 'contributorId' is not null or undefined
1958
- common_1.assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'contributorId', contributorId);
1959
1934
  // verify required parameter 'tagId' is not null or undefined
1960
1935
  common_1.assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'tagId', tagId);
1961
1936
  localVarPath = "/api/v1/articles/{articleId}/tags/{tagId}"
1962
1937
  .replace("{" + "articleId" + "}", encodeURIComponent(String(articleId)))
1963
- .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)))
1964
1938
  .replace("{" + "tagId" + "}", encodeURIComponent(String(tagId)));
1965
1939
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1966
1940
  if (configuration) {
@@ -1976,9 +1950,11 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1976
1950
  // authentication oauth2 required
1977
1951
  // oauth required
1978
1952
  _a.sent();
1953
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1979
1954
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1980
1955
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1981
1956
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1957
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(deleteArticleTagCommand, localVarRequestOptions, configuration);
1982
1958
  return [2 /*return*/, {
1983
1959
  url: common_1.toPathString(localVarUrlObj),
1984
1960
  options: localVarRequestOptions,
@@ -1989,14 +1965,13 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1989
1965
  },
1990
1966
  /**
1991
1967
  *
1992
- * @summary Get ArticleContributor.
1968
+ * @summary Get ArticleTag.
1993
1969
  * @param {string} articleId
1994
- * @param {string} contributorId
1995
1970
  * @param {string} tagId
1996
1971
  * @param {*} [options] Override http request option.
1997
1972
  * @throws {RequiredError}
1998
1973
  */
1999
- apiV1ArticlesArticleIdTagsTagIdGet: function (articleId, contributorId, tagId, options) {
1974
+ apiV1ArticlesArticleIdTagsTagIdGet: function (articleId, tagId, options) {
2000
1975
  if (options === void 0) { options = {}; }
2001
1976
  return __awaiter(_this, void 0, void 0, function () {
2002
1977
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2005,13 +1980,10 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
2005
1980
  case 0:
2006
1981
  // verify required parameter 'articleId' is not null or undefined
2007
1982
  common_1.assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'articleId', articleId);
2008
- // verify required parameter 'contributorId' is not null or undefined
2009
- common_1.assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'contributorId', contributorId);
2010
1983
  // verify required parameter 'tagId' is not null or undefined
2011
1984
  common_1.assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'tagId', tagId);
2012
1985
  localVarPath = "/api/v1/articles/{articleId}/tags/{tagId}"
2013
1986
  .replace("{" + "articleId" + "}", encodeURIComponent(String(articleId)))
2014
- .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)))
2015
1987
  .replace("{" + "tagId" + "}", encodeURIComponent(String(tagId)));
2016
1988
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2017
1989
  if (configuration) {
@@ -2646,27 +2618,21 @@ exports.ArticlesApiFp = function (configuration) {
2646
2618
  },
2647
2619
  /**
2648
2620
  *
2649
- * @summary GetAll ArticleContributors.
2621
+ * @summary GetAll ArticleTags.
2650
2622
  * @param {string} articleId
2651
- * @param {string} [articleName]
2652
- * @param {string} [contributorId]
2653
- * @param {string} [contributorName]
2654
- * @param {string} [email]
2655
- * @param {string} [description]
2656
- * @param {string} [website]
2657
- * @param {ContributionType} [contributionType]
2623
+ * @param {string} [tagId]
2658
2624
  * @param {number} [page]
2659
2625
  * @param {number} [limit]
2660
2626
  * @param {Date} [lastRetrieved]
2661
2627
  * @param {*} [options] Override http request option.
2662
2628
  * @throws {RequiredError}
2663
2629
  */
2664
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2630
+ apiV1ArticlesArticleIdTagsGet: function (articleId, tagId, page, limit, lastRetrieved, options) {
2665
2631
  return __awaiter(this, void 0, void 0, function () {
2666
2632
  var localVarAxiosArgs;
2667
2633
  return __generator(this, function (_a) {
2668
2634
  switch (_a.label) {
2669
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2635
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options)];
2670
2636
  case 1:
2671
2637
  localVarAxiosArgs = _a.sent();
2672
2638
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2676,17 +2642,18 @@ exports.ArticlesApiFp = function (configuration) {
2676
2642
  },
2677
2643
  /**
2678
2644
  *
2645
+ * @summary Create ArticleTag.
2679
2646
  * @param {string} articleId
2680
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
2647
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
2681
2648
  * @param {*} [options] Override http request option.
2682
2649
  * @throws {RequiredError}
2683
2650
  */
2684
- apiV1ArticlesArticleIdTagsPost: function (articleId, createArticleContributorCommand, options) {
2651
+ apiV1ArticlesArticleIdTagsPost: function (articleId, createArticleTagCommand, options) {
2685
2652
  return __awaiter(this, void 0, void 0, function () {
2686
2653
  var localVarAxiosArgs;
2687
2654
  return __generator(this, function (_a) {
2688
2655
  switch (_a.label) {
2689
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options)];
2656
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options)];
2690
2657
  case 1:
2691
2658
  localVarAxiosArgs = _a.sent();
2692
2659
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2696,19 +2663,19 @@ exports.ArticlesApiFp = function (configuration) {
2696
2663
  },
2697
2664
  /**
2698
2665
  *
2699
- * @summary Delete ArticleContributor.
2666
+ * @summary Delete ArticleTag.
2700
2667
  * @param {string} articleId
2701
- * @param {string} contributorId
2702
2668
  * @param {string} tagId
2669
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
2703
2670
  * @param {*} [options] Override http request option.
2704
2671
  * @throws {RequiredError}
2705
2672
  */
2706
- apiV1ArticlesArticleIdTagsTagIdDelete: function (articleId, contributorId, tagId, options) {
2673
+ apiV1ArticlesArticleIdTagsTagIdDelete: function (articleId, tagId, deleteArticleTagCommand, options) {
2707
2674
  return __awaiter(this, void 0, void 0, function () {
2708
2675
  var localVarAxiosArgs;
2709
2676
  return __generator(this, function (_a) {
2710
2677
  switch (_a.label) {
2711
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options)];
2678
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options)];
2712
2679
  case 1:
2713
2680
  localVarAxiosArgs = _a.sent();
2714
2681
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2718,19 +2685,18 @@ exports.ArticlesApiFp = function (configuration) {
2718
2685
  },
2719
2686
  /**
2720
2687
  *
2721
- * @summary Get ArticleContributor.
2688
+ * @summary Get ArticleTag.
2722
2689
  * @param {string} articleId
2723
- * @param {string} contributorId
2724
2690
  * @param {string} tagId
2725
2691
  * @param {*} [options] Override http request option.
2726
2692
  * @throws {RequiredError}
2727
2693
  */
2728
- apiV1ArticlesArticleIdTagsTagIdGet: function (articleId, contributorId, tagId, options) {
2694
+ apiV1ArticlesArticleIdTagsTagIdGet: function (articleId, tagId, options) {
2729
2695
  return __awaiter(this, void 0, void 0, function () {
2730
2696
  var localVarAxiosArgs;
2731
2697
  return __generator(this, function (_a) {
2732
2698
  switch (_a.label) {
2733
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options)];
2699
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options)];
2734
2700
  case 1:
2735
2701
  localVarAxiosArgs = _a.sent();
2736
2702
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3042,57 +3008,51 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3042
3008
  },
3043
3009
  /**
3044
3010
  *
3045
- * @summary GetAll ArticleContributors.
3011
+ * @summary GetAll ArticleTags.
3046
3012
  * @param {string} articleId
3047
- * @param {string} [articleName]
3048
- * @param {string} [contributorId]
3049
- * @param {string} [contributorName]
3050
- * @param {string} [email]
3051
- * @param {string} [description]
3052
- * @param {string} [website]
3053
- * @param {ContributionType} [contributionType]
3013
+ * @param {string} [tagId]
3054
3014
  * @param {number} [page]
3055
3015
  * @param {number} [limit]
3056
3016
  * @param {Date} [lastRetrieved]
3057
3017
  * @param {*} [options] Override http request option.
3058
3018
  * @throws {RequiredError}
3059
3019
  */
3060
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3061
- return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3020
+ apiV1ArticlesArticleIdTagsGet: function (articleId, tagId, page, limit, lastRetrieved, options) {
3021
+ return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3062
3022
  },
3063
3023
  /**
3064
3024
  *
3025
+ * @summary Create ArticleTag.
3065
3026
  * @param {string} articleId
3066
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
3027
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
3067
3028
  * @param {*} [options] Override http request option.
3068
3029
  * @throws {RequiredError}
3069
3030
  */
3070
- apiV1ArticlesArticleIdTagsPost: function (articleId, createArticleContributorCommand, options) {
3071
- return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options).then(function (request) { return request(axios, basePath); });
3031
+ apiV1ArticlesArticleIdTagsPost: function (articleId, createArticleTagCommand, options) {
3032
+ return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then(function (request) { return request(axios, basePath); });
3072
3033
  },
3073
3034
  /**
3074
3035
  *
3075
- * @summary Delete ArticleContributor.
3036
+ * @summary Delete ArticleTag.
3076
3037
  * @param {string} articleId
3077
- * @param {string} contributorId
3078
3038
  * @param {string} tagId
3039
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
3079
3040
  * @param {*} [options] Override http request option.
3080
3041
  * @throws {RequiredError}
3081
3042
  */
3082
- apiV1ArticlesArticleIdTagsTagIdDelete: function (articleId, contributorId, tagId, options) {
3083
- return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options).then(function (request) { return request(axios, basePath); });
3043
+ apiV1ArticlesArticleIdTagsTagIdDelete: function (articleId, tagId, deleteArticleTagCommand, options) {
3044
+ return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options).then(function (request) { return request(axios, basePath); });
3084
3045
  },
3085
3046
  /**
3086
3047
  *
3087
- * @summary Get ArticleContributor.
3048
+ * @summary Get ArticleTag.
3088
3049
  * @param {string} articleId
3089
- * @param {string} contributorId
3090
3050
  * @param {string} tagId
3091
3051
  * @param {*} [options] Override http request option.
3092
3052
  * @throws {RequiredError}
3093
3053
  */
3094
- apiV1ArticlesArticleIdTagsTagIdGet: function (articleId, contributorId, tagId, options) {
3095
- return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options).then(function (request) { return request(axios, basePath); });
3054
+ apiV1ArticlesArticleIdTagsTagIdGet: function (articleId, tagId, options) {
3055
+ return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then(function (request) { return request(axios, basePath); });
3096
3056
  },
3097
3057
  /**
3098
3058
  *
@@ -3408,15 +3368,9 @@ var ArticlesApi = /** @class */ (function (_super) {
3408
3368
  };
3409
3369
  /**
3410
3370
  *
3411
- * @summary GetAll ArticleContributors.
3371
+ * @summary GetAll ArticleTags.
3412
3372
  * @param {string} articleId
3413
- * @param {string} [articleName]
3414
- * @param {string} [contributorId]
3415
- * @param {string} [contributorName]
3416
- * @param {string} [email]
3417
- * @param {string} [description]
3418
- * @param {string} [website]
3419
- * @param {ContributionType} [contributionType]
3373
+ * @param {string} [tagId]
3420
3374
  * @param {number} [page]
3421
3375
  * @param {number} [limit]
3422
3376
  * @param {Date} [lastRetrieved]
@@ -3424,49 +3378,49 @@ var ArticlesApi = /** @class */ (function (_super) {
3424
3378
  * @throws {RequiredError}
3425
3379
  * @memberof ArticlesApi
3426
3380
  */
3427
- ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3381
+ ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, tagId, page, limit, lastRetrieved, options) {
3428
3382
  var _this = this;
3429
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3383
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3430
3384
  };
3431
3385
  /**
3432
3386
  *
3387
+ * @summary Create ArticleTag.
3433
3388
  * @param {string} articleId
3434
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
3389
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
3435
3390
  * @param {*} [options] Override http request option.
3436
3391
  * @throws {RequiredError}
3437
3392
  * @memberof ArticlesApi
3438
3393
  */
3439
- ArticlesApi.prototype.apiV1ArticlesArticleIdTagsPost = function (articleId, createArticleContributorCommand, options) {
3394
+ ArticlesApi.prototype.apiV1ArticlesArticleIdTagsPost = function (articleId, createArticleTagCommand, options) {
3440
3395
  var _this = this;
3441
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
3396
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
3442
3397
  };
3443
3398
  /**
3444
3399
  *
3445
- * @summary Delete ArticleContributor.
3400
+ * @summary Delete ArticleTag.
3446
3401
  * @param {string} articleId
3447
- * @param {string} contributorId
3448
3402
  * @param {string} tagId
3403
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
3449
3404
  * @param {*} [options] Override http request option.
3450
3405
  * @throws {RequiredError}
3451
3406
  * @memberof ArticlesApi
3452
3407
  */
3453
- ArticlesApi.prototype.apiV1ArticlesArticleIdTagsTagIdDelete = function (articleId, contributorId, tagId, options) {
3408
+ ArticlesApi.prototype.apiV1ArticlesArticleIdTagsTagIdDelete = function (articleId, tagId, deleteArticleTagCommand, options) {
3454
3409
  var _this = this;
3455
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3410
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
3456
3411
  };
3457
3412
  /**
3458
3413
  *
3459
- * @summary Get ArticleContributor.
3414
+ * @summary Get ArticleTag.
3460
3415
  * @param {string} articleId
3461
- * @param {string} contributorId
3462
3416
  * @param {string} tagId
3463
3417
  * @param {*} [options] Override http request option.
3464
3418
  * @throws {RequiredError}
3465
3419
  * @memberof ArticlesApi
3466
3420
  */
3467
- ArticlesApi.prototype.apiV1ArticlesArticleIdTagsTagIdGet = function (articleId, contributorId, tagId, options) {
3421
+ ArticlesApi.prototype.apiV1ArticlesArticleIdTagsTagIdGet = function (articleId, tagId, options) {
3468
3422
  var _this = this;
3469
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3423
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3470
3424
  };
3471
3425
  /**
3472
3426
  *
@@ -18076,32 +18030,41 @@ var LanguagesApi = /** @class */ (function (_super) {
18076
18030
  }(base_1.BaseAPI));
18077
18031
  exports.LanguagesApi = LanguagesApi;
18078
18032
  /**
18079
- * NotificationsApi - axios parameter creator
18033
+ * ManagersApi - axios parameter creator
18080
18034
  * @export
18081
18035
  */
18082
- exports.NotificationsApiAxiosParamCreator = function (configuration) {
18036
+ exports.ManagersApiAxiosParamCreator = function (configuration) {
18083
18037
  var _this = this;
18084
18038
  return {
18085
18039
  /**
18086
18040
  *
18087
- * @summary Check notification.
18088
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18041
+ * @summary Get all Managers.
18042
+ * @param {string} [hospitalId]
18043
+ * @param {string} [id]
18044
+ * @param {string} [fullname]
18045
+ * @param {string} [email]
18046
+ * @param {Gender} [gender]
18047
+ * @param {Date} [dateOfBirth]
18048
+ * @param {Date} [created]
18049
+ * @param {number} [page]
18050
+ * @param {number} [limit]
18051
+ * @param {Date} [lastRetrieved]
18089
18052
  * @param {*} [options] Override http request option.
18090
18053
  * @throws {RequiredError}
18091
18054
  */
18092
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18055
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18093
18056
  if (options === void 0) { options = {}; }
18094
18057
  return __awaiter(_this, void 0, void 0, function () {
18095
18058
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18096
18059
  return __generator(this, function (_a) {
18097
18060
  switch (_a.label) {
18098
18061
  case 0:
18099
- localVarPath = "/api/v1/notifications/check";
18062
+ localVarPath = "/api/v1/managers";
18100
18063
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18101
18064
  if (configuration) {
18102
18065
  baseOptions = configuration.baseOptions;
18103
18066
  }
18104
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18067
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18105
18068
  localVarHeaderParameter = {};
18106
18069
  localVarQueryParameter = {};
18107
18070
  // authentication oauth2 required
@@ -18111,11 +18074,45 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18111
18074
  // authentication oauth2 required
18112
18075
  // oauth required
18113
18076
  _a.sent();
18114
- localVarHeaderParameter['Content-Type'] = 'application/json';
18077
+ if (hospitalId !== undefined) {
18078
+ localVarQueryParameter['HospitalId'] = hospitalId;
18079
+ }
18080
+ if (id !== undefined) {
18081
+ localVarQueryParameter['Id'] = id;
18082
+ }
18083
+ if (fullname !== undefined) {
18084
+ localVarQueryParameter['Fullname'] = fullname;
18085
+ }
18086
+ if (email !== undefined) {
18087
+ localVarQueryParameter['Email'] = email;
18088
+ }
18089
+ if (gender !== undefined) {
18090
+ localVarQueryParameter['Gender'] = gender;
18091
+ }
18092
+ if (dateOfBirth !== undefined) {
18093
+ localVarQueryParameter['DateOfBirth'] = (dateOfBirth instanceof Date) ?
18094
+ dateOfBirth.toISOString() :
18095
+ dateOfBirth;
18096
+ }
18097
+ if (created !== undefined) {
18098
+ localVarQueryParameter['Created'] = (created instanceof Date) ?
18099
+ created.toISOString() :
18100
+ created;
18101
+ }
18102
+ if (page !== undefined) {
18103
+ localVarQueryParameter['page'] = page;
18104
+ }
18105
+ if (limit !== undefined) {
18106
+ localVarQueryParameter['limit'] = limit;
18107
+ }
18108
+ if (lastRetrieved !== undefined) {
18109
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18110
+ lastRetrieved.toISOString() :
18111
+ lastRetrieved;
18112
+ }
18115
18113
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18116
18114
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18117
18115
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18118
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
18119
18116
  return [2 /*return*/, {
18120
18117
  url: common_1.toPathString(localVarUrlObj),
18121
18118
  options: localVarRequestOptions,
@@ -18126,28 +18123,27 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18126
18123
  },
18127
18124
  /**
18128
18125
  *
18129
- * @summary Get all notifications.
18130
- * @param {NotificationCode} [notificationCode]
18131
- * @param {boolean} [unreadCountOnly]
18132
- * @param {number} [page]
18133
- * @param {number} [limit]
18134
- * @param {Date} [lastRetrieved]
18126
+ * @summary Delete Manager.
18127
+ * @param {string} managerId
18135
18128
  * @param {*} [options] Override http request option.
18136
18129
  * @throws {RequiredError}
18137
18130
  */
18138
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18131
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
18139
18132
  if (options === void 0) { options = {}; }
18140
18133
  return __awaiter(_this, void 0, void 0, function () {
18141
18134
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18142
18135
  return __generator(this, function (_a) {
18143
18136
  switch (_a.label) {
18144
18137
  case 0:
18145
- localVarPath = "/api/v1/notifications";
18138
+ // verify required parameter 'managerId' is not null or undefined
18139
+ common_1.assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId);
18140
+ localVarPath = "/api/v1/managers/{managerId}"
18141
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
18146
18142
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18147
18143
  if (configuration) {
18148
18144
  baseOptions = configuration.baseOptions;
18149
18145
  }
18150
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18146
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
18151
18147
  localVarHeaderParameter = {};
18152
18148
  localVarQueryParameter = {};
18153
18149
  // authentication oauth2 required
@@ -18157,23 +18153,6 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18157
18153
  // authentication oauth2 required
18158
18154
  // oauth required
18159
18155
  _a.sent();
18160
- if (notificationCode !== undefined) {
18161
- localVarQueryParameter['NotificationCode'] = notificationCode;
18162
- }
18163
- if (unreadCountOnly !== undefined) {
18164
- localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
18165
- }
18166
- if (page !== undefined) {
18167
- localVarQueryParameter['page'] = page;
18168
- }
18169
- if (limit !== undefined) {
18170
- localVarQueryParameter['limit'] = limit;
18171
- }
18172
- if (lastRetrieved !== undefined) {
18173
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18174
- lastRetrieved.toISOString() :
18175
- lastRetrieved;
18176
- }
18177
18156
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18178
18157
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18179
18158
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -18185,136 +18164,1920 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18185
18164
  });
18186
18165
  });
18187
18166
  },
18188
- };
18189
- };
18190
- /**
18191
- * NotificationsApi - functional programming interface
18192
- * @export
18193
- */
18194
- exports.NotificationsApiFp = function (configuration) {
18195
- var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
18196
- return {
18197
18167
  /**
18198
18168
  *
18199
- * @summary Check notification.
18200
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18169
+ * @summary Get Manager.
18170
+ * @param {string} managerId
18201
18171
  * @param {*} [options] Override http request option.
18202
18172
  * @throws {RequiredError}
18203
18173
  */
18204
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18205
- return __awaiter(this, void 0, void 0, function () {
18206
- var localVarAxiosArgs;
18174
+ apiV1ManagersManagerIdGet: function (managerId, options) {
18175
+ if (options === void 0) { options = {}; }
18176
+ return __awaiter(_this, void 0, void 0, function () {
18177
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18207
18178
  return __generator(this, function (_a) {
18208
18179
  switch (_a.label) {
18209
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
18180
+ case 0:
18181
+ // verify required parameter 'managerId' is not null or undefined
18182
+ common_1.assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId);
18183
+ localVarPath = "/api/v1/managers/{managerId}"
18184
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
18185
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18186
+ if (configuration) {
18187
+ baseOptions = configuration.baseOptions;
18188
+ }
18189
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18190
+ localVarHeaderParameter = {};
18191
+ localVarQueryParameter = {};
18192
+ // authentication oauth2 required
18193
+ // oauth required
18194
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18210
18195
  case 1:
18211
- localVarAxiosArgs = _a.sent();
18212
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18196
+ // authentication oauth2 required
18197
+ // oauth required
18198
+ _a.sent();
18199
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18200
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18201
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18202
+ return [2 /*return*/, {
18203
+ url: common_1.toPathString(localVarUrlObj),
18204
+ options: localVarRequestOptions,
18205
+ }];
18213
18206
  }
18214
18207
  });
18215
18208
  });
18216
18209
  },
18217
18210
  /**
18218
18211
  *
18219
- * @summary Get all notifications.
18220
- * @param {NotificationCode} [notificationCode]
18221
- * @param {boolean} [unreadCountOnly]
18222
- * @param {number} [page]
18223
- * @param {number} [limit]
18224
- * @param {Date} [lastRetrieved]
18212
+ * @summary Update Manager.
18213
+ * @param {string} managerId
18214
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18225
18215
  * @param {*} [options] Override http request option.
18226
18216
  * @throws {RequiredError}
18227
18217
  */
18228
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18229
- return __awaiter(this, void 0, void 0, function () {
18230
- var localVarAxiosArgs;
18218
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
18219
+ if (options === void 0) { options = {}; }
18220
+ return __awaiter(_this, void 0, void 0, function () {
18221
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18231
18222
  return __generator(this, function (_a) {
18232
18223
  switch (_a.label) {
18233
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
18224
+ case 0:
18225
+ // verify required parameter 'managerId' is not null or undefined
18226
+ common_1.assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId);
18227
+ localVarPath = "/api/v1/managers/{managerId}"
18228
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
18229
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18230
+ if (configuration) {
18231
+ baseOptions = configuration.baseOptions;
18232
+ }
18233
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
18234
+ localVarHeaderParameter = {};
18235
+ localVarQueryParameter = {};
18236
+ // authentication oauth2 required
18237
+ // oauth required
18238
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18234
18239
  case 1:
18235
- localVarAxiosArgs = _a.sent();
18236
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18240
+ // authentication oauth2 required
18241
+ // oauth required
18242
+ _a.sent();
18243
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18244
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18245
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18246
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18247
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration);
18248
+ return [2 /*return*/, {
18249
+ url: common_1.toPathString(localVarUrlObj),
18250
+ options: localVarRequestOptions,
18251
+ }];
18237
18252
  }
18238
18253
  });
18239
18254
  });
18240
18255
  },
18241
- };
18242
- };
18243
- /**
18244
- * NotificationsApi - factory interface
18245
- * @export
18246
- */
18247
- exports.NotificationsApiFactory = function (configuration, basePath, axios) {
18248
- var localVarFp = exports.NotificationsApiFp(configuration);
18249
- return {
18250
18256
  /**
18251
18257
  *
18252
- * @summary Check notification.
18253
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18258
+ * @summary Create a Manager.
18259
+ * @param {CreateManagerCommand} [createManagerCommand]
18254
18260
  * @param {*} [options] Override http request option.
18255
18261
  * @throws {RequiredError}
18256
18262
  */
18257
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18258
- return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
18263
+ apiV1ManagersPost: function (createManagerCommand, options) {
18264
+ if (options === void 0) { options = {}; }
18265
+ return __awaiter(_this, void 0, void 0, function () {
18266
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18267
+ return __generator(this, function (_a) {
18268
+ switch (_a.label) {
18269
+ case 0:
18270
+ localVarPath = "/api/v1/managers";
18271
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18272
+ if (configuration) {
18273
+ baseOptions = configuration.baseOptions;
18274
+ }
18275
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18276
+ localVarHeaderParameter = {};
18277
+ localVarQueryParameter = {};
18278
+ // authentication oauth2 required
18279
+ // oauth required
18280
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18281
+ case 1:
18282
+ // authentication oauth2 required
18283
+ // oauth required
18284
+ _a.sent();
18285
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18286
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18287
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18288
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18289
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration);
18290
+ return [2 /*return*/, {
18291
+ url: common_1.toPathString(localVarUrlObj),
18292
+ options: localVarRequestOptions,
18293
+ }];
18294
+ }
18295
+ });
18296
+ });
18259
18297
  },
18298
+ };
18299
+ };
18300
+ /**
18301
+ * ManagersApi - functional programming interface
18302
+ * @export
18303
+ */
18304
+ exports.ManagersApiFp = function (configuration) {
18305
+ var localVarAxiosParamCreator = exports.ManagersApiAxiosParamCreator(configuration);
18306
+ return {
18260
18307
  /**
18261
18308
  *
18262
- * @summary Get all notifications.
18263
- * @param {NotificationCode} [notificationCode]
18264
- * @param {boolean} [unreadCountOnly]
18309
+ * @summary Get all Managers.
18310
+ * @param {string} [hospitalId]
18311
+ * @param {string} [id]
18312
+ * @param {string} [fullname]
18313
+ * @param {string} [email]
18314
+ * @param {Gender} [gender]
18315
+ * @param {Date} [dateOfBirth]
18316
+ * @param {Date} [created]
18265
18317
  * @param {number} [page]
18266
18318
  * @param {number} [limit]
18267
18319
  * @param {Date} [lastRetrieved]
18268
18320
  * @param {*} [options] Override http request option.
18269
18321
  * @throws {RequiredError}
18270
18322
  */
18271
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18272
- return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18323
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18324
+ return __awaiter(this, void 0, void 0, function () {
18325
+ var localVarAxiosArgs;
18326
+ return __generator(this, function (_a) {
18327
+ switch (_a.label) {
18328
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options)];
18329
+ case 1:
18330
+ localVarAxiosArgs = _a.sent();
18331
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18332
+ }
18333
+ });
18334
+ });
18335
+ },
18336
+ /**
18337
+ *
18338
+ * @summary Delete Manager.
18339
+ * @param {string} managerId
18340
+ * @param {*} [options] Override http request option.
18341
+ * @throws {RequiredError}
18342
+ */
18343
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
18344
+ return __awaiter(this, void 0, void 0, function () {
18345
+ var localVarAxiosArgs;
18346
+ return __generator(this, function (_a) {
18347
+ switch (_a.label) {
18348
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdDelete(managerId, options)];
18349
+ case 1:
18350
+ localVarAxiosArgs = _a.sent();
18351
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18352
+ }
18353
+ });
18354
+ });
18355
+ },
18356
+ /**
18357
+ *
18358
+ * @summary Get Manager.
18359
+ * @param {string} managerId
18360
+ * @param {*} [options] Override http request option.
18361
+ * @throws {RequiredError}
18362
+ */
18363
+ apiV1ManagersManagerIdGet: function (managerId, options) {
18364
+ return __awaiter(this, void 0, void 0, function () {
18365
+ var localVarAxiosArgs;
18366
+ return __generator(this, function (_a) {
18367
+ switch (_a.label) {
18368
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdGet(managerId, options)];
18369
+ case 1:
18370
+ localVarAxiosArgs = _a.sent();
18371
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18372
+ }
18373
+ });
18374
+ });
18375
+ },
18376
+ /**
18377
+ *
18378
+ * @summary Update Manager.
18379
+ * @param {string} managerId
18380
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18381
+ * @param {*} [options] Override http request option.
18382
+ * @throws {RequiredError}
18383
+ */
18384
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
18385
+ return __awaiter(this, void 0, void 0, function () {
18386
+ var localVarAxiosArgs;
18387
+ return __generator(this, function (_a) {
18388
+ switch (_a.label) {
18389
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options)];
18390
+ case 1:
18391
+ localVarAxiosArgs = _a.sent();
18392
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18393
+ }
18394
+ });
18395
+ });
18396
+ },
18397
+ /**
18398
+ *
18399
+ * @summary Create a Manager.
18400
+ * @param {CreateManagerCommand} [createManagerCommand]
18401
+ * @param {*} [options] Override http request option.
18402
+ * @throws {RequiredError}
18403
+ */
18404
+ apiV1ManagersPost: function (createManagerCommand, options) {
18405
+ return __awaiter(this, void 0, void 0, function () {
18406
+ var localVarAxiosArgs;
18407
+ return __generator(this, function (_a) {
18408
+ switch (_a.label) {
18409
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersPost(createManagerCommand, options)];
18410
+ case 1:
18411
+ localVarAxiosArgs = _a.sent();
18412
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18413
+ }
18414
+ });
18415
+ });
18273
18416
  },
18274
18417
  };
18275
18418
  };
18276
18419
  /**
18277
- * NotificationsApi - object-oriented interface
18420
+ * ManagersApi - factory interface
18278
18421
  * @export
18279
- * @class NotificationsApi
18422
+ */
18423
+ exports.ManagersApiFactory = function (configuration, basePath, axios) {
18424
+ var localVarFp = exports.ManagersApiFp(configuration);
18425
+ return {
18426
+ /**
18427
+ *
18428
+ * @summary Get all Managers.
18429
+ * @param {string} [hospitalId]
18430
+ * @param {string} [id]
18431
+ * @param {string} [fullname]
18432
+ * @param {string} [email]
18433
+ * @param {Gender} [gender]
18434
+ * @param {Date} [dateOfBirth]
18435
+ * @param {Date} [created]
18436
+ * @param {number} [page]
18437
+ * @param {number} [limit]
18438
+ * @param {Date} [lastRetrieved]
18439
+ * @param {*} [options] Override http request option.
18440
+ * @throws {RequiredError}
18441
+ */
18442
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18443
+ return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18444
+ },
18445
+ /**
18446
+ *
18447
+ * @summary Delete Manager.
18448
+ * @param {string} managerId
18449
+ * @param {*} [options] Override http request option.
18450
+ * @throws {RequiredError}
18451
+ */
18452
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
18453
+ return localVarFp.apiV1ManagersManagerIdDelete(managerId, options).then(function (request) { return request(axios, basePath); });
18454
+ },
18455
+ /**
18456
+ *
18457
+ * @summary Get Manager.
18458
+ * @param {string} managerId
18459
+ * @param {*} [options] Override http request option.
18460
+ * @throws {RequiredError}
18461
+ */
18462
+ apiV1ManagersManagerIdGet: function (managerId, options) {
18463
+ return localVarFp.apiV1ManagersManagerIdGet(managerId, options).then(function (request) { return request(axios, basePath); });
18464
+ },
18465
+ /**
18466
+ *
18467
+ * @summary Update Manager.
18468
+ * @param {string} managerId
18469
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18470
+ * @param {*} [options] Override http request option.
18471
+ * @throws {RequiredError}
18472
+ */
18473
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
18474
+ return localVarFp.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then(function (request) { return request(axios, basePath); });
18475
+ },
18476
+ /**
18477
+ *
18478
+ * @summary Create a Manager.
18479
+ * @param {CreateManagerCommand} [createManagerCommand]
18480
+ * @param {*} [options] Override http request option.
18481
+ * @throws {RequiredError}
18482
+ */
18483
+ apiV1ManagersPost: function (createManagerCommand, options) {
18484
+ return localVarFp.apiV1ManagersPost(createManagerCommand, options).then(function (request) { return request(axios, basePath); });
18485
+ },
18486
+ };
18487
+ };
18488
+ /**
18489
+ * ManagersApi - object-oriented interface
18490
+ * @export
18491
+ * @class ManagersApi
18280
18492
  * @extends {BaseAPI}
18281
18493
  */
18282
- var NotificationsApi = /** @class */ (function (_super) {
18283
- __extends(NotificationsApi, _super);
18284
- function NotificationsApi() {
18494
+ var ManagersApi = /** @class */ (function (_super) {
18495
+ __extends(ManagersApi, _super);
18496
+ function ManagersApi() {
18285
18497
  return _super !== null && _super.apply(this, arguments) || this;
18286
18498
  }
18287
18499
  /**
18288
18500
  *
18289
- * @summary Check notification.
18290
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18501
+ * @summary Get all Managers.
18502
+ * @param {string} [hospitalId]
18503
+ * @param {string} [id]
18504
+ * @param {string} [fullname]
18505
+ * @param {string} [email]
18506
+ * @param {Gender} [gender]
18507
+ * @param {Date} [dateOfBirth]
18508
+ * @param {Date} [created]
18509
+ * @param {number} [page]
18510
+ * @param {number} [limit]
18511
+ * @param {Date} [lastRetrieved]
18291
18512
  * @param {*} [options] Override http request option.
18292
18513
  * @throws {RequiredError}
18293
- * @memberof NotificationsApi
18514
+ * @memberof ManagersApi
18294
18515
  */
18295
- NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
18516
+ ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18296
18517
  var _this = this;
18297
- return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18518
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18298
18519
  };
18299
18520
  /**
18300
18521
  *
18301
- * @summary Get all notifications.
18302
- * @param {NotificationCode} [notificationCode]
18303
- * @param {boolean} [unreadCountOnly]
18304
- * @param {number} [page]
18305
- * @param {number} [limit]
18306
- * @param {Date} [lastRetrieved]
18522
+ * @summary Delete Manager.
18523
+ * @param {string} managerId
18307
18524
  * @param {*} [options] Override http request option.
18308
18525
  * @throws {RequiredError}
18309
- * @memberof NotificationsApi
18526
+ * @memberof ManagersApi
18310
18527
  */
18311
- NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18528
+ ManagersApi.prototype.apiV1ManagersManagerIdDelete = function (managerId, options) {
18312
18529
  var _this = this;
18313
- return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18530
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdDelete(managerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
18314
18531
  };
18315
- return NotificationsApi;
18532
+ /**
18533
+ *
18534
+ * @summary Get Manager.
18535
+ * @param {string} managerId
18536
+ * @param {*} [options] Override http request option.
18537
+ * @throws {RequiredError}
18538
+ * @memberof ManagersApi
18539
+ */
18540
+ ManagersApi.prototype.apiV1ManagersManagerIdGet = function (managerId, options) {
18541
+ var _this = this;
18542
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdGet(managerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
18543
+ };
18544
+ /**
18545
+ *
18546
+ * @summary Update Manager.
18547
+ * @param {string} managerId
18548
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18549
+ * @param {*} [options] Override http request option.
18550
+ * @throws {RequiredError}
18551
+ * @memberof ManagersApi
18552
+ */
18553
+ ManagersApi.prototype.apiV1ManagersManagerIdPut = function (managerId, updateManagerCommand, options) {
18554
+ var _this = this;
18555
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18556
+ };
18557
+ /**
18558
+ *
18559
+ * @summary Create a Manager.
18560
+ * @param {CreateManagerCommand} [createManagerCommand]
18561
+ * @param {*} [options] Override http request option.
18562
+ * @throws {RequiredError}
18563
+ * @memberof ManagersApi
18564
+ */
18565
+ ManagersApi.prototype.apiV1ManagersPost = function (createManagerCommand, options) {
18566
+ var _this = this;
18567
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersPost(createManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18568
+ };
18569
+ return ManagersApi;
18316
18570
  }(base_1.BaseAPI));
18317
- exports.NotificationsApi = NotificationsApi;
18571
+ exports.ManagersApi = ManagersApi;
18572
+ /**
18573
+ * NotificationsApi - axios parameter creator
18574
+ * @export
18575
+ */
18576
+ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18577
+ var _this = this;
18578
+ return {
18579
+ /**
18580
+ *
18581
+ * @summary Check notification.
18582
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18583
+ * @param {*} [options] Override http request option.
18584
+ * @throws {RequiredError}
18585
+ */
18586
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18587
+ if (options === void 0) { options = {}; }
18588
+ return __awaiter(_this, void 0, void 0, function () {
18589
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18590
+ return __generator(this, function (_a) {
18591
+ switch (_a.label) {
18592
+ case 0:
18593
+ localVarPath = "/api/v1/notifications/check";
18594
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18595
+ if (configuration) {
18596
+ baseOptions = configuration.baseOptions;
18597
+ }
18598
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18599
+ localVarHeaderParameter = {};
18600
+ localVarQueryParameter = {};
18601
+ // authentication oauth2 required
18602
+ // oauth required
18603
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18604
+ case 1:
18605
+ // authentication oauth2 required
18606
+ // oauth required
18607
+ _a.sent();
18608
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18609
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18610
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18611
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18612
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
18613
+ return [2 /*return*/, {
18614
+ url: common_1.toPathString(localVarUrlObj),
18615
+ options: localVarRequestOptions,
18616
+ }];
18617
+ }
18618
+ });
18619
+ });
18620
+ },
18621
+ /**
18622
+ *
18623
+ * @summary Get all notifications.
18624
+ * @param {NotificationCode} [notificationCode]
18625
+ * @param {boolean} [unreadCountOnly]
18626
+ * @param {number} [page]
18627
+ * @param {number} [limit]
18628
+ * @param {Date} [lastRetrieved]
18629
+ * @param {*} [options] Override http request option.
18630
+ * @throws {RequiredError}
18631
+ */
18632
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18633
+ if (options === void 0) { options = {}; }
18634
+ return __awaiter(_this, void 0, void 0, function () {
18635
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18636
+ return __generator(this, function (_a) {
18637
+ switch (_a.label) {
18638
+ case 0:
18639
+ localVarPath = "/api/v1/notifications";
18640
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18641
+ if (configuration) {
18642
+ baseOptions = configuration.baseOptions;
18643
+ }
18644
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18645
+ localVarHeaderParameter = {};
18646
+ localVarQueryParameter = {};
18647
+ // authentication oauth2 required
18648
+ // oauth required
18649
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18650
+ case 1:
18651
+ // authentication oauth2 required
18652
+ // oauth required
18653
+ _a.sent();
18654
+ if (notificationCode !== undefined) {
18655
+ localVarQueryParameter['NotificationCode'] = notificationCode;
18656
+ }
18657
+ if (unreadCountOnly !== undefined) {
18658
+ localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
18659
+ }
18660
+ if (page !== undefined) {
18661
+ localVarQueryParameter['page'] = page;
18662
+ }
18663
+ if (limit !== undefined) {
18664
+ localVarQueryParameter['limit'] = limit;
18665
+ }
18666
+ if (lastRetrieved !== undefined) {
18667
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18668
+ lastRetrieved.toISOString() :
18669
+ lastRetrieved;
18670
+ }
18671
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18672
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18673
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18674
+ return [2 /*return*/, {
18675
+ url: common_1.toPathString(localVarUrlObj),
18676
+ options: localVarRequestOptions,
18677
+ }];
18678
+ }
18679
+ });
18680
+ });
18681
+ },
18682
+ };
18683
+ };
18684
+ /**
18685
+ * NotificationsApi - functional programming interface
18686
+ * @export
18687
+ */
18688
+ exports.NotificationsApiFp = function (configuration) {
18689
+ var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
18690
+ return {
18691
+ /**
18692
+ *
18693
+ * @summary Check notification.
18694
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18695
+ * @param {*} [options] Override http request option.
18696
+ * @throws {RequiredError}
18697
+ */
18698
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18699
+ return __awaiter(this, void 0, void 0, function () {
18700
+ var localVarAxiosArgs;
18701
+ return __generator(this, function (_a) {
18702
+ switch (_a.label) {
18703
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
18704
+ case 1:
18705
+ localVarAxiosArgs = _a.sent();
18706
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18707
+ }
18708
+ });
18709
+ });
18710
+ },
18711
+ /**
18712
+ *
18713
+ * @summary Get all notifications.
18714
+ * @param {NotificationCode} [notificationCode]
18715
+ * @param {boolean} [unreadCountOnly]
18716
+ * @param {number} [page]
18717
+ * @param {number} [limit]
18718
+ * @param {Date} [lastRetrieved]
18719
+ * @param {*} [options] Override http request option.
18720
+ * @throws {RequiredError}
18721
+ */
18722
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18723
+ return __awaiter(this, void 0, void 0, function () {
18724
+ var localVarAxiosArgs;
18725
+ return __generator(this, function (_a) {
18726
+ switch (_a.label) {
18727
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
18728
+ case 1:
18729
+ localVarAxiosArgs = _a.sent();
18730
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18731
+ }
18732
+ });
18733
+ });
18734
+ },
18735
+ };
18736
+ };
18737
+ /**
18738
+ * NotificationsApi - factory interface
18739
+ * @export
18740
+ */
18741
+ exports.NotificationsApiFactory = function (configuration, basePath, axios) {
18742
+ var localVarFp = exports.NotificationsApiFp(configuration);
18743
+ return {
18744
+ /**
18745
+ *
18746
+ * @summary Check notification.
18747
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18748
+ * @param {*} [options] Override http request option.
18749
+ * @throws {RequiredError}
18750
+ */
18751
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18752
+ return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
18753
+ },
18754
+ /**
18755
+ *
18756
+ * @summary Get all notifications.
18757
+ * @param {NotificationCode} [notificationCode]
18758
+ * @param {boolean} [unreadCountOnly]
18759
+ * @param {number} [page]
18760
+ * @param {number} [limit]
18761
+ * @param {Date} [lastRetrieved]
18762
+ * @param {*} [options] Override http request option.
18763
+ * @throws {RequiredError}
18764
+ */
18765
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18766
+ return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18767
+ },
18768
+ };
18769
+ };
18770
+ /**
18771
+ * NotificationsApi - object-oriented interface
18772
+ * @export
18773
+ * @class NotificationsApi
18774
+ * @extends {BaseAPI}
18775
+ */
18776
+ var NotificationsApi = /** @class */ (function (_super) {
18777
+ __extends(NotificationsApi, _super);
18778
+ function NotificationsApi() {
18779
+ return _super !== null && _super.apply(this, arguments) || this;
18780
+ }
18781
+ /**
18782
+ *
18783
+ * @summary Check notification.
18784
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18785
+ * @param {*} [options] Override http request option.
18786
+ * @throws {RequiredError}
18787
+ * @memberof NotificationsApi
18788
+ */
18789
+ NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
18790
+ var _this = this;
18791
+ return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18792
+ };
18793
+ /**
18794
+ *
18795
+ * @summary Get all notifications.
18796
+ * @param {NotificationCode} [notificationCode]
18797
+ * @param {boolean} [unreadCountOnly]
18798
+ * @param {number} [page]
18799
+ * @param {number} [limit]
18800
+ * @param {Date} [lastRetrieved]
18801
+ * @param {*} [options] Override http request option.
18802
+ * @throws {RequiredError}
18803
+ * @memberof NotificationsApi
18804
+ */
18805
+ NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18806
+ var _this = this;
18807
+ return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18808
+ };
18809
+ return NotificationsApi;
18810
+ }(base_1.BaseAPI));
18811
+ exports.NotificationsApi = NotificationsApi;
18812
+ /**
18813
+ * PlansApi - axios parameter creator
18814
+ * @export
18815
+ */
18816
+ exports.PlansApiAxiosParamCreator = function (configuration) {
18817
+ var _this = this;
18818
+ return {
18819
+ /**
18820
+ *
18821
+ * @summary Get all plans.
18822
+ * @param {string} [id]
18823
+ * @param {string} [name]
18824
+ * @param {number} [page]
18825
+ * @param {number} [limit]
18826
+ * @param {Date} [lastRetrieved]
18827
+ * @param {*} [options] Override http request option.
18828
+ * @throws {RequiredError}
18829
+ */
18830
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
18831
+ if (options === void 0) { options = {}; }
18832
+ return __awaiter(_this, void 0, void 0, function () {
18833
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18834
+ return __generator(this, function (_a) {
18835
+ switch (_a.label) {
18836
+ case 0:
18837
+ localVarPath = "/api/v1/plans";
18838
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18839
+ if (configuration) {
18840
+ baseOptions = configuration.baseOptions;
18841
+ }
18842
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18843
+ localVarHeaderParameter = {};
18844
+ localVarQueryParameter = {};
18845
+ // authentication oauth2 required
18846
+ // oauth required
18847
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18848
+ case 1:
18849
+ // authentication oauth2 required
18850
+ // oauth required
18851
+ _a.sent();
18852
+ if (id !== undefined) {
18853
+ localVarQueryParameter['Id'] = id;
18854
+ }
18855
+ if (name !== undefined) {
18856
+ localVarQueryParameter['Name'] = name;
18857
+ }
18858
+ if (page !== undefined) {
18859
+ localVarQueryParameter['page'] = page;
18860
+ }
18861
+ if (limit !== undefined) {
18862
+ localVarQueryParameter['limit'] = limit;
18863
+ }
18864
+ if (lastRetrieved !== undefined) {
18865
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18866
+ lastRetrieved.toISOString() :
18867
+ lastRetrieved;
18868
+ }
18869
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18870
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18871
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18872
+ return [2 /*return*/, {
18873
+ url: common_1.toPathString(localVarUrlObj),
18874
+ options: localVarRequestOptions,
18875
+ }];
18876
+ }
18877
+ });
18878
+ });
18879
+ },
18880
+ /**
18881
+ *
18882
+ * @summary Delete plan.
18883
+ * @param {string} planId
18884
+ * @param {*} [options] Override http request option.
18885
+ * @throws {RequiredError}
18886
+ */
18887
+ apiV1PlansPlanIdDelete: function (planId, options) {
18888
+ if (options === void 0) { options = {}; }
18889
+ return __awaiter(_this, void 0, void 0, function () {
18890
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18891
+ return __generator(this, function (_a) {
18892
+ switch (_a.label) {
18893
+ case 0:
18894
+ // verify required parameter 'planId' is not null or undefined
18895
+ common_1.assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId);
18896
+ localVarPath = "/api/v1/plans/{planId}"
18897
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
18898
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18899
+ if (configuration) {
18900
+ baseOptions = configuration.baseOptions;
18901
+ }
18902
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
18903
+ localVarHeaderParameter = {};
18904
+ localVarQueryParameter = {};
18905
+ // authentication oauth2 required
18906
+ // oauth required
18907
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18908
+ case 1:
18909
+ // authentication oauth2 required
18910
+ // oauth required
18911
+ _a.sent();
18912
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18913
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18914
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18915
+ return [2 /*return*/, {
18916
+ url: common_1.toPathString(localVarUrlObj),
18917
+ options: localVarRequestOptions,
18918
+ }];
18919
+ }
18920
+ });
18921
+ });
18922
+ },
18923
+ /**
18924
+ *
18925
+ * @summary Get plan.
18926
+ * @param {string} planId
18927
+ * @param {*} [options] Override http request option.
18928
+ * @throws {RequiredError}
18929
+ */
18930
+ apiV1PlansPlanIdGet: function (planId, options) {
18931
+ if (options === void 0) { options = {}; }
18932
+ return __awaiter(_this, void 0, void 0, function () {
18933
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18934
+ return __generator(this, function (_a) {
18935
+ switch (_a.label) {
18936
+ case 0:
18937
+ // verify required parameter 'planId' is not null or undefined
18938
+ common_1.assertParamExists('apiV1PlansPlanIdGet', 'planId', planId);
18939
+ localVarPath = "/api/v1/plans/{planId}"
18940
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
18941
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18942
+ if (configuration) {
18943
+ baseOptions = configuration.baseOptions;
18944
+ }
18945
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18946
+ localVarHeaderParameter = {};
18947
+ localVarQueryParameter = {};
18948
+ // authentication oauth2 required
18949
+ // oauth required
18950
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18951
+ case 1:
18952
+ // authentication oauth2 required
18953
+ // oauth required
18954
+ _a.sent();
18955
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18956
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18957
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18958
+ return [2 /*return*/, {
18959
+ url: common_1.toPathString(localVarUrlObj),
18960
+ options: localVarRequestOptions,
18961
+ }];
18962
+ }
18963
+ });
18964
+ });
18965
+ },
18966
+ /**
18967
+ *
18968
+ * @summary Get all plan hospital.
18969
+ * @param {string} planId
18970
+ * @param {number} [page]
18971
+ * @param {number} [limit]
18972
+ * @param {Date} [lastRetrieved]
18973
+ * @param {*} [options] Override http request option.
18974
+ * @throws {RequiredError}
18975
+ */
18976
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
18977
+ if (options === void 0) { options = {}; }
18978
+ return __awaiter(_this, void 0, void 0, function () {
18979
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18980
+ return __generator(this, function (_a) {
18981
+ switch (_a.label) {
18982
+ case 0:
18983
+ // verify required parameter 'planId' is not null or undefined
18984
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId);
18985
+ localVarPath = "/api/v1/plans/{planId}/hospitals"
18986
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
18987
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18988
+ if (configuration) {
18989
+ baseOptions = configuration.baseOptions;
18990
+ }
18991
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18992
+ localVarHeaderParameter = {};
18993
+ localVarQueryParameter = {};
18994
+ // authentication oauth2 required
18995
+ // oauth required
18996
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18997
+ case 1:
18998
+ // authentication oauth2 required
18999
+ // oauth required
19000
+ _a.sent();
19001
+ if (page !== undefined) {
19002
+ localVarQueryParameter['page'] = page;
19003
+ }
19004
+ if (limit !== undefined) {
19005
+ localVarQueryParameter['limit'] = limit;
19006
+ }
19007
+ if (lastRetrieved !== undefined) {
19008
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19009
+ lastRetrieved.toISOString() :
19010
+ lastRetrieved;
19011
+ }
19012
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19013
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19014
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19015
+ return [2 /*return*/, {
19016
+ url: common_1.toPathString(localVarUrlObj),
19017
+ options: localVarRequestOptions,
19018
+ }];
19019
+ }
19020
+ });
19021
+ });
19022
+ },
19023
+ /**
19024
+ *
19025
+ * @summary Delete plan hospital.
19026
+ * @param {string} planId
19027
+ * @param {string} hospitalId
19028
+ * @param {*} [options] Override http request option.
19029
+ * @throws {RequiredError}
19030
+ */
19031
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19032
+ if (options === void 0) { options = {}; }
19033
+ return __awaiter(_this, void 0, void 0, function () {
19034
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19035
+ return __generator(this, function (_a) {
19036
+ switch (_a.label) {
19037
+ case 0:
19038
+ // verify required parameter 'planId' is not null or undefined
19039
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId);
19040
+ // verify required parameter 'hospitalId' is not null or undefined
19041
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId);
19042
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19043
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19044
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19045
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19046
+ if (configuration) {
19047
+ baseOptions = configuration.baseOptions;
19048
+ }
19049
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19050
+ localVarHeaderParameter = {};
19051
+ localVarQueryParameter = {};
19052
+ // authentication oauth2 required
19053
+ // oauth required
19054
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19055
+ case 1:
19056
+ // authentication oauth2 required
19057
+ // oauth required
19058
+ _a.sent();
19059
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19060
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19061
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19062
+ return [2 /*return*/, {
19063
+ url: common_1.toPathString(localVarUrlObj),
19064
+ options: localVarRequestOptions,
19065
+ }];
19066
+ }
19067
+ });
19068
+ });
19069
+ },
19070
+ /**
19071
+ *
19072
+ * @summary Get plan hospital.
19073
+ * @param {string} planId
19074
+ * @param {string} hospitalId
19075
+ * @param {*} [options] Override http request option.
19076
+ * @throws {RequiredError}
19077
+ */
19078
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19079
+ if (options === void 0) { options = {}; }
19080
+ return __awaiter(_this, void 0, void 0, function () {
19081
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19082
+ return __generator(this, function (_a) {
19083
+ switch (_a.label) {
19084
+ case 0:
19085
+ // verify required parameter 'planId' is not null or undefined
19086
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId);
19087
+ // verify required parameter 'hospitalId' is not null or undefined
19088
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId);
19089
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19090
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19091
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19092
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19093
+ if (configuration) {
19094
+ baseOptions = configuration.baseOptions;
19095
+ }
19096
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19097
+ localVarHeaderParameter = {};
19098
+ localVarQueryParameter = {};
19099
+ // authentication oauth2 required
19100
+ // oauth required
19101
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19102
+ case 1:
19103
+ // authentication oauth2 required
19104
+ // oauth required
19105
+ _a.sent();
19106
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19107
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19108
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19109
+ return [2 /*return*/, {
19110
+ url: common_1.toPathString(localVarUrlObj),
19111
+ options: localVarRequestOptions,
19112
+ }];
19113
+ }
19114
+ });
19115
+ });
19116
+ },
19117
+ /**
19118
+ *
19119
+ * @summary Update plan hospital.
19120
+ * @param {string} planId
19121
+ * @param {string} hospitalId
19122
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19123
+ * @param {*} [options] Override http request option.
19124
+ * @throws {RequiredError}
19125
+ */
19126
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19127
+ if (options === void 0) { options = {}; }
19128
+ return __awaiter(_this, void 0, void 0, function () {
19129
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19130
+ return __generator(this, function (_a) {
19131
+ switch (_a.label) {
19132
+ case 0:
19133
+ // verify required parameter 'planId' is not null or undefined
19134
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId);
19135
+ // verify required parameter 'hospitalId' is not null or undefined
19136
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId);
19137
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19138
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19139
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19140
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19141
+ if (configuration) {
19142
+ baseOptions = configuration.baseOptions;
19143
+ }
19144
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19145
+ localVarHeaderParameter = {};
19146
+ localVarQueryParameter = {};
19147
+ // authentication oauth2 required
19148
+ // oauth required
19149
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19150
+ case 1:
19151
+ // authentication oauth2 required
19152
+ // oauth required
19153
+ _a.sent();
19154
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19155
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19156
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19157
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19158
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration);
19159
+ return [2 /*return*/, {
19160
+ url: common_1.toPathString(localVarUrlObj),
19161
+ options: localVarRequestOptions,
19162
+ }];
19163
+ }
19164
+ });
19165
+ });
19166
+ },
19167
+ /**
19168
+ *
19169
+ * @summary Create plan hospital.
19170
+ * @param {string} planId
19171
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19172
+ * @param {*} [options] Override http request option.
19173
+ * @throws {RequiredError}
19174
+ */
19175
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19176
+ if (options === void 0) { options = {}; }
19177
+ return __awaiter(_this, void 0, void 0, function () {
19178
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19179
+ return __generator(this, function (_a) {
19180
+ switch (_a.label) {
19181
+ case 0:
19182
+ // verify required parameter 'planId' is not null or undefined
19183
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId);
19184
+ localVarPath = "/api/v1/plans/{planId}/hospitals"
19185
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19186
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19187
+ if (configuration) {
19188
+ baseOptions = configuration.baseOptions;
19189
+ }
19190
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19191
+ localVarHeaderParameter = {};
19192
+ localVarQueryParameter = {};
19193
+ // authentication oauth2 required
19194
+ // oauth required
19195
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19196
+ case 1:
19197
+ // authentication oauth2 required
19198
+ // oauth required
19199
+ _a.sent();
19200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19201
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19202
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19203
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19204
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration);
19205
+ return [2 /*return*/, {
19206
+ url: common_1.toPathString(localVarUrlObj),
19207
+ options: localVarRequestOptions,
19208
+ }];
19209
+ }
19210
+ });
19211
+ });
19212
+ },
19213
+ /**
19214
+ *
19215
+ * @summary Update plan.
19216
+ * @param {string} planId
19217
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19218
+ * @param {*} [options] Override http request option.
19219
+ * @throws {RequiredError}
19220
+ */
19221
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19222
+ if (options === void 0) { options = {}; }
19223
+ return __awaiter(_this, void 0, void 0, function () {
19224
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19225
+ return __generator(this, function (_a) {
19226
+ switch (_a.label) {
19227
+ case 0:
19228
+ // verify required parameter 'planId' is not null or undefined
19229
+ common_1.assertParamExists('apiV1PlansPlanIdPut', 'planId', planId);
19230
+ localVarPath = "/api/v1/plans/{planId}"
19231
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19232
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19233
+ if (configuration) {
19234
+ baseOptions = configuration.baseOptions;
19235
+ }
19236
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19237
+ localVarHeaderParameter = {};
19238
+ localVarQueryParameter = {};
19239
+ // authentication oauth2 required
19240
+ // oauth required
19241
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19242
+ case 1:
19243
+ // authentication oauth2 required
19244
+ // oauth required
19245
+ _a.sent();
19246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19247
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19248
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19249
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19250
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration);
19251
+ return [2 /*return*/, {
19252
+ url: common_1.toPathString(localVarUrlObj),
19253
+ options: localVarRequestOptions,
19254
+ }];
19255
+ }
19256
+ });
19257
+ });
19258
+ },
19259
+ /**
19260
+ *
19261
+ * @summary Create a plan.
19262
+ * @param {CreatePlanCommand} [createPlanCommand]
19263
+ * @param {*} [options] Override http request option.
19264
+ * @throws {RequiredError}
19265
+ */
19266
+ apiV1PlansPost: function (createPlanCommand, options) {
19267
+ if (options === void 0) { options = {}; }
19268
+ return __awaiter(_this, void 0, void 0, function () {
19269
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19270
+ return __generator(this, function (_a) {
19271
+ switch (_a.label) {
19272
+ case 0:
19273
+ localVarPath = "/api/v1/plans";
19274
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19275
+ if (configuration) {
19276
+ baseOptions = configuration.baseOptions;
19277
+ }
19278
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19279
+ localVarHeaderParameter = {};
19280
+ localVarQueryParameter = {};
19281
+ // authentication oauth2 required
19282
+ // oauth required
19283
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19284
+ case 1:
19285
+ // authentication oauth2 required
19286
+ // oauth required
19287
+ _a.sent();
19288
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19289
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19290
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19291
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19292
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration);
19293
+ return [2 /*return*/, {
19294
+ url: common_1.toPathString(localVarUrlObj),
19295
+ options: localVarRequestOptions,
19296
+ }];
19297
+ }
19298
+ });
19299
+ });
19300
+ },
19301
+ };
19302
+ };
19303
+ /**
19304
+ * PlansApi - functional programming interface
19305
+ * @export
19306
+ */
19307
+ exports.PlansApiFp = function (configuration) {
19308
+ var localVarAxiosParamCreator = exports.PlansApiAxiosParamCreator(configuration);
19309
+ return {
19310
+ /**
19311
+ *
19312
+ * @summary Get all plans.
19313
+ * @param {string} [id]
19314
+ * @param {string} [name]
19315
+ * @param {number} [page]
19316
+ * @param {number} [limit]
19317
+ * @param {Date} [lastRetrieved]
19318
+ * @param {*} [options] Override http request option.
19319
+ * @throws {RequiredError}
19320
+ */
19321
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19322
+ return __awaiter(this, void 0, void 0, function () {
19323
+ var localVarAxiosArgs;
19324
+ return __generator(this, function (_a) {
19325
+ switch (_a.label) {
19326
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options)];
19327
+ case 1:
19328
+ localVarAxiosArgs = _a.sent();
19329
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19330
+ }
19331
+ });
19332
+ });
19333
+ },
19334
+ /**
19335
+ *
19336
+ * @summary Delete plan.
19337
+ * @param {string} planId
19338
+ * @param {*} [options] Override http request option.
19339
+ * @throws {RequiredError}
19340
+ */
19341
+ apiV1PlansPlanIdDelete: function (planId, options) {
19342
+ return __awaiter(this, void 0, void 0, function () {
19343
+ var localVarAxiosArgs;
19344
+ return __generator(this, function (_a) {
19345
+ switch (_a.label) {
19346
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options)];
19347
+ case 1:
19348
+ localVarAxiosArgs = _a.sent();
19349
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19350
+ }
19351
+ });
19352
+ });
19353
+ },
19354
+ /**
19355
+ *
19356
+ * @summary Get plan.
19357
+ * @param {string} planId
19358
+ * @param {*} [options] Override http request option.
19359
+ * @throws {RequiredError}
19360
+ */
19361
+ apiV1PlansPlanIdGet: function (planId, options) {
19362
+ return __awaiter(this, void 0, void 0, function () {
19363
+ var localVarAxiosArgs;
19364
+ return __generator(this, function (_a) {
19365
+ switch (_a.label) {
19366
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options)];
19367
+ case 1:
19368
+ localVarAxiosArgs = _a.sent();
19369
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19370
+ }
19371
+ });
19372
+ });
19373
+ },
19374
+ /**
19375
+ *
19376
+ * @summary Get all plan hospital.
19377
+ * @param {string} planId
19378
+ * @param {number} [page]
19379
+ * @param {number} [limit]
19380
+ * @param {Date} [lastRetrieved]
19381
+ * @param {*} [options] Override http request option.
19382
+ * @throws {RequiredError}
19383
+ */
19384
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19385
+ return __awaiter(this, void 0, void 0, function () {
19386
+ var localVarAxiosArgs;
19387
+ return __generator(this, function (_a) {
19388
+ switch (_a.label) {
19389
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options)];
19390
+ case 1:
19391
+ localVarAxiosArgs = _a.sent();
19392
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19393
+ }
19394
+ });
19395
+ });
19396
+ },
19397
+ /**
19398
+ *
19399
+ * @summary Delete plan hospital.
19400
+ * @param {string} planId
19401
+ * @param {string} hospitalId
19402
+ * @param {*} [options] Override http request option.
19403
+ * @throws {RequiredError}
19404
+ */
19405
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19406
+ return __awaiter(this, void 0, void 0, function () {
19407
+ var localVarAxiosArgs;
19408
+ return __generator(this, function (_a) {
19409
+ switch (_a.label) {
19410
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options)];
19411
+ case 1:
19412
+ localVarAxiosArgs = _a.sent();
19413
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19414
+ }
19415
+ });
19416
+ });
19417
+ },
19418
+ /**
19419
+ *
19420
+ * @summary Get plan hospital.
19421
+ * @param {string} planId
19422
+ * @param {string} hospitalId
19423
+ * @param {*} [options] Override http request option.
19424
+ * @throws {RequiredError}
19425
+ */
19426
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19427
+ return __awaiter(this, void 0, void 0, function () {
19428
+ var localVarAxiosArgs;
19429
+ return __generator(this, function (_a) {
19430
+ switch (_a.label) {
19431
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options)];
19432
+ case 1:
19433
+ localVarAxiosArgs = _a.sent();
19434
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19435
+ }
19436
+ });
19437
+ });
19438
+ },
19439
+ /**
19440
+ *
19441
+ * @summary Update plan hospital.
19442
+ * @param {string} planId
19443
+ * @param {string} hospitalId
19444
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19445
+ * @param {*} [options] Override http request option.
19446
+ * @throws {RequiredError}
19447
+ */
19448
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19449
+ return __awaiter(this, void 0, void 0, function () {
19450
+ var localVarAxiosArgs;
19451
+ return __generator(this, function (_a) {
19452
+ switch (_a.label) {
19453
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options)];
19454
+ case 1:
19455
+ localVarAxiosArgs = _a.sent();
19456
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19457
+ }
19458
+ });
19459
+ });
19460
+ },
19461
+ /**
19462
+ *
19463
+ * @summary Create plan hospital.
19464
+ * @param {string} planId
19465
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19466
+ * @param {*} [options] Override http request option.
19467
+ * @throws {RequiredError}
19468
+ */
19469
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19470
+ return __awaiter(this, void 0, void 0, function () {
19471
+ var localVarAxiosArgs;
19472
+ return __generator(this, function (_a) {
19473
+ switch (_a.label) {
19474
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options)];
19475
+ case 1:
19476
+ localVarAxiosArgs = _a.sent();
19477
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19478
+ }
19479
+ });
19480
+ });
19481
+ },
19482
+ /**
19483
+ *
19484
+ * @summary Update plan.
19485
+ * @param {string} planId
19486
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19487
+ * @param {*} [options] Override http request option.
19488
+ * @throws {RequiredError}
19489
+ */
19490
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19491
+ return __awaiter(this, void 0, void 0, function () {
19492
+ var localVarAxiosArgs;
19493
+ return __generator(this, function (_a) {
19494
+ switch (_a.label) {
19495
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options)];
19496
+ case 1:
19497
+ localVarAxiosArgs = _a.sent();
19498
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19499
+ }
19500
+ });
19501
+ });
19502
+ },
19503
+ /**
19504
+ *
19505
+ * @summary Create a plan.
19506
+ * @param {CreatePlanCommand} [createPlanCommand]
19507
+ * @param {*} [options] Override http request option.
19508
+ * @throws {RequiredError}
19509
+ */
19510
+ apiV1PlansPost: function (createPlanCommand, options) {
19511
+ return __awaiter(this, void 0, void 0, function () {
19512
+ var localVarAxiosArgs;
19513
+ return __generator(this, function (_a) {
19514
+ switch (_a.label) {
19515
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options)];
19516
+ case 1:
19517
+ localVarAxiosArgs = _a.sent();
19518
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19519
+ }
19520
+ });
19521
+ });
19522
+ },
19523
+ };
19524
+ };
19525
+ /**
19526
+ * PlansApi - factory interface
19527
+ * @export
19528
+ */
19529
+ exports.PlansApiFactory = function (configuration, basePath, axios) {
19530
+ var localVarFp = exports.PlansApiFp(configuration);
19531
+ return {
19532
+ /**
19533
+ *
19534
+ * @summary Get all plans.
19535
+ * @param {string} [id]
19536
+ * @param {string} [name]
19537
+ * @param {number} [page]
19538
+ * @param {number} [limit]
19539
+ * @param {Date} [lastRetrieved]
19540
+ * @param {*} [options] Override http request option.
19541
+ * @throws {RequiredError}
19542
+ */
19543
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19544
+ return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19545
+ },
19546
+ /**
19547
+ *
19548
+ * @summary Delete plan.
19549
+ * @param {string} planId
19550
+ * @param {*} [options] Override http request option.
19551
+ * @throws {RequiredError}
19552
+ */
19553
+ apiV1PlansPlanIdDelete: function (planId, options) {
19554
+ return localVarFp.apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(axios, basePath); });
19555
+ },
19556
+ /**
19557
+ *
19558
+ * @summary Get plan.
19559
+ * @param {string} planId
19560
+ * @param {*} [options] Override http request option.
19561
+ * @throws {RequiredError}
19562
+ */
19563
+ apiV1PlansPlanIdGet: function (planId, options) {
19564
+ return localVarFp.apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(axios, basePath); });
19565
+ },
19566
+ /**
19567
+ *
19568
+ * @summary Get all plan hospital.
19569
+ * @param {string} planId
19570
+ * @param {number} [page]
19571
+ * @param {number} [limit]
19572
+ * @param {Date} [lastRetrieved]
19573
+ * @param {*} [options] Override http request option.
19574
+ * @throws {RequiredError}
19575
+ */
19576
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19577
+ return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19578
+ },
19579
+ /**
19580
+ *
19581
+ * @summary Delete plan hospital.
19582
+ * @param {string} planId
19583
+ * @param {string} hospitalId
19584
+ * @param {*} [options] Override http request option.
19585
+ * @throws {RequiredError}
19586
+ */
19587
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19588
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
19589
+ },
19590
+ /**
19591
+ *
19592
+ * @summary Get plan hospital.
19593
+ * @param {string} planId
19594
+ * @param {string} hospitalId
19595
+ * @param {*} [options] Override http request option.
19596
+ * @throws {RequiredError}
19597
+ */
19598
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19599
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
19600
+ },
19601
+ /**
19602
+ *
19603
+ * @summary Update plan hospital.
19604
+ * @param {string} planId
19605
+ * @param {string} hospitalId
19606
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19607
+ * @param {*} [options] Override http request option.
19608
+ * @throws {RequiredError}
19609
+ */
19610
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19611
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
19612
+ },
19613
+ /**
19614
+ *
19615
+ * @summary Create plan hospital.
19616
+ * @param {string} planId
19617
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19618
+ * @param {*} [options] Override http request option.
19619
+ * @throws {RequiredError}
19620
+ */
19621
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19622
+ return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
19623
+ },
19624
+ /**
19625
+ *
19626
+ * @summary Update plan.
19627
+ * @param {string} planId
19628
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19629
+ * @param {*} [options] Override http request option.
19630
+ * @throws {RequiredError}
19631
+ */
19632
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19633
+ return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(axios, basePath); });
19634
+ },
19635
+ /**
19636
+ *
19637
+ * @summary Create a plan.
19638
+ * @param {CreatePlanCommand} [createPlanCommand]
19639
+ * @param {*} [options] Override http request option.
19640
+ * @throws {RequiredError}
19641
+ */
19642
+ apiV1PlansPost: function (createPlanCommand, options) {
19643
+ return localVarFp.apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(axios, basePath); });
19644
+ },
19645
+ };
19646
+ };
19647
+ /**
19648
+ * PlansApi - object-oriented interface
19649
+ * @export
19650
+ * @class PlansApi
19651
+ * @extends {BaseAPI}
19652
+ */
19653
+ var PlansApi = /** @class */ (function (_super) {
19654
+ __extends(PlansApi, _super);
19655
+ function PlansApi() {
19656
+ return _super !== null && _super.apply(this, arguments) || this;
19657
+ }
19658
+ /**
19659
+ *
19660
+ * @summary Get all plans.
19661
+ * @param {string} [id]
19662
+ * @param {string} [name]
19663
+ * @param {number} [page]
19664
+ * @param {number} [limit]
19665
+ * @param {Date} [lastRetrieved]
19666
+ * @param {*} [options] Override http request option.
19667
+ * @throws {RequiredError}
19668
+ * @memberof PlansApi
19669
+ */
19670
+ PlansApi.prototype.apiV1PlansGet = function (id, name, page, limit, lastRetrieved, options) {
19671
+ var _this = this;
19672
+ return exports.PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19673
+ };
19674
+ /**
19675
+ *
19676
+ * @summary Delete plan.
19677
+ * @param {string} planId
19678
+ * @param {*} [options] Override http request option.
19679
+ * @throws {RequiredError}
19680
+ * @memberof PlansApi
19681
+ */
19682
+ PlansApi.prototype.apiV1PlansPlanIdDelete = function (planId, options) {
19683
+ var _this = this;
19684
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19685
+ };
19686
+ /**
19687
+ *
19688
+ * @summary Get plan.
19689
+ * @param {string} planId
19690
+ * @param {*} [options] Override http request option.
19691
+ * @throws {RequiredError}
19692
+ * @memberof PlansApi
19693
+ */
19694
+ PlansApi.prototype.apiV1PlansPlanIdGet = function (planId, options) {
19695
+ var _this = this;
19696
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19697
+ };
19698
+ /**
19699
+ *
19700
+ * @summary Get all plan hospital.
19701
+ * @param {string} planId
19702
+ * @param {number} [page]
19703
+ * @param {number} [limit]
19704
+ * @param {Date} [lastRetrieved]
19705
+ * @param {*} [options] Override http request option.
19706
+ * @throws {RequiredError}
19707
+ * @memberof PlansApi
19708
+ */
19709
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsGet = function (planId, page, limit, lastRetrieved, options) {
19710
+ var _this = this;
19711
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19712
+ };
19713
+ /**
19714
+ *
19715
+ * @summary Delete plan hospital.
19716
+ * @param {string} planId
19717
+ * @param {string} hospitalId
19718
+ * @param {*} [options] Override http request option.
19719
+ * @throws {RequiredError}
19720
+ * @memberof PlansApi
19721
+ */
19722
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdDelete = function (planId, hospitalId, options) {
19723
+ var _this = this;
19724
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19725
+ };
19726
+ /**
19727
+ *
19728
+ * @summary Get plan hospital.
19729
+ * @param {string} planId
19730
+ * @param {string} hospitalId
19731
+ * @param {*} [options] Override http request option.
19732
+ * @throws {RequiredError}
19733
+ * @memberof PlansApi
19734
+ */
19735
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdGet = function (planId, hospitalId, options) {
19736
+ var _this = this;
19737
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19738
+ };
19739
+ /**
19740
+ *
19741
+ * @summary Update plan hospital.
19742
+ * @param {string} planId
19743
+ * @param {string} hospitalId
19744
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19745
+ * @param {*} [options] Override http request option.
19746
+ * @throws {RequiredError}
19747
+ * @memberof PlansApi
19748
+ */
19749
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdPut = function (planId, hospitalId, updatePlanHospitalCommand, options) {
19750
+ var _this = this;
19751
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19752
+ };
19753
+ /**
19754
+ *
19755
+ * @summary Create plan hospital.
19756
+ * @param {string} planId
19757
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19758
+ * @param {*} [options] Override http request option.
19759
+ * @throws {RequiredError}
19760
+ * @memberof PlansApi
19761
+ */
19762
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsPost = function (planId, createPlanHospitalCommand, options) {
19763
+ var _this = this;
19764
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19765
+ };
19766
+ /**
19767
+ *
19768
+ * @summary Update plan.
19769
+ * @param {string} planId
19770
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19771
+ * @param {*} [options] Override http request option.
19772
+ * @throws {RequiredError}
19773
+ * @memberof PlansApi
19774
+ */
19775
+ PlansApi.prototype.apiV1PlansPlanIdPut = function (planId, updatePlanCommand, options) {
19776
+ var _this = this;
19777
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19778
+ };
19779
+ /**
19780
+ *
19781
+ * @summary Create a plan.
19782
+ * @param {CreatePlanCommand} [createPlanCommand]
19783
+ * @param {*} [options] Override http request option.
19784
+ * @throws {RequiredError}
19785
+ * @memberof PlansApi
19786
+ */
19787
+ PlansApi.prototype.apiV1PlansPost = function (createPlanCommand, options) {
19788
+ var _this = this;
19789
+ return exports.PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19790
+ };
19791
+ return PlansApi;
19792
+ }(base_1.BaseAPI));
19793
+ exports.PlansApi = PlansApi;
19794
+ /**
19795
+ * ProfilesApi - axios parameter creator
19796
+ * @export
19797
+ */
19798
+ exports.ProfilesApiAxiosParamCreator = function (configuration) {
19799
+ var _this = this;
19800
+ return {
19801
+ /**
19802
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
19803
+ * @summary Change user\'s email on both Identity and Api.
19804
+ * @param {ChangeEmailCommand} [changeEmailCommand]
19805
+ * @param {*} [options] Override http request option.
19806
+ * @throws {RequiredError}
19807
+ */
19808
+ apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
19809
+ if (options === void 0) { options = {}; }
19810
+ return __awaiter(_this, void 0, void 0, function () {
19811
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19812
+ return __generator(this, function (_a) {
19813
+ switch (_a.label) {
19814
+ case 0:
19815
+ localVarPath = "/api/v1/profiles/changeemail";
19816
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19817
+ if (configuration) {
19818
+ baseOptions = configuration.baseOptions;
19819
+ }
19820
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19821
+ localVarHeaderParameter = {};
19822
+ localVarQueryParameter = {};
19823
+ // authentication oauth2 required
19824
+ // oauth required
19825
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19826
+ case 1:
19827
+ // authentication oauth2 required
19828
+ // oauth required
19829
+ _a.sent();
19830
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19831
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19832
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19833
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19834
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(changeEmailCommand, localVarRequestOptions, configuration);
19835
+ return [2 /*return*/, {
19836
+ url: common_1.toPathString(localVarUrlObj),
19837
+ options: localVarRequestOptions,
19838
+ }];
19839
+ }
19840
+ });
19841
+ });
19842
+ },
19843
+ /**
19844
+ *
19845
+ * @summary Configm email.
19846
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
19847
+ * @param {*} [options] Override http request option.
19848
+ * @throws {RequiredError}
19849
+ */
19850
+ apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
19851
+ if (options === void 0) { options = {}; }
19852
+ return __awaiter(_this, void 0, void 0, function () {
19853
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19854
+ return __generator(this, function (_a) {
19855
+ switch (_a.label) {
19856
+ case 0:
19857
+ localVarPath = "/api/v1/profiles/confirmemail";
19858
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19859
+ if (configuration) {
19860
+ baseOptions = configuration.baseOptions;
19861
+ }
19862
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19863
+ localVarHeaderParameter = {};
19864
+ localVarQueryParameter = {};
19865
+ // authentication oauth2 required
19866
+ // oauth required
19867
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19868
+ case 1:
19869
+ // authentication oauth2 required
19870
+ // oauth required
19871
+ _a.sent();
19872
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19873
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19874
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19875
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19876
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(confirmEmailCommand, localVarRequestOptions, configuration);
19877
+ return [2 /*return*/, {
19878
+ url: common_1.toPathString(localVarUrlObj),
19879
+ options: localVarRequestOptions,
19880
+ }];
19881
+ }
19882
+ });
19883
+ });
19884
+ },
19885
+ /**
19886
+ *
19887
+ * @summary Get Profile.
19888
+ * @param {*} [options] Override http request option.
19889
+ * @throws {RequiredError}
19890
+ */
19891
+ apiV1ProfilesGet: function (options) {
19892
+ if (options === void 0) { options = {}; }
19893
+ return __awaiter(_this, void 0, void 0, function () {
19894
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19895
+ return __generator(this, function (_a) {
19896
+ switch (_a.label) {
19897
+ case 0:
19898
+ localVarPath = "/api/v1/profiles";
19899
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19900
+ if (configuration) {
19901
+ baseOptions = configuration.baseOptions;
19902
+ }
19903
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19904
+ localVarHeaderParameter = {};
19905
+ localVarQueryParameter = {};
19906
+ // authentication oauth2 required
19907
+ // oauth required
19908
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19909
+ case 1:
19910
+ // authentication oauth2 required
19911
+ // oauth required
19912
+ _a.sent();
19913
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19914
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19915
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19916
+ return [2 /*return*/, {
19917
+ url: common_1.toPathString(localVarUrlObj),
19918
+ options: localVarRequestOptions,
19919
+ }];
19920
+ }
19921
+ });
19922
+ });
19923
+ },
19924
+ };
19925
+ };
19926
+ /**
19927
+ * ProfilesApi - functional programming interface
19928
+ * @export
19929
+ */
19930
+ exports.ProfilesApiFp = function (configuration) {
19931
+ var localVarAxiosParamCreator = exports.ProfilesApiAxiosParamCreator(configuration);
19932
+ return {
19933
+ /**
19934
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
19935
+ * @summary Change user\'s email on both Identity and Api.
19936
+ * @param {ChangeEmailCommand} [changeEmailCommand]
19937
+ * @param {*} [options] Override http request option.
19938
+ * @throws {RequiredError}
19939
+ */
19940
+ apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
19941
+ return __awaiter(this, void 0, void 0, function () {
19942
+ var localVarAxiosArgs;
19943
+ return __generator(this, function (_a) {
19944
+ switch (_a.label) {
19945
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesChangeemailPost(changeEmailCommand, options)];
19946
+ case 1:
19947
+ localVarAxiosArgs = _a.sent();
19948
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19949
+ }
19950
+ });
19951
+ });
19952
+ },
19953
+ /**
19954
+ *
19955
+ * @summary Configm email.
19956
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
19957
+ * @param {*} [options] Override http request option.
19958
+ * @throws {RequiredError}
19959
+ */
19960
+ apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
19961
+ return __awaiter(this, void 0, void 0, function () {
19962
+ var localVarAxiosArgs;
19963
+ return __generator(this, function (_a) {
19964
+ switch (_a.label) {
19965
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options)];
19966
+ case 1:
19967
+ localVarAxiosArgs = _a.sent();
19968
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19969
+ }
19970
+ });
19971
+ });
19972
+ },
19973
+ /**
19974
+ *
19975
+ * @summary Get Profile.
19976
+ * @param {*} [options] Override http request option.
19977
+ * @throws {RequiredError}
19978
+ */
19979
+ apiV1ProfilesGet: function (options) {
19980
+ return __awaiter(this, void 0, void 0, function () {
19981
+ var localVarAxiosArgs;
19982
+ return __generator(this, function (_a) {
19983
+ switch (_a.label) {
19984
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesGet(options)];
19985
+ case 1:
19986
+ localVarAxiosArgs = _a.sent();
19987
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19988
+ }
19989
+ });
19990
+ });
19991
+ },
19992
+ };
19993
+ };
19994
+ /**
19995
+ * ProfilesApi - factory interface
19996
+ * @export
19997
+ */
19998
+ exports.ProfilesApiFactory = function (configuration, basePath, axios) {
19999
+ var localVarFp = exports.ProfilesApiFp(configuration);
20000
+ return {
20001
+ /**
20002
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
20003
+ * @summary Change user\'s email on both Identity and Api.
20004
+ * @param {ChangeEmailCommand} [changeEmailCommand]
20005
+ * @param {*} [options] Override http request option.
20006
+ * @throws {RequiredError}
20007
+ */
20008
+ apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
20009
+ return localVarFp.apiV1ProfilesChangeemailPost(changeEmailCommand, options).then(function (request) { return request(axios, basePath); });
20010
+ },
20011
+ /**
20012
+ *
20013
+ * @summary Configm email.
20014
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
20015
+ * @param {*} [options] Override http request option.
20016
+ * @throws {RequiredError}
20017
+ */
20018
+ apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
20019
+ return localVarFp.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then(function (request) { return request(axios, basePath); });
20020
+ },
20021
+ /**
20022
+ *
20023
+ * @summary Get Profile.
20024
+ * @param {*} [options] Override http request option.
20025
+ * @throws {RequiredError}
20026
+ */
20027
+ apiV1ProfilesGet: function (options) {
20028
+ return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
20029
+ },
20030
+ };
20031
+ };
20032
+ /**
20033
+ * ProfilesApi - object-oriented interface
20034
+ * @export
20035
+ * @class ProfilesApi
20036
+ * @extends {BaseAPI}
20037
+ */
20038
+ var ProfilesApi = /** @class */ (function (_super) {
20039
+ __extends(ProfilesApi, _super);
20040
+ function ProfilesApi() {
20041
+ return _super !== null && _super.apply(this, arguments) || this;
20042
+ }
20043
+ /**
20044
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
20045
+ * @summary Change user\'s email on both Identity and Api.
20046
+ * @param {ChangeEmailCommand} [changeEmailCommand]
20047
+ * @param {*} [options] Override http request option.
20048
+ * @throws {RequiredError}
20049
+ * @memberof ProfilesApi
20050
+ */
20051
+ ProfilesApi.prototype.apiV1ProfilesChangeemailPost = function (changeEmailCommand, options) {
20052
+ var _this = this;
20053
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesChangeemailPost(changeEmailCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20054
+ };
20055
+ /**
20056
+ *
20057
+ * @summary Configm email.
20058
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
20059
+ * @param {*} [options] Override http request option.
20060
+ * @throws {RequiredError}
20061
+ * @memberof ProfilesApi
20062
+ */
20063
+ ProfilesApi.prototype.apiV1ProfilesConfirmemailPost = function (confirmEmailCommand, options) {
20064
+ var _this = this;
20065
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20066
+ };
20067
+ /**
20068
+ *
20069
+ * @summary Get Profile.
20070
+ * @param {*} [options] Override http request option.
20071
+ * @throws {RequiredError}
20072
+ * @memberof ProfilesApi
20073
+ */
20074
+ ProfilesApi.prototype.apiV1ProfilesGet = function (options) {
20075
+ var _this = this;
20076
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
20077
+ };
20078
+ return ProfilesApi;
20079
+ }(base_1.BaseAPI));
20080
+ exports.ProfilesApi = ProfilesApi;
18318
20081
  /**
18319
20082
  * ServicesApi - axios parameter creator
18320
20083
  * @export