ch-admin-api-client-typescript 2.2.10 → 2.2.18

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.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = 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;
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.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = 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
  *
@@ -18616,32 +18570,40 @@ var ManagersApi = /** @class */ (function (_super) {
18616
18570
  }(base_1.BaseAPI));
18617
18571
  exports.ManagersApi = ManagersApi;
18618
18572
  /**
18619
- * NotificationsApi - axios parameter creator
18573
+ * MembershipsApi - axios parameter creator
18620
18574
  * @export
18621
18575
  */
18622
- exports.NotificationsApiAxiosParamCreator = function (configuration) {
18576
+ exports.MembershipsApiAxiosParamCreator = function (configuration) {
18623
18577
  var _this = this;
18624
18578
  return {
18625
18579
  /**
18626
18580
  *
18627
- * @summary Check notification.
18628
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18581
+ * @summary Get all memberships.
18582
+ * @param {string} [id]
18583
+ * @param {string} [planId]
18584
+ * @param {string} [planName]
18585
+ * @param {string} [ownerId]
18586
+ * @param {string} [ownerName]
18587
+ * @param {boolean} [isActive]
18588
+ * @param {number} [page]
18589
+ * @param {number} [limit]
18590
+ * @param {Date} [lastRetrieved]
18629
18591
  * @param {*} [options] Override http request option.
18630
18592
  * @throws {RequiredError}
18631
18593
  */
18632
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18594
+ apiV1MembershipsGet: function (id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options) {
18633
18595
  if (options === void 0) { options = {}; }
18634
18596
  return __awaiter(_this, void 0, void 0, function () {
18635
18597
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18636
18598
  return __generator(this, function (_a) {
18637
18599
  switch (_a.label) {
18638
18600
  case 0:
18639
- localVarPath = "/api/v1/notifications/check";
18601
+ localVarPath = "/api/v1/memberships";
18640
18602
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18641
18603
  if (configuration) {
18642
18604
  baseOptions = configuration.baseOptions;
18643
18605
  }
18644
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18606
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18645
18607
  localVarHeaderParameter = {};
18646
18608
  localVarQueryParameter = {};
18647
18609
  // authentication oauth2 required
@@ -18651,11 +18613,38 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18651
18613
  // authentication oauth2 required
18652
18614
  // oauth required
18653
18615
  _a.sent();
18654
- localVarHeaderParameter['Content-Type'] = 'application/json';
18616
+ if (id !== undefined) {
18617
+ localVarQueryParameter['Id'] = id;
18618
+ }
18619
+ if (planId !== undefined) {
18620
+ localVarQueryParameter['PlanId'] = planId;
18621
+ }
18622
+ if (planName !== undefined) {
18623
+ localVarQueryParameter['PlanName'] = planName;
18624
+ }
18625
+ if (ownerId !== undefined) {
18626
+ localVarQueryParameter['OwnerId'] = ownerId;
18627
+ }
18628
+ if (ownerName !== undefined) {
18629
+ localVarQueryParameter['OwnerName'] = ownerName;
18630
+ }
18631
+ if (isActive !== undefined) {
18632
+ localVarQueryParameter['IsActive'] = isActive;
18633
+ }
18634
+ if (page !== undefined) {
18635
+ localVarQueryParameter['page'] = page;
18636
+ }
18637
+ if (limit !== undefined) {
18638
+ localVarQueryParameter['limit'] = limit;
18639
+ }
18640
+ if (lastRetrieved !== undefined) {
18641
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18642
+ lastRetrieved.toISOString() :
18643
+ lastRetrieved;
18644
+ }
18655
18645
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18656
18646
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18657
18647
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18658
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
18659
18648
  return [2 /*return*/, {
18660
18649
  url: common_1.toPathString(localVarUrlObj),
18661
18650
  options: localVarRequestOptions,
@@ -18666,23 +18655,68 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18666
18655
  },
18667
18656
  /**
18668
18657
  *
18669
- * @summary Get all notifications.
18670
- * @param {NotificationCode} [notificationCode]
18671
- * @param {boolean} [unreadCountOnly]
18658
+ * @summary Get membership.
18659
+ * @param {string} membershipId
18660
+ * @param {*} [options] Override http request option.
18661
+ * @throws {RequiredError}
18662
+ */
18663
+ apiV1MembershipsMembershipIdGet: function (membershipId, options) {
18664
+ if (options === void 0) { options = {}; }
18665
+ return __awaiter(_this, void 0, void 0, function () {
18666
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18667
+ return __generator(this, function (_a) {
18668
+ switch (_a.label) {
18669
+ case 0:
18670
+ // verify required parameter 'membershipId' is not null or undefined
18671
+ common_1.assertParamExists('apiV1MembershipsMembershipIdGet', 'membershipId', membershipId);
18672
+ localVarPath = "/api/v1/memberships/{membershipId}"
18673
+ .replace("{" + "membershipId" + "}", encodeURIComponent(String(membershipId)));
18674
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18675
+ if (configuration) {
18676
+ baseOptions = configuration.baseOptions;
18677
+ }
18678
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18679
+ localVarHeaderParameter = {};
18680
+ localVarQueryParameter = {};
18681
+ // authentication oauth2 required
18682
+ // oauth required
18683
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18684
+ case 1:
18685
+ // authentication oauth2 required
18686
+ // oauth required
18687
+ _a.sent();
18688
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18689
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18690
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18691
+ return [2 /*return*/, {
18692
+ url: common_1.toPathString(localVarUrlObj),
18693
+ options: localVarRequestOptions,
18694
+ }];
18695
+ }
18696
+ });
18697
+ });
18698
+ },
18699
+ /**
18700
+ *
18701
+ * @summary Get all members.
18702
+ * @param {string} membershipId
18672
18703
  * @param {number} [page]
18673
18704
  * @param {number} [limit]
18674
18705
  * @param {Date} [lastRetrieved]
18675
18706
  * @param {*} [options] Override http request option.
18676
18707
  * @throws {RequiredError}
18677
18708
  */
18678
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18709
+ apiV1MembershipsMembershipIdMembersGet: function (membershipId, page, limit, lastRetrieved, options) {
18679
18710
  if (options === void 0) { options = {}; }
18680
18711
  return __awaiter(_this, void 0, void 0, function () {
18681
18712
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18682
18713
  return __generator(this, function (_a) {
18683
18714
  switch (_a.label) {
18684
18715
  case 0:
18685
- localVarPath = "/api/v1/notifications";
18716
+ // verify required parameter 'membershipId' is not null or undefined
18717
+ common_1.assertParamExists('apiV1MembershipsMembershipIdMembersGet', 'membershipId', membershipId);
18718
+ localVarPath = "/api/v1/memberships/{membershipId}/members"
18719
+ .replace("{" + "membershipId" + "}", encodeURIComponent(String(membershipId)));
18686
18720
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18687
18721
  if (configuration) {
18688
18722
  baseOptions = configuration.baseOptions;
@@ -18697,12 +18731,6 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18697
18731
  // authentication oauth2 required
18698
18732
  // oauth required
18699
18733
  _a.sent();
18700
- if (notificationCode !== undefined) {
18701
- localVarQueryParameter['NotificationCode'] = notificationCode;
18702
- }
18703
- if (unreadCountOnly !== undefined) {
18704
- localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
18705
- }
18706
18734
  if (page !== undefined) {
18707
18735
  localVarQueryParameter['page'] = page;
18708
18736
  }
@@ -18728,25 +18756,33 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18728
18756
  };
18729
18757
  };
18730
18758
  /**
18731
- * NotificationsApi - functional programming interface
18759
+ * MembershipsApi - functional programming interface
18732
18760
  * @export
18733
18761
  */
18734
- exports.NotificationsApiFp = function (configuration) {
18735
- var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
18762
+ exports.MembershipsApiFp = function (configuration) {
18763
+ var localVarAxiosParamCreator = exports.MembershipsApiAxiosParamCreator(configuration);
18736
18764
  return {
18737
18765
  /**
18738
18766
  *
18739
- * @summary Check notification.
18740
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18767
+ * @summary Get all memberships.
18768
+ * @param {string} [id]
18769
+ * @param {string} [planId]
18770
+ * @param {string} [planName]
18771
+ * @param {string} [ownerId]
18772
+ * @param {string} [ownerName]
18773
+ * @param {boolean} [isActive]
18774
+ * @param {number} [page]
18775
+ * @param {number} [limit]
18776
+ * @param {Date} [lastRetrieved]
18741
18777
  * @param {*} [options] Override http request option.
18742
18778
  * @throws {RequiredError}
18743
18779
  */
18744
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18780
+ apiV1MembershipsGet: function (id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options) {
18745
18781
  return __awaiter(this, void 0, void 0, function () {
18746
18782
  var localVarAxiosArgs;
18747
18783
  return __generator(this, function (_a) {
18748
18784
  switch (_a.label) {
18749
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
18785
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MembershipsGet(id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options)];
18750
18786
  case 1:
18751
18787
  localVarAxiosArgs = _a.sent();
18752
18788
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -18756,21 +18792,40 @@ exports.NotificationsApiFp = function (configuration) {
18756
18792
  },
18757
18793
  /**
18758
18794
  *
18759
- * @summary Get all notifications.
18760
- * @param {NotificationCode} [notificationCode]
18761
- * @param {boolean} [unreadCountOnly]
18795
+ * @summary Get membership.
18796
+ * @param {string} membershipId
18797
+ * @param {*} [options] Override http request option.
18798
+ * @throws {RequiredError}
18799
+ */
18800
+ apiV1MembershipsMembershipIdGet: function (membershipId, options) {
18801
+ return __awaiter(this, void 0, void 0, function () {
18802
+ var localVarAxiosArgs;
18803
+ return __generator(this, function (_a) {
18804
+ switch (_a.label) {
18805
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MembershipsMembershipIdGet(membershipId, options)];
18806
+ case 1:
18807
+ localVarAxiosArgs = _a.sent();
18808
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18809
+ }
18810
+ });
18811
+ });
18812
+ },
18813
+ /**
18814
+ *
18815
+ * @summary Get all members.
18816
+ * @param {string} membershipId
18762
18817
  * @param {number} [page]
18763
18818
  * @param {number} [limit]
18764
18819
  * @param {Date} [lastRetrieved]
18765
18820
  * @param {*} [options] Override http request option.
18766
18821
  * @throws {RequiredError}
18767
18822
  */
18768
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18823
+ apiV1MembershipsMembershipIdMembersGet: function (membershipId, page, limit, lastRetrieved, options) {
18769
18824
  return __awaiter(this, void 0, void 0, function () {
18770
18825
  var localVarAxiosArgs;
18771
18826
  return __generator(this, function (_a) {
18772
18827
  switch (_a.label) {
18773
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
18828
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MembershipsMembershipIdMembersGet(membershipId, page, limit, lastRetrieved, options)];
18774
18829
  case 1:
18775
18830
  localVarAxiosArgs = _a.sent();
18776
18831
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -18781,93 +18836,1351 @@ exports.NotificationsApiFp = function (configuration) {
18781
18836
  };
18782
18837
  };
18783
18838
  /**
18784
- * NotificationsApi - factory interface
18839
+ * MembershipsApi - factory interface
18785
18840
  * @export
18786
18841
  */
18787
- exports.NotificationsApiFactory = function (configuration, basePath, axios) {
18788
- var localVarFp = exports.NotificationsApiFp(configuration);
18842
+ exports.MembershipsApiFactory = function (configuration, basePath, axios) {
18843
+ var localVarFp = exports.MembershipsApiFp(configuration);
18789
18844
  return {
18790
18845
  /**
18791
18846
  *
18792
- * @summary Check notification.
18793
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18847
+ * @summary Get all memberships.
18848
+ * @param {string} [id]
18849
+ * @param {string} [planId]
18850
+ * @param {string} [planName]
18851
+ * @param {string} [ownerId]
18852
+ * @param {string} [ownerName]
18853
+ * @param {boolean} [isActive]
18854
+ * @param {number} [page]
18855
+ * @param {number} [limit]
18856
+ * @param {Date} [lastRetrieved]
18794
18857
  * @param {*} [options] Override http request option.
18795
18858
  * @throws {RequiredError}
18796
18859
  */
18797
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18798
- return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
18860
+ apiV1MembershipsGet: function (id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options) {
18861
+ return localVarFp.apiV1MembershipsGet(id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18799
18862
  },
18800
18863
  /**
18801
18864
  *
18802
- * @summary Get all notifications.
18803
- * @param {NotificationCode} [notificationCode]
18804
- * @param {boolean} [unreadCountOnly]
18865
+ * @summary Get membership.
18866
+ * @param {string} membershipId
18867
+ * @param {*} [options] Override http request option.
18868
+ * @throws {RequiredError}
18869
+ */
18870
+ apiV1MembershipsMembershipIdGet: function (membershipId, options) {
18871
+ return localVarFp.apiV1MembershipsMembershipIdGet(membershipId, options).then(function (request) { return request(axios, basePath); });
18872
+ },
18873
+ /**
18874
+ *
18875
+ * @summary Get all members.
18876
+ * @param {string} membershipId
18805
18877
  * @param {number} [page]
18806
18878
  * @param {number} [limit]
18807
18879
  * @param {Date} [lastRetrieved]
18808
18880
  * @param {*} [options] Override http request option.
18809
18881
  * @throws {RequiredError}
18810
18882
  */
18811
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18812
- return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18883
+ apiV1MembershipsMembershipIdMembersGet: function (membershipId, page, limit, lastRetrieved, options) {
18884
+ return localVarFp.apiV1MembershipsMembershipIdMembersGet(membershipId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18813
18885
  },
18814
18886
  };
18815
18887
  };
18816
18888
  /**
18817
- * NotificationsApi - object-oriented interface
18889
+ * MembershipsApi - object-oriented interface
18818
18890
  * @export
18819
- * @class NotificationsApi
18891
+ * @class MembershipsApi
18820
18892
  * @extends {BaseAPI}
18821
18893
  */
18822
- var NotificationsApi = /** @class */ (function (_super) {
18823
- __extends(NotificationsApi, _super);
18824
- function NotificationsApi() {
18894
+ var MembershipsApi = /** @class */ (function (_super) {
18895
+ __extends(MembershipsApi, _super);
18896
+ function MembershipsApi() {
18825
18897
  return _super !== null && _super.apply(this, arguments) || this;
18826
18898
  }
18827
18899
  /**
18828
18900
  *
18829
- * @summary Check notification.
18830
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18901
+ * @summary Get all memberships.
18902
+ * @param {string} [id]
18903
+ * @param {string} [planId]
18904
+ * @param {string} [planName]
18905
+ * @param {string} [ownerId]
18906
+ * @param {string} [ownerName]
18907
+ * @param {boolean} [isActive]
18908
+ * @param {number} [page]
18909
+ * @param {number} [limit]
18910
+ * @param {Date} [lastRetrieved]
18831
18911
  * @param {*} [options] Override http request option.
18832
18912
  * @throws {RequiredError}
18833
- * @memberof NotificationsApi
18913
+ * @memberof MembershipsApi
18834
18914
  */
18835
- NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
18915
+ MembershipsApi.prototype.apiV1MembershipsGet = function (id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options) {
18836
18916
  var _this = this;
18837
- return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18917
+ return exports.MembershipsApiFp(this.configuration).apiV1MembershipsGet(id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18838
18918
  };
18839
18919
  /**
18840
18920
  *
18841
- * @summary Get all notifications.
18842
- * @param {NotificationCode} [notificationCode]
18843
- * @param {boolean} [unreadCountOnly]
18921
+ * @summary Get membership.
18922
+ * @param {string} membershipId
18923
+ * @param {*} [options] Override http request option.
18924
+ * @throws {RequiredError}
18925
+ * @memberof MembershipsApi
18926
+ */
18927
+ MembershipsApi.prototype.apiV1MembershipsMembershipIdGet = function (membershipId, options) {
18928
+ var _this = this;
18929
+ return exports.MembershipsApiFp(this.configuration).apiV1MembershipsMembershipIdGet(membershipId, options).then(function (request) { return request(_this.axios, _this.basePath); });
18930
+ };
18931
+ /**
18932
+ *
18933
+ * @summary Get all members.
18934
+ * @param {string} membershipId
18844
18935
  * @param {number} [page]
18845
18936
  * @param {number} [limit]
18846
18937
  * @param {Date} [lastRetrieved]
18847
18938
  * @param {*} [options] Override http request option.
18848
18939
  * @throws {RequiredError}
18849
- * @memberof NotificationsApi
18940
+ * @memberof MembershipsApi
18850
18941
  */
18851
- NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18942
+ MembershipsApi.prototype.apiV1MembershipsMembershipIdMembersGet = function (membershipId, page, limit, lastRetrieved, options) {
18852
18943
  var _this = this;
18853
- return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18944
+ return exports.MembershipsApiFp(this.configuration).apiV1MembershipsMembershipIdMembersGet(membershipId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18854
18945
  };
18855
- return NotificationsApi;
18946
+ return MembershipsApi;
18856
18947
  }(base_1.BaseAPI));
18857
- exports.NotificationsApi = NotificationsApi;
18948
+ exports.MembershipsApi = MembershipsApi;
18858
18949
  /**
18859
- * ProfilesApi - axios parameter creator
18950
+ * NotificationsApi - axios parameter creator
18860
18951
  * @export
18861
18952
  */
18862
- exports.ProfilesApiAxiosParamCreator = function (configuration) {
18953
+ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18863
18954
  var _this = this;
18864
18955
  return {
18865
18956
  /**
18866
- * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
18867
- * @summary Change user\'s email on both Identity and Api.
18868
- * @param {ChangeEmailCommand} [changeEmailCommand]
18869
- * @param {*} [options] Override http request option.
18870
- * @throws {RequiredError}
18957
+ *
18958
+ * @summary Check notification.
18959
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18960
+ * @param {*} [options] Override http request option.
18961
+ * @throws {RequiredError}
18962
+ */
18963
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18964
+ if (options === void 0) { options = {}; }
18965
+ return __awaiter(_this, void 0, void 0, function () {
18966
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18967
+ return __generator(this, function (_a) {
18968
+ switch (_a.label) {
18969
+ case 0:
18970
+ localVarPath = "/api/v1/notifications/check";
18971
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18972
+ if (configuration) {
18973
+ baseOptions = configuration.baseOptions;
18974
+ }
18975
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18976
+ localVarHeaderParameter = {};
18977
+ localVarQueryParameter = {};
18978
+ // authentication oauth2 required
18979
+ // oauth required
18980
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18981
+ case 1:
18982
+ // authentication oauth2 required
18983
+ // oauth required
18984
+ _a.sent();
18985
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18986
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18987
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18988
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18989
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
18990
+ return [2 /*return*/, {
18991
+ url: common_1.toPathString(localVarUrlObj),
18992
+ options: localVarRequestOptions,
18993
+ }];
18994
+ }
18995
+ });
18996
+ });
18997
+ },
18998
+ /**
18999
+ *
19000
+ * @summary Get all notifications.
19001
+ * @param {NotificationCode} [notificationCode]
19002
+ * @param {boolean} [unreadCountOnly]
19003
+ * @param {number} [page]
19004
+ * @param {number} [limit]
19005
+ * @param {Date} [lastRetrieved]
19006
+ * @param {*} [options] Override http request option.
19007
+ * @throws {RequiredError}
19008
+ */
19009
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
19010
+ if (options === void 0) { options = {}; }
19011
+ return __awaiter(_this, void 0, void 0, function () {
19012
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19013
+ return __generator(this, function (_a) {
19014
+ switch (_a.label) {
19015
+ case 0:
19016
+ localVarPath = "/api/v1/notifications";
19017
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19018
+ if (configuration) {
19019
+ baseOptions = configuration.baseOptions;
19020
+ }
19021
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19022
+ localVarHeaderParameter = {};
19023
+ localVarQueryParameter = {};
19024
+ // authentication oauth2 required
19025
+ // oauth required
19026
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19027
+ case 1:
19028
+ // authentication oauth2 required
19029
+ // oauth required
19030
+ _a.sent();
19031
+ if (notificationCode !== undefined) {
19032
+ localVarQueryParameter['NotificationCode'] = notificationCode;
19033
+ }
19034
+ if (unreadCountOnly !== undefined) {
19035
+ localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
19036
+ }
19037
+ if (page !== undefined) {
19038
+ localVarQueryParameter['page'] = page;
19039
+ }
19040
+ if (limit !== undefined) {
19041
+ localVarQueryParameter['limit'] = limit;
19042
+ }
19043
+ if (lastRetrieved !== undefined) {
19044
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19045
+ lastRetrieved.toISOString() :
19046
+ lastRetrieved;
19047
+ }
19048
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19049
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19050
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19051
+ return [2 /*return*/, {
19052
+ url: common_1.toPathString(localVarUrlObj),
19053
+ options: localVarRequestOptions,
19054
+ }];
19055
+ }
19056
+ });
19057
+ });
19058
+ },
19059
+ };
19060
+ };
19061
+ /**
19062
+ * NotificationsApi - functional programming interface
19063
+ * @export
19064
+ */
19065
+ exports.NotificationsApiFp = function (configuration) {
19066
+ var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
19067
+ return {
19068
+ /**
19069
+ *
19070
+ * @summary Check notification.
19071
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
19072
+ * @param {*} [options] Override http request option.
19073
+ * @throws {RequiredError}
19074
+ */
19075
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
19076
+ return __awaiter(this, void 0, void 0, function () {
19077
+ var localVarAxiosArgs;
19078
+ return __generator(this, function (_a) {
19079
+ switch (_a.label) {
19080
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
19081
+ case 1:
19082
+ localVarAxiosArgs = _a.sent();
19083
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19084
+ }
19085
+ });
19086
+ });
19087
+ },
19088
+ /**
19089
+ *
19090
+ * @summary Get all notifications.
19091
+ * @param {NotificationCode} [notificationCode]
19092
+ * @param {boolean} [unreadCountOnly]
19093
+ * @param {number} [page]
19094
+ * @param {number} [limit]
19095
+ * @param {Date} [lastRetrieved]
19096
+ * @param {*} [options] Override http request option.
19097
+ * @throws {RequiredError}
19098
+ */
19099
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
19100
+ return __awaiter(this, void 0, void 0, function () {
19101
+ var localVarAxiosArgs;
19102
+ return __generator(this, function (_a) {
19103
+ switch (_a.label) {
19104
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
19105
+ case 1:
19106
+ localVarAxiosArgs = _a.sent();
19107
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19108
+ }
19109
+ });
19110
+ });
19111
+ },
19112
+ };
19113
+ };
19114
+ /**
19115
+ * NotificationsApi - factory interface
19116
+ * @export
19117
+ */
19118
+ exports.NotificationsApiFactory = function (configuration, basePath, axios) {
19119
+ var localVarFp = exports.NotificationsApiFp(configuration);
19120
+ return {
19121
+ /**
19122
+ *
19123
+ * @summary Check notification.
19124
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
19125
+ * @param {*} [options] Override http request option.
19126
+ * @throws {RequiredError}
19127
+ */
19128
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
19129
+ return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
19130
+ },
19131
+ /**
19132
+ *
19133
+ * @summary Get all notifications.
19134
+ * @param {NotificationCode} [notificationCode]
19135
+ * @param {boolean} [unreadCountOnly]
19136
+ * @param {number} [page]
19137
+ * @param {number} [limit]
19138
+ * @param {Date} [lastRetrieved]
19139
+ * @param {*} [options] Override http request option.
19140
+ * @throws {RequiredError}
19141
+ */
19142
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
19143
+ return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19144
+ },
19145
+ };
19146
+ };
19147
+ /**
19148
+ * NotificationsApi - object-oriented interface
19149
+ * @export
19150
+ * @class NotificationsApi
19151
+ * @extends {BaseAPI}
19152
+ */
19153
+ var NotificationsApi = /** @class */ (function (_super) {
19154
+ __extends(NotificationsApi, _super);
19155
+ function NotificationsApi() {
19156
+ return _super !== null && _super.apply(this, arguments) || this;
19157
+ }
19158
+ /**
19159
+ *
19160
+ * @summary Check notification.
19161
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
19162
+ * @param {*} [options] Override http request option.
19163
+ * @throws {RequiredError}
19164
+ * @memberof NotificationsApi
19165
+ */
19166
+ NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
19167
+ var _this = this;
19168
+ return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19169
+ };
19170
+ /**
19171
+ *
19172
+ * @summary Get all notifications.
19173
+ * @param {NotificationCode} [notificationCode]
19174
+ * @param {boolean} [unreadCountOnly]
19175
+ * @param {number} [page]
19176
+ * @param {number} [limit]
19177
+ * @param {Date} [lastRetrieved]
19178
+ * @param {*} [options] Override http request option.
19179
+ * @throws {RequiredError}
19180
+ * @memberof NotificationsApi
19181
+ */
19182
+ NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
19183
+ var _this = this;
19184
+ return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19185
+ };
19186
+ return NotificationsApi;
19187
+ }(base_1.BaseAPI));
19188
+ exports.NotificationsApi = NotificationsApi;
19189
+ /**
19190
+ * PlansApi - axios parameter creator
19191
+ * @export
19192
+ */
19193
+ exports.PlansApiAxiosParamCreator = function (configuration) {
19194
+ var _this = this;
19195
+ return {
19196
+ /**
19197
+ *
19198
+ * @summary Get all plans.
19199
+ * @param {string} [id]
19200
+ * @param {string} [name]
19201
+ * @param {number} [page]
19202
+ * @param {number} [limit]
19203
+ * @param {Date} [lastRetrieved]
19204
+ * @param {*} [options] Override http request option.
19205
+ * @throws {RequiredError}
19206
+ */
19207
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19208
+ if (options === void 0) { options = {}; }
19209
+ return __awaiter(_this, void 0, void 0, function () {
19210
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19211
+ return __generator(this, function (_a) {
19212
+ switch (_a.label) {
19213
+ case 0:
19214
+ localVarPath = "/api/v1/plans";
19215
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19216
+ if (configuration) {
19217
+ baseOptions = configuration.baseOptions;
19218
+ }
19219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19220
+ localVarHeaderParameter = {};
19221
+ localVarQueryParameter = {};
19222
+ // authentication oauth2 required
19223
+ // oauth required
19224
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19225
+ case 1:
19226
+ // authentication oauth2 required
19227
+ // oauth required
19228
+ _a.sent();
19229
+ if (id !== undefined) {
19230
+ localVarQueryParameter['Id'] = id;
19231
+ }
19232
+ if (name !== undefined) {
19233
+ localVarQueryParameter['Name'] = name;
19234
+ }
19235
+ if (page !== undefined) {
19236
+ localVarQueryParameter['page'] = page;
19237
+ }
19238
+ if (limit !== undefined) {
19239
+ localVarQueryParameter['limit'] = limit;
19240
+ }
19241
+ if (lastRetrieved !== undefined) {
19242
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19243
+ lastRetrieved.toISOString() :
19244
+ lastRetrieved;
19245
+ }
19246
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19247
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19248
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19249
+ return [2 /*return*/, {
19250
+ url: common_1.toPathString(localVarUrlObj),
19251
+ options: localVarRequestOptions,
19252
+ }];
19253
+ }
19254
+ });
19255
+ });
19256
+ },
19257
+ /**
19258
+ *
19259
+ * @summary Delete plan.
19260
+ * @param {string} planId
19261
+ * @param {*} [options] Override http request option.
19262
+ * @throws {RequiredError}
19263
+ */
19264
+ apiV1PlansPlanIdDelete: function (planId, options) {
19265
+ if (options === void 0) { options = {}; }
19266
+ return __awaiter(_this, void 0, void 0, function () {
19267
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19268
+ return __generator(this, function (_a) {
19269
+ switch (_a.label) {
19270
+ case 0:
19271
+ // verify required parameter 'planId' is not null or undefined
19272
+ common_1.assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId);
19273
+ localVarPath = "/api/v1/plans/{planId}"
19274
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19275
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19276
+ if (configuration) {
19277
+ baseOptions = configuration.baseOptions;
19278
+ }
19279
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19280
+ localVarHeaderParameter = {};
19281
+ localVarQueryParameter = {};
19282
+ // authentication oauth2 required
19283
+ // oauth required
19284
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19285
+ case 1:
19286
+ // authentication oauth2 required
19287
+ // oauth required
19288
+ _a.sent();
19289
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19290
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19291
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19292
+ return [2 /*return*/, {
19293
+ url: common_1.toPathString(localVarUrlObj),
19294
+ options: localVarRequestOptions,
19295
+ }];
19296
+ }
19297
+ });
19298
+ });
19299
+ },
19300
+ /**
19301
+ *
19302
+ * @summary Get plan.
19303
+ * @param {string} planId
19304
+ * @param {*} [options] Override http request option.
19305
+ * @throws {RequiredError}
19306
+ */
19307
+ apiV1PlansPlanIdGet: function (planId, options) {
19308
+ if (options === void 0) { options = {}; }
19309
+ return __awaiter(_this, void 0, void 0, function () {
19310
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19311
+ return __generator(this, function (_a) {
19312
+ switch (_a.label) {
19313
+ case 0:
19314
+ // verify required parameter 'planId' is not null or undefined
19315
+ common_1.assertParamExists('apiV1PlansPlanIdGet', 'planId', planId);
19316
+ localVarPath = "/api/v1/plans/{planId}"
19317
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19318
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19319
+ if (configuration) {
19320
+ baseOptions = configuration.baseOptions;
19321
+ }
19322
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19323
+ localVarHeaderParameter = {};
19324
+ localVarQueryParameter = {};
19325
+ // authentication oauth2 required
19326
+ // oauth required
19327
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19328
+ case 1:
19329
+ // authentication oauth2 required
19330
+ // oauth required
19331
+ _a.sent();
19332
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19333
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19334
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19335
+ return [2 /*return*/, {
19336
+ url: common_1.toPathString(localVarUrlObj),
19337
+ options: localVarRequestOptions,
19338
+ }];
19339
+ }
19340
+ });
19341
+ });
19342
+ },
19343
+ /**
19344
+ *
19345
+ * @summary Get all plan hospital.
19346
+ * @param {string} planId
19347
+ * @param {number} [page]
19348
+ * @param {number} [limit]
19349
+ * @param {Date} [lastRetrieved]
19350
+ * @param {*} [options] Override http request option.
19351
+ * @throws {RequiredError}
19352
+ */
19353
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19354
+ if (options === void 0) { options = {}; }
19355
+ return __awaiter(_this, void 0, void 0, function () {
19356
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19357
+ return __generator(this, function (_a) {
19358
+ switch (_a.label) {
19359
+ case 0:
19360
+ // verify required parameter 'planId' is not null or undefined
19361
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId);
19362
+ localVarPath = "/api/v1/plans/{planId}/hospitals"
19363
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19364
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19365
+ if (configuration) {
19366
+ baseOptions = configuration.baseOptions;
19367
+ }
19368
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19369
+ localVarHeaderParameter = {};
19370
+ localVarQueryParameter = {};
19371
+ // authentication oauth2 required
19372
+ // oauth required
19373
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19374
+ case 1:
19375
+ // authentication oauth2 required
19376
+ // oauth required
19377
+ _a.sent();
19378
+ if (page !== undefined) {
19379
+ localVarQueryParameter['page'] = page;
19380
+ }
19381
+ if (limit !== undefined) {
19382
+ localVarQueryParameter['limit'] = limit;
19383
+ }
19384
+ if (lastRetrieved !== undefined) {
19385
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19386
+ lastRetrieved.toISOString() :
19387
+ lastRetrieved;
19388
+ }
19389
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19390
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19391
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19392
+ return [2 /*return*/, {
19393
+ url: common_1.toPathString(localVarUrlObj),
19394
+ options: localVarRequestOptions,
19395
+ }];
19396
+ }
19397
+ });
19398
+ });
19399
+ },
19400
+ /**
19401
+ *
19402
+ * @summary Delete plan hospital.
19403
+ * @param {string} planId
19404
+ * @param {string} hospitalId
19405
+ * @param {*} [options] Override http request option.
19406
+ * @throws {RequiredError}
19407
+ */
19408
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19409
+ if (options === void 0) { options = {}; }
19410
+ return __awaiter(_this, void 0, void 0, function () {
19411
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19412
+ return __generator(this, function (_a) {
19413
+ switch (_a.label) {
19414
+ case 0:
19415
+ // verify required parameter 'planId' is not null or undefined
19416
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId);
19417
+ // verify required parameter 'hospitalId' is not null or undefined
19418
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId);
19419
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19420
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19421
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19422
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19423
+ if (configuration) {
19424
+ baseOptions = configuration.baseOptions;
19425
+ }
19426
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19427
+ localVarHeaderParameter = {};
19428
+ localVarQueryParameter = {};
19429
+ // authentication oauth2 required
19430
+ // oauth required
19431
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19432
+ case 1:
19433
+ // authentication oauth2 required
19434
+ // oauth required
19435
+ _a.sent();
19436
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19437
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19438
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19439
+ return [2 /*return*/, {
19440
+ url: common_1.toPathString(localVarUrlObj),
19441
+ options: localVarRequestOptions,
19442
+ }];
19443
+ }
19444
+ });
19445
+ });
19446
+ },
19447
+ /**
19448
+ *
19449
+ * @summary Get plan hospital.
19450
+ * @param {string} planId
19451
+ * @param {string} hospitalId
19452
+ * @param {*} [options] Override http request option.
19453
+ * @throws {RequiredError}
19454
+ */
19455
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19456
+ if (options === void 0) { options = {}; }
19457
+ return __awaiter(_this, void 0, void 0, function () {
19458
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19459
+ return __generator(this, function (_a) {
19460
+ switch (_a.label) {
19461
+ case 0:
19462
+ // verify required parameter 'planId' is not null or undefined
19463
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId);
19464
+ // verify required parameter 'hospitalId' is not null or undefined
19465
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId);
19466
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19467
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19468
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19469
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19470
+ if (configuration) {
19471
+ baseOptions = configuration.baseOptions;
19472
+ }
19473
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19474
+ localVarHeaderParameter = {};
19475
+ localVarQueryParameter = {};
19476
+ // authentication oauth2 required
19477
+ // oauth required
19478
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19479
+ case 1:
19480
+ // authentication oauth2 required
19481
+ // oauth required
19482
+ _a.sent();
19483
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19484
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19485
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19486
+ return [2 /*return*/, {
19487
+ url: common_1.toPathString(localVarUrlObj),
19488
+ options: localVarRequestOptions,
19489
+ }];
19490
+ }
19491
+ });
19492
+ });
19493
+ },
19494
+ /**
19495
+ *
19496
+ * @summary Update plan hospital.
19497
+ * @param {string} planId
19498
+ * @param {string} hospitalId
19499
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19500
+ * @param {*} [options] Override http request option.
19501
+ * @throws {RequiredError}
19502
+ */
19503
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19504
+ if (options === void 0) { options = {}; }
19505
+ return __awaiter(_this, void 0, void 0, function () {
19506
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19507
+ return __generator(this, function (_a) {
19508
+ switch (_a.label) {
19509
+ case 0:
19510
+ // verify required parameter 'planId' is not null or undefined
19511
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId);
19512
+ // verify required parameter 'hospitalId' is not null or undefined
19513
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId);
19514
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19515
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19516
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19517
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19518
+ if (configuration) {
19519
+ baseOptions = configuration.baseOptions;
19520
+ }
19521
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19522
+ localVarHeaderParameter = {};
19523
+ localVarQueryParameter = {};
19524
+ // authentication oauth2 required
19525
+ // oauth required
19526
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19527
+ case 1:
19528
+ // authentication oauth2 required
19529
+ // oauth required
19530
+ _a.sent();
19531
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19532
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19533
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19534
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19535
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration);
19536
+ return [2 /*return*/, {
19537
+ url: common_1.toPathString(localVarUrlObj),
19538
+ options: localVarRequestOptions,
19539
+ }];
19540
+ }
19541
+ });
19542
+ });
19543
+ },
19544
+ /**
19545
+ *
19546
+ * @summary Create plan hospital.
19547
+ * @param {string} planId
19548
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19549
+ * @param {*} [options] Override http request option.
19550
+ * @throws {RequiredError}
19551
+ */
19552
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19553
+ if (options === void 0) { options = {}; }
19554
+ return __awaiter(_this, void 0, void 0, function () {
19555
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19556
+ return __generator(this, function (_a) {
19557
+ switch (_a.label) {
19558
+ case 0:
19559
+ // verify required parameter 'planId' is not null or undefined
19560
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId);
19561
+ localVarPath = "/api/v1/plans/{planId}/hospitals"
19562
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19563
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19564
+ if (configuration) {
19565
+ baseOptions = configuration.baseOptions;
19566
+ }
19567
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19568
+ localVarHeaderParameter = {};
19569
+ localVarQueryParameter = {};
19570
+ // authentication oauth2 required
19571
+ // oauth required
19572
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19573
+ case 1:
19574
+ // authentication oauth2 required
19575
+ // oauth required
19576
+ _a.sent();
19577
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19578
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19579
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19580
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19581
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration);
19582
+ return [2 /*return*/, {
19583
+ url: common_1.toPathString(localVarUrlObj),
19584
+ options: localVarRequestOptions,
19585
+ }];
19586
+ }
19587
+ });
19588
+ });
19589
+ },
19590
+ /**
19591
+ *
19592
+ * @summary Update plan.
19593
+ * @param {string} planId
19594
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19595
+ * @param {*} [options] Override http request option.
19596
+ * @throws {RequiredError}
19597
+ */
19598
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19599
+ if (options === void 0) { options = {}; }
19600
+ return __awaiter(_this, void 0, void 0, function () {
19601
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19602
+ return __generator(this, function (_a) {
19603
+ switch (_a.label) {
19604
+ case 0:
19605
+ // verify required parameter 'planId' is not null or undefined
19606
+ common_1.assertParamExists('apiV1PlansPlanIdPut', 'planId', planId);
19607
+ localVarPath = "/api/v1/plans/{planId}"
19608
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19609
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19610
+ if (configuration) {
19611
+ baseOptions = configuration.baseOptions;
19612
+ }
19613
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19614
+ localVarHeaderParameter = {};
19615
+ localVarQueryParameter = {};
19616
+ // authentication oauth2 required
19617
+ // oauth required
19618
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19619
+ case 1:
19620
+ // authentication oauth2 required
19621
+ // oauth required
19622
+ _a.sent();
19623
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19624
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19625
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19626
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19627
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration);
19628
+ return [2 /*return*/, {
19629
+ url: common_1.toPathString(localVarUrlObj),
19630
+ options: localVarRequestOptions,
19631
+ }];
19632
+ }
19633
+ });
19634
+ });
19635
+ },
19636
+ /**
19637
+ *
19638
+ * @summary Create a plan.
19639
+ * @param {CreatePlanCommand} [createPlanCommand]
19640
+ * @param {*} [options] Override http request option.
19641
+ * @throws {RequiredError}
19642
+ */
19643
+ apiV1PlansPost: function (createPlanCommand, options) {
19644
+ if (options === void 0) { options = {}; }
19645
+ return __awaiter(_this, void 0, void 0, function () {
19646
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19647
+ return __generator(this, function (_a) {
19648
+ switch (_a.label) {
19649
+ case 0:
19650
+ localVarPath = "/api/v1/plans";
19651
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19652
+ if (configuration) {
19653
+ baseOptions = configuration.baseOptions;
19654
+ }
19655
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19656
+ localVarHeaderParameter = {};
19657
+ localVarQueryParameter = {};
19658
+ // authentication oauth2 required
19659
+ // oauth required
19660
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19661
+ case 1:
19662
+ // authentication oauth2 required
19663
+ // oauth required
19664
+ _a.sent();
19665
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19666
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19667
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19668
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19669
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration);
19670
+ return [2 /*return*/, {
19671
+ url: common_1.toPathString(localVarUrlObj),
19672
+ options: localVarRequestOptions,
19673
+ }];
19674
+ }
19675
+ });
19676
+ });
19677
+ },
19678
+ };
19679
+ };
19680
+ /**
19681
+ * PlansApi - functional programming interface
19682
+ * @export
19683
+ */
19684
+ exports.PlansApiFp = function (configuration) {
19685
+ var localVarAxiosParamCreator = exports.PlansApiAxiosParamCreator(configuration);
19686
+ return {
19687
+ /**
19688
+ *
19689
+ * @summary Get all plans.
19690
+ * @param {string} [id]
19691
+ * @param {string} [name]
19692
+ * @param {number} [page]
19693
+ * @param {number} [limit]
19694
+ * @param {Date} [lastRetrieved]
19695
+ * @param {*} [options] Override http request option.
19696
+ * @throws {RequiredError}
19697
+ */
19698
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19699
+ return __awaiter(this, void 0, void 0, function () {
19700
+ var localVarAxiosArgs;
19701
+ return __generator(this, function (_a) {
19702
+ switch (_a.label) {
19703
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options)];
19704
+ case 1:
19705
+ localVarAxiosArgs = _a.sent();
19706
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19707
+ }
19708
+ });
19709
+ });
19710
+ },
19711
+ /**
19712
+ *
19713
+ * @summary Delete plan.
19714
+ * @param {string} planId
19715
+ * @param {*} [options] Override http request option.
19716
+ * @throws {RequiredError}
19717
+ */
19718
+ apiV1PlansPlanIdDelete: function (planId, options) {
19719
+ return __awaiter(this, void 0, void 0, function () {
19720
+ var localVarAxiosArgs;
19721
+ return __generator(this, function (_a) {
19722
+ switch (_a.label) {
19723
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options)];
19724
+ case 1:
19725
+ localVarAxiosArgs = _a.sent();
19726
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19727
+ }
19728
+ });
19729
+ });
19730
+ },
19731
+ /**
19732
+ *
19733
+ * @summary Get plan.
19734
+ * @param {string} planId
19735
+ * @param {*} [options] Override http request option.
19736
+ * @throws {RequiredError}
19737
+ */
19738
+ apiV1PlansPlanIdGet: function (planId, options) {
19739
+ return __awaiter(this, void 0, void 0, function () {
19740
+ var localVarAxiosArgs;
19741
+ return __generator(this, function (_a) {
19742
+ switch (_a.label) {
19743
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options)];
19744
+ case 1:
19745
+ localVarAxiosArgs = _a.sent();
19746
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19747
+ }
19748
+ });
19749
+ });
19750
+ },
19751
+ /**
19752
+ *
19753
+ * @summary Get all plan hospital.
19754
+ * @param {string} planId
19755
+ * @param {number} [page]
19756
+ * @param {number} [limit]
19757
+ * @param {Date} [lastRetrieved]
19758
+ * @param {*} [options] Override http request option.
19759
+ * @throws {RequiredError}
19760
+ */
19761
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19762
+ return __awaiter(this, void 0, void 0, function () {
19763
+ var localVarAxiosArgs;
19764
+ return __generator(this, function (_a) {
19765
+ switch (_a.label) {
19766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options)];
19767
+ case 1:
19768
+ localVarAxiosArgs = _a.sent();
19769
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19770
+ }
19771
+ });
19772
+ });
19773
+ },
19774
+ /**
19775
+ *
19776
+ * @summary Delete plan hospital.
19777
+ * @param {string} planId
19778
+ * @param {string} hospitalId
19779
+ * @param {*} [options] Override http request option.
19780
+ * @throws {RequiredError}
19781
+ */
19782
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19783
+ return __awaiter(this, void 0, void 0, function () {
19784
+ var localVarAxiosArgs;
19785
+ return __generator(this, function (_a) {
19786
+ switch (_a.label) {
19787
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options)];
19788
+ case 1:
19789
+ localVarAxiosArgs = _a.sent();
19790
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19791
+ }
19792
+ });
19793
+ });
19794
+ },
19795
+ /**
19796
+ *
19797
+ * @summary Get plan hospital.
19798
+ * @param {string} planId
19799
+ * @param {string} hospitalId
19800
+ * @param {*} [options] Override http request option.
19801
+ * @throws {RequiredError}
19802
+ */
19803
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19804
+ return __awaiter(this, void 0, void 0, function () {
19805
+ var localVarAxiosArgs;
19806
+ return __generator(this, function (_a) {
19807
+ switch (_a.label) {
19808
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options)];
19809
+ case 1:
19810
+ localVarAxiosArgs = _a.sent();
19811
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19812
+ }
19813
+ });
19814
+ });
19815
+ },
19816
+ /**
19817
+ *
19818
+ * @summary Update plan hospital.
19819
+ * @param {string} planId
19820
+ * @param {string} hospitalId
19821
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19822
+ * @param {*} [options] Override http request option.
19823
+ * @throws {RequiredError}
19824
+ */
19825
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19826
+ return __awaiter(this, void 0, void 0, function () {
19827
+ var localVarAxiosArgs;
19828
+ return __generator(this, function (_a) {
19829
+ switch (_a.label) {
19830
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options)];
19831
+ case 1:
19832
+ localVarAxiosArgs = _a.sent();
19833
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19834
+ }
19835
+ });
19836
+ });
19837
+ },
19838
+ /**
19839
+ *
19840
+ * @summary Create plan hospital.
19841
+ * @param {string} planId
19842
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19843
+ * @param {*} [options] Override http request option.
19844
+ * @throws {RequiredError}
19845
+ */
19846
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19847
+ return __awaiter(this, void 0, void 0, function () {
19848
+ var localVarAxiosArgs;
19849
+ return __generator(this, function (_a) {
19850
+ switch (_a.label) {
19851
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options)];
19852
+ case 1:
19853
+ localVarAxiosArgs = _a.sent();
19854
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19855
+ }
19856
+ });
19857
+ });
19858
+ },
19859
+ /**
19860
+ *
19861
+ * @summary Update plan.
19862
+ * @param {string} planId
19863
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19864
+ * @param {*} [options] Override http request option.
19865
+ * @throws {RequiredError}
19866
+ */
19867
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19868
+ return __awaiter(this, void 0, void 0, function () {
19869
+ var localVarAxiosArgs;
19870
+ return __generator(this, function (_a) {
19871
+ switch (_a.label) {
19872
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options)];
19873
+ case 1:
19874
+ localVarAxiosArgs = _a.sent();
19875
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19876
+ }
19877
+ });
19878
+ });
19879
+ },
19880
+ /**
19881
+ *
19882
+ * @summary Create a plan.
19883
+ * @param {CreatePlanCommand} [createPlanCommand]
19884
+ * @param {*} [options] Override http request option.
19885
+ * @throws {RequiredError}
19886
+ */
19887
+ apiV1PlansPost: function (createPlanCommand, options) {
19888
+ return __awaiter(this, void 0, void 0, function () {
19889
+ var localVarAxiosArgs;
19890
+ return __generator(this, function (_a) {
19891
+ switch (_a.label) {
19892
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options)];
19893
+ case 1:
19894
+ localVarAxiosArgs = _a.sent();
19895
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19896
+ }
19897
+ });
19898
+ });
19899
+ },
19900
+ };
19901
+ };
19902
+ /**
19903
+ * PlansApi - factory interface
19904
+ * @export
19905
+ */
19906
+ exports.PlansApiFactory = function (configuration, basePath, axios) {
19907
+ var localVarFp = exports.PlansApiFp(configuration);
19908
+ return {
19909
+ /**
19910
+ *
19911
+ * @summary Get all plans.
19912
+ * @param {string} [id]
19913
+ * @param {string} [name]
19914
+ * @param {number} [page]
19915
+ * @param {number} [limit]
19916
+ * @param {Date} [lastRetrieved]
19917
+ * @param {*} [options] Override http request option.
19918
+ * @throws {RequiredError}
19919
+ */
19920
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19921
+ return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19922
+ },
19923
+ /**
19924
+ *
19925
+ * @summary Delete plan.
19926
+ * @param {string} planId
19927
+ * @param {*} [options] Override http request option.
19928
+ * @throws {RequiredError}
19929
+ */
19930
+ apiV1PlansPlanIdDelete: function (planId, options) {
19931
+ return localVarFp.apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(axios, basePath); });
19932
+ },
19933
+ /**
19934
+ *
19935
+ * @summary Get plan.
19936
+ * @param {string} planId
19937
+ * @param {*} [options] Override http request option.
19938
+ * @throws {RequiredError}
19939
+ */
19940
+ apiV1PlansPlanIdGet: function (planId, options) {
19941
+ return localVarFp.apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(axios, basePath); });
19942
+ },
19943
+ /**
19944
+ *
19945
+ * @summary Get all plan hospital.
19946
+ * @param {string} planId
19947
+ * @param {number} [page]
19948
+ * @param {number} [limit]
19949
+ * @param {Date} [lastRetrieved]
19950
+ * @param {*} [options] Override http request option.
19951
+ * @throws {RequiredError}
19952
+ */
19953
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19954
+ return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19955
+ },
19956
+ /**
19957
+ *
19958
+ * @summary Delete plan hospital.
19959
+ * @param {string} planId
19960
+ * @param {string} hospitalId
19961
+ * @param {*} [options] Override http request option.
19962
+ * @throws {RequiredError}
19963
+ */
19964
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19965
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
19966
+ },
19967
+ /**
19968
+ *
19969
+ * @summary Get plan hospital.
19970
+ * @param {string} planId
19971
+ * @param {string} hospitalId
19972
+ * @param {*} [options] Override http request option.
19973
+ * @throws {RequiredError}
19974
+ */
19975
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19976
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
19977
+ },
19978
+ /**
19979
+ *
19980
+ * @summary Update plan hospital.
19981
+ * @param {string} planId
19982
+ * @param {string} hospitalId
19983
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19984
+ * @param {*} [options] Override http request option.
19985
+ * @throws {RequiredError}
19986
+ */
19987
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19988
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
19989
+ },
19990
+ /**
19991
+ *
19992
+ * @summary Create plan hospital.
19993
+ * @param {string} planId
19994
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19995
+ * @param {*} [options] Override http request option.
19996
+ * @throws {RequiredError}
19997
+ */
19998
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19999
+ return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
20000
+ },
20001
+ /**
20002
+ *
20003
+ * @summary Update plan.
20004
+ * @param {string} planId
20005
+ * @param {UpdatePlanCommand} [updatePlanCommand]
20006
+ * @param {*} [options] Override http request option.
20007
+ * @throws {RequiredError}
20008
+ */
20009
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
20010
+ return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(axios, basePath); });
20011
+ },
20012
+ /**
20013
+ *
20014
+ * @summary Create a plan.
20015
+ * @param {CreatePlanCommand} [createPlanCommand]
20016
+ * @param {*} [options] Override http request option.
20017
+ * @throws {RequiredError}
20018
+ */
20019
+ apiV1PlansPost: function (createPlanCommand, options) {
20020
+ return localVarFp.apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(axios, basePath); });
20021
+ },
20022
+ };
20023
+ };
20024
+ /**
20025
+ * PlansApi - object-oriented interface
20026
+ * @export
20027
+ * @class PlansApi
20028
+ * @extends {BaseAPI}
20029
+ */
20030
+ var PlansApi = /** @class */ (function (_super) {
20031
+ __extends(PlansApi, _super);
20032
+ function PlansApi() {
20033
+ return _super !== null && _super.apply(this, arguments) || this;
20034
+ }
20035
+ /**
20036
+ *
20037
+ * @summary Get all plans.
20038
+ * @param {string} [id]
20039
+ * @param {string} [name]
20040
+ * @param {number} [page]
20041
+ * @param {number} [limit]
20042
+ * @param {Date} [lastRetrieved]
20043
+ * @param {*} [options] Override http request option.
20044
+ * @throws {RequiredError}
20045
+ * @memberof PlansApi
20046
+ */
20047
+ PlansApi.prototype.apiV1PlansGet = function (id, name, page, limit, lastRetrieved, options) {
20048
+ var _this = this;
20049
+ return exports.PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
20050
+ };
20051
+ /**
20052
+ *
20053
+ * @summary Delete plan.
20054
+ * @param {string} planId
20055
+ * @param {*} [options] Override http request option.
20056
+ * @throws {RequiredError}
20057
+ * @memberof PlansApi
20058
+ */
20059
+ PlansApi.prototype.apiV1PlansPlanIdDelete = function (planId, options) {
20060
+ var _this = this;
20061
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20062
+ };
20063
+ /**
20064
+ *
20065
+ * @summary Get plan.
20066
+ * @param {string} planId
20067
+ * @param {*} [options] Override http request option.
20068
+ * @throws {RequiredError}
20069
+ * @memberof PlansApi
20070
+ */
20071
+ PlansApi.prototype.apiV1PlansPlanIdGet = function (planId, options) {
20072
+ var _this = this;
20073
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20074
+ };
20075
+ /**
20076
+ *
20077
+ * @summary Get all plan hospital.
20078
+ * @param {string} planId
20079
+ * @param {number} [page]
20080
+ * @param {number} [limit]
20081
+ * @param {Date} [lastRetrieved]
20082
+ * @param {*} [options] Override http request option.
20083
+ * @throws {RequiredError}
20084
+ * @memberof PlansApi
20085
+ */
20086
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsGet = function (planId, page, limit, lastRetrieved, options) {
20087
+ var _this = this;
20088
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
20089
+ };
20090
+ /**
20091
+ *
20092
+ * @summary Delete plan hospital.
20093
+ * @param {string} planId
20094
+ * @param {string} hospitalId
20095
+ * @param {*} [options] Override http request option.
20096
+ * @throws {RequiredError}
20097
+ * @memberof PlansApi
20098
+ */
20099
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdDelete = function (planId, hospitalId, options) {
20100
+ var _this = this;
20101
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20102
+ };
20103
+ /**
20104
+ *
20105
+ * @summary Get plan hospital.
20106
+ * @param {string} planId
20107
+ * @param {string} hospitalId
20108
+ * @param {*} [options] Override http request option.
20109
+ * @throws {RequiredError}
20110
+ * @memberof PlansApi
20111
+ */
20112
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdGet = function (planId, hospitalId, options) {
20113
+ var _this = this;
20114
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20115
+ };
20116
+ /**
20117
+ *
20118
+ * @summary Update plan hospital.
20119
+ * @param {string} planId
20120
+ * @param {string} hospitalId
20121
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
20122
+ * @param {*} [options] Override http request option.
20123
+ * @throws {RequiredError}
20124
+ * @memberof PlansApi
20125
+ */
20126
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdPut = function (planId, hospitalId, updatePlanHospitalCommand, options) {
20127
+ var _this = this;
20128
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20129
+ };
20130
+ /**
20131
+ *
20132
+ * @summary Create plan hospital.
20133
+ * @param {string} planId
20134
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
20135
+ * @param {*} [options] Override http request option.
20136
+ * @throws {RequiredError}
20137
+ * @memberof PlansApi
20138
+ */
20139
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsPost = function (planId, createPlanHospitalCommand, options) {
20140
+ var _this = this;
20141
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20142
+ };
20143
+ /**
20144
+ *
20145
+ * @summary Update plan.
20146
+ * @param {string} planId
20147
+ * @param {UpdatePlanCommand} [updatePlanCommand]
20148
+ * @param {*} [options] Override http request option.
20149
+ * @throws {RequiredError}
20150
+ * @memberof PlansApi
20151
+ */
20152
+ PlansApi.prototype.apiV1PlansPlanIdPut = function (planId, updatePlanCommand, options) {
20153
+ var _this = this;
20154
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20155
+ };
20156
+ /**
20157
+ *
20158
+ * @summary Create a plan.
20159
+ * @param {CreatePlanCommand} [createPlanCommand]
20160
+ * @param {*} [options] Override http request option.
20161
+ * @throws {RequiredError}
20162
+ * @memberof PlansApi
20163
+ */
20164
+ PlansApi.prototype.apiV1PlansPost = function (createPlanCommand, options) {
20165
+ var _this = this;
20166
+ return exports.PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20167
+ };
20168
+ return PlansApi;
20169
+ }(base_1.BaseAPI));
20170
+ exports.PlansApi = PlansApi;
20171
+ /**
20172
+ * ProfilesApi - axios parameter creator
20173
+ * @export
20174
+ */
20175
+ exports.ProfilesApiAxiosParamCreator = function (configuration) {
20176
+ var _this = this;
20177
+ return {
20178
+ /**
20179
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
20180
+ * @summary Change user\'s email on both Identity and Api.
20181
+ * @param {ChangeEmailCommand} [changeEmailCommand]
20182
+ * @param {*} [options] Override http request option.
20183
+ * @throws {RequiredError}
18871
20184
  */
18872
20185
  apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
18873
20186
  if (options === void 0) { options = {}; }
@@ -19583,7 +20896,7 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
19583
20896
  var _this = this;
19584
20897
  return {
19585
20898
  /**
19586
- * Sample request: GET /api/v1/ServiceCategories
20899
+ *
19587
20900
  * @summary Get all ServiceCategories.
19588
20901
  * @param {string} [id]
19589
20902
  * @param {string} [name]
@@ -19693,7 +21006,7 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
19693
21006
  });
19694
21007
  },
19695
21008
  /**
19696
- * Sample request: DELETE /api/v1/ServiceCategories/1
21009
+ *
19697
21010
  * @summary Delete ServiceCategory.
19698
21011
  * @param {string} serviceCategoryId
19699
21012
  * @param {*} [options] Override http request option.
@@ -19736,7 +21049,7 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
19736
21049
  });
19737
21050
  },
19738
21051
  /**
19739
- * Sample request: GET /api/v1/ServiceCategories/1
21052
+ *
19740
21053
  * @summary Get ServiceCategory.
19741
21054
  * @param {string} serviceCategoryId
19742
21055
  * @param {string} [languageCode]
@@ -19783,7 +21096,7 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
19783
21096
  });
19784
21097
  },
19785
21098
  /**
19786
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
21099
+ *
19787
21100
  * @summary Update ServiceCategory
19788
21101
  * @param {string} serviceCategoryId
19789
21102
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]
@@ -19838,7 +21151,7 @@ exports.ServicesCategoriesApiFp = function (configuration) {
19838
21151
  var localVarAxiosParamCreator = exports.ServicesCategoriesApiAxiosParamCreator(configuration);
19839
21152
  return {
19840
21153
  /**
19841
- * Sample request: GET /api/v1/ServiceCategories
21154
+ *
19842
21155
  * @summary Get all ServiceCategories.
19843
21156
  * @param {string} [id]
19844
21157
  * @param {string} [name]
@@ -19883,7 +21196,7 @@ exports.ServicesCategoriesApiFp = function (configuration) {
19883
21196
  });
19884
21197
  },
19885
21198
  /**
19886
- * Sample request: DELETE /api/v1/ServiceCategories/1
21199
+ *
19887
21200
  * @summary Delete ServiceCategory.
19888
21201
  * @param {string} serviceCategoryId
19889
21202
  * @param {*} [options] Override http request option.
@@ -19903,7 +21216,7 @@ exports.ServicesCategoriesApiFp = function (configuration) {
19903
21216
  });
19904
21217
  },
19905
21218
  /**
19906
- * Sample request: GET /api/v1/ServiceCategories/1
21219
+ *
19907
21220
  * @summary Get ServiceCategory.
19908
21221
  * @param {string} serviceCategoryId
19909
21222
  * @param {string} [languageCode]
@@ -19924,7 +21237,7 @@ exports.ServicesCategoriesApiFp = function (configuration) {
19924
21237
  });
19925
21238
  },
19926
21239
  /**
19927
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
21240
+ *
19928
21241
  * @summary Update ServiceCategory
19929
21242
  * @param {string} serviceCategoryId
19930
21243
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]
@@ -19954,7 +21267,7 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
19954
21267
  var localVarFp = exports.ServicesCategoriesApiFp(configuration);
19955
21268
  return {
19956
21269
  /**
19957
- * Sample request: GET /api/v1/ServiceCategories
21270
+ *
19958
21271
  * @summary Get all ServiceCategories.
19959
21272
  * @param {string} [id]
19960
21273
  * @param {string} [name]
@@ -19979,7 +21292,7 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
19979
21292
  return localVarFp.apiV1ServicescategoriesPost(createServiceCategoryCommand, options).then(function (request) { return request(axios, basePath); });
19980
21293
  },
19981
21294
  /**
19982
- * Sample request: DELETE /api/v1/ServiceCategories/1
21295
+ *
19983
21296
  * @summary Delete ServiceCategory.
19984
21297
  * @param {string} serviceCategoryId
19985
21298
  * @param {*} [options] Override http request option.
@@ -19989,7 +21302,7 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
19989
21302
  return localVarFp.apiV1ServicescategoriesServiceCategoryIdDelete(serviceCategoryId, options).then(function (request) { return request(axios, basePath); });
19990
21303
  },
19991
21304
  /**
19992
- * Sample request: GET /api/v1/ServiceCategories/1
21305
+ *
19993
21306
  * @summary Get ServiceCategory.
19994
21307
  * @param {string} serviceCategoryId
19995
21308
  * @param {string} [languageCode]
@@ -20000,7 +21313,7 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
20000
21313
  return localVarFp.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, languageCode, options).then(function (request) { return request(axios, basePath); });
20001
21314
  },
20002
21315
  /**
20003
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
21316
+ *
20004
21317
  * @summary Update ServiceCategory
20005
21318
  * @param {string} serviceCategoryId
20006
21319
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]
@@ -20024,7 +21337,7 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
20024
21337
  return _super !== null && _super.apply(this, arguments) || this;
20025
21338
  }
20026
21339
  /**
20027
- * Sample request: GET /api/v1/ServiceCategories
21340
+ *
20028
21341
  * @summary Get all ServiceCategories.
20029
21342
  * @param {string} [id]
20030
21343
  * @param {string} [name]
@@ -20053,7 +21366,7 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
20053
21366
  return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesPost(createServiceCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20054
21367
  };
20055
21368
  /**
20056
- * Sample request: DELETE /api/v1/ServiceCategories/1
21369
+ *
20057
21370
  * @summary Delete ServiceCategory.
20058
21371
  * @param {string} serviceCategoryId
20059
21372
  * @param {*} [options] Override http request option.
@@ -20065,7 +21378,7 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
20065
21378
  return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesServiceCategoryIdDelete(serviceCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20066
21379
  };
20067
21380
  /**
20068
- * Sample request: GET /api/v1/ServiceCategories/1
21381
+ *
20069
21382
  * @summary Get ServiceCategory.
20070
21383
  * @param {string} serviceCategoryId
20071
21384
  * @param {string} [languageCode]
@@ -20078,7 +21391,7 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
20078
21391
  return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
20079
21392
  };
20080
21393
  /**
20081
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
21394
+ *
20082
21395
  * @summary Update ServiceCategory
20083
21396
  * @param {string} serviceCategoryId
20084
21397
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]