ch-admin-api-client-typescript 5.3.0 → 5.3.1
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/hospitals-api.d.ts +148 -29
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +222 -34
- package/lib/api/vonage-users-api.d.ts +109 -0
- package/lib/api/vonage-users-api.d.ts.map +1 -0
- package/lib/api/vonage-users-api.js +286 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/get-users-result-embedded.d.ts +26 -0
- package/lib/models/get-users-result-embedded.d.ts.map +1 -0
- package/lib/models/get-users-result-embedded.js +15 -0
- package/lib/models/get-users-result.d.ts +45 -0
- package/lib/models/get-users-result.d.ts.map +1 -0
- package/lib/models/get-users-result.js +15 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +3 -0
- package/lib/models/vonage-user.d.ts +44 -0
- package/lib/models/vonage-user.d.ts.map +1 -0
- package/lib/models/vonage-user.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +4 -0
- package/src/api/hospitals-api.ts +259 -47
- package/src/api/vonage-users-api.ts +203 -0
- package/src/api.ts +1 -0
- package/src/models/get-users-result-embedded.ts +33 -0
- package/src/models/get-users-result.ts +54 -0
- package/src/models/index.ts +3 -0
- package/src/models/vonage-user.ts +51 -0
package/src/api/hospitals-api.ts
CHANGED
|
@@ -3785,20 +3785,20 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3785
3785
|
},
|
|
3786
3786
|
/**
|
|
3787
3787
|
*
|
|
3788
|
-
* @summary Get file content by
|
|
3788
|
+
* @summary Get file content by file name
|
|
3789
3789
|
* @param {string} hospitalId
|
|
3790
|
-
* @param {string}
|
|
3790
|
+
* @param {string} fileName
|
|
3791
3791
|
* @param {*} [options] Override http request option.
|
|
3792
3792
|
* @throws {RequiredError}
|
|
3793
3793
|
*/
|
|
3794
|
-
|
|
3794
|
+
apiV1HospitalsHospitalIdSecurefilesFileNameGet: async (hospitalId: string, fileName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3795
3795
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
3796
|
-
assertParamExists('
|
|
3797
|
-
// verify required parameter '
|
|
3798
|
-
assertParamExists('
|
|
3799
|
-
const localVarPath = `/api/v1/hospitals/{hospitalId}/securefiles/{
|
|
3796
|
+
assertParamExists('apiV1HospitalsHospitalIdSecurefilesFileNameGet', 'hospitalId', hospitalId)
|
|
3797
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
3798
|
+
assertParamExists('apiV1HospitalsHospitalIdSecurefilesFileNameGet', 'fileName', fileName)
|
|
3799
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/securefiles/{fileName}`
|
|
3800
3800
|
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
3801
|
-
.replace(`{${"
|
|
3801
|
+
.replace(`{${"fileName"}}`, encodeURIComponent(String(fileName)));
|
|
3802
3802
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3803
3803
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3804
3804
|
let baseOptions;
|
|
@@ -3827,21 +3827,21 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3827
3827
|
},
|
|
3828
3828
|
/**
|
|
3829
3829
|
*
|
|
3830
|
-
* @summary Get secure file url with read access by
|
|
3830
|
+
* @summary Get secure file url with read access by file name
|
|
3831
3831
|
* @param {string} hospitalId
|
|
3832
|
-
* @param {string}
|
|
3832
|
+
* @param {string} fileName
|
|
3833
3833
|
* @param {number} [minutesAvailableUntil]
|
|
3834
3834
|
* @param {*} [options] Override http request option.
|
|
3835
3835
|
* @throws {RequiredError}
|
|
3836
3836
|
*/
|
|
3837
|
-
|
|
3837
|
+
apiV1HospitalsHospitalIdSecurefilesFileNameReadGet: async (hospitalId: string, fileName: string, minutesAvailableUntil?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3838
3838
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
3839
|
-
assertParamExists('
|
|
3840
|
-
// verify required parameter '
|
|
3841
|
-
assertParamExists('
|
|
3842
|
-
const localVarPath = `/api/v1/hospitals/{hospitalId}/securefiles/{
|
|
3839
|
+
assertParamExists('apiV1HospitalsHospitalIdSecurefilesFileNameReadGet', 'hospitalId', hospitalId)
|
|
3840
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
3841
|
+
assertParamExists('apiV1HospitalsHospitalIdSecurefilesFileNameReadGet', 'fileName', fileName)
|
|
3842
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/securefiles/{fileName}/read`
|
|
3843
3843
|
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
3844
|
-
.replace(`{${"
|
|
3844
|
+
.replace(`{${"fileName"}}`, encodeURIComponent(String(fileName)));
|
|
3845
3845
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3846
3846
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3847
3847
|
let baseOptions;
|
|
@@ -3863,6 +3863,97 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3863
3863
|
|
|
3864
3864
|
|
|
3865
3865
|
|
|
3866
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3867
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3868
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3869
|
+
|
|
3870
|
+
return {
|
|
3871
|
+
url: toPathString(localVarUrlObj),
|
|
3872
|
+
options: localVarRequestOptions,
|
|
3873
|
+
};
|
|
3874
|
+
},
|
|
3875
|
+
/**
|
|
3876
|
+
*
|
|
3877
|
+
* @summary Get file content by uri
|
|
3878
|
+
* @param {string} hospitalId
|
|
3879
|
+
* @param {string} [uri]
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
apiV1HospitalsHospitalIdSecurefilesGet: async (hospitalId: string, uri?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3884
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
3885
|
+
assertParamExists('apiV1HospitalsHospitalIdSecurefilesGet', 'hospitalId', hospitalId)
|
|
3886
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/securefiles`
|
|
3887
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
3888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3890
|
+
let baseOptions;
|
|
3891
|
+
if (configuration) {
|
|
3892
|
+
baseOptions = configuration.baseOptions;
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3895
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3896
|
+
const localVarHeaderParameter = {} as any;
|
|
3897
|
+
const localVarQueryParameter = {} as any;
|
|
3898
|
+
|
|
3899
|
+
// authentication oauth2 required
|
|
3900
|
+
// oauth required
|
|
3901
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
3902
|
+
|
|
3903
|
+
if (uri !== undefined) {
|
|
3904
|
+
localVarQueryParameter['uri'] = uri;
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
|
|
3909
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3911
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3912
|
+
|
|
3913
|
+
return {
|
|
3914
|
+
url: toPathString(localVarUrlObj),
|
|
3915
|
+
options: localVarRequestOptions,
|
|
3916
|
+
};
|
|
3917
|
+
},
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @summary Get secure file url with read access by uri
|
|
3921
|
+
* @param {string} hospitalId
|
|
3922
|
+
* @param {string} [uri]
|
|
3923
|
+
* @param {number} [minutesAvailableUntil]
|
|
3924
|
+
* @param {*} [options] Override http request option.
|
|
3925
|
+
* @throws {RequiredError}
|
|
3926
|
+
*/
|
|
3927
|
+
apiV1HospitalsHospitalIdSecurefilesReadGet: async (hospitalId: string, uri?: string, minutesAvailableUntil?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3928
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
3929
|
+
assertParamExists('apiV1HospitalsHospitalIdSecurefilesReadGet', 'hospitalId', hospitalId)
|
|
3930
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/securefiles/read`
|
|
3931
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
3932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3933
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3934
|
+
let baseOptions;
|
|
3935
|
+
if (configuration) {
|
|
3936
|
+
baseOptions = configuration.baseOptions;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3940
|
+
const localVarHeaderParameter = {} as any;
|
|
3941
|
+
const localVarQueryParameter = {} as any;
|
|
3942
|
+
|
|
3943
|
+
// authentication oauth2 required
|
|
3944
|
+
// oauth required
|
|
3945
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
3946
|
+
|
|
3947
|
+
if (uri !== undefined) {
|
|
3948
|
+
localVarQueryParameter['uri'] = uri;
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3951
|
+
if (minutesAvailableUntil !== undefined) {
|
|
3952
|
+
localVarQueryParameter['minutesAvailableUntil'] = minutesAvailableUntil;
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
|
|
3956
|
+
|
|
3866
3957
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3867
3958
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3868
3959
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7321,29 +7412,54 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
7321
7412
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSecurecontainersPost(hospitalId, options);
|
|
7322
7413
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7323
7414
|
},
|
|
7415
|
+
/**
|
|
7416
|
+
*
|
|
7417
|
+
* @summary Get file content by file name
|
|
7418
|
+
* @param {string} hospitalId
|
|
7419
|
+
* @param {string} fileName
|
|
7420
|
+
* @param {*} [options] Override http request option.
|
|
7421
|
+
* @throws {RequiredError}
|
|
7422
|
+
*/
|
|
7423
|
+
async apiV1HospitalsHospitalIdSecurefilesFileNameGet(hospitalId: string, fileName: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSecurefilesFileNameGet(hospitalId, fileName, options);
|
|
7425
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7426
|
+
},
|
|
7427
|
+
/**
|
|
7428
|
+
*
|
|
7429
|
+
* @summary Get secure file url with read access by file name
|
|
7430
|
+
* @param {string} hospitalId
|
|
7431
|
+
* @param {string} fileName
|
|
7432
|
+
* @param {number} [minutesAvailableUntil]
|
|
7433
|
+
* @param {*} [options] Override http request option.
|
|
7434
|
+
* @throws {RequiredError}
|
|
7435
|
+
*/
|
|
7436
|
+
async apiV1HospitalsHospitalIdSecurefilesFileNameReadGet(hospitalId: string, fileName: string, minutesAvailableUntil?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
7437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSecurefilesFileNameReadGet(hospitalId, fileName, minutesAvailableUntil, options);
|
|
7438
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7439
|
+
},
|
|
7324
7440
|
/**
|
|
7325
7441
|
*
|
|
7326
7442
|
* @summary Get file content by uri
|
|
7327
7443
|
* @param {string} hospitalId
|
|
7328
|
-
* @param {string} uri
|
|
7444
|
+
* @param {string} [uri]
|
|
7329
7445
|
* @param {*} [options] Override http request option.
|
|
7330
7446
|
* @throws {RequiredError}
|
|
7331
7447
|
*/
|
|
7332
|
-
async
|
|
7333
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7448
|
+
async apiV1HospitalsHospitalIdSecurefilesGet(hospitalId: string, uri?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7449
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSecurefilesGet(hospitalId, uri, options);
|
|
7334
7450
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7335
7451
|
},
|
|
7336
7452
|
/**
|
|
7337
7453
|
*
|
|
7338
7454
|
* @summary Get secure file url with read access by uri
|
|
7339
7455
|
* @param {string} hospitalId
|
|
7340
|
-
* @param {string} uri
|
|
7456
|
+
* @param {string} [uri]
|
|
7341
7457
|
* @param {number} [minutesAvailableUntil]
|
|
7342
7458
|
* @param {*} [options] Override http request option.
|
|
7343
7459
|
* @throws {RequiredError}
|
|
7344
7460
|
*/
|
|
7345
|
-
async
|
|
7346
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7461
|
+
async apiV1HospitalsHospitalIdSecurefilesReadGet(hospitalId: string, uri?: string, minutesAvailableUntil?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
7462
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSecurefilesReadGet(hospitalId, uri, minutesAvailableUntil, options);
|
|
7347
7463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7348
7464
|
},
|
|
7349
7465
|
/**
|
|
@@ -8903,28 +9019,51 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
8903
9019
|
apiV1HospitalsHospitalIdSecurecontainersPost(hospitalId: string, options?: any): AxiosPromise<SecureContainerModel> {
|
|
8904
9020
|
return localVarFp.apiV1HospitalsHospitalIdSecurecontainersPost(hospitalId, options).then((request) => request(axios, basePath));
|
|
8905
9021
|
},
|
|
9022
|
+
/**
|
|
9023
|
+
*
|
|
9024
|
+
* @summary Get file content by file name
|
|
9025
|
+
* @param {string} hospitalId
|
|
9026
|
+
* @param {string} fileName
|
|
9027
|
+
* @param {*} [options] Override http request option.
|
|
9028
|
+
* @throws {RequiredError}
|
|
9029
|
+
*/
|
|
9030
|
+
apiV1HospitalsHospitalIdSecurefilesFileNameGet(hospitalId: string, fileName: string, options?: any): AxiosPromise<void> {
|
|
9031
|
+
return localVarFp.apiV1HospitalsHospitalIdSecurefilesFileNameGet(hospitalId, fileName, options).then((request) => request(axios, basePath));
|
|
9032
|
+
},
|
|
9033
|
+
/**
|
|
9034
|
+
*
|
|
9035
|
+
* @summary Get secure file url with read access by file name
|
|
9036
|
+
* @param {string} hospitalId
|
|
9037
|
+
* @param {string} fileName
|
|
9038
|
+
* @param {number} [minutesAvailableUntil]
|
|
9039
|
+
* @param {*} [options] Override http request option.
|
|
9040
|
+
* @throws {RequiredError}
|
|
9041
|
+
*/
|
|
9042
|
+
apiV1HospitalsHospitalIdSecurefilesFileNameReadGet(hospitalId: string, fileName: string, minutesAvailableUntil?: number, options?: any): AxiosPromise<string> {
|
|
9043
|
+
return localVarFp.apiV1HospitalsHospitalIdSecurefilesFileNameReadGet(hospitalId, fileName, minutesAvailableUntil, options).then((request) => request(axios, basePath));
|
|
9044
|
+
},
|
|
8906
9045
|
/**
|
|
8907
9046
|
*
|
|
8908
9047
|
* @summary Get file content by uri
|
|
8909
9048
|
* @param {string} hospitalId
|
|
8910
|
-
* @param {string} uri
|
|
9049
|
+
* @param {string} [uri]
|
|
8911
9050
|
* @param {*} [options] Override http request option.
|
|
8912
9051
|
* @throws {RequiredError}
|
|
8913
9052
|
*/
|
|
8914
|
-
|
|
8915
|
-
return localVarFp.
|
|
9053
|
+
apiV1HospitalsHospitalIdSecurefilesGet(hospitalId: string, uri?: string, options?: any): AxiosPromise<void> {
|
|
9054
|
+
return localVarFp.apiV1HospitalsHospitalIdSecurefilesGet(hospitalId, uri, options).then((request) => request(axios, basePath));
|
|
8916
9055
|
},
|
|
8917
9056
|
/**
|
|
8918
9057
|
*
|
|
8919
9058
|
* @summary Get secure file url with read access by uri
|
|
8920
9059
|
* @param {string} hospitalId
|
|
8921
|
-
* @param {string} uri
|
|
9060
|
+
* @param {string} [uri]
|
|
8922
9061
|
* @param {number} [minutesAvailableUntil]
|
|
8923
9062
|
* @param {*} [options] Override http request option.
|
|
8924
9063
|
* @throws {RequiredError}
|
|
8925
9064
|
*/
|
|
8926
|
-
|
|
8927
|
-
return localVarFp.
|
|
9065
|
+
apiV1HospitalsHospitalIdSecurefilesReadGet(hospitalId: string, uri?: string, minutesAvailableUntil?: number, options?: any): AxiosPromise<string> {
|
|
9066
|
+
return localVarFp.apiV1HospitalsHospitalIdSecurefilesReadGet(hospitalId, uri, minutesAvailableUntil, options).then((request) => request(axios, basePath));
|
|
8928
9067
|
},
|
|
8929
9068
|
/**
|
|
8930
9069
|
*
|
|
@@ -11814,50 +11953,99 @@ export interface HospitalsApiApiV1HospitalsHospitalIdSecurecontainersPostRequest
|
|
|
11814
11953
|
}
|
|
11815
11954
|
|
|
11816
11955
|
/**
|
|
11817
|
-
* Request parameters for
|
|
11956
|
+
* Request parameters for apiV1HospitalsHospitalIdSecurefilesFileNameGet operation in HospitalsApi.
|
|
11957
|
+
* @export
|
|
11958
|
+
* @interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameGetRequest
|
|
11959
|
+
*/
|
|
11960
|
+
export interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameGetRequest {
|
|
11961
|
+
/**
|
|
11962
|
+
*
|
|
11963
|
+
* @type {string}
|
|
11964
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameGet
|
|
11965
|
+
*/
|
|
11966
|
+
readonly hospitalId: string
|
|
11967
|
+
|
|
11968
|
+
/**
|
|
11969
|
+
*
|
|
11970
|
+
* @type {string}
|
|
11971
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameGet
|
|
11972
|
+
*/
|
|
11973
|
+
readonly fileName: string
|
|
11974
|
+
}
|
|
11975
|
+
|
|
11976
|
+
/**
|
|
11977
|
+
* Request parameters for apiV1HospitalsHospitalIdSecurefilesFileNameReadGet operation in HospitalsApi.
|
|
11978
|
+
* @export
|
|
11979
|
+
* @interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGetRequest
|
|
11980
|
+
*/
|
|
11981
|
+
export interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGetRequest {
|
|
11982
|
+
/**
|
|
11983
|
+
*
|
|
11984
|
+
* @type {string}
|
|
11985
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGet
|
|
11986
|
+
*/
|
|
11987
|
+
readonly hospitalId: string
|
|
11988
|
+
|
|
11989
|
+
/**
|
|
11990
|
+
*
|
|
11991
|
+
* @type {string}
|
|
11992
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGet
|
|
11993
|
+
*/
|
|
11994
|
+
readonly fileName: string
|
|
11995
|
+
|
|
11996
|
+
/**
|
|
11997
|
+
*
|
|
11998
|
+
* @type {number}
|
|
11999
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGet
|
|
12000
|
+
*/
|
|
12001
|
+
readonly minutesAvailableUntil?: number
|
|
12002
|
+
}
|
|
12003
|
+
|
|
12004
|
+
/**
|
|
12005
|
+
* Request parameters for apiV1HospitalsHospitalIdSecurefilesGet operation in HospitalsApi.
|
|
11818
12006
|
* @export
|
|
11819
|
-
* @interface
|
|
12007
|
+
* @interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesGetRequest
|
|
11820
12008
|
*/
|
|
11821
|
-
export interface
|
|
12009
|
+
export interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesGetRequest {
|
|
11822
12010
|
/**
|
|
11823
12011
|
*
|
|
11824
12012
|
* @type {string}
|
|
11825
|
-
* @memberof
|
|
12013
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesGet
|
|
11826
12014
|
*/
|
|
11827
12015
|
readonly hospitalId: string
|
|
11828
12016
|
|
|
11829
12017
|
/**
|
|
11830
12018
|
*
|
|
11831
12019
|
* @type {string}
|
|
11832
|
-
* @memberof
|
|
12020
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesGet
|
|
11833
12021
|
*/
|
|
11834
|
-
readonly uri
|
|
12022
|
+
readonly uri?: string
|
|
11835
12023
|
}
|
|
11836
12024
|
|
|
11837
12025
|
/**
|
|
11838
|
-
* Request parameters for
|
|
12026
|
+
* Request parameters for apiV1HospitalsHospitalIdSecurefilesReadGet operation in HospitalsApi.
|
|
11839
12027
|
* @export
|
|
11840
|
-
* @interface
|
|
12028
|
+
* @interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGetRequest
|
|
11841
12029
|
*/
|
|
11842
|
-
export interface
|
|
12030
|
+
export interface HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGetRequest {
|
|
11843
12031
|
/**
|
|
11844
12032
|
*
|
|
11845
12033
|
* @type {string}
|
|
11846
|
-
* @memberof
|
|
12034
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGet
|
|
11847
12035
|
*/
|
|
11848
12036
|
readonly hospitalId: string
|
|
11849
12037
|
|
|
11850
12038
|
/**
|
|
11851
12039
|
*
|
|
11852
12040
|
* @type {string}
|
|
11853
|
-
* @memberof
|
|
12041
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGet
|
|
11854
12042
|
*/
|
|
11855
|
-
readonly uri
|
|
12043
|
+
readonly uri?: string
|
|
11856
12044
|
|
|
11857
12045
|
/**
|
|
11858
12046
|
*
|
|
11859
12047
|
* @type {number}
|
|
11860
|
-
* @memberof
|
|
12048
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGet
|
|
11861
12049
|
*/
|
|
11862
12050
|
readonly minutesAvailableUntil?: number
|
|
11863
12051
|
}
|
|
@@ -14539,28 +14727,52 @@ export class HospitalsApi extends BaseAPI {
|
|
|
14539
14727
|
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSecurecontainersPost(requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
14540
14728
|
}
|
|
14541
14729
|
|
|
14730
|
+
/**
|
|
14731
|
+
*
|
|
14732
|
+
* @summary Get file content by file name
|
|
14733
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameGetRequest} requestParameters Request parameters.
|
|
14734
|
+
* @param {*} [options] Override http request option.
|
|
14735
|
+
* @throws {RequiredError}
|
|
14736
|
+
* @memberof HospitalsApi
|
|
14737
|
+
*/
|
|
14738
|
+
public apiV1HospitalsHospitalIdSecurefilesFileNameGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameGetRequest, options?: AxiosRequestConfig) {
|
|
14739
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSecurefilesFileNameGet(requestParameters.hospitalId, requestParameters.fileName, options).then((request) => request(this.axios, this.basePath));
|
|
14740
|
+
}
|
|
14741
|
+
|
|
14742
|
+
/**
|
|
14743
|
+
*
|
|
14744
|
+
* @summary Get secure file url with read access by file name
|
|
14745
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGetRequest} requestParameters Request parameters.
|
|
14746
|
+
* @param {*} [options] Override http request option.
|
|
14747
|
+
* @throws {RequiredError}
|
|
14748
|
+
* @memberof HospitalsApi
|
|
14749
|
+
*/
|
|
14750
|
+
public apiV1HospitalsHospitalIdSecurefilesFileNameReadGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdSecurefilesFileNameReadGetRequest, options?: AxiosRequestConfig) {
|
|
14751
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSecurefilesFileNameReadGet(requestParameters.hospitalId, requestParameters.fileName, requestParameters.minutesAvailableUntil, options).then((request) => request(this.axios, this.basePath));
|
|
14752
|
+
}
|
|
14753
|
+
|
|
14542
14754
|
/**
|
|
14543
14755
|
*
|
|
14544
14756
|
* @summary Get file content by uri
|
|
14545
|
-
* @param {
|
|
14757
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdSecurefilesGetRequest} requestParameters Request parameters.
|
|
14546
14758
|
* @param {*} [options] Override http request option.
|
|
14547
14759
|
* @throws {RequiredError}
|
|
14548
14760
|
* @memberof HospitalsApi
|
|
14549
14761
|
*/
|
|
14550
|
-
public
|
|
14551
|
-
return HospitalsApiFp(this.configuration).
|
|
14762
|
+
public apiV1HospitalsHospitalIdSecurefilesGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdSecurefilesGetRequest, options?: AxiosRequestConfig) {
|
|
14763
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSecurefilesGet(requestParameters.hospitalId, requestParameters.uri, options).then((request) => request(this.axios, this.basePath));
|
|
14552
14764
|
}
|
|
14553
14765
|
|
|
14554
14766
|
/**
|
|
14555
14767
|
*
|
|
14556
14768
|
* @summary Get secure file url with read access by uri
|
|
14557
|
-
* @param {
|
|
14769
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGetRequest} requestParameters Request parameters.
|
|
14558
14770
|
* @param {*} [options] Override http request option.
|
|
14559
14771
|
* @throws {RequiredError}
|
|
14560
14772
|
* @memberof HospitalsApi
|
|
14561
14773
|
*/
|
|
14562
|
-
public
|
|
14563
|
-
return HospitalsApiFp(this.configuration).
|
|
14774
|
+
public apiV1HospitalsHospitalIdSecurefilesReadGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdSecurefilesReadGetRequest, options?: AxiosRequestConfig) {
|
|
14775
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSecurefilesReadGet(requestParameters.hospitalId, requestParameters.uri, requestParameters.minutesAvailableUntil, options).then((request) => request(this.axios, this.basePath));
|
|
14564
14776
|
}
|
|
14565
14777
|
|
|
14566
14778
|
/**
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetUsersResult } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ProblemDetails } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* VonageUsersApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const VonageUsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
apiV1VonageusersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
const localVarPath = `/api/v1/vonageusers`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
baseOptions = configuration.baseOptions;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48
|
+
const localVarHeaderParameter = {} as any;
|
|
49
|
+
const localVarQueryParameter = {} as any;
|
|
50
|
+
|
|
51
|
+
// authentication oauth2 required
|
|
52
|
+
// oauth required
|
|
53
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
url: toPathString(localVarUrlObj),
|
|
63
|
+
options: localVarRequestOptions,
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @param {string} userId
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
apiV1VonageusersUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
73
|
+
// verify required parameter 'userId' is not null or undefined
|
|
74
|
+
assertParamExists('apiV1VonageusersUserIdDelete', 'userId', userId)
|
|
75
|
+
const localVarPath = `/api/v1/vonageusers/{userId}`
|
|
76
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
77
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
79
|
+
let baseOptions;
|
|
80
|
+
if (configuration) {
|
|
81
|
+
baseOptions = configuration.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
85
|
+
const localVarHeaderParameter = {} as any;
|
|
86
|
+
const localVarQueryParameter = {} as any;
|
|
87
|
+
|
|
88
|
+
// authentication oauth2 required
|
|
89
|
+
// oauth required
|
|
90
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
url: toPathString(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* VonageUsersApi - functional programming interface
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export const VonageUsersApiFp = function(configuration?: Configuration) {
|
|
111
|
+
const localVarAxiosParamCreator = VonageUsersApiAxiosParamCreator(configuration)
|
|
112
|
+
return {
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
async apiV1VonageusersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUsersResult>> {
|
|
119
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageusersGet(options);
|
|
120
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
121
|
+
},
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @param {string} userId
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
async apiV1VonageusersUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
129
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1VonageusersUserIdDelete(userId, options);
|
|
130
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
131
|
+
},
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* VonageUsersApi - factory interface
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export const VonageUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
140
|
+
const localVarFp = VonageUsersApiFp(configuration)
|
|
141
|
+
return {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
apiV1VonageusersGet(options?: any): AxiosPromise<GetUsersResult> {
|
|
148
|
+
return localVarFp.apiV1VonageusersGet(options).then((request) => request(axios, basePath));
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @param {string} userId
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
apiV1VonageusersUserIdDelete(userId: string, options?: any): AxiosPromise<boolean> {
|
|
157
|
+
return localVarFp.apiV1VonageusersUserIdDelete(userId, options).then((request) => request(axios, basePath));
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Request parameters for apiV1VonageusersUserIdDelete operation in VonageUsersApi.
|
|
164
|
+
* @export
|
|
165
|
+
* @interface VonageUsersApiApiV1VonageusersUserIdDeleteRequest
|
|
166
|
+
*/
|
|
167
|
+
export interface VonageUsersApiApiV1VonageusersUserIdDeleteRequest {
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof VonageUsersApiApiV1VonageusersUserIdDelete
|
|
172
|
+
*/
|
|
173
|
+
readonly userId: string
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* VonageUsersApi - object-oriented interface
|
|
178
|
+
* @export
|
|
179
|
+
* @class VonageUsersApi
|
|
180
|
+
* @extends {BaseAPI}
|
|
181
|
+
*/
|
|
182
|
+
export class VonageUsersApi extends BaseAPI {
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof VonageUsersApi
|
|
188
|
+
*/
|
|
189
|
+
public apiV1VonageusersGet(options?: AxiosRequestConfig) {
|
|
190
|
+
return VonageUsersApiFp(this.configuration).apiV1VonageusersGet(options).then((request) => request(this.axios, this.basePath));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @param {VonageUsersApiApiV1VonageusersUserIdDeleteRequest} requestParameters Request parameters.
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
* @memberof VonageUsersApi
|
|
199
|
+
*/
|
|
200
|
+
public apiV1VonageusersUserIdDelete(requestParameters: VonageUsersApiApiV1VonageusersUserIdDeleteRequest, options?: AxiosRequestConfig) {
|
|
201
|
+
return VonageUsersApiFp(this.configuration).apiV1VonageusersUserIdDelete(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
202
|
+
}
|
|
203
|
+
}
|