ch-api-client-typescript2 5.19.1 → 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.
- package/lib/api/appointments-api.d.ts +13 -3
- package/lib/api/appointments-api.d.ts.map +1 -1
- package/lib/api/appointments-api.js +11 -6
- package/lib/api/articles-api.d.ts +12 -3
- package/lib/api/articles-api.d.ts.map +1 -1
- package/lib/api/articles-api.js +12 -6
- package/lib/api/deals-api.d.ts +12 -3
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +12 -6
- package/lib/api/doctor-affiliations-api.d.ts +16 -7
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +16 -10
- package/lib/api/hospitals-api.d.ts +231 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +285 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +1 -0
- package/lib/models/pay-appointment-command.d.ts +32 -0
- package/lib/models/pay-appointment-command.d.ts.map +1 -0
- package/lib/models/pay-appointment-command.js +15 -0
- package/lib/models/survey-result-element-input-model.d.ts +7 -0
- package/lib/models/survey-result-element-input-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +1 -0
- package/src/api/appointments-api.ts +21 -6
- package/src/api/articles-api.ts +20 -6
- package/src/api/deals-api.ts +20 -6
- package/src/api/doctor-affiliations-api.ts +24 -10
- package/src/api/hospitals-api.ts +386 -0
- package/src/models/index.ts +1 -0
- package/src/models/pay-appointment-command.ts +39 -0
- package/src/models/survey-result-element-input-model.ts +9 -0
package/src/api/articles-api.ts
CHANGED
|
@@ -636,10 +636,11 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
636
636
|
* @param {string} [languageCode]
|
|
637
637
|
* @param {boolean} [returnDefaultValue]
|
|
638
638
|
* @param {string} [previewSecret]
|
|
639
|
+
* @param {string} [hospitalId]
|
|
639
640
|
* @param {*} [options] Override http request option.
|
|
640
641
|
* @throws {RequiredError}
|
|
641
642
|
*/
|
|
642
|
-
apiV2ArticlesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
643
|
+
apiV2ArticlesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
643
644
|
// verify required parameter 'slug' is not null or undefined
|
|
644
645
|
assertParamExists('apiV2ArticlesSlugGet', 'slug', slug)
|
|
645
646
|
const localVarPath = `/api/v2/articles/{slug}`
|
|
@@ -667,6 +668,10 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
667
668
|
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
668
669
|
}
|
|
669
670
|
|
|
671
|
+
if (hospitalId !== undefined) {
|
|
672
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
673
|
+
}
|
|
674
|
+
|
|
670
675
|
|
|
671
676
|
|
|
672
677
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -851,11 +856,12 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
|
851
856
|
* @param {string} [languageCode]
|
|
852
857
|
* @param {boolean} [returnDefaultValue]
|
|
853
858
|
* @param {string} [previewSecret]
|
|
859
|
+
* @param {string} [hospitalId]
|
|
854
860
|
* @param {*} [options] Override http request option.
|
|
855
861
|
* @throws {RequiredError}
|
|
856
862
|
*/
|
|
857
|
-
async apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
858
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options);
|
|
863
|
+
async apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
864
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options);
|
|
859
865
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
860
866
|
},
|
|
861
867
|
}
|
|
@@ -1021,11 +1027,12 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1021
1027
|
* @param {string} [languageCode]
|
|
1022
1028
|
* @param {boolean} [returnDefaultValue]
|
|
1023
1029
|
* @param {string} [previewSecret]
|
|
1030
|
+
* @param {string} [hospitalId]
|
|
1024
1031
|
* @param {*} [options] Override http request option.
|
|
1025
1032
|
* @throws {RequiredError}
|
|
1026
1033
|
*/
|
|
1027
|
-
apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<ArticleModel> {
|
|
1028
|
-
return localVarFp.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
|
|
1034
|
+
apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, hospitalId?: string, options?: any): AxiosPromise<ArticleModel> {
|
|
1035
|
+
return localVarFp.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options).then((request) => request(axios, basePath));
|
|
1029
1036
|
},
|
|
1030
1037
|
};
|
|
1031
1038
|
};
|
|
@@ -1525,6 +1532,13 @@ export interface ArticlesApiApiV2ArticlesSlugGetRequest {
|
|
|
1525
1532
|
* @memberof ArticlesApiApiV2ArticlesSlugGet
|
|
1526
1533
|
*/
|
|
1527
1534
|
readonly previewSecret?: string
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @type {string}
|
|
1539
|
+
* @memberof ArticlesApiApiV2ArticlesSlugGet
|
|
1540
|
+
*/
|
|
1541
|
+
readonly hospitalId?: string
|
|
1528
1542
|
}
|
|
1529
1543
|
|
|
1530
1544
|
/**
|
|
@@ -1663,6 +1677,6 @@ export class ArticlesApi extends BaseAPI {
|
|
|
1663
1677
|
* @memberof ArticlesApi
|
|
1664
1678
|
*/
|
|
1665
1679
|
public apiV2ArticlesSlugGet(requestParameters: ArticlesApiApiV2ArticlesSlugGetRequest, options?: AxiosRequestConfig) {
|
|
1666
|
-
return ArticlesApiFp(this.configuration).apiV2ArticlesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
1680
|
+
return ArticlesApiFp(this.configuration).apiV2ArticlesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
1667
1681
|
}
|
|
1668
1682
|
}
|
package/src/api/deals-api.ts
CHANGED
|
@@ -694,10 +694,11 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
694
694
|
* @param {string} [languageCode]
|
|
695
695
|
* @param {boolean} [returnDefaultValue]
|
|
696
696
|
* @param {string} [previewSecret]
|
|
697
|
+
* @param {string} [hospitalId]
|
|
697
698
|
* @param {*} [options] Override http request option.
|
|
698
699
|
* @throws {RequiredError}
|
|
699
700
|
*/
|
|
700
|
-
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
701
|
+
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
701
702
|
// verify required parameter 'slug' is not null or undefined
|
|
702
703
|
assertParamExists('apiV2DealsSlugGet', 'slug', slug)
|
|
703
704
|
const localVarPath = `/api/v2/deals/{slug}`
|
|
@@ -725,6 +726,10 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
725
726
|
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
726
727
|
}
|
|
727
728
|
|
|
729
|
+
if (hospitalId !== undefined) {
|
|
730
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
731
|
+
}
|
|
732
|
+
|
|
728
733
|
|
|
729
734
|
|
|
730
735
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -913,11 +918,12 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
913
918
|
* @param {string} [languageCode]
|
|
914
919
|
* @param {boolean} [returnDefaultValue]
|
|
915
920
|
* @param {string} [previewSecret]
|
|
921
|
+
* @param {string} [hospitalId]
|
|
916
922
|
* @param {*} [options] Override http request option.
|
|
917
923
|
* @throws {RequiredError}
|
|
918
924
|
*/
|
|
919
|
-
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
920
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options);
|
|
925
|
+
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options);
|
|
921
927
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
922
928
|
},
|
|
923
929
|
}
|
|
@@ -1089,11 +1095,12 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
1089
1095
|
* @param {string} [languageCode]
|
|
1090
1096
|
* @param {boolean} [returnDefaultValue]
|
|
1091
1097
|
* @param {string} [previewSecret]
|
|
1098
|
+
* @param {string} [hospitalId]
|
|
1092
1099
|
* @param {*} [options] Override http request option.
|
|
1093
1100
|
* @throws {RequiredError}
|
|
1094
1101
|
*/
|
|
1095
|
-
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<DealModel> {
|
|
1096
|
-
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
|
|
1102
|
+
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, hospitalId?: string, options?: any): AxiosPromise<DealModel> {
|
|
1103
|
+
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, hospitalId, options).then((request) => request(axios, basePath));
|
|
1097
1104
|
},
|
|
1098
1105
|
};
|
|
1099
1106
|
};
|
|
@@ -1747,6 +1754,13 @@ export interface DealsApiApiV2DealsSlugGetRequest {
|
|
|
1747
1754
|
* @memberof DealsApiApiV2DealsSlugGet
|
|
1748
1755
|
*/
|
|
1749
1756
|
readonly previewSecret?: string
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
*
|
|
1760
|
+
* @type {string}
|
|
1761
|
+
* @memberof DealsApiApiV2DealsSlugGet
|
|
1762
|
+
*/
|
|
1763
|
+
readonly hospitalId?: string
|
|
1750
1764
|
}
|
|
1751
1765
|
|
|
1752
1766
|
/**
|
|
@@ -1861,6 +1875,6 @@ export class DealsApi extends BaseAPI {
|
|
|
1861
1875
|
* @memberof DealsApi
|
|
1862
1876
|
*/
|
|
1863
1877
|
public apiV2DealsSlugGet(requestParameters: DealsApiApiV2DealsSlugGetRequest, options?: AxiosRequestConfig) {
|
|
1864
|
-
return DealsApiFp(this.configuration).apiV2DealsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
1878
|
+
return DealsApiFp(this.configuration).apiV2DealsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1879
|
}
|
|
1866
1880
|
}
|
|
@@ -350,13 +350,14 @@ export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?:
|
|
|
350
350
|
},
|
|
351
351
|
/**
|
|
352
352
|
*
|
|
353
|
-
* @summary
|
|
353
|
+
* @summary Get doctorAffiliation by slug
|
|
354
354
|
* @param {string} slug
|
|
355
355
|
* @param {string} [languageCode]
|
|
356
|
+
* @param {string} [hospitalId]
|
|
356
357
|
* @param {*} [options] Override http request option.
|
|
357
358
|
* @throws {RequiredError}
|
|
358
359
|
*/
|
|
359
|
-
apiV2DoctoraffiliationsSlugGet: async (slug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
360
|
+
apiV2DoctoraffiliationsSlugGet: async (slug: string, languageCode?: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
360
361
|
// verify required parameter 'slug' is not null or undefined
|
|
361
362
|
assertParamExists('apiV2DoctoraffiliationsSlugGet', 'slug', slug)
|
|
362
363
|
const localVarPath = `/api/v2/doctoraffiliations/{slug}`
|
|
@@ -376,6 +377,10 @@ export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?:
|
|
|
376
377
|
localVarQueryParameter['languageCode'] = languageCode;
|
|
377
378
|
}
|
|
378
379
|
|
|
380
|
+
if (hospitalId !== undefined) {
|
|
381
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
382
|
+
}
|
|
383
|
+
|
|
379
384
|
|
|
380
385
|
|
|
381
386
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -480,14 +485,15 @@ export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
|
|
|
480
485
|
},
|
|
481
486
|
/**
|
|
482
487
|
*
|
|
483
|
-
* @summary
|
|
488
|
+
* @summary Get doctorAffiliation by slug
|
|
484
489
|
* @param {string} slug
|
|
485
490
|
* @param {string} [languageCode]
|
|
491
|
+
* @param {string} [hospitalId]
|
|
486
492
|
* @param {*} [options] Override http request option.
|
|
487
493
|
* @throws {RequiredError}
|
|
488
494
|
*/
|
|
489
|
-
async apiV2DoctoraffiliationsSlugGet(slug: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorAffiliationModel>> {
|
|
490
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctoraffiliationsSlugGet(slug, languageCode, options);
|
|
495
|
+
async apiV2DoctoraffiliationsSlugGet(slug: string, languageCode?: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorAffiliationModel>> {
|
|
496
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctoraffiliationsSlugGet(slug, languageCode, hospitalId, options);
|
|
491
497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
492
498
|
},
|
|
493
499
|
}
|
|
@@ -578,14 +584,15 @@ export const DoctorAffiliationsApiFactory = function (configuration?: Configurat
|
|
|
578
584
|
},
|
|
579
585
|
/**
|
|
580
586
|
*
|
|
581
|
-
* @summary
|
|
587
|
+
* @summary Get doctorAffiliation by slug
|
|
582
588
|
* @param {string} slug
|
|
583
589
|
* @param {string} [languageCode]
|
|
590
|
+
* @param {string} [hospitalId]
|
|
584
591
|
* @param {*} [options] Override http request option.
|
|
585
592
|
* @throws {RequiredError}
|
|
586
593
|
*/
|
|
587
|
-
apiV2DoctoraffiliationsSlugGet(slug: string, languageCode?: string, options?: any): AxiosPromise<DoctorAffiliationModel> {
|
|
588
|
-
return localVarFp.apiV2DoctoraffiliationsSlugGet(slug, languageCode, options).then((request) => request(axios, basePath));
|
|
594
|
+
apiV2DoctoraffiliationsSlugGet(slug: string, languageCode?: string, hospitalId?: string, options?: any): AxiosPromise<DoctorAffiliationModel> {
|
|
595
|
+
return localVarFp.apiV2DoctoraffiliationsSlugGet(slug, languageCode, hospitalId, options).then((request) => request(axios, basePath));
|
|
589
596
|
},
|
|
590
597
|
};
|
|
591
598
|
};
|
|
@@ -861,6 +868,13 @@ export interface DoctorAffiliationsApiApiV2DoctoraffiliationsSlugGetRequest {
|
|
|
861
868
|
* @memberof DoctorAffiliationsApiApiV2DoctoraffiliationsSlugGet
|
|
862
869
|
*/
|
|
863
870
|
readonly languageCode?: string
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @type {string}
|
|
875
|
+
* @memberof DoctorAffiliationsApiApiV2DoctoraffiliationsSlugGet
|
|
876
|
+
*/
|
|
877
|
+
readonly hospitalId?: string
|
|
864
878
|
}
|
|
865
879
|
|
|
866
880
|
/**
|
|
@@ -932,13 +946,13 @@ export class DoctorAffiliationsApi extends BaseAPI {
|
|
|
932
946
|
|
|
933
947
|
/**
|
|
934
948
|
*
|
|
935
|
-
* @summary
|
|
949
|
+
* @summary Get doctorAffiliation by slug
|
|
936
950
|
* @param {DoctorAffiliationsApiApiV2DoctoraffiliationsSlugGetRequest} requestParameters Request parameters.
|
|
937
951
|
* @param {*} [options] Override http request option.
|
|
938
952
|
* @throws {RequiredError}
|
|
939
953
|
* @memberof DoctorAffiliationsApi
|
|
940
954
|
*/
|
|
941
955
|
public apiV2DoctoraffiliationsSlugGet(requestParameters: DoctorAffiliationsApiApiV2DoctoraffiliationsSlugGetRequest, options?: AxiosRequestConfig) {
|
|
942
|
-
return DoctorAffiliationsApiFp(this.configuration).apiV2DoctoraffiliationsSlugGet(requestParameters.slug, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
956
|
+
return DoctorAffiliationsApiFp(this.configuration).apiV2DoctoraffiliationsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
943
957
|
}
|
|
944
958
|
}
|