ch-admin-api-client-typescript 2.3.9 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +8 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +14 -7
- package/package.json +1 -1
- package/src/api.ts +15 -7
package/lib/api.js
CHANGED
|
@@ -19126,6 +19126,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19126
19126
|
/**
|
|
19127
19127
|
*
|
|
19128
19128
|
* @summary Get all Managers.
|
|
19129
|
+
* @param {string} [hospitalId]
|
|
19129
19130
|
* @param {string} [id]
|
|
19130
19131
|
* @param {string} [fullname]
|
|
19131
19132
|
* @param {string} [email]
|
|
@@ -19139,7 +19140,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19139
19140
|
* @param {*} [options] Override http request option.
|
|
19140
19141
|
* @throws {RequiredError}
|
|
19141
19142
|
*/
|
|
19142
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19143
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19143
19144
|
if (options === void 0) { options = {}; }
|
|
19144
19145
|
return __awaiter(_this, void 0, void 0, function () {
|
|
19145
19146
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -19161,6 +19162,9 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19161
19162
|
// authentication oauth2 required
|
|
19162
19163
|
// oauth required
|
|
19163
19164
|
_a.sent();
|
|
19165
|
+
if (hospitalId !== undefined) {
|
|
19166
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
19167
|
+
}
|
|
19164
19168
|
if (id !== undefined) {
|
|
19165
19169
|
localVarQueryParameter['Id'] = id;
|
|
19166
19170
|
}
|
|
@@ -19394,6 +19398,7 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19394
19398
|
/**
|
|
19395
19399
|
*
|
|
19396
19400
|
* @summary Get all Managers.
|
|
19401
|
+
* @param {string} [hospitalId]
|
|
19397
19402
|
* @param {string} [id]
|
|
19398
19403
|
* @param {string} [fullname]
|
|
19399
19404
|
* @param {string} [email]
|
|
@@ -19407,12 +19412,12 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19407
19412
|
* @param {*} [options] Override http request option.
|
|
19408
19413
|
* @throws {RequiredError}
|
|
19409
19414
|
*/
|
|
19410
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19415
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19411
19416
|
return __awaiter(this, void 0, void 0, function () {
|
|
19412
19417
|
var localVarAxiosArgs;
|
|
19413
19418
|
return __generator(this, function (_a) {
|
|
19414
19419
|
switch (_a.label) {
|
|
19415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19420
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19416
19421
|
case 1:
|
|
19417
19422
|
localVarAxiosArgs = _a.sent();
|
|
19418
19423
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -19513,6 +19518,7 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19513
19518
|
/**
|
|
19514
19519
|
*
|
|
19515
19520
|
* @summary Get all Managers.
|
|
19521
|
+
* @param {string} [hospitalId]
|
|
19516
19522
|
* @param {string} [id]
|
|
19517
19523
|
* @param {string} [fullname]
|
|
19518
19524
|
* @param {string} [email]
|
|
@@ -19526,8 +19532,8 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19526
19532
|
* @param {*} [options] Override http request option.
|
|
19527
19533
|
* @throws {RequiredError}
|
|
19528
19534
|
*/
|
|
19529
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19530
|
-
return localVarFp.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19535
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19536
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19531
19537
|
},
|
|
19532
19538
|
/**
|
|
19533
19539
|
*
|
|
@@ -19586,6 +19592,7 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19586
19592
|
/**
|
|
19587
19593
|
*
|
|
19588
19594
|
* @summary Get all Managers.
|
|
19595
|
+
* @param {string} [hospitalId]
|
|
19589
19596
|
* @param {string} [id]
|
|
19590
19597
|
* @param {string} [fullname]
|
|
19591
19598
|
* @param {string} [email]
|
|
@@ -19600,9 +19607,9 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19600
19607
|
* @throws {RequiredError}
|
|
19601
19608
|
* @memberof ManagersApi
|
|
19602
19609
|
*/
|
|
19603
|
-
ManagersApi.prototype.apiV1ManagersGet = function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19610
|
+
ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19604
19611
|
var _this = this;
|
|
19605
|
-
return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19612
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19606
19613
|
};
|
|
19607
19614
|
/**
|
|
19608
19615
|
*
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -31166,6 +31166,7 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31166
31166
|
/**
|
|
31167
31167
|
*
|
|
31168
31168
|
* @summary Get all Managers.
|
|
31169
|
+
* @param {string} [hospitalId]
|
|
31169
31170
|
* @param {string} [id]
|
|
31170
31171
|
* @param {string} [fullname]
|
|
31171
31172
|
* @param {string} [email]
|
|
@@ -31179,7 +31180,7 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31179
31180
|
* @param {*} [options] Override http request option.
|
|
31180
31181
|
* @throws {RequiredError}
|
|
31181
31182
|
*/
|
|
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> => {
|
|
31183
|
+
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
31184
|
const localVarPath = `/api/v1/managers`;
|
|
31184
31185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31185
31186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -31196,6 +31197,10 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31196
31197
|
// oauth required
|
|
31197
31198
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
31198
31199
|
|
|
31200
|
+
if (hospitalId !== undefined) {
|
|
31201
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
31202
|
+
}
|
|
31203
|
+
|
|
31199
31204
|
if (id !== undefined) {
|
|
31200
31205
|
localVarQueryParameter['Id'] = id;
|
|
31201
31206
|
}
|
|
@@ -31422,6 +31427,7 @@ export const ManagersApiFp = function(configuration?: Configuration) {
|
|
|
31422
31427
|
/**
|
|
31423
31428
|
*
|
|
31424
31429
|
* @summary Get all Managers.
|
|
31430
|
+
* @param {string} [hospitalId]
|
|
31425
31431
|
* @param {string} [id]
|
|
31426
31432
|
* @param {string} [fullname]
|
|
31427
31433
|
* @param {string} [email]
|
|
@@ -31435,8 +31441,8 @@ export const ManagersApiFp = function(configuration?: Configuration) {
|
|
|
31435
31441
|
* @param {*} [options] Override http request option.
|
|
31436
31442
|
* @throws {RequiredError}
|
|
31437
31443
|
*/
|
|
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);
|
|
31444
|
+
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>> {
|
|
31445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
|
|
31440
31446
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
31441
31447
|
},
|
|
31442
31448
|
/**
|
|
@@ -31497,6 +31503,7 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
|
|
|
31497
31503
|
/**
|
|
31498
31504
|
*
|
|
31499
31505
|
* @summary Get all Managers.
|
|
31506
|
+
* @param {string} [hospitalId]
|
|
31500
31507
|
* @param {string} [id]
|
|
31501
31508
|
* @param {string} [fullname]
|
|
31502
31509
|
* @param {string} [email]
|
|
@@ -31510,8 +31517,8 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
|
|
|
31510
31517
|
* @param {*} [options] Override http request option.
|
|
31511
31518
|
* @throws {RequiredError}
|
|
31512
31519
|
*/
|
|
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));
|
|
31520
|
+
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> {
|
|
31521
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
31515
31522
|
},
|
|
31516
31523
|
/**
|
|
31517
31524
|
*
|
|
@@ -31567,6 +31574,7 @@ export class ManagersApi extends BaseAPI {
|
|
|
31567
31574
|
/**
|
|
31568
31575
|
*
|
|
31569
31576
|
* @summary Get all Managers.
|
|
31577
|
+
* @param {string} [hospitalId]
|
|
31570
31578
|
* @param {string} [id]
|
|
31571
31579
|
* @param {string} [fullname]
|
|
31572
31580
|
* @param {string} [email]
|
|
@@ -31581,8 +31589,8 @@ export class ManagersApi extends BaseAPI {
|
|
|
31581
31589
|
* @throws {RequiredError}
|
|
31582
31590
|
* @memberof ManagersApi
|
|
31583
31591
|
*/
|
|
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));
|
|
31592
|
+
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) {
|
|
31593
|
+
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
31594
|
}
|
|
31587
31595
|
|
|
31588
31596
|
/**
|