ch-admin-api-client-typescript 2.3.7 → 2.4.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.d.ts +190 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +314 -8
- package/package.json +1 -1
- package/src/api.ts +343 -7
package/src/api.ts
CHANGED
|
@@ -8977,6 +8977,25 @@ export interface HospitalServicesModel {
|
|
|
8977
8977
|
*/
|
|
8978
8978
|
'metaData'?: PagedListMetaData;
|
|
8979
8979
|
}
|
|
8980
|
+
/**
|
|
8981
|
+
*
|
|
8982
|
+
* @export
|
|
8983
|
+
* @interface HospitalSimpleItemModel
|
|
8984
|
+
*/
|
|
8985
|
+
export interface HospitalSimpleItemModel {
|
|
8986
|
+
/**
|
|
8987
|
+
*
|
|
8988
|
+
* @type {string}
|
|
8989
|
+
* @memberof HospitalSimpleItemModel
|
|
8990
|
+
*/
|
|
8991
|
+
'id'?: string;
|
|
8992
|
+
/**
|
|
8993
|
+
*
|
|
8994
|
+
* @type {string}
|
|
8995
|
+
* @memberof HospitalSimpleItemModel
|
|
8996
|
+
*/
|
|
8997
|
+
'name'?: string | null;
|
|
8998
|
+
}
|
|
8980
8999
|
/**
|
|
8981
9000
|
*
|
|
8982
9001
|
* @export
|
|
@@ -9180,6 +9199,25 @@ export interface HospitalsModel {
|
|
|
9180
9199
|
*/
|
|
9181
9200
|
'metaData'?: PagedListMetaData;
|
|
9182
9201
|
}
|
|
9202
|
+
/**
|
|
9203
|
+
*
|
|
9204
|
+
* @export
|
|
9205
|
+
* @interface HospitalsSimpleModel
|
|
9206
|
+
*/
|
|
9207
|
+
export interface HospitalsSimpleModel {
|
|
9208
|
+
/**
|
|
9209
|
+
*
|
|
9210
|
+
* @type {Array<HospitalSimpleItemModel>}
|
|
9211
|
+
* @memberof HospitalsSimpleModel
|
|
9212
|
+
*/
|
|
9213
|
+
'items'?: Array<HospitalSimpleItemModel> | null;
|
|
9214
|
+
/**
|
|
9215
|
+
*
|
|
9216
|
+
* @type {PagedListMetaData}
|
|
9217
|
+
* @memberof HospitalsSimpleModel
|
|
9218
|
+
*/
|
|
9219
|
+
'metaData'?: PagedListMetaData;
|
|
9220
|
+
}
|
|
9183
9221
|
/**
|
|
9184
9222
|
*
|
|
9185
9223
|
* @export
|
|
@@ -28819,6 +28857,124 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
28819
28857
|
options: localVarRequestOptions,
|
|
28820
28858
|
};
|
|
28821
28859
|
},
|
|
28860
|
+
/**
|
|
28861
|
+
*
|
|
28862
|
+
* @summary Get all Hospitals.
|
|
28863
|
+
* @param {string} [hospitalId]
|
|
28864
|
+
* @param {string} [name]
|
|
28865
|
+
* @param {string} [description]
|
|
28866
|
+
* @param {string} [countryId]
|
|
28867
|
+
* @param {Date} [created]
|
|
28868
|
+
* @param {MarketingType} [marketingType]
|
|
28869
|
+
* @param {string} [specialtyTypeId]
|
|
28870
|
+
* @param {string} [specialtyId]
|
|
28871
|
+
* @param {string} [serviceId]
|
|
28872
|
+
* @param {string} [exceptHospitalId]
|
|
28873
|
+
* @param {boolean} [showHidden]
|
|
28874
|
+
* @param {string} [languageCode]
|
|
28875
|
+
* @param {Array<string>} [ids]
|
|
28876
|
+
* @param {number} [page]
|
|
28877
|
+
* @param {number} [limit]
|
|
28878
|
+
* @param {Date} [lastRetrieved]
|
|
28879
|
+
* @param {*} [options] Override http request option.
|
|
28880
|
+
* @throws {RequiredError}
|
|
28881
|
+
*/
|
|
28882
|
+
apiV1HospitalsSimpleGet: async (hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28883
|
+
const localVarPath = `/api/v1/hospitals/simple`;
|
|
28884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28885
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28886
|
+
let baseOptions;
|
|
28887
|
+
if (configuration) {
|
|
28888
|
+
baseOptions = configuration.baseOptions;
|
|
28889
|
+
}
|
|
28890
|
+
|
|
28891
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28892
|
+
const localVarHeaderParameter = {} as any;
|
|
28893
|
+
const localVarQueryParameter = {} as any;
|
|
28894
|
+
|
|
28895
|
+
// authentication oauth2 required
|
|
28896
|
+
// oauth required
|
|
28897
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28898
|
+
|
|
28899
|
+
if (hospitalId !== undefined) {
|
|
28900
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
28901
|
+
}
|
|
28902
|
+
|
|
28903
|
+
if (name !== undefined) {
|
|
28904
|
+
localVarQueryParameter['Name'] = name;
|
|
28905
|
+
}
|
|
28906
|
+
|
|
28907
|
+
if (description !== undefined) {
|
|
28908
|
+
localVarQueryParameter['Description'] = description;
|
|
28909
|
+
}
|
|
28910
|
+
|
|
28911
|
+
if (countryId !== undefined) {
|
|
28912
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
28913
|
+
}
|
|
28914
|
+
|
|
28915
|
+
if (created !== undefined) {
|
|
28916
|
+
localVarQueryParameter['Created'] = (created as any instanceof Date) ?
|
|
28917
|
+
(created as any).toISOString() :
|
|
28918
|
+
created;
|
|
28919
|
+
}
|
|
28920
|
+
|
|
28921
|
+
if (marketingType !== undefined) {
|
|
28922
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
28923
|
+
}
|
|
28924
|
+
|
|
28925
|
+
if (specialtyTypeId !== undefined) {
|
|
28926
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
28927
|
+
}
|
|
28928
|
+
|
|
28929
|
+
if (specialtyId !== undefined) {
|
|
28930
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
28931
|
+
}
|
|
28932
|
+
|
|
28933
|
+
if (serviceId !== undefined) {
|
|
28934
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
28935
|
+
}
|
|
28936
|
+
|
|
28937
|
+
if (exceptHospitalId !== undefined) {
|
|
28938
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
28939
|
+
}
|
|
28940
|
+
|
|
28941
|
+
if (showHidden !== undefined) {
|
|
28942
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
28943
|
+
}
|
|
28944
|
+
|
|
28945
|
+
if (languageCode !== undefined) {
|
|
28946
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
28947
|
+
}
|
|
28948
|
+
|
|
28949
|
+
if (ids) {
|
|
28950
|
+
localVarQueryParameter['Ids'] = ids;
|
|
28951
|
+
}
|
|
28952
|
+
|
|
28953
|
+
if (page !== undefined) {
|
|
28954
|
+
localVarQueryParameter['page'] = page;
|
|
28955
|
+
}
|
|
28956
|
+
|
|
28957
|
+
if (limit !== undefined) {
|
|
28958
|
+
localVarQueryParameter['limit'] = limit;
|
|
28959
|
+
}
|
|
28960
|
+
|
|
28961
|
+
if (lastRetrieved !== undefined) {
|
|
28962
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
28963
|
+
(lastRetrieved as any).toISOString() :
|
|
28964
|
+
lastRetrieved;
|
|
28965
|
+
}
|
|
28966
|
+
|
|
28967
|
+
|
|
28968
|
+
|
|
28969
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28971
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28972
|
+
|
|
28973
|
+
return {
|
|
28974
|
+
url: toPathString(localVarUrlObj),
|
|
28975
|
+
options: localVarRequestOptions,
|
|
28976
|
+
};
|
|
28977
|
+
},
|
|
28822
28978
|
/**
|
|
28823
28979
|
*
|
|
28824
28980
|
* @summary Get Hospital by slug.
|
|
@@ -29481,6 +29637,32 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
29481
29637
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsPost(createHospitalCommand, options);
|
|
29482
29638
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29483
29639
|
},
|
|
29640
|
+
/**
|
|
29641
|
+
*
|
|
29642
|
+
* @summary Get all Hospitals.
|
|
29643
|
+
* @param {string} [hospitalId]
|
|
29644
|
+
* @param {string} [name]
|
|
29645
|
+
* @param {string} [description]
|
|
29646
|
+
* @param {string} [countryId]
|
|
29647
|
+
* @param {Date} [created]
|
|
29648
|
+
* @param {MarketingType} [marketingType]
|
|
29649
|
+
* @param {string} [specialtyTypeId]
|
|
29650
|
+
* @param {string} [specialtyId]
|
|
29651
|
+
* @param {string} [serviceId]
|
|
29652
|
+
* @param {string} [exceptHospitalId]
|
|
29653
|
+
* @param {boolean} [showHidden]
|
|
29654
|
+
* @param {string} [languageCode]
|
|
29655
|
+
* @param {Array<string>} [ids]
|
|
29656
|
+
* @param {number} [page]
|
|
29657
|
+
* @param {number} [limit]
|
|
29658
|
+
* @param {Date} [lastRetrieved]
|
|
29659
|
+
* @param {*} [options] Override http request option.
|
|
29660
|
+
* @throws {RequiredError}
|
|
29661
|
+
*/
|
|
29662
|
+
async apiV1HospitalsSimpleGet(hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalsSimpleModel>> {
|
|
29663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options);
|
|
29664
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29665
|
+
},
|
|
29484
29666
|
/**
|
|
29485
29667
|
*
|
|
29486
29668
|
* @summary Get Hospital by slug.
|
|
@@ -30069,6 +30251,31 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
30069
30251
|
apiV1HospitalsPost(createHospitalCommand?: CreateHospitalCommand, options?: any): AxiosPromise<HospitalModel> {
|
|
30070
30252
|
return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then((request) => request(axios, basePath));
|
|
30071
30253
|
},
|
|
30254
|
+
/**
|
|
30255
|
+
*
|
|
30256
|
+
* @summary Get all Hospitals.
|
|
30257
|
+
* @param {string} [hospitalId]
|
|
30258
|
+
* @param {string} [name]
|
|
30259
|
+
* @param {string} [description]
|
|
30260
|
+
* @param {string} [countryId]
|
|
30261
|
+
* @param {Date} [created]
|
|
30262
|
+
* @param {MarketingType} [marketingType]
|
|
30263
|
+
* @param {string} [specialtyTypeId]
|
|
30264
|
+
* @param {string} [specialtyId]
|
|
30265
|
+
* @param {string} [serviceId]
|
|
30266
|
+
* @param {string} [exceptHospitalId]
|
|
30267
|
+
* @param {boolean} [showHidden]
|
|
30268
|
+
* @param {string} [languageCode]
|
|
30269
|
+
* @param {Array<string>} [ids]
|
|
30270
|
+
* @param {number} [page]
|
|
30271
|
+
* @param {number} [limit]
|
|
30272
|
+
* @param {Date} [lastRetrieved]
|
|
30273
|
+
* @param {*} [options] Override http request option.
|
|
30274
|
+
* @throws {RequiredError}
|
|
30275
|
+
*/
|
|
30276
|
+
apiV1HospitalsSimpleGet(hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalsSimpleModel> {
|
|
30277
|
+
return localVarFp.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
30278
|
+
},
|
|
30072
30279
|
/**
|
|
30073
30280
|
*
|
|
30074
30281
|
* @summary Get Hospital by slug.
|
|
@@ -30742,6 +30949,33 @@ export class HospitalsApi extends BaseAPI {
|
|
|
30742
30949
|
return HospitalsApiFp(this.configuration).apiV1HospitalsPost(createHospitalCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30743
30950
|
}
|
|
30744
30951
|
|
|
30952
|
+
/**
|
|
30953
|
+
*
|
|
30954
|
+
* @summary Get all Hospitals.
|
|
30955
|
+
* @param {string} [hospitalId]
|
|
30956
|
+
* @param {string} [name]
|
|
30957
|
+
* @param {string} [description]
|
|
30958
|
+
* @param {string} [countryId]
|
|
30959
|
+
* @param {Date} [created]
|
|
30960
|
+
* @param {MarketingType} [marketingType]
|
|
30961
|
+
* @param {string} [specialtyTypeId]
|
|
30962
|
+
* @param {string} [specialtyId]
|
|
30963
|
+
* @param {string} [serviceId]
|
|
30964
|
+
* @param {string} [exceptHospitalId]
|
|
30965
|
+
* @param {boolean} [showHidden]
|
|
30966
|
+
* @param {string} [languageCode]
|
|
30967
|
+
* @param {Array<string>} [ids]
|
|
30968
|
+
* @param {number} [page]
|
|
30969
|
+
* @param {number} [limit]
|
|
30970
|
+
* @param {Date} [lastRetrieved]
|
|
30971
|
+
* @param {*} [options] Override http request option.
|
|
30972
|
+
* @throws {RequiredError}
|
|
30973
|
+
* @memberof HospitalsApi
|
|
30974
|
+
*/
|
|
30975
|
+
public apiV1HospitalsSimpleGet(hospitalId?: string, name?: string, description?: string, countryId?: string, created?: Date, marketingType?: MarketingType, specialtyTypeId?: string, specialtyId?: string, serviceId?: string, exceptHospitalId?: string, showHidden?: boolean, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
30976
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
30977
|
+
}
|
|
30978
|
+
|
|
30745
30979
|
/**
|
|
30746
30980
|
*
|
|
30747
30981
|
* @summary Get Hospital by slug.
|
|
@@ -31166,6 +31400,7 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31166
31400
|
/**
|
|
31167
31401
|
*
|
|
31168
31402
|
* @summary Get all Managers.
|
|
31403
|
+
* @param {string} [hospitalId]
|
|
31169
31404
|
* @param {string} [id]
|
|
31170
31405
|
* @param {string} [fullname]
|
|
31171
31406
|
* @param {string} [email]
|
|
@@ -31179,7 +31414,7 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31179
31414
|
* @param {*} [options] Override http request option.
|
|
31180
31415
|
* @throws {RequiredError}
|
|
31181
31416
|
*/
|
|
31182
|
-
apiV1ManagersGet: async (id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31417
|
+
apiV1ManagersGet: async (hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31183
31418
|
const localVarPath = `/api/v1/managers`;
|
|
31184
31419
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31185
31420
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -31196,6 +31431,10 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31196
31431
|
// oauth required
|
|
31197
31432
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
31198
31433
|
|
|
31434
|
+
if (hospitalId !== undefined) {
|
|
31435
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
31436
|
+
}
|
|
31437
|
+
|
|
31199
31438
|
if (id !== undefined) {
|
|
31200
31439
|
localVarQueryParameter['Id'] = id;
|
|
31201
31440
|
}
|
|
@@ -31422,6 +31661,7 @@ export const ManagersApiFp = function(configuration?: Configuration) {
|
|
|
31422
31661
|
/**
|
|
31423
31662
|
*
|
|
31424
31663
|
* @summary Get all Managers.
|
|
31664
|
+
* @param {string} [hospitalId]
|
|
31425
31665
|
* @param {string} [id]
|
|
31426
31666
|
* @param {string} [fullname]
|
|
31427
31667
|
* @param {string} [email]
|
|
@@ -31435,8 +31675,8 @@ export const ManagersApiFp = function(configuration?: Configuration) {
|
|
|
31435
31675
|
* @param {*} [options] Override http request option.
|
|
31436
31676
|
* @throws {RequiredError}
|
|
31437
31677
|
*/
|
|
31438
|
-
async apiV1ManagersGet(id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
|
|
31439
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
|
|
31678
|
+
async apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
|
|
31679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
|
|
31440
31680
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
31441
31681
|
},
|
|
31442
31682
|
/**
|
|
@@ -31497,6 +31737,7 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
|
|
|
31497
31737
|
/**
|
|
31498
31738
|
*
|
|
31499
31739
|
* @summary Get all Managers.
|
|
31740
|
+
* @param {string} [hospitalId]
|
|
31500
31741
|
* @param {string} [id]
|
|
31501
31742
|
* @param {string} [fullname]
|
|
31502
31743
|
* @param {string} [email]
|
|
@@ -31510,8 +31751,8 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
|
|
|
31510
31751
|
* @param {*} [options] Override http request option.
|
|
31511
31752
|
* @throws {RequiredError}
|
|
31512
31753
|
*/
|
|
31513
|
-
apiV1ManagersGet(id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
|
|
31514
|
-
return localVarFp.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
31754
|
+
apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
|
|
31755
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
31515
31756
|
},
|
|
31516
31757
|
/**
|
|
31517
31758
|
*
|
|
@@ -31567,6 +31808,7 @@ export class ManagersApi extends BaseAPI {
|
|
|
31567
31808
|
/**
|
|
31568
31809
|
*
|
|
31569
31810
|
* @summary Get all Managers.
|
|
31811
|
+
* @param {string} [hospitalId]
|
|
31570
31812
|
* @param {string} [id]
|
|
31571
31813
|
* @param {string} [fullname]
|
|
31572
31814
|
* @param {string} [email]
|
|
@@ -31581,8 +31823,8 @@ export class ManagersApi extends BaseAPI {
|
|
|
31581
31823
|
* @throws {RequiredError}
|
|
31582
31824
|
* @memberof ManagersApi
|
|
31583
31825
|
*/
|
|
31584
|
-
public apiV1ManagersGet(id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
31585
|
-
return ManagersApiFp(this.configuration).apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
31826
|
+
public apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
31827
|
+
return ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
31586
31828
|
}
|
|
31587
31829
|
|
|
31588
31830
|
/**
|
|
@@ -32674,6 +32916,100 @@ export class PatientsApi extends BaseAPI {
|
|
|
32674
32916
|
}
|
|
32675
32917
|
|
|
32676
32918
|
|
|
32919
|
+
/**
|
|
32920
|
+
* PaymentsApi - axios parameter creator
|
|
32921
|
+
* @export
|
|
32922
|
+
*/
|
|
32923
|
+
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32924
|
+
return {
|
|
32925
|
+
/**
|
|
32926
|
+
*
|
|
32927
|
+
* @param {*} [options] Override http request option.
|
|
32928
|
+
* @throws {RequiredError}
|
|
32929
|
+
*/
|
|
32930
|
+
apiV1PaymentsWebhookPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32931
|
+
const localVarPath = `/api/v1/payments/webhook`;
|
|
32932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32933
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32934
|
+
let baseOptions;
|
|
32935
|
+
if (configuration) {
|
|
32936
|
+
baseOptions = configuration.baseOptions;
|
|
32937
|
+
}
|
|
32938
|
+
|
|
32939
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32940
|
+
const localVarHeaderParameter = {} as any;
|
|
32941
|
+
const localVarQueryParameter = {} as any;
|
|
32942
|
+
|
|
32943
|
+
|
|
32944
|
+
|
|
32945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32947
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32948
|
+
|
|
32949
|
+
return {
|
|
32950
|
+
url: toPathString(localVarUrlObj),
|
|
32951
|
+
options: localVarRequestOptions,
|
|
32952
|
+
};
|
|
32953
|
+
},
|
|
32954
|
+
}
|
|
32955
|
+
};
|
|
32956
|
+
|
|
32957
|
+
/**
|
|
32958
|
+
* PaymentsApi - functional programming interface
|
|
32959
|
+
* @export
|
|
32960
|
+
*/
|
|
32961
|
+
export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
32962
|
+
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
32963
|
+
return {
|
|
32964
|
+
/**
|
|
32965
|
+
*
|
|
32966
|
+
* @param {*} [options] Override http request option.
|
|
32967
|
+
* @throws {RequiredError}
|
|
32968
|
+
*/
|
|
32969
|
+
async apiV1PaymentsWebhookPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
32970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PaymentsWebhookPost(options);
|
|
32971
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32972
|
+
},
|
|
32973
|
+
}
|
|
32974
|
+
};
|
|
32975
|
+
|
|
32976
|
+
/**
|
|
32977
|
+
* PaymentsApi - factory interface
|
|
32978
|
+
* @export
|
|
32979
|
+
*/
|
|
32980
|
+
export const PaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32981
|
+
const localVarFp = PaymentsApiFp(configuration)
|
|
32982
|
+
return {
|
|
32983
|
+
/**
|
|
32984
|
+
*
|
|
32985
|
+
* @param {*} [options] Override http request option.
|
|
32986
|
+
* @throws {RequiredError}
|
|
32987
|
+
*/
|
|
32988
|
+
apiV1PaymentsWebhookPost(options?: any): AxiosPromise<void> {
|
|
32989
|
+
return localVarFp.apiV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
32990
|
+
},
|
|
32991
|
+
};
|
|
32992
|
+
};
|
|
32993
|
+
|
|
32994
|
+
/**
|
|
32995
|
+
* PaymentsApi - object-oriented interface
|
|
32996
|
+
* @export
|
|
32997
|
+
* @class PaymentsApi
|
|
32998
|
+
* @extends {BaseAPI}
|
|
32999
|
+
*/
|
|
33000
|
+
export class PaymentsApi extends BaseAPI {
|
|
33001
|
+
/**
|
|
33002
|
+
*
|
|
33003
|
+
* @param {*} [options] Override http request option.
|
|
33004
|
+
* @throws {RequiredError}
|
|
33005
|
+
* @memberof PaymentsApi
|
|
33006
|
+
*/
|
|
33007
|
+
public apiV1PaymentsWebhookPost(options?: AxiosRequestConfig) {
|
|
33008
|
+
return PaymentsApiFp(this.configuration).apiV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
33009
|
+
}
|
|
33010
|
+
}
|
|
33011
|
+
|
|
33012
|
+
|
|
32677
33013
|
/**
|
|
32678
33014
|
* PlansApi - axios parameter creator
|
|
32679
33015
|
* @export
|