ch-admin-api-client-typescript 3.5.1 → 3.5.2
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 +52 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +84 -0
- package/package.json +1 -1
- package/src/api.ts +90 -0
package/lib/api.js
CHANGED
|
@@ -31070,6 +31070,48 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
|
|
|
31070
31070
|
});
|
|
31071
31071
|
});
|
|
31072
31072
|
},
|
|
31073
|
+
/**
|
|
31074
|
+
*
|
|
31075
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31076
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31077
|
+
* @param {*} [options] Override http request option.
|
|
31078
|
+
* @throws {RequiredError}
|
|
31079
|
+
*/
|
|
31080
|
+
apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31081
|
+
if (options === void 0) { options = {}; }
|
|
31082
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
31083
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
31084
|
+
return __generator(this, function (_a) {
|
|
31085
|
+
switch (_a.label) {
|
|
31086
|
+
case 0:
|
|
31087
|
+
localVarPath = "/api/v1/search/hospitalspecialties";
|
|
31088
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
31089
|
+
if (configuration) {
|
|
31090
|
+
baseOptions = configuration.baseOptions;
|
|
31091
|
+
}
|
|
31092
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
31093
|
+
localVarHeaderParameter = {};
|
|
31094
|
+
localVarQueryParameter = {};
|
|
31095
|
+
// authentication oauth2 required
|
|
31096
|
+
// oauth required
|
|
31097
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
31098
|
+
case 1:
|
|
31099
|
+
// authentication oauth2 required
|
|
31100
|
+
// oauth required
|
|
31101
|
+
_a.sent();
|
|
31102
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
31103
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31104
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31105
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31106
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
|
|
31107
|
+
return [2 /*return*/, {
|
|
31108
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
31109
|
+
options: localVarRequestOptions,
|
|
31110
|
+
}];
|
|
31111
|
+
}
|
|
31112
|
+
});
|
|
31113
|
+
});
|
|
31114
|
+
},
|
|
31073
31115
|
/**
|
|
31074
31116
|
*
|
|
31075
31117
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -31223,6 +31265,26 @@ exports.SearchApiFp = function (configuration) {
|
|
|
31223
31265
|
});
|
|
31224
31266
|
});
|
|
31225
31267
|
},
|
|
31268
|
+
/**
|
|
31269
|
+
*
|
|
31270
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31271
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31272
|
+
* @param {*} [options] Override http request option.
|
|
31273
|
+
* @throws {RequiredError}
|
|
31274
|
+
*/
|
|
31275
|
+
apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31276
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
31277
|
+
var localVarAxiosArgs;
|
|
31278
|
+
return __generator(this, function (_a) {
|
|
31279
|
+
switch (_a.label) {
|
|
31280
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options)];
|
|
31281
|
+
case 1:
|
|
31282
|
+
localVarAxiosArgs = _a.sent();
|
|
31283
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
31284
|
+
}
|
|
31285
|
+
});
|
|
31286
|
+
});
|
|
31287
|
+
},
|
|
31226
31288
|
/**
|
|
31227
31289
|
*
|
|
31228
31290
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -31302,6 +31364,16 @@ exports.SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
31302
31364
|
apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
|
|
31303
31365
|
return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
|
|
31304
31366
|
},
|
|
31367
|
+
/**
|
|
31368
|
+
*
|
|
31369
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31370
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31371
|
+
* @param {*} [options] Override http request option.
|
|
31372
|
+
* @throws {RequiredError}
|
|
31373
|
+
*/
|
|
31374
|
+
apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31375
|
+
return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
|
|
31376
|
+
},
|
|
31305
31377
|
/**
|
|
31306
31378
|
*
|
|
31307
31379
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -31371,6 +31443,18 @@ var SearchApi = /** @class */ (function (_super) {
|
|
|
31371
31443
|
var _this = this;
|
|
31372
31444
|
return exports.SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31373
31445
|
};
|
|
31446
|
+
/**
|
|
31447
|
+
*
|
|
31448
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
31449
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
31450
|
+
* @param {*} [options] Override http request option.
|
|
31451
|
+
* @throws {RequiredError}
|
|
31452
|
+
* @memberof SearchApi
|
|
31453
|
+
*/
|
|
31454
|
+
SearchApi.prototype.apiV1SearchHospitalspecialtiesPost = function (updateHospitalSpecialtiesSearchIndexCommand, options) {
|
|
31455
|
+
var _this = this;
|
|
31456
|
+
return exports.SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31457
|
+
};
|
|
31374
31458
|
/**
|
|
31375
31459
|
*
|
|
31376
31460
|
* @summary Update or Re-create specialties Azure Search Services Index
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -12733,6 +12733,25 @@ export interface UpdateHospitalSnsHandleCommand {
|
|
|
12733
12733
|
*/
|
|
12734
12734
|
'handle'?: string | null;
|
|
12735
12735
|
}
|
|
12736
|
+
/**
|
|
12737
|
+
*
|
|
12738
|
+
* @export
|
|
12739
|
+
* @interface UpdateHospitalSpecialtiesSearchIndexCommand
|
|
12740
|
+
*/
|
|
12741
|
+
export interface UpdateHospitalSpecialtiesSearchIndexCommand {
|
|
12742
|
+
/**
|
|
12743
|
+
*
|
|
12744
|
+
* @type {number}
|
|
12745
|
+
* @memberof UpdateHospitalSpecialtiesSearchIndexCommand
|
|
12746
|
+
*/
|
|
12747
|
+
'batchSize'?: number | null;
|
|
12748
|
+
/**
|
|
12749
|
+
*
|
|
12750
|
+
* @type {boolean}
|
|
12751
|
+
* @memberof UpdateHospitalSpecialtiesSearchIndexCommand
|
|
12752
|
+
*/
|
|
12753
|
+
'reCreate'?: boolean | null;
|
|
12754
|
+
}
|
|
12736
12755
|
/**
|
|
12737
12756
|
*
|
|
12738
12757
|
* @export
|
|
@@ -41057,6 +41076,44 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
41057
41076
|
options: localVarRequestOptions,
|
|
41058
41077
|
};
|
|
41059
41078
|
},
|
|
41079
|
+
/**
|
|
41080
|
+
*
|
|
41081
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
41082
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
41083
|
+
* @param {*} [options] Override http request option.
|
|
41084
|
+
* @throws {RequiredError}
|
|
41085
|
+
*/
|
|
41086
|
+
apiV1SearchHospitalspecialtiesPost: async (updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41087
|
+
const localVarPath = `/api/v1/search/hospitalspecialties`;
|
|
41088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41089
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41090
|
+
let baseOptions;
|
|
41091
|
+
if (configuration) {
|
|
41092
|
+
baseOptions = configuration.baseOptions;
|
|
41093
|
+
}
|
|
41094
|
+
|
|
41095
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41096
|
+
const localVarHeaderParameter = {} as any;
|
|
41097
|
+
const localVarQueryParameter = {} as any;
|
|
41098
|
+
|
|
41099
|
+
// authentication oauth2 required
|
|
41100
|
+
// oauth required
|
|
41101
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41102
|
+
|
|
41103
|
+
|
|
41104
|
+
|
|
41105
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41106
|
+
|
|
41107
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41109
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41110
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration)
|
|
41111
|
+
|
|
41112
|
+
return {
|
|
41113
|
+
url: toPathString(localVarUrlObj),
|
|
41114
|
+
options: localVarRequestOptions,
|
|
41115
|
+
};
|
|
41116
|
+
},
|
|
41060
41117
|
/**
|
|
41061
41118
|
*
|
|
41062
41119
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -41176,6 +41233,17 @@ export const SearchApiFp = function(configuration?: Configuration) {
|
|
|
41176
41233
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options);
|
|
41177
41234
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41178
41235
|
},
|
|
41236
|
+
/**
|
|
41237
|
+
*
|
|
41238
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
41239
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
41240
|
+
* @param {*} [options] Override http request option.
|
|
41241
|
+
* @throws {RequiredError}
|
|
41242
|
+
*/
|
|
41243
|
+
async apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
41244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options);
|
|
41245
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41246
|
+
},
|
|
41179
41247
|
/**
|
|
41180
41248
|
*
|
|
41181
41249
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -41238,6 +41306,16 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
|
|
|
41238
41306
|
apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand?: UpdateHospitalsSearchIndexCommand, options?: any): AxiosPromise<string> {
|
|
41239
41307
|
return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then((request) => request(axios, basePath));
|
|
41240
41308
|
},
|
|
41309
|
+
/**
|
|
41310
|
+
*
|
|
41311
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
41312
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
41313
|
+
* @param {*} [options] Override http request option.
|
|
41314
|
+
* @throws {RequiredError}
|
|
41315
|
+
*/
|
|
41316
|
+
apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options?: any): AxiosPromise<string> {
|
|
41317
|
+
return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then((request) => request(axios, basePath));
|
|
41318
|
+
},
|
|
41241
41319
|
/**
|
|
41242
41320
|
*
|
|
41243
41321
|
* @summary Update or Re-create specialties Azure Search Services Index
|
|
@@ -41304,6 +41382,18 @@ export class SearchApi extends BaseAPI {
|
|
|
41304
41382
|
return SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41305
41383
|
}
|
|
41306
41384
|
|
|
41385
|
+
/**
|
|
41386
|
+
*
|
|
41387
|
+
* @summary Update or Re-create hospitalSpecialties Azure Search Services Index
|
|
41388
|
+
* @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
|
|
41389
|
+
* @param {*} [options] Override http request option.
|
|
41390
|
+
* @throws {RequiredError}
|
|
41391
|
+
* @memberof SearchApi
|
|
41392
|
+
*/
|
|
41393
|
+
public apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options?: AxiosRequestConfig) {
|
|
41394
|
+
return SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41395
|
+
}
|
|
41396
|
+
|
|
41307
41397
|
/**
|
|
41308
41398
|
*
|
|
41309
41399
|
* @summary Update or Re-create specialties Azure Search Services Index
|