ch-admin-api-client-typescript 5.13.5 → 5.14.0
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/about-us-api.d.ts +56 -0
- package/lib/api/about-us-api.d.ts.map +1 -1
- package/lib/api/about-us-api.js +90 -0
- package/lib/api/countries-api.d.ts +9 -9
- package/lib/api/countries-api.d.ts.map +1 -1
- package/lib/api/countries-api.js +10 -10
- package/lib/api/curations-api.d.ts +448 -0
- package/lib/api/curations-api.d.ts.map +1 -0
- package/lib/api/curations-api.js +785 -0
- package/lib/api/deals-api.d.ts +56 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +90 -0
- package/lib/api/doctor-affiliations-api.d.ts +9 -9
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +10 -10
- package/lib/api/doctors-api.d.ts +9 -9
- package/lib/api/doctors-api.d.ts.map +1 -1
- package/lib/api/doctors-api.js +10 -10
- package/lib/api/hospitals-api.d.ts +114 -49
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +150 -54
- package/lib/api/patients-api.d.ts +10 -10
- package/lib/api/patients-api.d.ts.map +1 -1
- package/lib/api/patients-api.js +11 -11
- package/lib/api/specialties-api.d.ts +9 -9
- package/lib/api/specialties-api.d.ts.map +1 -1
- package/lib/api/specialties-api.js +10 -10
- package/lib/api/specialty-types-api.d.ts +9 -9
- package/lib/api/specialty-types-api.d.ts.map +1 -1
- package/lib/api/specialty-types-api.js +10 -10
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/create-curation-command.d.ts +103 -0
- package/lib/models/create-curation-command.d.ts.map +1 -0
- package/lib/models/create-curation-command.js +15 -0
- package/lib/models/curation-model.d.ts +104 -0
- package/lib/models/curation-model.d.ts.map +1 -0
- package/lib/models/curation-model.js +15 -0
- package/lib/models/curations-model.d.ts +33 -0
- package/lib/models/curations-model.d.ts.map +1 -0
- package/lib/models/curations-model.js +15 -0
- package/lib/models/index.d.ts +7 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +7 -0
- package/lib/models/specialty-type-item-model.d.ts +0 -6
- package/lib/models/specialty-type-item-model.d.ts.map +1 -1
- package/lib/models/specialty-type-model.d.ts +0 -6
- package/lib/models/specialty-type-model.d.ts.map +1 -1
- package/lib/models/translate-about-us-page-command.d.ts +44 -0
- package/lib/models/translate-about-us-page-command.d.ts.map +1 -0
- package/lib/models/translate-about-us-page-command.js +15 -0
- package/lib/models/translate-deal-command.d.ts +44 -0
- package/lib/models/translate-deal-command.d.ts.map +1 -0
- package/lib/models/translate-deal-command.js +15 -0
- package/lib/models/translate-landing-command.d.ts +44 -0
- package/lib/models/translate-landing-command.d.ts.map +1 -0
- package/lib/models/translate-landing-command.js +15 -0
- package/lib/models/update-curation-command.d.ts +91 -0
- package/lib/models/update-curation-command.d.ts.map +1 -0
- package/lib/models/update-curation-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +8 -0
- package/src/api/about-us-api.ts +100 -0
- package/src/api/countries-api.ts +14 -14
- package/src/api/curations-api.ts +795 -0
- package/src/api/deals-api.ts +100 -0
- package/src/api/doctor-affiliations-api.ts +14 -14
- package/src/api/doctors-api.ts +14 -14
- package/src/api/hospitals-api.ts +191 -78
- package/src/api/patients-api.ts +16 -16
- package/src/api/specialties-api.ts +14 -14
- package/src/api/specialty-types-api.ts +14 -14
- package/src/api.ts +1 -0
- package/src/models/create-curation-command.ts +108 -0
- package/src/models/curation-model.ts +111 -0
- package/src/models/curations-model.ts +42 -0
- package/src/models/index.ts +7 -0
- package/src/models/specialty-type-item-model.ts +0 -6
- package/src/models/specialty-type-model.ts +0 -6
- package/src/models/translate-about-us-page-command.ts +51 -0
- package/src/models/translate-deal-command.ts +51 -0
- package/src/models/translate-landing-command.ts +51 -0
- package/src/models/update-curation-command.ts +96 -0
package/src/api/about-us-api.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { CreateAboutUsPageCommand } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ProblemDetails } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { TranslateAboutUsPageCommand } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { UpdateAboutUsPageCommand } from '../models';
|
|
33
35
|
/**
|
|
34
36
|
* AboutUsApi - axios parameter creator
|
|
@@ -260,6 +262,48 @@ export const AboutUsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
260
262
|
options: localVarRequestOptions,
|
|
261
263
|
};
|
|
262
264
|
},
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @summary Translate aboutUsPage
|
|
268
|
+
* @param {string} hospitalId
|
|
269
|
+
* @param {TranslateAboutUsPageCommand} [translateAboutUsPageCommand]
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
apiV1AboutusHospitalIdTranslatePost: async (hospitalId: string, translateAboutUsPageCommand?: TranslateAboutUsPageCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
274
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
275
|
+
assertParamExists('apiV1AboutusHospitalIdTranslatePost', 'hospitalId', hospitalId)
|
|
276
|
+
const localVarPath = `/api/v1/aboutus/{hospitalId}/translate`
|
|
277
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
280
|
+
let baseOptions;
|
|
281
|
+
if (configuration) {
|
|
282
|
+
baseOptions = configuration.baseOptions;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
286
|
+
const localVarHeaderParameter = {} as any;
|
|
287
|
+
const localVarQueryParameter = {} as any;
|
|
288
|
+
|
|
289
|
+
// authentication oauth2 required
|
|
290
|
+
// oauth required
|
|
291
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
296
|
+
|
|
297
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
300
|
+
localVarRequestOptions.data = serializeDataIfNeeded(translateAboutUsPageCommand, localVarRequestOptions, configuration)
|
|
301
|
+
|
|
302
|
+
return {
|
|
303
|
+
url: toPathString(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
},
|
|
263
307
|
/**
|
|
264
308
|
*
|
|
265
309
|
* @summary Create AboutUs.
|
|
@@ -414,6 +458,18 @@ export const AboutUsApiFp = function(configuration?: Configuration) {
|
|
|
414
458
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusHospitalIdPut(hospitalId, updateAboutUsPageCommand, options);
|
|
415
459
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
416
460
|
},
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @summary Translate aboutUsPage
|
|
464
|
+
* @param {string} hospitalId
|
|
465
|
+
* @param {TranslateAboutUsPageCommand} [translateAboutUsPageCommand]
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
async apiV1AboutusHospitalIdTranslatePost(hospitalId: string, translateAboutUsPageCommand?: TranslateAboutUsPageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AboutusHospitalIdTranslatePost(hospitalId, translateAboutUsPageCommand, options);
|
|
471
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
472
|
+
},
|
|
417
473
|
/**
|
|
418
474
|
*
|
|
419
475
|
* @summary Create AboutUs.
|
|
@@ -502,6 +558,17 @@ export const AboutUsApiFactory = function (configuration?: Configuration, basePa
|
|
|
502
558
|
apiV1AboutusHospitalIdPut(hospitalId: string, updateAboutUsPageCommand?: UpdateAboutUsPageCommand, options?: any): AxiosPromise<AboutUsPageModel> {
|
|
503
559
|
return localVarFp.apiV1AboutusHospitalIdPut(hospitalId, updateAboutUsPageCommand, options).then((request) => request(axios, basePath));
|
|
504
560
|
},
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @summary Translate aboutUsPage
|
|
564
|
+
* @param {string} hospitalId
|
|
565
|
+
* @param {TranslateAboutUsPageCommand} [translateAboutUsPageCommand]
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
apiV1AboutusHospitalIdTranslatePost(hospitalId: string, translateAboutUsPageCommand?: TranslateAboutUsPageCommand, options?: any): AxiosPromise<boolean> {
|
|
570
|
+
return localVarFp.apiV1AboutusHospitalIdTranslatePost(hospitalId, translateAboutUsPageCommand, options).then((request) => request(axios, basePath));
|
|
571
|
+
},
|
|
505
572
|
/**
|
|
506
573
|
*
|
|
507
574
|
* @summary Create AboutUs.
|
|
@@ -681,6 +748,27 @@ export interface AboutUsApiApiV1AboutusHospitalIdPutRequest {
|
|
|
681
748
|
readonly updateAboutUsPageCommand?: UpdateAboutUsPageCommand
|
|
682
749
|
}
|
|
683
750
|
|
|
751
|
+
/**
|
|
752
|
+
* Request parameters for apiV1AboutusHospitalIdTranslatePost operation in AboutUsApi.
|
|
753
|
+
* @export
|
|
754
|
+
* @interface AboutUsApiApiV1AboutusHospitalIdTranslatePostRequest
|
|
755
|
+
*/
|
|
756
|
+
export interface AboutUsApiApiV1AboutusHospitalIdTranslatePostRequest {
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof AboutUsApiApiV1AboutusHospitalIdTranslatePost
|
|
761
|
+
*/
|
|
762
|
+
readonly hospitalId: string
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @type {TranslateAboutUsPageCommand}
|
|
767
|
+
* @memberof AboutUsApiApiV1AboutusHospitalIdTranslatePost
|
|
768
|
+
*/
|
|
769
|
+
readonly translateAboutUsPageCommand?: TranslateAboutUsPageCommand
|
|
770
|
+
}
|
|
771
|
+
|
|
684
772
|
/**
|
|
685
773
|
* Request parameters for apiV1AboutusPost operation in AboutUsApi.
|
|
686
774
|
* @export
|
|
@@ -778,6 +866,18 @@ export class AboutUsApi extends BaseAPI {
|
|
|
778
866
|
return AboutUsApiFp(this.configuration).apiV1AboutusHospitalIdPut(requestParameters.hospitalId, requestParameters.updateAboutUsPageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
779
867
|
}
|
|
780
868
|
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @summary Translate aboutUsPage
|
|
872
|
+
* @param {AboutUsApiApiV1AboutusHospitalIdTranslatePostRequest} requestParameters Request parameters.
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
* @memberof AboutUsApi
|
|
876
|
+
*/
|
|
877
|
+
public apiV1AboutusHospitalIdTranslatePost(requestParameters: AboutUsApiApiV1AboutusHospitalIdTranslatePostRequest, options?: AxiosRequestConfig) {
|
|
878
|
+
return AboutUsApiFp(this.configuration).apiV1AboutusHospitalIdTranslatePost(requestParameters.hospitalId, requestParameters.translateAboutUsPageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
879
|
+
}
|
|
880
|
+
|
|
781
881
|
/**
|
|
782
882
|
*
|
|
783
883
|
* @summary Create AboutUs.
|
package/src/api/countries-api.ts
CHANGED
|
@@ -425,10 +425,10 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
425
425
|
* @param {*} [options] Override http request option.
|
|
426
426
|
* @throws {RequiredError}
|
|
427
427
|
*/
|
|
428
|
-
|
|
428
|
+
apiV1CountriesCountryIdReactivatePut: async (countryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
429
429
|
// verify required parameter 'countryId' is not null or undefined
|
|
430
|
-
assertParamExists('
|
|
431
|
-
const localVarPath = `/api/v1/countries/{countryId}/
|
|
430
|
+
assertParamExists('apiV1CountriesCountryIdReactivatePut', 'countryId', countryId)
|
|
431
|
+
const localVarPath = `/api/v1/countries/{countryId}/reactivate`
|
|
432
432
|
.replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
|
|
433
433
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
434
434
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -829,8 +829,8 @@ export const CountriesApiFp = function(configuration?: Configuration) {
|
|
|
829
829
|
* @param {*} [options] Override http request option.
|
|
830
830
|
* @throws {RequiredError}
|
|
831
831
|
*/
|
|
832
|
-
async
|
|
833
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
832
|
+
async apiV1CountriesCountryIdReactivatePut(countryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
833
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdReactivatePut(countryId, options);
|
|
834
834
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
835
835
|
},
|
|
836
836
|
/**
|
|
@@ -1011,8 +1011,8 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
|
|
|
1011
1011
|
* @param {*} [options] Override http request option.
|
|
1012
1012
|
* @throws {RequiredError}
|
|
1013
1013
|
*/
|
|
1014
|
-
|
|
1015
|
-
return localVarFp.
|
|
1014
|
+
apiV1CountriesCountryIdReactivatePut(countryId: string, options?: any): AxiosPromise<boolean> {
|
|
1015
|
+
return localVarFp.apiV1CountriesCountryIdReactivatePut(countryId, options).then((request) => request(axios, basePath));
|
|
1016
1016
|
},
|
|
1017
1017
|
/**
|
|
1018
1018
|
*
|
|
@@ -1290,15 +1290,15 @@ export interface CountriesApiApiV1CountriesCountryIdPutRequest {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
/**
|
|
1293
|
-
* Request parameters for
|
|
1293
|
+
* Request parameters for apiV1CountriesCountryIdReactivatePut operation in CountriesApi.
|
|
1294
1294
|
* @export
|
|
1295
|
-
* @interface
|
|
1295
|
+
* @interface CountriesApiApiV1CountriesCountryIdReactivatePutRequest
|
|
1296
1296
|
*/
|
|
1297
|
-
export interface
|
|
1297
|
+
export interface CountriesApiApiV1CountriesCountryIdReactivatePutRequest {
|
|
1298
1298
|
/**
|
|
1299
1299
|
*
|
|
1300
1300
|
* @type {string}
|
|
1301
|
-
* @memberof
|
|
1301
|
+
* @memberof CountriesApiApiV1CountriesCountryIdReactivatePut
|
|
1302
1302
|
*/
|
|
1303
1303
|
readonly countryId: string
|
|
1304
1304
|
}
|
|
@@ -1563,13 +1563,13 @@ export class CountriesApi extends BaseAPI {
|
|
|
1563
1563
|
/**
|
|
1564
1564
|
*
|
|
1565
1565
|
* @summary Reactivate country.
|
|
1566
|
-
* @param {
|
|
1566
|
+
* @param {CountriesApiApiV1CountriesCountryIdReactivatePutRequest} requestParameters Request parameters.
|
|
1567
1567
|
* @param {*} [options] Override http request option.
|
|
1568
1568
|
* @throws {RequiredError}
|
|
1569
1569
|
* @memberof CountriesApi
|
|
1570
1570
|
*/
|
|
1571
|
-
public
|
|
1572
|
-
return CountriesApiFp(this.configuration).
|
|
1571
|
+
public apiV1CountriesCountryIdReactivatePut(requestParameters: CountriesApiApiV1CountriesCountryIdReactivatePutRequest, options?: AxiosRequestConfig) {
|
|
1572
|
+
return CountriesApiFp(this.configuration).apiV1CountriesCountryIdReactivatePut(requestParameters.countryId, options).then((request) => request(this.axios, this.basePath));
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
1575
|
/**
|