ch-api-client-typescript2 4.8.4 → 4.8.5

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/src/api.ts CHANGED
@@ -3180,6 +3180,19 @@ export interface CreateConsultationCommand {
3180
3180
  */
3181
3181
  'isExternal'?: boolean;
3182
3182
  }
3183
+ /**
3184
+ *
3185
+ * @export
3186
+ * @interface CreateCorsCommand
3187
+ */
3188
+ export interface CreateCorsCommand {
3189
+ /**
3190
+ *
3191
+ * @type {string}
3192
+ * @memberof CreateCorsCommand
3193
+ */
3194
+ 'url'?: string | null;
3195
+ }
3183
3196
  /**
3184
3197
  *
3185
3198
  * @export
@@ -26245,6 +26258,305 @@ export class NotificationsApi extends BaseAPI {
26245
26258
  }
26246
26259
 
26247
26260
 
26261
+ /**
26262
+ * OriginsApi - axios parameter creator
26263
+ * @export
26264
+ */
26265
+ export const OriginsApiAxiosParamCreator = function (configuration?: Configuration) {
26266
+ return {
26267
+ /**
26268
+ *
26269
+ * @param {*} [options] Override http request option.
26270
+ * @throws {RequiredError}
26271
+ */
26272
+ apiV2OriginsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26273
+ const localVarPath = `/api/v2/origins`;
26274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26276
+ let baseOptions;
26277
+ if (configuration) {
26278
+ baseOptions = configuration.baseOptions;
26279
+ }
26280
+
26281
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26282
+ const localVarHeaderParameter = {} as any;
26283
+ const localVarQueryParameter = {} as any;
26284
+
26285
+ // authentication oauth2 required
26286
+ // oauth required
26287
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26288
+
26289
+
26290
+
26291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26293
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26294
+
26295
+ return {
26296
+ url: toPathString(localVarUrlObj),
26297
+ options: localVarRequestOptions,
26298
+ };
26299
+ },
26300
+ /**
26301
+ *
26302
+ * @param {CreateCorsCommand} [createCorsCommand]
26303
+ * @param {*} [options] Override http request option.
26304
+ * @throws {RequiredError}
26305
+ */
26306
+ apiV2OriginsPost: async (createCorsCommand?: CreateCorsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26307
+ const localVarPath = `/api/v2/origins`;
26308
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26310
+ let baseOptions;
26311
+ if (configuration) {
26312
+ baseOptions = configuration.baseOptions;
26313
+ }
26314
+
26315
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26316
+ const localVarHeaderParameter = {} as any;
26317
+ const localVarQueryParameter = {} as any;
26318
+
26319
+ // authentication oauth2 required
26320
+ // oauth required
26321
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26322
+
26323
+
26324
+
26325
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26326
+
26327
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26328
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26329
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26330
+ localVarRequestOptions.data = serializeDataIfNeeded(createCorsCommand, localVarRequestOptions, configuration)
26331
+
26332
+ return {
26333
+ url: toPathString(localVarUrlObj),
26334
+ options: localVarRequestOptions,
26335
+ };
26336
+ },
26337
+ /**
26338
+ *
26339
+ * @param {CreateCorsCommand} [createCorsCommand]
26340
+ * @param {*} [options] Override http request option.
26341
+ * @throws {RequiredError}
26342
+ */
26343
+ apiV2OriginsPut: async (createCorsCommand?: CreateCorsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26344
+ const localVarPath = `/api/v2/origins`;
26345
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26346
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26347
+ let baseOptions;
26348
+ if (configuration) {
26349
+ baseOptions = configuration.baseOptions;
26350
+ }
26351
+
26352
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
26353
+ const localVarHeaderParameter = {} as any;
26354
+ const localVarQueryParameter = {} as any;
26355
+
26356
+ // authentication oauth2 required
26357
+ // oauth required
26358
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26359
+
26360
+
26361
+
26362
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26363
+
26364
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26365
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26366
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26367
+ localVarRequestOptions.data = serializeDataIfNeeded(createCorsCommand, localVarRequestOptions, configuration)
26368
+
26369
+ return {
26370
+ url: toPathString(localVarUrlObj),
26371
+ options: localVarRequestOptions,
26372
+ };
26373
+ },
26374
+ /**
26375
+ *
26376
+ * @param {string} url
26377
+ * @param {*} [options] Override http request option.
26378
+ * @throws {RequiredError}
26379
+ */
26380
+ apiV2OriginsUrlGet: async (url: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26381
+ // verify required parameter 'url' is not null or undefined
26382
+ assertParamExists('apiV2OriginsUrlGet', 'url', url)
26383
+ const localVarPath = `/api/v2/origins/{url}`
26384
+ .replace(`{${"url"}}`, encodeURIComponent(String(url)));
26385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26387
+ let baseOptions;
26388
+ if (configuration) {
26389
+ baseOptions = configuration.baseOptions;
26390
+ }
26391
+
26392
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26393
+ const localVarHeaderParameter = {} as any;
26394
+ const localVarQueryParameter = {} as any;
26395
+
26396
+ // authentication oauth2 required
26397
+ // oauth required
26398
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26399
+
26400
+
26401
+
26402
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26404
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26405
+
26406
+ return {
26407
+ url: toPathString(localVarUrlObj),
26408
+ options: localVarRequestOptions,
26409
+ };
26410
+ },
26411
+ }
26412
+ };
26413
+
26414
+ /**
26415
+ * OriginsApi - functional programming interface
26416
+ * @export
26417
+ */
26418
+ export const OriginsApiFp = function(configuration?: Configuration) {
26419
+ const localVarAxiosParamCreator = OriginsApiAxiosParamCreator(configuration)
26420
+ return {
26421
+ /**
26422
+ *
26423
+ * @param {*} [options] Override http request option.
26424
+ * @throws {RequiredError}
26425
+ */
26426
+ async apiV2OriginsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
26427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2OriginsGet(options);
26428
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26429
+ },
26430
+ /**
26431
+ *
26432
+ * @param {CreateCorsCommand} [createCorsCommand]
26433
+ * @param {*} [options] Override http request option.
26434
+ * @throws {RequiredError}
26435
+ */
26436
+ async apiV2OriginsPost(createCorsCommand?: CreateCorsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
26437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2OriginsPost(createCorsCommand, options);
26438
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26439
+ },
26440
+ /**
26441
+ *
26442
+ * @param {CreateCorsCommand} [createCorsCommand]
26443
+ * @param {*} [options] Override http request option.
26444
+ * @throws {RequiredError}
26445
+ */
26446
+ async apiV2OriginsPut(createCorsCommand?: CreateCorsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
26447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2OriginsPut(createCorsCommand, options);
26448
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26449
+ },
26450
+ /**
26451
+ *
26452
+ * @param {string} url
26453
+ * @param {*} [options] Override http request option.
26454
+ * @throws {RequiredError}
26455
+ */
26456
+ async apiV2OriginsUrlGet(url: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
26457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2OriginsUrlGet(url, options);
26458
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26459
+ },
26460
+ }
26461
+ };
26462
+
26463
+ /**
26464
+ * OriginsApi - factory interface
26465
+ * @export
26466
+ */
26467
+ export const OriginsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26468
+ const localVarFp = OriginsApiFp(configuration)
26469
+ return {
26470
+ /**
26471
+ *
26472
+ * @param {*} [options] Override http request option.
26473
+ * @throws {RequiredError}
26474
+ */
26475
+ apiV2OriginsGet(options?: any): AxiosPromise<Array<string>> {
26476
+ return localVarFp.apiV2OriginsGet(options).then((request) => request(axios, basePath));
26477
+ },
26478
+ /**
26479
+ *
26480
+ * @param {CreateCorsCommand} [createCorsCommand]
26481
+ * @param {*} [options] Override http request option.
26482
+ * @throws {RequiredError}
26483
+ */
26484
+ apiV2OriginsPost(createCorsCommand?: CreateCorsCommand, options?: any): AxiosPromise<boolean> {
26485
+ return localVarFp.apiV2OriginsPost(createCorsCommand, options).then((request) => request(axios, basePath));
26486
+ },
26487
+ /**
26488
+ *
26489
+ * @param {CreateCorsCommand} [createCorsCommand]
26490
+ * @param {*} [options] Override http request option.
26491
+ * @throws {RequiredError}
26492
+ */
26493
+ apiV2OriginsPut(createCorsCommand?: CreateCorsCommand, options?: any): AxiosPromise<boolean> {
26494
+ return localVarFp.apiV2OriginsPut(createCorsCommand, options).then((request) => request(axios, basePath));
26495
+ },
26496
+ /**
26497
+ *
26498
+ * @param {string} url
26499
+ * @param {*} [options] Override http request option.
26500
+ * @throws {RequiredError}
26501
+ */
26502
+ apiV2OriginsUrlGet(url: string, options?: any): AxiosPromise<string> {
26503
+ return localVarFp.apiV2OriginsUrlGet(url, options).then((request) => request(axios, basePath));
26504
+ },
26505
+ };
26506
+ };
26507
+
26508
+ /**
26509
+ * OriginsApi - object-oriented interface
26510
+ * @export
26511
+ * @class OriginsApi
26512
+ * @extends {BaseAPI}
26513
+ */
26514
+ export class OriginsApi extends BaseAPI {
26515
+ /**
26516
+ *
26517
+ * @param {*} [options] Override http request option.
26518
+ * @throws {RequiredError}
26519
+ * @memberof OriginsApi
26520
+ */
26521
+ public apiV2OriginsGet(options?: AxiosRequestConfig) {
26522
+ return OriginsApiFp(this.configuration).apiV2OriginsGet(options).then((request) => request(this.axios, this.basePath));
26523
+ }
26524
+
26525
+ /**
26526
+ *
26527
+ * @param {CreateCorsCommand} [createCorsCommand]
26528
+ * @param {*} [options] Override http request option.
26529
+ * @throws {RequiredError}
26530
+ * @memberof OriginsApi
26531
+ */
26532
+ public apiV2OriginsPost(createCorsCommand?: CreateCorsCommand, options?: AxiosRequestConfig) {
26533
+ return OriginsApiFp(this.configuration).apiV2OriginsPost(createCorsCommand, options).then((request) => request(this.axios, this.basePath));
26534
+ }
26535
+
26536
+ /**
26537
+ *
26538
+ * @param {CreateCorsCommand} [createCorsCommand]
26539
+ * @param {*} [options] Override http request option.
26540
+ * @throws {RequiredError}
26541
+ * @memberof OriginsApi
26542
+ */
26543
+ public apiV2OriginsPut(createCorsCommand?: CreateCorsCommand, options?: AxiosRequestConfig) {
26544
+ return OriginsApiFp(this.configuration).apiV2OriginsPut(createCorsCommand, options).then((request) => request(this.axios, this.basePath));
26545
+ }
26546
+
26547
+ /**
26548
+ *
26549
+ * @param {string} url
26550
+ * @param {*} [options] Override http request option.
26551
+ * @throws {RequiredError}
26552
+ * @memberof OriginsApi
26553
+ */
26554
+ public apiV2OriginsUrlGet(url: string, options?: AxiosRequestConfig) {
26555
+ return OriginsApiFp(this.configuration).apiV2OriginsUrlGet(url, options).then((request) => request(this.axios, this.basePath));
26556
+ }
26557
+ }
26558
+
26559
+
26248
26560
  /**
26249
26561
  * PatientsApi - axios parameter creator
26250
26562
  * @export