ch-api-client-typescript2 5.19.4 → 5.19.8

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.
@@ -33,6 +33,10 @@ import { ContactType } from '../models';
33
33
  // @ts-ignore
34
34
  import { CreateLandingFormCommand } from '../models';
35
35
  // @ts-ignore
36
+ import { DealModel } from '../models';
37
+ // @ts-ignore
38
+ import { DoctorAffiliationModel } from '../models';
39
+ // @ts-ignore
36
40
  import { FooterNavigationItemModel } from '../models';
37
41
  // @ts-ignore
38
42
  import { HospitalAccreditationModel } from '../models';
@@ -704,6 +708,102 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
704
708
 
705
709
 
706
710
 
711
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
713
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
714
+
715
+ return {
716
+ url: toPathString(localVarUrlObj),
717
+ options: localVarRequestOptions,
718
+ };
719
+ },
720
+ /**
721
+ *
722
+ * @summary Get hospital\'s Deal by slug
723
+ * @param {string} hospitalId
724
+ * @param {string} slug
725
+ * @param {string} [languageCode]
726
+ * @param {boolean} [returnDefaultValue]
727
+ * @param {string} [previewSecret]
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ apiV2HospitalsHospitalIdDealsSlugGet: async (hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
732
+ // verify required parameter 'hospitalId' is not null or undefined
733
+ assertParamExists('apiV2HospitalsHospitalIdDealsSlugGet', 'hospitalId', hospitalId)
734
+ // verify required parameter 'slug' is not null or undefined
735
+ assertParamExists('apiV2HospitalsHospitalIdDealsSlugGet', 'slug', slug)
736
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/deals/{slug}`
737
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
738
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
739
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
740
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
741
+ let baseOptions;
742
+ if (configuration) {
743
+ baseOptions = configuration.baseOptions;
744
+ }
745
+
746
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
747
+ const localVarHeaderParameter = {} as any;
748
+ const localVarQueryParameter = {} as any;
749
+
750
+ if (languageCode !== undefined) {
751
+ localVarQueryParameter['languageCode'] = languageCode;
752
+ }
753
+
754
+ if (returnDefaultValue !== undefined) {
755
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
756
+ }
757
+
758
+ if (previewSecret !== undefined) {
759
+ localVarQueryParameter['previewSecret'] = previewSecret;
760
+ }
761
+
762
+
763
+
764
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
765
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
766
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
767
+
768
+ return {
769
+ url: toPathString(localVarUrlObj),
770
+ options: localVarRequestOptions,
771
+ };
772
+ },
773
+ /**
774
+ *
775
+ * @summary Get hospital\'s doctorAffiliations by slug
776
+ * @param {string} hospitalId
777
+ * @param {string} slug
778
+ * @param {string} [languageCode]
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet: async (hospitalId: string, slug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
783
+ // verify required parameter 'hospitalId' is not null or undefined
784
+ assertParamExists('apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet', 'hospitalId', hospitalId)
785
+ // verify required parameter 'slug' is not null or undefined
786
+ assertParamExists('apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet', 'slug', slug)
787
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/doctoraffiliations/{slug}`
788
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
789
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
790
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
791
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
792
+ let baseOptions;
793
+ if (configuration) {
794
+ baseOptions = configuration.baseOptions;
795
+ }
796
+
797
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
798
+ const localVarHeaderParameter = {} as any;
799
+ const localVarQueryParameter = {} as any;
800
+
801
+ if (languageCode !== undefined) {
802
+ localVarQueryParameter['languageCode'] = languageCode;
803
+ }
804
+
805
+
806
+
707
807
  setSearchParams(localVarUrlObj, localVarQueryParameter);
708
808
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
709
809
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3248,6 +3348,34 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3248
3348
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdContactsGet(hospitalId, contactId, contactType, name, languageCode, page, limit, lastRetrieved, options);
3249
3349
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3250
3350
  },
3351
+ /**
3352
+ *
3353
+ * @summary Get hospital\'s Deal by slug
3354
+ * @param {string} hospitalId
3355
+ * @param {string} slug
3356
+ * @param {string} [languageCode]
3357
+ * @param {boolean} [returnDefaultValue]
3358
+ * @param {string} [previewSecret]
3359
+ * @param {*} [options] Override http request option.
3360
+ * @throws {RequiredError}
3361
+ */
3362
+ async apiV2HospitalsHospitalIdDealsSlugGet(hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
3363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdDealsSlugGet(hospitalId, slug, languageCode, returnDefaultValue, previewSecret, options);
3364
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3365
+ },
3366
+ /**
3367
+ *
3368
+ * @summary Get hospital\'s doctorAffiliations by slug
3369
+ * @param {string} hospitalId
3370
+ * @param {string} slug
3371
+ * @param {string} [languageCode]
3372
+ * @param {*} [options] Override http request option.
3373
+ * @throws {RequiredError}
3374
+ */
3375
+ async apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet(hospitalId: string, slug: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorAffiliationModel>> {
3376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet(hospitalId, slug, languageCode, options);
3377
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3378
+ },
3251
3379
  /**
3252
3380
  *
3253
3381
  * @summary Get HospitalEquipment.
@@ -4042,6 +4170,32 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4042
4170
  apiV2HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalContactsModel> {
4043
4171
  return localVarFp.apiV2HospitalsHospitalIdContactsGet(hospitalId, contactId, contactType, name, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
4044
4172
  },
4173
+ /**
4174
+ *
4175
+ * @summary Get hospital\'s Deal by slug
4176
+ * @param {string} hospitalId
4177
+ * @param {string} slug
4178
+ * @param {string} [languageCode]
4179
+ * @param {boolean} [returnDefaultValue]
4180
+ * @param {string} [previewSecret]
4181
+ * @param {*} [options] Override http request option.
4182
+ * @throws {RequiredError}
4183
+ */
4184
+ apiV2HospitalsHospitalIdDealsSlugGet(hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<DealModel> {
4185
+ return localVarFp.apiV2HospitalsHospitalIdDealsSlugGet(hospitalId, slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
4186
+ },
4187
+ /**
4188
+ *
4189
+ * @summary Get hospital\'s doctorAffiliations by slug
4190
+ * @param {string} hospitalId
4191
+ * @param {string} slug
4192
+ * @param {string} [languageCode]
4193
+ * @param {*} [options] Override http request option.
4194
+ * @throws {RequiredError}
4195
+ */
4196
+ apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet(hospitalId: string, slug: string, languageCode?: string, options?: any): AxiosPromise<DoctorAffiliationModel> {
4197
+ return localVarFp.apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet(hospitalId, slug, languageCode, options).then((request) => request(axios, basePath));
4198
+ },
4045
4199
  /**
4046
4200
  *
4047
4201
  * @summary Get HospitalEquipment.
@@ -5130,6 +5284,76 @@ export interface HospitalsApiApiV2HospitalsHospitalIdContactsGetRequest {
5130
5284
  readonly lastRetrieved?: Date
5131
5285
  }
5132
5286
 
5287
+ /**
5288
+ * Request parameters for apiV2HospitalsHospitalIdDealsSlugGet operation in HospitalsApi.
5289
+ * @export
5290
+ * @interface HospitalsApiApiV2HospitalsHospitalIdDealsSlugGetRequest
5291
+ */
5292
+ export interface HospitalsApiApiV2HospitalsHospitalIdDealsSlugGetRequest {
5293
+ /**
5294
+ *
5295
+ * @type {string}
5296
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDealsSlugGet
5297
+ */
5298
+ readonly hospitalId: string
5299
+
5300
+ /**
5301
+ *
5302
+ * @type {string}
5303
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDealsSlugGet
5304
+ */
5305
+ readonly slug: string
5306
+
5307
+ /**
5308
+ *
5309
+ * @type {string}
5310
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDealsSlugGet
5311
+ */
5312
+ readonly languageCode?: string
5313
+
5314
+ /**
5315
+ *
5316
+ * @type {boolean}
5317
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDealsSlugGet
5318
+ */
5319
+ readonly returnDefaultValue?: boolean
5320
+
5321
+ /**
5322
+ *
5323
+ * @type {string}
5324
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDealsSlugGet
5325
+ */
5326
+ readonly previewSecret?: string
5327
+ }
5328
+
5329
+ /**
5330
+ * Request parameters for apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet operation in HospitalsApi.
5331
+ * @export
5332
+ * @interface HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGetRequest
5333
+ */
5334
+ export interface HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGetRequest {
5335
+ /**
5336
+ *
5337
+ * @type {string}
5338
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGet
5339
+ */
5340
+ readonly hospitalId: string
5341
+
5342
+ /**
5343
+ *
5344
+ * @type {string}
5345
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGet
5346
+ */
5347
+ readonly slug: string
5348
+
5349
+ /**
5350
+ *
5351
+ * @type {string}
5352
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGet
5353
+ */
5354
+ readonly languageCode?: string
5355
+ }
5356
+
5133
5357
  /**
5134
5358
  * Request parameters for apiV2HospitalsHospitalIdEquipmentsEquipmentIdGet operation in HospitalsApi.
5135
5359
  * @export
@@ -7181,6 +7405,30 @@ export class HospitalsApi extends BaseAPI {
7181
7405
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdContactsGet(requestParameters.hospitalId, requestParameters.contactId, requestParameters.contactType, requestParameters.name, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
7182
7406
  }
7183
7407
 
7408
+ /**
7409
+ *
7410
+ * @summary Get hospital\'s Deal by slug
7411
+ * @param {HospitalsApiApiV2HospitalsHospitalIdDealsSlugGetRequest} requestParameters Request parameters.
7412
+ * @param {*} [options] Override http request option.
7413
+ * @throws {RequiredError}
7414
+ * @memberof HospitalsApi
7415
+ */
7416
+ public apiV2HospitalsHospitalIdDealsSlugGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdDealsSlugGetRequest, options?: AxiosRequestConfig) {
7417
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdDealsSlugGet(requestParameters.hospitalId, requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
7418
+ }
7419
+
7420
+ /**
7421
+ *
7422
+ * @summary Get hospital\'s doctorAffiliations by slug
7423
+ * @param {HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGetRequest} requestParameters Request parameters.
7424
+ * @param {*} [options] Override http request option.
7425
+ * @throws {RequiredError}
7426
+ * @memberof HospitalsApi
7427
+ */
7428
+ public apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdDoctoraffiliationsSlugGetRequest, options?: AxiosRequestConfig) {
7429
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdDoctoraffiliationsSlugGet(requestParameters.hospitalId, requestParameters.slug, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
7430
+ }
7431
+
7184
7432
  /**
7185
7433
  *
7186
7434
  * @summary Get HospitalEquipment.
@@ -218,6 +218,7 @@ export * from './notifications-model';
218
218
  export * from './package-sub-document-model';
219
219
  export * from './paged-list-meta-data';
220
220
  export * from './patient-model';
221
+ export * from './pay-appointment-command';
221
222
  export * from './payment-method';
222
223
  export * from './plan-hospital-item-model';
223
224
  export * from './plan-hospital-model';
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
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 { PaymentMethod } from './payment-method';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface PayAppointmentCommand
24
+ */
25
+ export interface PayAppointmentCommand {
26
+ /**
27
+ *
28
+ * @type {PaymentMethod}
29
+ * @memberof PayAppointmentCommand
30
+ */
31
+ 'paymentMethod'?: PaymentMethod;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof PayAppointmentCommand
36
+ */
37
+ 'paymentImage'?: string | null;
38
+ }
39
+
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { SurveyFormElementTypes } from './survey-form-element-types';
16
19
  // May contain unused imports in some cases
17
20
  // @ts-ignore
18
21
  import { SurveyResultElementValueInputModel } from './survey-result-element-value-input-model';
@@ -23,6 +26,12 @@ import { SurveyResultElementValueInputModel } from './survey-result-element-valu
23
26
  * @interface SurveyResultElementInputModel
24
27
  */
25
28
  export interface SurveyResultElementInputModel {
29
+ /**
30
+ *
31
+ * @type {SurveyFormElementTypes}
32
+ * @memberof SurveyResultElementInputModel
33
+ */
34
+ 'elementType'?: SurveyFormElementTypes;
26
35
  /**
27
36
  *
28
37
  * @type {string}