ch-admin-api-client-typescript 2.1.5 → 2.1.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.
- package/lib/api.d.ts +202 -19
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +314 -28
- package/package.json +1 -1
- package/src/api.ts +342 -31
package/src/api.ts
CHANGED
|
@@ -3660,6 +3660,25 @@ export interface CreateDoctorPortfolioCommand {
|
|
|
3660
3660
|
*/
|
|
3661
3661
|
'photoAfterThumbnail'?: string | null;
|
|
3662
3662
|
}
|
|
3663
|
+
/**
|
|
3664
|
+
*
|
|
3665
|
+
* @export
|
|
3666
|
+
* @interface CreateDoctorSpecialtyCommand
|
|
3667
|
+
*/
|
|
3668
|
+
export interface CreateDoctorSpecialtyCommand {
|
|
3669
|
+
/**
|
|
3670
|
+
*
|
|
3671
|
+
* @type {string}
|
|
3672
|
+
* @memberof CreateDoctorSpecialtyCommand
|
|
3673
|
+
*/
|
|
3674
|
+
'specialtyId'?: string;
|
|
3675
|
+
/**
|
|
3676
|
+
*
|
|
3677
|
+
* @type {number}
|
|
3678
|
+
* @memberof CreateDoctorSpecialtyCommand
|
|
3679
|
+
*/
|
|
3680
|
+
'order'?: number;
|
|
3681
|
+
}
|
|
3663
3682
|
/**
|
|
3664
3683
|
*
|
|
3665
3684
|
* @export
|
|
@@ -11191,6 +11210,25 @@ export interface UpdateContributorCommand {
|
|
|
11191
11210
|
*/
|
|
11192
11211
|
'hospitalId'?: string;
|
|
11193
11212
|
}
|
|
11213
|
+
/**
|
|
11214
|
+
*
|
|
11215
|
+
* @export
|
|
11216
|
+
* @interface UpdateContributorSnsHandleCommand
|
|
11217
|
+
*/
|
|
11218
|
+
export interface UpdateContributorSnsHandleCommand {
|
|
11219
|
+
/**
|
|
11220
|
+
*
|
|
11221
|
+
* @type {SnsType}
|
|
11222
|
+
* @memberof UpdateContributorSnsHandleCommand
|
|
11223
|
+
*/
|
|
11224
|
+
'snsType'?: SnsType;
|
|
11225
|
+
/**
|
|
11226
|
+
*
|
|
11227
|
+
* @type {string}
|
|
11228
|
+
* @memberof UpdateContributorSnsHandleCommand
|
|
11229
|
+
*/
|
|
11230
|
+
'handle'?: string | null;
|
|
11231
|
+
}
|
|
11194
11232
|
/**
|
|
11195
11233
|
*
|
|
11196
11234
|
* @export
|
|
@@ -11529,6 +11567,19 @@ export interface UpdateDoctorPortfolioCommand {
|
|
|
11529
11567
|
*/
|
|
11530
11568
|
'photoAfterThumbnail'?: string | null;
|
|
11531
11569
|
}
|
|
11570
|
+
/**
|
|
11571
|
+
*
|
|
11572
|
+
* @export
|
|
11573
|
+
* @interface UpdateDoctorSpecialtyCommand
|
|
11574
|
+
*/
|
|
11575
|
+
export interface UpdateDoctorSpecialtyCommand {
|
|
11576
|
+
/**
|
|
11577
|
+
*
|
|
11578
|
+
* @type {number}
|
|
11579
|
+
* @memberof UpdateDoctorSpecialtyCommand
|
|
11580
|
+
*/
|
|
11581
|
+
'order'?: number;
|
|
11582
|
+
}
|
|
11532
11583
|
/**
|
|
11533
11584
|
*
|
|
11534
11585
|
* @export
|
|
@@ -11838,6 +11889,19 @@ export interface UpdateHospitalServiceCommand {
|
|
|
11838
11889
|
*/
|
|
11839
11890
|
'order'?: number;
|
|
11840
11891
|
}
|
|
11892
|
+
/**
|
|
11893
|
+
*
|
|
11894
|
+
* @export
|
|
11895
|
+
* @interface UpdateHospitalSpecialtyCommand
|
|
11896
|
+
*/
|
|
11897
|
+
export interface UpdateHospitalSpecialtyCommand {
|
|
11898
|
+
/**
|
|
11899
|
+
*
|
|
11900
|
+
* @type {number}
|
|
11901
|
+
* @memberof UpdateHospitalSpecialtyCommand
|
|
11902
|
+
*/
|
|
11903
|
+
'order'?: number;
|
|
11904
|
+
}
|
|
11841
11905
|
/**
|
|
11842
11906
|
*
|
|
11843
11907
|
* @export
|
|
@@ -16595,6 +16659,52 @@ export const ContributorsApiAxiosParamCreator = function (configuration?: Config
|
|
|
16595
16659
|
options: localVarRequestOptions,
|
|
16596
16660
|
};
|
|
16597
16661
|
},
|
|
16662
|
+
/**
|
|
16663
|
+
*
|
|
16664
|
+
* @summary Update ContributorHandle.
|
|
16665
|
+
* @param {string} contributorId
|
|
16666
|
+
* @param {string} handleId
|
|
16667
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
16668
|
+
* @param {*} [options] Override http request option.
|
|
16669
|
+
* @throws {RequiredError}
|
|
16670
|
+
*/
|
|
16671
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut: async (contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16672
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
16673
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId)
|
|
16674
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
16675
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId)
|
|
16676
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles/{handleId}`
|
|
16677
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
|
|
16678
|
+
.replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
|
|
16679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16681
|
+
let baseOptions;
|
|
16682
|
+
if (configuration) {
|
|
16683
|
+
baseOptions = configuration.baseOptions;
|
|
16684
|
+
}
|
|
16685
|
+
|
|
16686
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16687
|
+
const localVarHeaderParameter = {} as any;
|
|
16688
|
+
const localVarQueryParameter = {} as any;
|
|
16689
|
+
|
|
16690
|
+
// authentication oauth2 required
|
|
16691
|
+
// oauth required
|
|
16692
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
16693
|
+
|
|
16694
|
+
|
|
16695
|
+
|
|
16696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16697
|
+
|
|
16698
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16699
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16700
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16701
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration)
|
|
16702
|
+
|
|
16703
|
+
return {
|
|
16704
|
+
url: toPathString(localVarUrlObj),
|
|
16705
|
+
options: localVarRequestOptions,
|
|
16706
|
+
};
|
|
16707
|
+
},
|
|
16598
16708
|
/**
|
|
16599
16709
|
*
|
|
16600
16710
|
* @summary Get ContributorHandle.
|
|
@@ -16931,6 +17041,19 @@ export const ContributorsApiFp = function(configuration?: Configuration) {
|
|
|
16931
17041
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options);
|
|
16932
17042
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16933
17043
|
},
|
|
17044
|
+
/**
|
|
17045
|
+
*
|
|
17046
|
+
* @summary Update ContributorHandle.
|
|
17047
|
+
* @param {string} contributorId
|
|
17048
|
+
* @param {string} handleId
|
|
17049
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
17050
|
+
* @param {*} [options] Override http request option.
|
|
17051
|
+
* @throws {RequiredError}
|
|
17052
|
+
*/
|
|
17053
|
+
async apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
|
|
17054
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options);
|
|
17055
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17056
|
+
},
|
|
16934
17057
|
/**
|
|
16935
17058
|
*
|
|
16936
17059
|
* @summary Get ContributorHandle.
|
|
@@ -17070,6 +17193,18 @@ export const ContributorsApiFactory = function (configuration?: Configuration, b
|
|
|
17070
17193
|
apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId: string, handleId: string, options?: any): AxiosPromise<SnsHandleModel> {
|
|
17071
17194
|
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then((request) => request(axios, basePath));
|
|
17072
17195
|
},
|
|
17196
|
+
/**
|
|
17197
|
+
*
|
|
17198
|
+
* @summary Update ContributorHandle.
|
|
17199
|
+
* @param {string} contributorId
|
|
17200
|
+
* @param {string} handleId
|
|
17201
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
17202
|
+
* @param {*} [options] Override http request option.
|
|
17203
|
+
* @throws {RequiredError}
|
|
17204
|
+
*/
|
|
17205
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: any): AxiosPromise<SnsHandleModel> {
|
|
17206
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then((request) => request(axios, basePath));
|
|
17207
|
+
},
|
|
17073
17208
|
/**
|
|
17074
17209
|
*
|
|
17075
17210
|
* @summary Get ContributorHandle.
|
|
@@ -17214,6 +17349,20 @@ export class ContributorsApi extends BaseAPI {
|
|
|
17214
17349
|
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then((request) => request(this.axios, this.basePath));
|
|
17215
17350
|
}
|
|
17216
17351
|
|
|
17352
|
+
/**
|
|
17353
|
+
*
|
|
17354
|
+
* @summary Update ContributorHandle.
|
|
17355
|
+
* @param {string} contributorId
|
|
17356
|
+
* @param {string} handleId
|
|
17357
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
17358
|
+
* @param {*} [options] Override http request option.
|
|
17359
|
+
* @throws {RequiredError}
|
|
17360
|
+
* @memberof ContributorsApi
|
|
17361
|
+
*/
|
|
17362
|
+
public apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: AxiosRequestConfig) {
|
|
17363
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then((request) => request(this.axios, this.basePath));
|
|
17364
|
+
}
|
|
17365
|
+
|
|
17217
17366
|
/**
|
|
17218
17367
|
*
|
|
17219
17368
|
* @summary Get ContributorHandle.
|
|
@@ -20944,7 +21093,6 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20944
21093
|
*
|
|
20945
21094
|
* @summary Get All DoctorSpecialties.
|
|
20946
21095
|
* @param {string} doctorId
|
|
20947
|
-
* @param {string} [doctorId2]
|
|
20948
21096
|
* @param {string} [doctorName]
|
|
20949
21097
|
* @param {string} [specialtyId]
|
|
20950
21098
|
* @param {string} [specialtyName]
|
|
@@ -20954,7 +21102,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20954
21102
|
* @param {*} [options] Override http request option.
|
|
20955
21103
|
* @throws {RequiredError}
|
|
20956
21104
|
*/
|
|
20957
|
-
apiV1DoctorsDoctorIdSpecialtiesGet: async (doctorId: string,
|
|
21105
|
+
apiV1DoctorsDoctorIdSpecialtiesGet: async (doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20958
21106
|
// verify required parameter 'doctorId' is not null or undefined
|
|
20959
21107
|
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesGet', 'doctorId', doctorId)
|
|
20960
21108
|
const localVarPath = `/api/v1/doctors/{doctorId}/specialties`
|
|
@@ -20974,10 +21122,6 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20974
21122
|
// oauth required
|
|
20975
21123
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
20976
21124
|
|
|
20977
|
-
if (doctorId2 !== undefined) {
|
|
20978
|
-
localVarQueryParameter['DoctorId'] = doctorId2;
|
|
20979
|
-
}
|
|
20980
|
-
|
|
20981
21125
|
if (doctorName !== undefined) {
|
|
20982
21126
|
localVarQueryParameter['DoctorName'] = doctorName;
|
|
20983
21127
|
}
|
|
@@ -21015,6 +21159,48 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
21015
21159
|
options: localVarRequestOptions,
|
|
21016
21160
|
};
|
|
21017
21161
|
},
|
|
21162
|
+
/**
|
|
21163
|
+
*
|
|
21164
|
+
* @summary Link a doctor to a specialty.
|
|
21165
|
+
* @param {string} doctorId
|
|
21166
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
21167
|
+
* @param {*} [options] Override http request option.
|
|
21168
|
+
* @throws {RequiredError}
|
|
21169
|
+
*/
|
|
21170
|
+
apiV1DoctorsDoctorIdSpecialtiesPost: async (doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21171
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
21172
|
+
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId)
|
|
21173
|
+
const localVarPath = `/api/v1/doctors/{doctorId}/specialties`
|
|
21174
|
+
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
|
|
21175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21177
|
+
let baseOptions;
|
|
21178
|
+
if (configuration) {
|
|
21179
|
+
baseOptions = configuration.baseOptions;
|
|
21180
|
+
}
|
|
21181
|
+
|
|
21182
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21183
|
+
const localVarHeaderParameter = {} as any;
|
|
21184
|
+
const localVarQueryParameter = {} as any;
|
|
21185
|
+
|
|
21186
|
+
// authentication oauth2 required
|
|
21187
|
+
// oauth required
|
|
21188
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
21189
|
+
|
|
21190
|
+
|
|
21191
|
+
|
|
21192
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21193
|
+
|
|
21194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21197
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration)
|
|
21198
|
+
|
|
21199
|
+
return {
|
|
21200
|
+
url: toPathString(localVarUrlObj),
|
|
21201
|
+
options: localVarRequestOptions,
|
|
21202
|
+
};
|
|
21203
|
+
},
|
|
21018
21204
|
/**
|
|
21019
21205
|
*
|
|
21020
21206
|
* @summary Remove link between the doctor and the specialty.
|
|
@@ -21101,17 +21287,18 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
21101
21287
|
},
|
|
21102
21288
|
/**
|
|
21103
21289
|
*
|
|
21104
|
-
* @summary
|
|
21290
|
+
* @summary Update DoctorSpecialty.
|
|
21105
21291
|
* @param {string} doctorId
|
|
21106
21292
|
* @param {string} specialtyId
|
|
21293
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
21107
21294
|
* @param {*} [options] Override http request option.
|
|
21108
21295
|
* @throws {RequiredError}
|
|
21109
21296
|
*/
|
|
21110
|
-
|
|
21297
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: async (doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21111
21298
|
// verify required parameter 'doctorId' is not null or undefined
|
|
21112
|
-
assertParamExists('
|
|
21299
|
+
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId)
|
|
21113
21300
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
21114
|
-
assertParamExists('
|
|
21301
|
+
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
|
|
21115
21302
|
const localVarPath = `/api/v1/doctors/{doctorId}/specialties/{specialtyId}`
|
|
21116
21303
|
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
|
|
21117
21304
|
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
@@ -21122,7 +21309,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
21122
21309
|
baseOptions = configuration.baseOptions;
|
|
21123
21310
|
}
|
|
21124
21311
|
|
|
21125
|
-
const localVarRequestOptions = { method: '
|
|
21312
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
21126
21313
|
const localVarHeaderParameter = {} as any;
|
|
21127
21314
|
const localVarQueryParameter = {} as any;
|
|
21128
21315
|
|
|
@@ -21132,9 +21319,12 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
21132
21319
|
|
|
21133
21320
|
|
|
21134
21321
|
|
|
21322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21323
|
+
|
|
21135
21324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21136
21325
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21137
21326
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21327
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration)
|
|
21138
21328
|
|
|
21139
21329
|
return {
|
|
21140
21330
|
url: toPathString(localVarUrlObj),
|
|
@@ -21691,7 +21881,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21691
21881
|
* @param {*} [options] Override http request option.
|
|
21692
21882
|
* @throws {RequiredError}
|
|
21693
21883
|
*/
|
|
21694
|
-
async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
21884
|
+
async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
21695
21885
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options);
|
|
21696
21886
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21697
21887
|
},
|
|
@@ -21699,7 +21889,6 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21699
21889
|
*
|
|
21700
21890
|
* @summary Get All DoctorSpecialties.
|
|
21701
21891
|
* @param {string} doctorId
|
|
21702
|
-
* @param {string} [doctorId2]
|
|
21703
21892
|
* @param {string} [doctorName]
|
|
21704
21893
|
* @param {string} [specialtyId]
|
|
21705
21894
|
* @param {string} [specialtyName]
|
|
@@ -21709,8 +21898,20 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21709
21898
|
* @param {*} [options] Override http request option.
|
|
21710
21899
|
* @throws {RequiredError}
|
|
21711
21900
|
*/
|
|
21712
|
-
async apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string,
|
|
21713
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
21901
|
+
async apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtiesModel>> {
|
|
21902
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options);
|
|
21903
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21904
|
+
},
|
|
21905
|
+
/**
|
|
21906
|
+
*
|
|
21907
|
+
* @summary Link a doctor to a specialty.
|
|
21908
|
+
* @param {string} doctorId
|
|
21909
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
21910
|
+
* @param {*} [options] Override http request option.
|
|
21911
|
+
* @throws {RequiredError}
|
|
21912
|
+
*/
|
|
21913
|
+
async apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
|
|
21914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options);
|
|
21714
21915
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21715
21916
|
},
|
|
21716
21917
|
/**
|
|
@@ -21739,14 +21940,15 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21739
21940
|
},
|
|
21740
21941
|
/**
|
|
21741
21942
|
*
|
|
21742
|
-
* @summary
|
|
21943
|
+
* @summary Update DoctorSpecialty.
|
|
21743
21944
|
* @param {string} doctorId
|
|
21744
21945
|
* @param {string} specialtyId
|
|
21946
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
21745
21947
|
* @param {*} [options] Override http request option.
|
|
21746
21948
|
* @throws {RequiredError}
|
|
21747
21949
|
*/
|
|
21748
|
-
async
|
|
21749
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
21950
|
+
async apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
|
|
21951
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options);
|
|
21750
21952
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21751
21953
|
},
|
|
21752
21954
|
/**
|
|
@@ -22111,14 +22313,13 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
22111
22313
|
* @param {*} [options] Override http request option.
|
|
22112
22314
|
* @throws {RequiredError}
|
|
22113
22315
|
*/
|
|
22114
|
-
apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<
|
|
22316
|
+
apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<boolean> {
|
|
22115
22317
|
return localVarFp.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options).then((request) => request(axios, basePath));
|
|
22116
22318
|
},
|
|
22117
22319
|
/**
|
|
22118
22320
|
*
|
|
22119
22321
|
* @summary Get All DoctorSpecialties.
|
|
22120
22322
|
* @param {string} doctorId
|
|
22121
|
-
* @param {string} [doctorId2]
|
|
22122
22323
|
* @param {string} [doctorName]
|
|
22123
22324
|
* @param {string} [specialtyId]
|
|
22124
22325
|
* @param {string} [specialtyName]
|
|
@@ -22128,8 +22329,19 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
22128
22329
|
* @param {*} [options] Override http request option.
|
|
22129
22330
|
* @throws {RequiredError}
|
|
22130
22331
|
*/
|
|
22131
|
-
apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string,
|
|
22132
|
-
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
22332
|
+
apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorSpecialtiesModel> {
|
|
22333
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
22334
|
+
},
|
|
22335
|
+
/**
|
|
22336
|
+
*
|
|
22337
|
+
* @summary Link a doctor to a specialty.
|
|
22338
|
+
* @param {string} doctorId
|
|
22339
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
22340
|
+
* @param {*} [options] Override http request option.
|
|
22341
|
+
* @throws {RequiredError}
|
|
22342
|
+
*/
|
|
22343
|
+
apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: any): AxiosPromise<DoctorSpecialtyModel> {
|
|
22344
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
22133
22345
|
},
|
|
22134
22346
|
/**
|
|
22135
22347
|
*
|
|
@@ -22155,14 +22367,15 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
22155
22367
|
},
|
|
22156
22368
|
/**
|
|
22157
22369
|
*
|
|
22158
|
-
* @summary
|
|
22370
|
+
* @summary Update DoctorSpecialty.
|
|
22159
22371
|
* @param {string} doctorId
|
|
22160
22372
|
* @param {string} specialtyId
|
|
22373
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
22161
22374
|
* @param {*} [options] Override http request option.
|
|
22162
22375
|
* @throws {RequiredError}
|
|
22163
22376
|
*/
|
|
22164
|
-
|
|
22165
|
-
return localVarFp.
|
|
22377
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: any): AxiosPromise<DoctorSpecialtyModel> {
|
|
22378
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
22166
22379
|
},
|
|
22167
22380
|
/**
|
|
22168
22381
|
*
|
|
@@ -22580,7 +22793,6 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22580
22793
|
*
|
|
22581
22794
|
* @summary Get All DoctorSpecialties.
|
|
22582
22795
|
* @param {string} doctorId
|
|
22583
|
-
* @param {string} [doctorId2]
|
|
22584
22796
|
* @param {string} [doctorName]
|
|
22585
22797
|
* @param {string} [specialtyId]
|
|
22586
22798
|
* @param {string} [specialtyName]
|
|
@@ -22591,8 +22803,21 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22591
22803
|
* @throws {RequiredError}
|
|
22592
22804
|
* @memberof DoctorsApi
|
|
22593
22805
|
*/
|
|
22594
|
-
public apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string,
|
|
22595
|
-
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
22806
|
+
public apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
22807
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
22808
|
+
}
|
|
22809
|
+
|
|
22810
|
+
/**
|
|
22811
|
+
*
|
|
22812
|
+
* @summary Link a doctor to a specialty.
|
|
22813
|
+
* @param {string} doctorId
|
|
22814
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
22815
|
+
* @param {*} [options] Override http request option.
|
|
22816
|
+
* @throws {RequiredError}
|
|
22817
|
+
* @memberof DoctorsApi
|
|
22818
|
+
*/
|
|
22819
|
+
public apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: AxiosRequestConfig) {
|
|
22820
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22596
22821
|
}
|
|
22597
22822
|
|
|
22598
22823
|
/**
|
|
@@ -22623,15 +22848,16 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22623
22848
|
|
|
22624
22849
|
/**
|
|
22625
22850
|
*
|
|
22626
|
-
* @summary
|
|
22851
|
+
* @summary Update DoctorSpecialty.
|
|
22627
22852
|
* @param {string} doctorId
|
|
22628
22853
|
* @param {string} specialtyId
|
|
22854
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
22629
22855
|
* @param {*} [options] Override http request option.
|
|
22630
22856
|
* @throws {RequiredError}
|
|
22631
22857
|
* @memberof DoctorsApi
|
|
22632
22858
|
*/
|
|
22633
|
-
public
|
|
22634
|
-
return DoctorsApiFp(this.configuration).
|
|
22859
|
+
public apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: AxiosRequestConfig) {
|
|
22860
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22635
22861
|
}
|
|
22636
22862
|
|
|
22637
22863
|
/**
|
|
@@ -24595,6 +24821,52 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
24595
24821
|
options: localVarRequestOptions,
|
|
24596
24822
|
};
|
|
24597
24823
|
},
|
|
24824
|
+
/**
|
|
24825
|
+
*
|
|
24826
|
+
* @summary Update HospitalSpecialty.
|
|
24827
|
+
* @param {string} hospitalId
|
|
24828
|
+
* @param {string} specialtyId
|
|
24829
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
24830
|
+
* @param {*} [options] Override http request option.
|
|
24831
|
+
* @throws {RequiredError}
|
|
24832
|
+
*/
|
|
24833
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: async (hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24834
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
24835
|
+
assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId)
|
|
24836
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
24837
|
+
assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
|
|
24838
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
|
|
24839
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
24840
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
24841
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24842
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24843
|
+
let baseOptions;
|
|
24844
|
+
if (configuration) {
|
|
24845
|
+
baseOptions = configuration.baseOptions;
|
|
24846
|
+
}
|
|
24847
|
+
|
|
24848
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
24849
|
+
const localVarHeaderParameter = {} as any;
|
|
24850
|
+
const localVarQueryParameter = {} as any;
|
|
24851
|
+
|
|
24852
|
+
// authentication oauth2 required
|
|
24853
|
+
// oauth required
|
|
24854
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
24855
|
+
|
|
24856
|
+
|
|
24857
|
+
|
|
24858
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24859
|
+
|
|
24860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24862
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24863
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration)
|
|
24864
|
+
|
|
24865
|
+
return {
|
|
24866
|
+
url: toPathString(localVarUrlObj),
|
|
24867
|
+
options: localVarRequestOptions,
|
|
24868
|
+
};
|
|
24869
|
+
},
|
|
24598
24870
|
/**
|
|
24599
24871
|
*
|
|
24600
24872
|
* @summary Create Hospital.
|
|
@@ -25190,6 +25462,19 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
25190
25462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options);
|
|
25191
25463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25192
25464
|
},
|
|
25465
|
+
/**
|
|
25466
|
+
*
|
|
25467
|
+
* @summary Update HospitalSpecialty.
|
|
25468
|
+
* @param {string} hospitalId
|
|
25469
|
+
* @param {string} specialtyId
|
|
25470
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
25471
|
+
* @param {*} [options] Override http request option.
|
|
25472
|
+
* @throws {RequiredError}
|
|
25473
|
+
*/
|
|
25474
|
+
async apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtyModel>> {
|
|
25475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options);
|
|
25476
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25477
|
+
},
|
|
25193
25478
|
/**
|
|
25194
25479
|
*
|
|
25195
25480
|
* @summary Create Hospital.
|
|
@@ -25691,6 +25976,18 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
25691
25976
|
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId: string, specialtyId: string, options?: any): AxiosPromise<HospitalSpecialtyModel> {
|
|
25692
25977
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then((request) => request(axios, basePath));
|
|
25693
25978
|
},
|
|
25979
|
+
/**
|
|
25980
|
+
*
|
|
25981
|
+
* @summary Update HospitalSpecialty.
|
|
25982
|
+
* @param {string} hospitalId
|
|
25983
|
+
* @param {string} specialtyId
|
|
25984
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
25985
|
+
* @param {*} [options] Override http request option.
|
|
25986
|
+
* @throws {RequiredError}
|
|
25987
|
+
*/
|
|
25988
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: any): AxiosPromise<HospitalSpecialtyModel> {
|
|
25989
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
25990
|
+
},
|
|
25694
25991
|
/**
|
|
25695
25992
|
*
|
|
25696
25993
|
* @summary Create Hospital.
|
|
@@ -26262,6 +26559,20 @@ export class HospitalsApi extends BaseAPI {
|
|
|
26262
26559
|
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then((request) => request(this.axios, this.basePath));
|
|
26263
26560
|
}
|
|
26264
26561
|
|
|
26562
|
+
/**
|
|
26563
|
+
*
|
|
26564
|
+
* @summary Update HospitalSpecialty.
|
|
26565
|
+
* @param {string} hospitalId
|
|
26566
|
+
* @param {string} specialtyId
|
|
26567
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
26568
|
+
* @param {*} [options] Override http request option.
|
|
26569
|
+
* @throws {RequiredError}
|
|
26570
|
+
* @memberof HospitalsApi
|
|
26571
|
+
*/
|
|
26572
|
+
public apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig) {
|
|
26573
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
26574
|
+
}
|
|
26575
|
+
|
|
26265
26576
|
/**
|
|
26266
26577
|
*
|
|
26267
26578
|
* @summary Create Hospital.
|