ch-admin-api-client-typescript 2.4.5 → 2.5.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 +178 -42
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +177 -0
- package/package.json +1 -1
- package/src/api.ts +256 -40
package/lib/api.js
CHANGED
|
@@ -8007,6 +8007,49 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
|
|
|
8007
8007
|
});
|
|
8008
8008
|
});
|
|
8009
8009
|
},
|
|
8010
|
+
/**
|
|
8011
|
+
*
|
|
8012
|
+
* @summary Reactivate country.
|
|
8013
|
+
* @param {string} countryId
|
|
8014
|
+
* @param {*} [options] Override http request option.
|
|
8015
|
+
* @throws {RequiredError}
|
|
8016
|
+
*/
|
|
8017
|
+
apiV1CountriesCountryIdRevokePut: function (countryId, options) {
|
|
8018
|
+
if (options === void 0) { options = {}; }
|
|
8019
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8020
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8021
|
+
return __generator(this, function (_a) {
|
|
8022
|
+
switch (_a.label) {
|
|
8023
|
+
case 0:
|
|
8024
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
8025
|
+
common_1.assertParamExists('apiV1CountriesCountryIdRevokePut', 'countryId', countryId);
|
|
8026
|
+
localVarPath = "/api/v1/countries/{countryId}/revoke"
|
|
8027
|
+
.replace("{" + "countryId" + "}", encodeURIComponent(String(countryId)));
|
|
8028
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8029
|
+
if (configuration) {
|
|
8030
|
+
baseOptions = configuration.baseOptions;
|
|
8031
|
+
}
|
|
8032
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
8033
|
+
localVarHeaderParameter = {};
|
|
8034
|
+
localVarQueryParameter = {};
|
|
8035
|
+
// authentication oauth2 required
|
|
8036
|
+
// oauth required
|
|
8037
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
8038
|
+
case 1:
|
|
8039
|
+
// authentication oauth2 required
|
|
8040
|
+
// oauth required
|
|
8041
|
+
_a.sent();
|
|
8042
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8043
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8044
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8045
|
+
return [2 /*return*/, {
|
|
8046
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
8047
|
+
options: localVarRequestOptions,
|
|
8048
|
+
}];
|
|
8049
|
+
}
|
|
8050
|
+
});
|
|
8051
|
+
});
|
|
8052
|
+
},
|
|
8010
8053
|
/**
|
|
8011
8054
|
*
|
|
8012
8055
|
* @summary Get all countries.
|
|
@@ -8356,6 +8399,26 @@ exports.CountriesApiFp = function (configuration) {
|
|
|
8356
8399
|
});
|
|
8357
8400
|
});
|
|
8358
8401
|
},
|
|
8402
|
+
/**
|
|
8403
|
+
*
|
|
8404
|
+
* @summary Reactivate country.
|
|
8405
|
+
* @param {string} countryId
|
|
8406
|
+
* @param {*} [options] Override http request option.
|
|
8407
|
+
* @throws {RequiredError}
|
|
8408
|
+
*/
|
|
8409
|
+
apiV1CountriesCountryIdRevokePut: function (countryId, options) {
|
|
8410
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8411
|
+
var localVarAxiosArgs;
|
|
8412
|
+
return __generator(this, function (_a) {
|
|
8413
|
+
switch (_a.label) {
|
|
8414
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdRevokePut(countryId, options)];
|
|
8415
|
+
case 1:
|
|
8416
|
+
localVarAxiosArgs = _a.sent();
|
|
8417
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
8418
|
+
}
|
|
8419
|
+
});
|
|
8420
|
+
});
|
|
8421
|
+
},
|
|
8359
8422
|
/**
|
|
8360
8423
|
*
|
|
8361
8424
|
* @summary Get all countries.
|
|
@@ -8526,6 +8589,16 @@ exports.CountriesApiFactory = function (configuration, basePath, axios) {
|
|
|
8526
8589
|
apiV1CountriesCountryIdPut: function (countryId, updateCountryCommand, options) {
|
|
8527
8590
|
return localVarFp.apiV1CountriesCountryIdPut(countryId, updateCountryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
8528
8591
|
},
|
|
8592
|
+
/**
|
|
8593
|
+
*
|
|
8594
|
+
* @summary Reactivate country.
|
|
8595
|
+
* @param {string} countryId
|
|
8596
|
+
* @param {*} [options] Override http request option.
|
|
8597
|
+
* @throws {RequiredError}
|
|
8598
|
+
*/
|
|
8599
|
+
apiV1CountriesCountryIdRevokePut: function (countryId, options) {
|
|
8600
|
+
return localVarFp.apiV1CountriesCountryIdRevokePut(countryId, options).then(function (request) { return request(axios, basePath); });
|
|
8601
|
+
},
|
|
8529
8602
|
/**
|
|
8530
8603
|
*
|
|
8531
8604
|
* @summary Get all countries.
|
|
@@ -8686,6 +8759,18 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
8686
8759
|
var _this = this;
|
|
8687
8760
|
return exports.CountriesApiFp(this.configuration).apiV1CountriesCountryIdPut(countryId, updateCountryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8688
8761
|
};
|
|
8762
|
+
/**
|
|
8763
|
+
*
|
|
8764
|
+
* @summary Reactivate country.
|
|
8765
|
+
* @param {string} countryId
|
|
8766
|
+
* @param {*} [options] Override http request option.
|
|
8767
|
+
* @throws {RequiredError}
|
|
8768
|
+
* @memberof CountriesApi
|
|
8769
|
+
*/
|
|
8770
|
+
CountriesApi.prototype.apiV1CountriesCountryIdRevokePut = function (countryId, options) {
|
|
8771
|
+
var _this = this;
|
|
8772
|
+
return exports.CountriesApiFp(this.configuration).apiV1CountriesCountryIdRevokePut(countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8773
|
+
};
|
|
8689
8774
|
/**
|
|
8690
8775
|
*
|
|
8691
8776
|
* @summary Get all countries.
|
|
@@ -12174,6 +12259,53 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
12174
12259
|
});
|
|
12175
12260
|
});
|
|
12176
12261
|
},
|
|
12262
|
+
/**
|
|
12263
|
+
*
|
|
12264
|
+
* @summary Get Doctor by slug.
|
|
12265
|
+
* @param {string} slug
|
|
12266
|
+
* @param {string} [languageCode]
|
|
12267
|
+
* @param {*} [options] Override http request option.
|
|
12268
|
+
* @throws {RequiredError}
|
|
12269
|
+
*/
|
|
12270
|
+
apiV1DoctorsSlugGet: function (slug, languageCode, options) {
|
|
12271
|
+
if (options === void 0) { options = {}; }
|
|
12272
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
12273
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12274
|
+
return __generator(this, function (_a) {
|
|
12275
|
+
switch (_a.label) {
|
|
12276
|
+
case 0:
|
|
12277
|
+
// verify required parameter 'slug' is not null or undefined
|
|
12278
|
+
common_1.assertParamExists('apiV1DoctorsSlugGet', 'slug', slug);
|
|
12279
|
+
localVarPath = "/api/v1/doctors/{slug}"
|
|
12280
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
12281
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12282
|
+
if (configuration) {
|
|
12283
|
+
baseOptions = configuration.baseOptions;
|
|
12284
|
+
}
|
|
12285
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
12286
|
+
localVarHeaderParameter = {};
|
|
12287
|
+
localVarQueryParameter = {};
|
|
12288
|
+
// authentication oauth2 required
|
|
12289
|
+
// oauth required
|
|
12290
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
12291
|
+
case 1:
|
|
12292
|
+
// authentication oauth2 required
|
|
12293
|
+
// oauth required
|
|
12294
|
+
_a.sent();
|
|
12295
|
+
if (languageCode !== undefined) {
|
|
12296
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
12297
|
+
}
|
|
12298
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12299
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12300
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12301
|
+
return [2 /*return*/, {
|
|
12302
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
12303
|
+
options: localVarRequestOptions,
|
|
12304
|
+
}];
|
|
12305
|
+
}
|
|
12306
|
+
});
|
|
12307
|
+
});
|
|
12308
|
+
},
|
|
12177
12309
|
};
|
|
12178
12310
|
};
|
|
12179
12311
|
/**
|
|
@@ -12939,6 +13071,27 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12939
13071
|
});
|
|
12940
13072
|
});
|
|
12941
13073
|
},
|
|
13074
|
+
/**
|
|
13075
|
+
*
|
|
13076
|
+
* @summary Get Doctor by slug.
|
|
13077
|
+
* @param {string} slug
|
|
13078
|
+
* @param {string} [languageCode]
|
|
13079
|
+
* @param {*} [options] Override http request option.
|
|
13080
|
+
* @throws {RequiredError}
|
|
13081
|
+
*/
|
|
13082
|
+
apiV1DoctorsSlugGet: function (slug, languageCode, options) {
|
|
13083
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13084
|
+
var localVarAxiosArgs;
|
|
13085
|
+
return __generator(this, function (_a) {
|
|
13086
|
+
switch (_a.label) {
|
|
13087
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsSlugGet(slug, languageCode, options)];
|
|
13088
|
+
case 1:
|
|
13089
|
+
localVarAxiosArgs = _a.sent();
|
|
13090
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
13091
|
+
}
|
|
13092
|
+
});
|
|
13093
|
+
});
|
|
13094
|
+
},
|
|
12942
13095
|
};
|
|
12943
13096
|
};
|
|
12944
13097
|
/**
|
|
@@ -13364,6 +13517,17 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13364
13517
|
apiV1DoctorsPost: function (createDoctorCommand, options) {
|
|
13365
13518
|
return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(axios, basePath); });
|
|
13366
13519
|
},
|
|
13520
|
+
/**
|
|
13521
|
+
*
|
|
13522
|
+
* @summary Get Doctor by slug.
|
|
13523
|
+
* @param {string} slug
|
|
13524
|
+
* @param {string} [languageCode]
|
|
13525
|
+
* @param {*} [options] Override http request option.
|
|
13526
|
+
* @throws {RequiredError}
|
|
13527
|
+
*/
|
|
13528
|
+
apiV1DoctorsSlugGet: function (slug, languageCode, options) {
|
|
13529
|
+
return localVarFp.apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
13530
|
+
},
|
|
13367
13531
|
};
|
|
13368
13532
|
};
|
|
13369
13533
|
/**
|
|
@@ -13861,6 +14025,19 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13861
14025
|
var _this = this;
|
|
13862
14026
|
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13863
14027
|
};
|
|
14028
|
+
/**
|
|
14029
|
+
*
|
|
14030
|
+
* @summary Get Doctor by slug.
|
|
14031
|
+
* @param {string} slug
|
|
14032
|
+
* @param {string} [languageCode]
|
|
14033
|
+
* @param {*} [options] Override http request option.
|
|
14034
|
+
* @throws {RequiredError}
|
|
14035
|
+
* @memberof DoctorsApi
|
|
14036
|
+
*/
|
|
14037
|
+
DoctorsApi.prototype.apiV1DoctorsSlugGet = function (slug, languageCode, options) {
|
|
14038
|
+
var _this = this;
|
|
14039
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14040
|
+
};
|
|
13864
14041
|
return DoctorsApi;
|
|
13865
14042
|
}(base_1.BaseAPI));
|
|
13866
14043
|
exports.DoctorsApi = DoctorsApi;
|