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
@@ -174,6 +174,49 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
174
174
  options: localVarRequestOptions,
175
175
  };
176
176
  },
177
+ /**
178
+ *
179
+ * @summary Revalidate faqCategory
180
+ * @param {string} faqCategoryId
181
+ * @param {boolean} [includeCurrent]
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ apiV1FaqcategoriesFaqCategoryIdRevalidatePost: async (faqCategoryId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
186
+ // verify required parameter 'faqCategoryId' is not null or undefined
187
+ assertParamExists('apiV1FaqcategoriesFaqCategoryIdRevalidatePost', 'faqCategoryId', faqCategoryId)
188
+ const localVarPath = `/api/v1/faqcategories/{faqCategoryId}/revalidate`
189
+ .replace(`{${"faqCategoryId"}}`, encodeURIComponent(String(faqCategoryId)));
190
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
191
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
192
+ let baseOptions;
193
+ if (configuration) {
194
+ baseOptions = configuration.baseOptions;
195
+ }
196
+
197
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
198
+ const localVarHeaderParameter = {} as any;
199
+ const localVarQueryParameter = {} as any;
200
+
201
+ // authentication oauth2 required
202
+ // oauth required
203
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
204
+
205
+ if (includeCurrent !== undefined) {
206
+ localVarQueryParameter['includeCurrent'] = includeCurrent;
207
+ }
208
+
209
+
210
+
211
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
214
+
215
+ return {
216
+ url: toPathString(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ };
219
+ },
177
220
  /**
178
221
  *
179
222
  * @summary Get all FaqCategories.
@@ -394,6 +437,18 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
394
437
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options);
395
438
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
396
439
  },
440
+ /**
441
+ *
442
+ * @summary Revalidate faqCategory
443
+ * @param {string} faqCategoryId
444
+ * @param {boolean} [includeCurrent]
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ async apiV1FaqcategoriesFaqCategoryIdRevalidatePost(faqCategoryId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdRevalidatePost(faqCategoryId, includeCurrent, options);
450
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
451
+ },
397
452
  /**
398
453
  *
399
454
  * @summary Get all FaqCategories.
@@ -483,6 +538,17 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
483
538
  apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId: string, updateFaqCategoryCommand?: UpdateFaqCategoryCommand, options?: any): AxiosPromise<FaqCategoryModel> {
484
539
  return localVarFp.apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options).then((request) => request(axios, basePath));
485
540
  },
541
+ /**
542
+ *
543
+ * @summary Revalidate faqCategory
544
+ * @param {string} faqCategoryId
545
+ * @param {boolean} [includeCurrent]
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ apiV1FaqcategoriesFaqCategoryIdRevalidatePost(faqCategoryId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
550
+ return localVarFp.apiV1FaqcategoriesFaqCategoryIdRevalidatePost(faqCategoryId, includeCurrent, options).then((request) => request(axios, basePath));
551
+ },
486
552
  /**
487
553
  *
488
554
  * @summary Get all FaqCategories.
@@ -604,6 +670,27 @@ export interface FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdPutRequest {
604
670
  readonly updateFaqCategoryCommand?: UpdateFaqCategoryCommand
605
671
  }
606
672
 
673
+ /**
674
+ * Request parameters for apiV1FaqcategoriesFaqCategoryIdRevalidatePost operation in FaqCategoriesApi.
675
+ * @export
676
+ * @interface FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdRevalidatePostRequest
677
+ */
678
+ export interface FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdRevalidatePostRequest {
679
+ /**
680
+ *
681
+ * @type {string}
682
+ * @memberof FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdRevalidatePost
683
+ */
684
+ readonly faqCategoryId: string
685
+
686
+ /**
687
+ *
688
+ * @type {boolean}
689
+ * @memberof FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdRevalidatePost
690
+ */
691
+ readonly includeCurrent?: boolean
692
+ }
693
+
607
694
  /**
608
695
  * Request parameters for apiV1FaqcategoriesGet operation in FaqCategoriesApi.
609
696
  * @export
@@ -766,6 +853,18 @@ export class FaqCategoriesApi extends BaseAPI {
766
853
  return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdPut(requestParameters.faqCategoryId, requestParameters.updateFaqCategoryCommand, options).then((request) => request(this.axios, this.basePath));
767
854
  }
768
855
 
856
+ /**
857
+ *
858
+ * @summary Revalidate faqCategory
859
+ * @param {FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdRevalidatePostRequest} requestParameters Request parameters.
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ * @memberof FaqCategoriesApi
863
+ */
864
+ public apiV1FaqcategoriesFaqCategoryIdRevalidatePost(requestParameters: FaqCategoriesApiApiV1FaqcategoriesFaqCategoryIdRevalidatePostRequest, options?: AxiosRequestConfig) {
865
+ return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdRevalidatePost(requestParameters.faqCategoryId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
866
+ }
867
+
769
868
  /**
770
869
  *
771
870
  * @summary Get all FaqCategories.
@@ -427,6 +427,49 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
427
427
  options: localVarRequestOptions,
428
428
  };
429
429
  },
430
+ /**
431
+ *
432
+ * @summary Revalidate faq
433
+ * @param {string} faqId
434
+ * @param {boolean} [includeCurrent]
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ apiV1FaqsFaqIdRevalidatePost: async (faqId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
439
+ // verify required parameter 'faqId' is not null or undefined
440
+ assertParamExists('apiV1FaqsFaqIdRevalidatePost', 'faqId', faqId)
441
+ const localVarPath = `/api/v1/faqs/{faqId}/revalidate`
442
+ .replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
443
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
444
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
445
+ let baseOptions;
446
+ if (configuration) {
447
+ baseOptions = configuration.baseOptions;
448
+ }
449
+
450
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
451
+ const localVarHeaderParameter = {} as any;
452
+ const localVarQueryParameter = {} as any;
453
+
454
+ // authentication oauth2 required
455
+ // oauth required
456
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
457
+
458
+ if (includeCurrent !== undefined) {
459
+ localVarQueryParameter['includeCurrent'] = includeCurrent;
460
+ }
461
+
462
+
463
+
464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
467
+
468
+ return {
469
+ url: toPathString(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ };
472
+ },
430
473
  /**
431
474
  *
432
475
  * @summary GetAll FaqTags.
@@ -903,6 +946,18 @@ export const FaqsApiFp = function(configuration?: Configuration) {
903
946
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options);
904
947
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
905
948
  },
949
+ /**
950
+ *
951
+ * @summary Revalidate faq
952
+ * @param {string} faqId
953
+ * @param {boolean} [includeCurrent]
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ */
957
+ async apiV1FaqsFaqIdRevalidatePost(faqId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
958
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdRevalidatePost(faqId, includeCurrent, options);
959
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
960
+ },
906
961
  /**
907
962
  *
908
963
  * @summary GetAll FaqTags.
@@ -1104,6 +1159,17 @@ export const FaqsApiFactory = function (configuration?: Configuration, basePath?
1104
1159
  apiV1FaqsFaqIdPut(faqId: string, updateFaqCommand?: UpdateFaqCommand, options?: any): AxiosPromise<FaqModel> {
1105
1160
  return localVarFp.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then((request) => request(axios, basePath));
1106
1161
  },
1162
+ /**
1163
+ *
1164
+ * @summary Revalidate faq
1165
+ * @param {string} faqId
1166
+ * @param {boolean} [includeCurrent]
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ apiV1FaqsFaqIdRevalidatePost(faqId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
1171
+ return localVarFp.apiV1FaqsFaqIdRevalidatePost(faqId, includeCurrent, options).then((request) => request(axios, basePath));
1172
+ },
1107
1173
  /**
1108
1174
  *
1109
1175
  * @summary GetAll FaqTags.
@@ -1413,6 +1479,27 @@ export interface FaqsApiApiV1FaqsFaqIdPutRequest {
1413
1479
  readonly updateFaqCommand?: UpdateFaqCommand
1414
1480
  }
1415
1481
 
1482
+ /**
1483
+ * Request parameters for apiV1FaqsFaqIdRevalidatePost operation in FaqsApi.
1484
+ * @export
1485
+ * @interface FaqsApiApiV1FaqsFaqIdRevalidatePostRequest
1486
+ */
1487
+ export interface FaqsApiApiV1FaqsFaqIdRevalidatePostRequest {
1488
+ /**
1489
+ *
1490
+ * @type {string}
1491
+ * @memberof FaqsApiApiV1FaqsFaqIdRevalidatePost
1492
+ */
1493
+ readonly faqId: string
1494
+
1495
+ /**
1496
+ *
1497
+ * @type {boolean}
1498
+ * @memberof FaqsApiApiV1FaqsFaqIdRevalidatePost
1499
+ */
1500
+ readonly includeCurrent?: boolean
1501
+ }
1502
+
1416
1503
  /**
1417
1504
  * Request parameters for apiV1FaqsFaqIdTagsGet operation in FaqsApi.
1418
1505
  * @export
@@ -1747,6 +1834,18 @@ export class FaqsApi extends BaseAPI {
1747
1834
  return FaqsApiFp(this.configuration).apiV1FaqsFaqIdPut(requestParameters.faqId, requestParameters.updateFaqCommand, options).then((request) => request(this.axios, this.basePath));
1748
1835
  }
1749
1836
 
1837
+ /**
1838
+ *
1839
+ * @summary Revalidate faq
1840
+ * @param {FaqsApiApiV1FaqsFaqIdRevalidatePostRequest} requestParameters Request parameters.
1841
+ * @param {*} [options] Override http request option.
1842
+ * @throws {RequiredError}
1843
+ * @memberof FaqsApi
1844
+ */
1845
+ public apiV1FaqsFaqIdRevalidatePost(requestParameters: FaqsApiApiV1FaqsFaqIdRevalidatePostRequest, options?: AxiosRequestConfig) {
1846
+ return FaqsApiFp(this.configuration).apiV1FaqsFaqIdRevalidatePost(requestParameters.faqId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
1847
+ }
1848
+
1750
1849
  /**
1751
1850
  *
1752
1851
  * @summary GetAll FaqTags.