ch-admin-api-client-typescript 5.13.5 → 5.13.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.
@@ -169,6 +169,8 @@ import { TranslateHospitalServiceCommand } from '../models';
169
169
  // @ts-ignore
170
170
  import { TranslateHospitalSpecialtyCommand } from '../models';
171
171
  // @ts-ignore
172
+ import { TranslateLandingCommand } from '../models';
173
+ // @ts-ignore
172
174
  import { UpdateHospitalBankAccountInfoCommand } from '../models';
173
175
  // @ts-ignore
174
176
  import { UpdateHospitalCommand } from '../models';
@@ -2884,6 +2886,52 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2884
2886
  options: localVarRequestOptions,
2885
2887
  };
2886
2888
  },
2889
+ /**
2890
+ *
2891
+ * @summary Translate landing
2892
+ * @param {string} hospitalId
2893
+ * @param {string} landingId
2894
+ * @param {TranslateLandingCommand} [translateLandingCommand]
2895
+ * @param {*} [options] Override http request option.
2896
+ * @throws {RequiredError}
2897
+ */
2898
+ apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost: async (hospitalId: string, landingId: string, translateLandingCommand?: TranslateLandingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2899
+ // verify required parameter 'hospitalId' is not null or undefined
2900
+ assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost', 'hospitalId', hospitalId)
2901
+ // verify required parameter 'landingId' is not null or undefined
2902
+ assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost', 'landingId', landingId)
2903
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/landings/{landingId}/translate`
2904
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
2905
+ .replace(`{${"landingId"}}`, encodeURIComponent(String(landingId)));
2906
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2907
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2908
+ let baseOptions;
2909
+ if (configuration) {
2910
+ baseOptions = configuration.baseOptions;
2911
+ }
2912
+
2913
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2914
+ const localVarHeaderParameter = {} as any;
2915
+ const localVarQueryParameter = {} as any;
2916
+
2917
+ // authentication oauth2 required
2918
+ // oauth required
2919
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
2920
+
2921
+
2922
+
2923
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2924
+
2925
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2926
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2927
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2928
+ localVarRequestOptions.data = serializeDataIfNeeded(translateLandingCommand, localVarRequestOptions, configuration)
2929
+
2930
+ return {
2931
+ url: toPathString(localVarUrlObj),
2932
+ options: localVarRequestOptions,
2933
+ };
2934
+ },
2887
2935
  /**
2888
2936
  *
2889
2937
  * @summary Create HospitalLandings.
@@ -8114,6 +8162,19 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
8114
8162
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsLandingIdRevalidatePost(hospitalId, landingId, includeCurrent, options);
8115
8163
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8116
8164
  },
8165
+ /**
8166
+ *
8167
+ * @summary Translate landing
8168
+ * @param {string} hospitalId
8169
+ * @param {string} landingId
8170
+ * @param {TranslateLandingCommand} [translateLandingCommand]
8171
+ * @param {*} [options] Override http request option.
8172
+ * @throws {RequiredError}
8173
+ */
8174
+ async apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost(hospitalId: string, landingId: string, translateLandingCommand?: TranslateLandingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
8175
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost(hospitalId, landingId, translateLandingCommand, options);
8176
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8177
+ },
8117
8178
  /**
8118
8179
  *
8119
8180
  * @summary Create HospitalLandings.
@@ -9992,6 +10053,18 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
9992
10053
  apiV1HospitalsHospitalIdLandingsLandingIdRevalidatePost(hospitalId: string, landingId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
9993
10054
  return localVarFp.apiV1HospitalsHospitalIdLandingsLandingIdRevalidatePost(hospitalId, landingId, includeCurrent, options).then((request) => request(axios, basePath));
9994
10055
  },
10056
+ /**
10057
+ *
10058
+ * @summary Translate landing
10059
+ * @param {string} hospitalId
10060
+ * @param {string} landingId
10061
+ * @param {TranslateLandingCommand} [translateLandingCommand]
10062
+ * @param {*} [options] Override http request option.
10063
+ * @throws {RequiredError}
10064
+ */
10065
+ apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost(hospitalId: string, landingId: string, translateLandingCommand?: TranslateLandingCommand, options?: any): AxiosPromise<boolean> {
10066
+ return localVarFp.apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost(hospitalId, landingId, translateLandingCommand, options).then((request) => request(axios, basePath));
10067
+ },
9995
10068
  /**
9996
10069
  *
9997
10070
  * @summary Create HospitalLandings.
@@ -12818,6 +12891,34 @@ export interface HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdRevalidate
12818
12891
  readonly includeCurrent?: boolean
12819
12892
  }
12820
12893
 
12894
+ /**
12895
+ * Request parameters for apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost operation in HospitalsApi.
12896
+ * @export
12897
+ * @interface HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePostRequest
12898
+ */
12899
+ export interface HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePostRequest {
12900
+ /**
12901
+ *
12902
+ * @type {string}
12903
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePost
12904
+ */
12905
+ readonly hospitalId: string
12906
+
12907
+ /**
12908
+ *
12909
+ * @type {string}
12910
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePost
12911
+ */
12912
+ readonly landingId: string
12913
+
12914
+ /**
12915
+ *
12916
+ * @type {TranslateLandingCommand}
12917
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePost
12918
+ */
12919
+ readonly translateLandingCommand?: TranslateLandingCommand
12920
+ }
12921
+
12821
12922
  /**
12822
12923
  * Request parameters for apiV1HospitalsHospitalIdLandingsPost operation in HospitalsApi.
12823
12924
  * @export
@@ -16506,6 +16607,18 @@ export class HospitalsApi extends BaseAPI {
16506
16607
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsLandingIdRevalidatePost(requestParameters.hospitalId, requestParameters.landingId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
16507
16608
  }
16508
16609
 
16610
+ /**
16611
+ *
16612
+ * @summary Translate landing
16613
+ * @param {HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePostRequest} requestParameters Request parameters.
16614
+ * @param {*} [options] Override http request option.
16615
+ * @throws {RequiredError}
16616
+ * @memberof HospitalsApi
16617
+ */
16618
+ public apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost(requestParameters: HospitalsApiApiV1HospitalsHospitalIdLandingsLandingIdTranslatePostRequest, options?: AxiosRequestConfig) {
16619
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsLandingIdTranslatePost(requestParameters.hospitalId, requestParameters.landingId, requestParameters.translateLandingCommand, options).then((request) => request(this.axios, this.basePath));
16620
+ }
16621
+
16509
16622
  /**
16510
16623
  *
16511
16624
  * @summary Create HospitalLandings.
@@ -432,13 +432,16 @@ export * from './transfer-balance-command';
432
432
  export * from './transfer-balance-result';
433
433
  export * from './transfer-number-command';
434
434
  export * from './transfer-number-result';
435
+ export * from './translate-about-us-page-command';
435
436
  export * from './translate-all-options';
436
437
  export * from './translate-command';
437
438
  export * from './translate-country-command';
439
+ export * from './translate-deal-command';
438
440
  export * from './translate-doctor-affiliation-command';
439
441
  export * from './translate-hospital-command';
440
442
  export * from './translate-hospital-service-command';
441
443
  export * from './translate-hospital-specialty-command';
444
+ export * from './translate-landing-command';
442
445
  export * from './translate-specialty-command';
443
446
  export * from './translate-specialty-type-command';
444
447
  export * from './translation-contents-model';
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { TranslateAllOptions } from './translate-all-options';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface TranslateAboutUsPageCommand
24
+ */
25
+ export interface TranslateAboutUsPageCommand {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof TranslateAboutUsPageCommand
30
+ */
31
+ 'basisLanguageCode'?: string | null;
32
+ /**
33
+ *
34
+ * @type {TranslateAllOptions}
35
+ * @memberof TranslateAboutUsPageCommand
36
+ */
37
+ 'translationOption'?: TranslateAllOptions;
38
+ /**
39
+ *
40
+ * @type {Array<string>}
41
+ * @memberof TranslateAboutUsPageCommand
42
+ */
43
+ 'translateToLanguageCodes'?: Array<string> | null;
44
+ /**
45
+ *
46
+ * @type {Array<string>}
47
+ * @memberof TranslateAboutUsPageCommand
48
+ */
49
+ 'translateToFields'?: Array<string> | null;
50
+ }
51
+
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { TranslateAllOptions } from './translate-all-options';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface TranslateDealCommand
24
+ */
25
+ export interface TranslateDealCommand {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof TranslateDealCommand
30
+ */
31
+ 'basisLanguageCode'?: string | null;
32
+ /**
33
+ *
34
+ * @type {TranslateAllOptions}
35
+ * @memberof TranslateDealCommand
36
+ */
37
+ 'translationOption'?: TranslateAllOptions;
38
+ /**
39
+ *
40
+ * @type {Array<string>}
41
+ * @memberof TranslateDealCommand
42
+ */
43
+ 'translateToLanguageCodes'?: Array<string> | null;
44
+ /**
45
+ *
46
+ * @type {Array<string>}
47
+ * @memberof TranslateDealCommand
48
+ */
49
+ 'translateToFields'?: Array<string> | null;
50
+ }
51
+
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { TranslateAllOptions } from './translate-all-options';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface TranslateLandingCommand
24
+ */
25
+ export interface TranslateLandingCommand {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof TranslateLandingCommand
30
+ */
31
+ 'basisLanguageCode'?: string | null;
32
+ /**
33
+ *
34
+ * @type {TranslateAllOptions}
35
+ * @memberof TranslateLandingCommand
36
+ */
37
+ 'translationOption'?: TranslateAllOptions;
38
+ /**
39
+ *
40
+ * @type {Array<string>}
41
+ * @memberof TranslateLandingCommand
42
+ */
43
+ 'translateToLanguageCodes'?: Array<string> | null;
44
+ /**
45
+ *
46
+ * @type {Array<string>}
47
+ * @memberof TranslateLandingCommand
48
+ */
49
+ 'translateToFields'?: Array<string> | null;
50
+ }
51
+