ch-admin-api-client-typescript 5.1.5 → 5.1.6

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.
Files changed (45) hide show
  1. package/lib/api/articles-api.d.ts +55 -0
  2. package/lib/api/articles-api.d.ts.map +1 -1
  3. package/lib/api/articles-api.js +91 -0
  4. package/lib/api/contributors-api.d.ts +55 -0
  5. package/lib/api/contributors-api.d.ts.map +1 -1
  6. package/lib/api/contributors-api.js +91 -0
  7. package/lib/api/countries-api.d.ts +59 -4
  8. package/lib/api/countries-api.d.ts.map +1 -1
  9. package/lib/api/countries-api.js +95 -4
  10. package/lib/api/deals-api.d.ts +55 -0
  11. package/lib/api/deals-api.d.ts.map +1 -1
  12. package/lib/api/deals-api.js +91 -0
  13. package/lib/api/doctor-affiliations-api.d.ts +55 -0
  14. package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
  15. package/lib/api/doctor-affiliations-api.js +91 -0
  16. package/lib/api/doctors-api.d.ts +55 -0
  17. package/lib/api/doctors-api.d.ts.map +1 -1
  18. package/lib/api/doctors-api.js +91 -0
  19. package/lib/api/faq-categories-api.d.ts +55 -0
  20. package/lib/api/faq-categories-api.d.ts.map +1 -1
  21. package/lib/api/faq-categories-api.js +91 -0
  22. package/lib/api/faqs-api.d.ts +55 -0
  23. package/lib/api/faqs-api.d.ts.map +1 -1
  24. package/lib/api/faqs-api.js +91 -0
  25. package/lib/api/hospitals-api.d.ts +256 -0
  26. package/lib/api/hospitals-api.d.ts.map +1 -1
  27. package/lib/api/hospitals-api.js +388 -0
  28. package/lib/api/specialties-api.d.ts +55 -0
  29. package/lib/api/specialties-api.d.ts.map +1 -1
  30. package/lib/api/specialties-api.js +91 -0
  31. package/lib/api/specialty-types-api.d.ts +55 -0
  32. package/lib/api/specialty-types-api.d.ts.map +1 -1
  33. package/lib/api/specialty-types-api.js +91 -0
  34. package/package.json +1 -1
  35. package/src/api/articles-api.ts +99 -0
  36. package/src/api/contributors-api.ts +99 -0
  37. package/src/api/countries-api.ts +103 -4
  38. package/src/api/deals-api.ts +99 -0
  39. package/src/api/doctor-affiliations-api.ts +99 -0
  40. package/src/api/doctors-api.ts +99 -0
  41. package/src/api/faq-categories-api.ts +99 -0
  42. package/src/api/faqs-api.ts +99 -0
  43. package/src/api/hospitals-api.ts +448 -0
  44. package/src/api/specialties-api.ts +99 -0
  45. package/src/api/specialty-types-api.ts +99 -0
@@ -445,6 +445,49 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
445
445
 
446
446
 
447
447
 
448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
451
+
452
+ return {
453
+ url: toPathString(localVarUrlObj),
454
+ options: localVarRequestOptions,
455
+ };
456
+ },
457
+ /**
458
+ *
459
+ * @summary Revalidate country
460
+ * @param {string} countryId
461
+ * @param {boolean} [includeCurrent]
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ apiV1CountriesCountryIdRevalidatePost: async (countryId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
466
+ // verify required parameter 'countryId' is not null or undefined
467
+ assertParamExists('apiV1CountriesCountryIdRevalidatePost', 'countryId', countryId)
468
+ const localVarPath = `/api/v1/countries/{countryId}/revalidate`
469
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
472
+ let baseOptions;
473
+ if (configuration) {
474
+ baseOptions = configuration.baseOptions;
475
+ }
476
+
477
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
478
+ const localVarHeaderParameter = {} as any;
479
+ const localVarQueryParameter = {} as any;
480
+
481
+ // authentication oauth2 required
482
+ // oauth required
483
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
484
+
485
+ if (includeCurrent !== undefined) {
486
+ localVarQueryParameter['includeCurrent'] = includeCurrent;
487
+ }
488
+
489
+
490
+
448
491
  setSearchParams(localVarUrlObj, localVarQueryParameter);
449
492
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
493
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -577,7 +620,7 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
577
620
  },
578
621
  /**
579
622
  *
580
- * @summary
623
+ * @summary Get country by slug
581
624
  * @param {string} slug
582
625
  * @param {string} [languageCode]
583
626
  * @param {boolean} [returnDefaultValue]
@@ -746,6 +789,18 @@ export const CountriesApiFp = function(configuration?: Configuration) {
746
789
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdReactivePut(countryId, options);
747
790
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
748
791
  },
792
+ /**
793
+ *
794
+ * @summary Revalidate country
795
+ * @param {string} countryId
796
+ * @param {boolean} [includeCurrent]
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ async apiV1CountriesCountryIdRevalidatePost(countryId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
801
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdRevalidatePost(countryId, includeCurrent, options);
802
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
803
+ },
749
804
  /**
750
805
  *
751
806
  * @summary Get all countries.
@@ -778,7 +833,7 @@ export const CountriesApiFp = function(configuration?: Configuration) {
778
833
  },
779
834
  /**
780
835
  *
781
- * @summary
836
+ * @summary Get country by slug
782
837
  * @param {string} slug
783
838
  * @param {string} [languageCode]
784
839
  * @param {boolean} [returnDefaultValue]
@@ -903,6 +958,17 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
903
958
  apiV1CountriesCountryIdReactivePut(countryId: string, options?: any): AxiosPromise<boolean> {
904
959
  return localVarFp.apiV1CountriesCountryIdReactivePut(countryId, options).then((request) => request(axios, basePath));
905
960
  },
961
+ /**
962
+ *
963
+ * @summary Revalidate country
964
+ * @param {string} countryId
965
+ * @param {boolean} [includeCurrent]
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ apiV1CountriesCountryIdRevalidatePost(countryId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
970
+ return localVarFp.apiV1CountriesCountryIdRevalidatePost(countryId, includeCurrent, options).then((request) => request(axios, basePath));
971
+ },
906
972
  /**
907
973
  *
908
974
  * @summary Get all countries.
@@ -933,7 +999,7 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
933
999
  },
934
1000
  /**
935
1001
  *
936
- * @summary
1002
+ * @summary Get country by slug
937
1003
  * @param {string} slug
938
1004
  * @param {string} [languageCode]
939
1005
  * @param {boolean} [returnDefaultValue]
@@ -1170,6 +1236,27 @@ export interface CountriesApiApiV1CountriesCountryIdReactivePutRequest {
1170
1236
  readonly countryId: string
1171
1237
  }
1172
1238
 
1239
+ /**
1240
+ * Request parameters for apiV1CountriesCountryIdRevalidatePost operation in CountriesApi.
1241
+ * @export
1242
+ * @interface CountriesApiApiV1CountriesCountryIdRevalidatePostRequest
1243
+ */
1244
+ export interface CountriesApiApiV1CountriesCountryIdRevalidatePostRequest {
1245
+ /**
1246
+ *
1247
+ * @type {string}
1248
+ * @memberof CountriesApiApiV1CountriesCountryIdRevalidatePost
1249
+ */
1250
+ readonly countryId: string
1251
+
1252
+ /**
1253
+ *
1254
+ * @type {boolean}
1255
+ * @memberof CountriesApiApiV1CountriesCountryIdRevalidatePost
1256
+ */
1257
+ readonly includeCurrent?: boolean
1258
+ }
1259
+
1173
1260
  /**
1174
1261
  * Request parameters for apiV1CountriesGet operation in CountriesApi.
1175
1262
  * @export
@@ -1397,6 +1484,18 @@ export class CountriesApi extends BaseAPI {
1397
1484
  return CountriesApiFp(this.configuration).apiV1CountriesCountryIdReactivePut(requestParameters.countryId, options).then((request) => request(this.axios, this.basePath));
1398
1485
  }
1399
1486
 
1487
+ /**
1488
+ *
1489
+ * @summary Revalidate country
1490
+ * @param {CountriesApiApiV1CountriesCountryIdRevalidatePostRequest} requestParameters Request parameters.
1491
+ * @param {*} [options] Override http request option.
1492
+ * @throws {RequiredError}
1493
+ * @memberof CountriesApi
1494
+ */
1495
+ public apiV1CountriesCountryIdRevalidatePost(requestParameters: CountriesApiApiV1CountriesCountryIdRevalidatePostRequest, options?: AxiosRequestConfig) {
1496
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdRevalidatePost(requestParameters.countryId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
1497
+ }
1498
+
1400
1499
  /**
1401
1500
  *
1402
1501
  * @summary Get all countries.
@@ -1423,7 +1522,7 @@ export class CountriesApi extends BaseAPI {
1423
1522
 
1424
1523
  /**
1425
1524
  *
1426
- * @summary
1525
+ * @summary Get country by slug
1427
1526
  * @param {CountriesApiApiV1CountriesSlugGetRequest} requestParameters Request parameters.
1428
1527
  * @param {*} [options] Override http request option.
1429
1528
  * @throws {RequiredError}
@@ -941,6 +941,49 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
941
941
  options: localVarRequestOptions,
942
942
  };
943
943
  },
944
+ /**
945
+ *
946
+ * @summary Revalidate deal
947
+ * @param {string} dealId
948
+ * @param {boolean} [includeCurrent]
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ apiV1DealsDealIdRevalidatePost: async (dealId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
953
+ // verify required parameter 'dealId' is not null or undefined
954
+ assertParamExists('apiV1DealsDealIdRevalidatePost', 'dealId', dealId)
955
+ const localVarPath = `/api/v1/deals/{dealId}/revalidate`
956
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
957
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
958
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
959
+ let baseOptions;
960
+ if (configuration) {
961
+ baseOptions = configuration.baseOptions;
962
+ }
963
+
964
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
965
+ const localVarHeaderParameter = {} as any;
966
+ const localVarQueryParameter = {} as any;
967
+
968
+ // authentication oauth2 required
969
+ // oauth required
970
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
971
+
972
+ if (includeCurrent !== undefined) {
973
+ localVarQueryParameter['includeCurrent'] = includeCurrent;
974
+ }
975
+
976
+
977
+
978
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
979
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
980
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
981
+
982
+ return {
983
+ url: toPathString(localVarUrlObj),
984
+ options: localVarRequestOptions,
985
+ };
986
+ },
944
987
  /**
945
988
  *
946
989
  * @summary Get all DealService.
@@ -1793,6 +1836,18 @@ export const DealsApiFp = function(configuration?: Configuration) {
1793
1836
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPut(dealId, updateDealCommand, options);
1794
1837
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1795
1838
  },
1839
+ /**
1840
+ *
1841
+ * @summary Revalidate deal
1842
+ * @param {string} dealId
1843
+ * @param {boolean} [includeCurrent]
1844
+ * @param {*} [options] Override http request option.
1845
+ * @throws {RequiredError}
1846
+ */
1847
+ async apiV1DealsDealIdRevalidatePost(dealId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
1848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdRevalidatePost(dealId, includeCurrent, options);
1849
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1850
+ },
1796
1851
  /**
1797
1852
  *
1798
1853
  * @summary Get all DealService.
@@ -2167,6 +2222,17 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
2167
2222
  apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: any): AxiosPromise<DealModel> {
2168
2223
  return localVarFp.apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(axios, basePath));
2169
2224
  },
2225
+ /**
2226
+ *
2227
+ * @summary Revalidate deal
2228
+ * @param {string} dealId
2229
+ * @param {boolean} [includeCurrent]
2230
+ * @param {*} [options] Override http request option.
2231
+ * @throws {RequiredError}
2232
+ */
2233
+ apiV1DealsDealIdRevalidatePost(dealId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
2234
+ return localVarFp.apiV1DealsDealIdRevalidatePost(dealId, includeCurrent, options).then((request) => request(axios, basePath));
2235
+ },
2170
2236
  /**
2171
2237
  *
2172
2238
  * @summary Get all DealService.
@@ -2895,6 +2961,27 @@ export interface DealsApiApiV1DealsDealIdPutRequest {
2895
2961
  readonly updateDealCommand?: UpdateDealCommand
2896
2962
  }
2897
2963
 
2964
+ /**
2965
+ * Request parameters for apiV1DealsDealIdRevalidatePost operation in DealsApi.
2966
+ * @export
2967
+ * @interface DealsApiApiV1DealsDealIdRevalidatePostRequest
2968
+ */
2969
+ export interface DealsApiApiV1DealsDealIdRevalidatePostRequest {
2970
+ /**
2971
+ *
2972
+ * @type {string}
2973
+ * @memberof DealsApiApiV1DealsDealIdRevalidatePost
2974
+ */
2975
+ readonly dealId: string
2976
+
2977
+ /**
2978
+ *
2979
+ * @type {boolean}
2980
+ * @memberof DealsApiApiV1DealsDealIdRevalidatePost
2981
+ */
2982
+ readonly includeCurrent?: boolean
2983
+ }
2984
+
2898
2985
  /**
2899
2986
  * Request parameters for apiV1DealsDealIdServicesGet operation in DealsApi.
2900
2987
  * @export
@@ -3598,6 +3685,18 @@ export class DealsApi extends BaseAPI {
3598
3685
  return DealsApiFp(this.configuration).apiV1DealsDealIdPut(requestParameters.dealId, requestParameters.updateDealCommand, options).then((request) => request(this.axios, this.basePath));
3599
3686
  }
3600
3687
 
3688
+ /**
3689
+ *
3690
+ * @summary Revalidate deal
3691
+ * @param {DealsApiApiV1DealsDealIdRevalidatePostRequest} requestParameters Request parameters.
3692
+ * @param {*} [options] Override http request option.
3693
+ * @throws {RequiredError}
3694
+ * @memberof DealsApi
3695
+ */
3696
+ public apiV1DealsDealIdRevalidatePost(requestParameters: DealsApiApiV1DealsDealIdRevalidatePostRequest, options?: AxiosRequestConfig) {
3697
+ return DealsApiFp(this.configuration).apiV1DealsDealIdRevalidatePost(requestParameters.dealId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
3698
+ }
3699
+
3601
3700
  /**
3602
3701
  *
3603
3702
  * @summary Get all DealService.
@@ -782,6 +782,49 @@ export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?:
782
782
 
783
783
 
784
784
 
785
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
786
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
787
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
788
+
789
+ return {
790
+ url: toPathString(localVarUrlObj),
791
+ options: localVarRequestOptions,
792
+ };
793
+ },
794
+ /**
795
+ *
796
+ * @summary Revalidate doctorAffiliation
797
+ * @param {string} id
798
+ * @param {boolean} [includeCurrent]
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ apiV1DoctoraffiliationsIdRevalidatePost: async (id: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
803
+ // verify required parameter 'id' is not null or undefined
804
+ assertParamExists('apiV1DoctoraffiliationsIdRevalidatePost', 'id', id)
805
+ const localVarPath = `/api/v1/doctoraffiliations/{id}/revalidate`
806
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
807
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
808
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
809
+ let baseOptions;
810
+ if (configuration) {
811
+ baseOptions = configuration.baseOptions;
812
+ }
813
+
814
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
815
+ const localVarHeaderParameter = {} as any;
816
+ const localVarQueryParameter = {} as any;
817
+
818
+ // authentication oauth2 required
819
+ // oauth required
820
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
821
+
822
+ if (includeCurrent !== undefined) {
823
+ localVarQueryParameter['includeCurrent'] = includeCurrent;
824
+ }
825
+
826
+
827
+
785
828
  setSearchParams(localVarUrlObj, localVarQueryParameter);
786
829
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
787
830
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1072,6 +1115,18 @@ export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
1072
1115
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctoraffiliationsIdReactivePut(id, options);
1073
1116
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1074
1117
  },
1118
+ /**
1119
+ *
1120
+ * @summary Revalidate doctorAffiliation
1121
+ * @param {string} id
1122
+ * @param {boolean} [includeCurrent]
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ */
1126
+ async apiV1DoctoraffiliationsIdRevalidatePost(id: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
1127
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctoraffiliationsIdRevalidatePost(id, includeCurrent, options);
1128
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1129
+ },
1075
1130
  /**
1076
1131
  *
1077
1132
  * @summary Translate doctorAffiliation at once
@@ -1282,6 +1337,17 @@ export const DoctorAffiliationsApiFactory = function (configuration?: Configurat
1282
1337
  apiV1DoctoraffiliationsIdReactivePut(id: string, options?: any): AxiosPromise<boolean> {
1283
1338
  return localVarFp.apiV1DoctoraffiliationsIdReactivePut(id, options).then((request) => request(axios, basePath));
1284
1339
  },
1340
+ /**
1341
+ *
1342
+ * @summary Revalidate doctorAffiliation
1343
+ * @param {string} id
1344
+ * @param {boolean} [includeCurrent]
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ */
1348
+ apiV1DoctoraffiliationsIdRevalidatePost(id: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
1349
+ return localVarFp.apiV1DoctoraffiliationsIdRevalidatePost(id, includeCurrent, options).then((request) => request(axios, basePath));
1350
+ },
1285
1351
  /**
1286
1352
  *
1287
1353
  * @summary Translate doctorAffiliation at once
@@ -1767,6 +1833,27 @@ export interface DoctorAffiliationsApiApiV1DoctoraffiliationsIdReactivePutReques
1767
1833
  readonly id: string
1768
1834
  }
1769
1835
 
1836
+ /**
1837
+ * Request parameters for apiV1DoctoraffiliationsIdRevalidatePost operation in DoctorAffiliationsApi.
1838
+ * @export
1839
+ * @interface DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest
1840
+ */
1841
+ export interface DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest {
1842
+ /**
1843
+ *
1844
+ * @type {string}
1845
+ * @memberof DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePost
1846
+ */
1847
+ readonly id: string
1848
+
1849
+ /**
1850
+ *
1851
+ * @type {boolean}
1852
+ * @memberof DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePost
1853
+ */
1854
+ readonly includeCurrent?: boolean
1855
+ }
1856
+
1770
1857
  /**
1771
1858
  * Request parameters for apiV1DoctoraffiliationsIdTranslatePost operation in DoctorAffiliationsApi.
1772
1859
  * @export
@@ -1977,6 +2064,18 @@ export class DoctorAffiliationsApi extends BaseAPI {
1977
2064
  return DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsIdReactivePut(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1978
2065
  }
1979
2066
 
2067
+ /**
2068
+ *
2069
+ * @summary Revalidate doctorAffiliation
2070
+ * @param {DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest} requestParameters Request parameters.
2071
+ * @param {*} [options] Override http request option.
2072
+ * @throws {RequiredError}
2073
+ * @memberof DoctorAffiliationsApi
2074
+ */
2075
+ public apiV1DoctoraffiliationsIdRevalidatePost(requestParameters: DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest, options?: AxiosRequestConfig) {
2076
+ return DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsIdRevalidatePost(requestParameters.id, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
2077
+ }
2078
+
1980
2079
  /**
1981
2080
  *
1982
2081
  * @summary Translate doctorAffiliation at once
@@ -1463,6 +1463,49 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
1463
1463
 
1464
1464
 
1465
1465
 
1466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1469
+
1470
+ return {
1471
+ url: toPathString(localVarUrlObj),
1472
+ options: localVarRequestOptions,
1473
+ };
1474
+ },
1475
+ /**
1476
+ *
1477
+ * @summary Revalidate doctor
1478
+ * @param {string} doctorId
1479
+ * @param {boolean} [includeCurrent]
1480
+ * @param {*} [options] Override http request option.
1481
+ * @throws {RequiredError}
1482
+ */
1483
+ apiV1DoctorsDoctorIdRevalidatePost: async (doctorId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1484
+ // verify required parameter 'doctorId' is not null or undefined
1485
+ assertParamExists('apiV1DoctorsDoctorIdRevalidatePost', 'doctorId', doctorId)
1486
+ const localVarPath = `/api/v1/doctors/{doctorId}/revalidate`
1487
+ .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
1488
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1489
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1490
+ let baseOptions;
1491
+ if (configuration) {
1492
+ baseOptions = configuration.baseOptions;
1493
+ }
1494
+
1495
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1496
+ const localVarHeaderParameter = {} as any;
1497
+ const localVarQueryParameter = {} as any;
1498
+
1499
+ // authentication oauth2 required
1500
+ // oauth required
1501
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1502
+
1503
+ if (includeCurrent !== undefined) {
1504
+ localVarQueryParameter['includeCurrent'] = includeCurrent;
1505
+ }
1506
+
1507
+
1508
+
1466
1509
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1467
1510
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1468
1511
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2374,6 +2417,18 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
2374
2417
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdReactivePut(doctorId, options);
2375
2418
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2376
2419
  },
2420
+ /**
2421
+ *
2422
+ * @summary Revalidate doctor
2423
+ * @param {string} doctorId
2424
+ * @param {boolean} [includeCurrent]
2425
+ * @param {*} [options] Override http request option.
2426
+ * @throws {RequiredError}
2427
+ */
2428
+ async apiV1DoctorsDoctorIdRevalidatePost(doctorId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdRevalidatePost(doctorId, includeCurrent, options);
2430
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2431
+ },
2377
2432
  /**
2378
2433
  *
2379
2434
  * @summary Get All DoctorSpecialties.
@@ -2860,6 +2915,17 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
2860
2915
  apiV1DoctorsDoctorIdReactivePut(doctorId: string, options?: any): AxiosPromise<boolean> {
2861
2916
  return localVarFp.apiV1DoctorsDoctorIdReactivePut(doctorId, options).then((request) => request(axios, basePath));
2862
2917
  },
2918
+ /**
2919
+ *
2920
+ * @summary Revalidate doctor
2921
+ * @param {string} doctorId
2922
+ * @param {boolean} [includeCurrent]
2923
+ * @param {*} [options] Override http request option.
2924
+ * @throws {RequiredError}
2925
+ */
2926
+ apiV1DoctorsDoctorIdRevalidatePost(doctorId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
2927
+ return localVarFp.apiV1DoctorsDoctorIdRevalidatePost(doctorId, includeCurrent, options).then((request) => request(axios, basePath));
2928
+ },
2863
2929
  /**
2864
2930
  *
2865
2931
  * @summary Get All DoctorSpecialties.
@@ -3795,6 +3861,27 @@ export interface DoctorsApiApiV1DoctorsDoctorIdReactivePutRequest {
3795
3861
  readonly doctorId: string
3796
3862
  }
3797
3863
 
3864
+ /**
3865
+ * Request parameters for apiV1DoctorsDoctorIdRevalidatePost operation in DoctorsApi.
3866
+ * @export
3867
+ * @interface DoctorsApiApiV1DoctorsDoctorIdRevalidatePostRequest
3868
+ */
3869
+ export interface DoctorsApiApiV1DoctorsDoctorIdRevalidatePostRequest {
3870
+ /**
3871
+ *
3872
+ * @type {string}
3873
+ * @memberof DoctorsApiApiV1DoctorsDoctorIdRevalidatePost
3874
+ */
3875
+ readonly doctorId: string
3876
+
3877
+ /**
3878
+ *
3879
+ * @type {boolean}
3880
+ * @memberof DoctorsApiApiV1DoctorsDoctorIdRevalidatePost
3881
+ */
3882
+ readonly includeCurrent?: boolean
3883
+ }
3884
+
3798
3885
  /**
3799
3886
  * Request parameters for apiV1DoctorsDoctorIdSpecialtiesGet operation in DoctorsApi.
3800
3887
  * @export
@@ -4542,6 +4629,18 @@ export class DoctorsApi extends BaseAPI {
4542
4629
  return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdReactivePut(requestParameters.doctorId, options).then((request) => request(this.axios, this.basePath));
4543
4630
  }
4544
4631
 
4632
+ /**
4633
+ *
4634
+ * @summary Revalidate doctor
4635
+ * @param {DoctorsApiApiV1DoctorsDoctorIdRevalidatePostRequest} requestParameters Request parameters.
4636
+ * @param {*} [options] Override http request option.
4637
+ * @throws {RequiredError}
4638
+ * @memberof DoctorsApi
4639
+ */
4640
+ public apiV1DoctorsDoctorIdRevalidatePost(requestParameters: DoctorsApiApiV1DoctorsDoctorIdRevalidatePostRequest, options?: AxiosRequestConfig) {
4641
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdRevalidatePost(requestParameters.doctorId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
4642
+ }
4643
+
4545
4644
  /**
4546
4645
  *
4547
4646
  * @summary Get All DoctorSpecialties.