ch-api-client-typescript2 5.19.0 → 5.19.4

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.
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { AppointmentTimetablesModel } from '../models';
25
25
  // @ts-ignore
26
+ import { ArticleModel } from '../models';
27
+ // @ts-ignore
26
28
  import { BankAccountInfoModel } from '../models';
27
29
  // @ts-ignore
28
30
  import { BankAccountInfosModel } from '../models';
@@ -435,6 +437,59 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
435
437
 
436
438
 
437
439
 
440
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
442
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
443
+
444
+ return {
445
+ url: toPathString(localVarUrlObj),
446
+ options: localVarRequestOptions,
447
+ };
448
+ },
449
+ /**
450
+ *
451
+ * @summary Get hospital article by slug
452
+ * @param {string} hospitalId
453
+ * @param {string} slug
454
+ * @param {string} [languageCode]
455
+ * @param {boolean} [returnDefaultValue]
456
+ * @param {string} [previewSecret]
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ apiV2HospitalsHospitalIdArticlesSlugGet: async (hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
461
+ // verify required parameter 'hospitalId' is not null or undefined
462
+ assertParamExists('apiV2HospitalsHospitalIdArticlesSlugGet', 'hospitalId', hospitalId)
463
+ // verify required parameter 'slug' is not null or undefined
464
+ assertParamExists('apiV2HospitalsHospitalIdArticlesSlugGet', 'slug', slug)
465
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/articles/{slug}`
466
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
467
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
469
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
470
+ let baseOptions;
471
+ if (configuration) {
472
+ baseOptions = configuration.baseOptions;
473
+ }
474
+
475
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
476
+ const localVarHeaderParameter = {} as any;
477
+ const localVarQueryParameter = {} as any;
478
+
479
+ if (languageCode !== undefined) {
480
+ localVarQueryParameter['languageCode'] = languageCode;
481
+ }
482
+
483
+ if (returnDefaultValue !== undefined) {
484
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
485
+ }
486
+
487
+ if (previewSecret !== undefined) {
488
+ localVarQueryParameter['previewSecret'] = previewSecret;
489
+ }
490
+
491
+
492
+
438
493
  setSearchParams(localVarUrlObj, localVarQueryParameter);
439
494
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
440
495
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3119,6 +3174,21 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3119
3174
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options);
3120
3175
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3121
3176
  },
3177
+ /**
3178
+ *
3179
+ * @summary Get hospital article by slug
3180
+ * @param {string} hospitalId
3181
+ * @param {string} slug
3182
+ * @param {string} [languageCode]
3183
+ * @param {boolean} [returnDefaultValue]
3184
+ * @param {string} [previewSecret]
3185
+ * @param {*} [options] Override http request option.
3186
+ * @throws {RequiredError}
3187
+ */
3188
+ async apiV2HospitalsHospitalIdArticlesSlugGet(hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
3189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdArticlesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, previewSecret, options);
3190
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3191
+ },
3122
3192
  /**
3123
3193
  *
3124
3194
  * @summary Get bank account info
@@ -3903,6 +3973,20 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
3903
3973
  apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
3904
3974
  return localVarFp.apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options).then((request) => request(axios, basePath));
3905
3975
  },
3976
+ /**
3977
+ *
3978
+ * @summary Get hospital article by slug
3979
+ * @param {string} hospitalId
3980
+ * @param {string} slug
3981
+ * @param {string} [languageCode]
3982
+ * @param {boolean} [returnDefaultValue]
3983
+ * @param {string} [previewSecret]
3984
+ * @param {*} [options] Override http request option.
3985
+ * @throws {RequiredError}
3986
+ */
3987
+ apiV2HospitalsHospitalIdArticlesSlugGet(hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<ArticleModel> {
3988
+ return localVarFp.apiV2HospitalsHospitalIdArticlesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
3989
+ },
3906
3990
  /**
3907
3991
  *
3908
3992
  * @summary Get bank account info
@@ -4843,6 +4927,48 @@ export interface HospitalsApiApiV2HospitalsHospitalIdAppointmenttimetablesGetReq
4843
4927
  readonly appointmentIdExcluded?: string
4844
4928
  }
4845
4929
 
4930
+ /**
4931
+ * Request parameters for apiV2HospitalsHospitalIdArticlesSlugGet operation in HospitalsApi.
4932
+ * @export
4933
+ * @interface HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGetRequest
4934
+ */
4935
+ export interface HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGetRequest {
4936
+ /**
4937
+ *
4938
+ * @type {string}
4939
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGet
4940
+ */
4941
+ readonly hospitalId: string
4942
+
4943
+ /**
4944
+ *
4945
+ * @type {string}
4946
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGet
4947
+ */
4948
+ readonly slug: string
4949
+
4950
+ /**
4951
+ *
4952
+ * @type {string}
4953
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGet
4954
+ */
4955
+ readonly languageCode?: string
4956
+
4957
+ /**
4958
+ *
4959
+ * @type {boolean}
4960
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGet
4961
+ */
4962
+ readonly returnDefaultValue?: boolean
4963
+
4964
+ /**
4965
+ *
4966
+ * @type {string}
4967
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGet
4968
+ */
4969
+ readonly previewSecret?: string
4970
+ }
4971
+
4846
4972
  /**
4847
4973
  * Request parameters for apiV2HospitalsHospitalIdBankaccountinfosBankAccountInfoIdGet operation in HospitalsApi.
4848
4974
  * @export
@@ -6995,6 +7121,18 @@ export class HospitalsApi extends BaseAPI {
6995
7121
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdAppointmenttimetablesGet(requestParameters.hospitalId, requestParameters.year, requestParameters.month, requestParameters.timeZone, requestParameters.isExternal, requestParameters.isOnline, requestParameters.appointmentIdExcluded, options).then((request) => request(this.axios, this.basePath));
6996
7122
  }
6997
7123
 
7124
+ /**
7125
+ *
7126
+ * @summary Get hospital article by slug
7127
+ * @param {HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGetRequest} requestParameters Request parameters.
7128
+ * @param {*} [options] Override http request option.
7129
+ * @throws {RequiredError}
7130
+ * @memberof HospitalsApi
7131
+ */
7132
+ public apiV2HospitalsHospitalIdArticlesSlugGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdArticlesSlugGetRequest, options?: AxiosRequestConfig) {
7133
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdArticlesSlugGet(requestParameters.hospitalId, requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
7134
+ }
7135
+
6998
7136
  /**
6999
7137
  *
7000
7138
  * @summary Get bank account info
@@ -38,5 +38,11 @@ export interface AccreditationDocumentModel {
38
38
  * @memberof AccreditationDocumentModel
39
39
  */
40
40
  'Country'?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof AccreditationDocumentModel
45
+ */
46
+ 'Description'?: string | null;
41
47
  }
42
48
 
@@ -44,5 +44,11 @@ export interface AccreditationItemModel {
44
44
  * @memberof AccreditationItemModel
45
45
  */
46
46
  'country'?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof AccreditationItemModel
51
+ */
52
+ 'description'?: string | null;
47
53
  }
48
54
 
@@ -44,5 +44,11 @@ export interface AccreditationModel {
44
44
  * @memberof AccreditationModel
45
45
  */
46
46
  'country'?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof AccreditationModel
51
+ */
52
+ 'description'?: string | null;
47
53
  }
48
54
 
@@ -44,5 +44,11 @@ export interface HospitalAccreditationItemModel {
44
44
  * @memberof HospitalAccreditationItemModel
45
45
  */
46
46
  'accreditationLogo'?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof HospitalAccreditationItemModel
51
+ */
52
+ 'accreditationDescription'?: string | null;
47
53
  }
48
54
 
@@ -44,5 +44,11 @@ export interface HospitalAccreditationModel {
44
44
  * @memberof HospitalAccreditationModel
45
45
  */
46
46
  'accreditationLogo'?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof HospitalAccreditationModel
51
+ */
52
+ 'accreditationDescription'?: string | null;
47
53
  }
48
54