ch-api-client-typescript2 4.8.3 → 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/lib/api.d.ts +282 -71
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +361 -2
- package/package.json +1 -1
- package/src/api.ts +443 -71
package/src/api.ts
CHANGED
|
@@ -2767,6 +2767,24 @@ export interface CountryItemModel {
|
|
|
2767
2767
|
* @memberof CountryItemModel
|
|
2768
2768
|
*/
|
|
2769
2769
|
'languageCode'?: string | null;
|
|
2770
|
+
/**
|
|
2771
|
+
*
|
|
2772
|
+
* @type {number}
|
|
2773
|
+
* @memberof CountryItemModel
|
|
2774
|
+
*/
|
|
2775
|
+
'hospitalsCount'?: number;
|
|
2776
|
+
/**
|
|
2777
|
+
*
|
|
2778
|
+
* @type {number}
|
|
2779
|
+
* @memberof CountryItemModel
|
|
2780
|
+
*/
|
|
2781
|
+
'doctorsCount'?: number;
|
|
2782
|
+
/**
|
|
2783
|
+
*
|
|
2784
|
+
* @type {number}
|
|
2785
|
+
* @memberof CountryItemModel
|
|
2786
|
+
*/
|
|
2787
|
+
'dealsCount'?: number;
|
|
2770
2788
|
/**
|
|
2771
2789
|
*
|
|
2772
2790
|
* @type {string}
|
|
@@ -2779,6 +2797,12 @@ export interface CountryItemModel {
|
|
|
2779
2797
|
* @memberof CountryItemModel
|
|
2780
2798
|
*/
|
|
2781
2799
|
'slug'?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
*
|
|
2802
|
+
* @type {string}
|
|
2803
|
+
* @memberof CountryItemModel
|
|
2804
|
+
*/
|
|
2805
|
+
'description'?: string | null;
|
|
2782
2806
|
/**
|
|
2783
2807
|
*
|
|
2784
2808
|
* @type {boolean}
|
|
@@ -2822,6 +2846,24 @@ export interface CountryModel {
|
|
|
2822
2846
|
* @memberof CountryModel
|
|
2823
2847
|
*/
|
|
2824
2848
|
'languageCode'?: string | null;
|
|
2849
|
+
/**
|
|
2850
|
+
*
|
|
2851
|
+
* @type {number}
|
|
2852
|
+
* @memberof CountryModel
|
|
2853
|
+
*/
|
|
2854
|
+
'hospitalsCount'?: number;
|
|
2855
|
+
/**
|
|
2856
|
+
*
|
|
2857
|
+
* @type {number}
|
|
2858
|
+
* @memberof CountryModel
|
|
2859
|
+
*/
|
|
2860
|
+
'doctorsCount'?: number;
|
|
2861
|
+
/**
|
|
2862
|
+
*
|
|
2863
|
+
* @type {number}
|
|
2864
|
+
* @memberof CountryModel
|
|
2865
|
+
*/
|
|
2866
|
+
'dealsCount'?: number;
|
|
2825
2867
|
/**
|
|
2826
2868
|
*
|
|
2827
2869
|
* @type {string}
|
|
@@ -2834,6 +2876,12 @@ export interface CountryModel {
|
|
|
2834
2876
|
* @memberof CountryModel
|
|
2835
2877
|
*/
|
|
2836
2878
|
'slug'?: string | null;
|
|
2879
|
+
/**
|
|
2880
|
+
*
|
|
2881
|
+
* @type {string}
|
|
2882
|
+
* @memberof CountryModel
|
|
2883
|
+
*/
|
|
2884
|
+
'description'?: string | null;
|
|
2837
2885
|
/**
|
|
2838
2886
|
*
|
|
2839
2887
|
* @type {boolean}
|
|
@@ -2858,12 +2906,6 @@ export interface CountryModel {
|
|
|
2858
2906
|
* @memberof CountryModel
|
|
2859
2907
|
*/
|
|
2860
2908
|
'auditableEntity'?: AuditableEntity;
|
|
2861
|
-
/**
|
|
2862
|
-
*
|
|
2863
|
-
* @type {string}
|
|
2864
|
-
* @memberof CountryModel
|
|
2865
|
-
*/
|
|
2866
|
-
'description'?: string | null;
|
|
2867
2909
|
/**
|
|
2868
2910
|
*
|
|
2869
2911
|
* @type {string}
|
|
@@ -3138,6 +3180,19 @@ export interface CreateConsultationCommand {
|
|
|
3138
3180
|
*/
|
|
3139
3181
|
'isExternal'?: boolean;
|
|
3140
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
|
+
}
|
|
3141
3196
|
/**
|
|
3142
3197
|
*
|
|
3143
3198
|
* @export
|
|
@@ -6711,6 +6766,12 @@ export interface HospitalServiceItemModel {
|
|
|
6711
6766
|
* @memberof HospitalServiceItemModel
|
|
6712
6767
|
*/
|
|
6713
6768
|
'slug'?: string | null;
|
|
6769
|
+
/**
|
|
6770
|
+
*
|
|
6771
|
+
* @type {string}
|
|
6772
|
+
* @memberof HospitalServiceItemModel
|
|
6773
|
+
*/
|
|
6774
|
+
'description'?: string | null;
|
|
6714
6775
|
/**
|
|
6715
6776
|
*
|
|
6716
6777
|
* @type {boolean}
|
|
@@ -6814,6 +6875,12 @@ export interface HospitalServiceModel {
|
|
|
6814
6875
|
* @memberof HospitalServiceModel
|
|
6815
6876
|
*/
|
|
6816
6877
|
'slug'?: string | null;
|
|
6878
|
+
/**
|
|
6879
|
+
*
|
|
6880
|
+
* @type {string}
|
|
6881
|
+
* @memberof HospitalServiceModel
|
|
6882
|
+
*/
|
|
6883
|
+
'description'?: string | null;
|
|
6817
6884
|
/**
|
|
6818
6885
|
*
|
|
6819
6886
|
* @type {boolean}
|
|
@@ -6886,12 +6953,6 @@ export interface HospitalServiceModel {
|
|
|
6886
6953
|
* @memberof HospitalServiceModel
|
|
6887
6954
|
*/
|
|
6888
6955
|
'auditableEntity'?: AuditableEntity;
|
|
6889
|
-
/**
|
|
6890
|
-
*
|
|
6891
|
-
* @type {string}
|
|
6892
|
-
* @memberof HospitalServiceModel
|
|
6893
|
-
*/
|
|
6894
|
-
'description'?: string | null;
|
|
6895
6956
|
/**
|
|
6896
6957
|
*
|
|
6897
6958
|
* @type {string}
|
|
@@ -9582,6 +9643,12 @@ export interface SpecialtyItemModel {
|
|
|
9582
9643
|
* @memberof SpecialtyItemModel
|
|
9583
9644
|
*/
|
|
9584
9645
|
'slug'?: string | null;
|
|
9646
|
+
/**
|
|
9647
|
+
*
|
|
9648
|
+
* @type {string}
|
|
9649
|
+
* @memberof SpecialtyItemModel
|
|
9650
|
+
*/
|
|
9651
|
+
'description'?: string | null;
|
|
9585
9652
|
/**
|
|
9586
9653
|
*
|
|
9587
9654
|
* @type {boolean}
|
|
@@ -9716,6 +9783,12 @@ export interface SpecialtyModel {
|
|
|
9716
9783
|
* @memberof SpecialtyModel
|
|
9717
9784
|
*/
|
|
9718
9785
|
'slug'?: string | null;
|
|
9786
|
+
/**
|
|
9787
|
+
*
|
|
9788
|
+
* @type {string}
|
|
9789
|
+
* @memberof SpecialtyModel
|
|
9790
|
+
*/
|
|
9791
|
+
'description'?: string | null;
|
|
9719
9792
|
/**
|
|
9720
9793
|
*
|
|
9721
9794
|
* @type {boolean}
|
|
@@ -9776,12 +9849,6 @@ export interface SpecialtyModel {
|
|
|
9776
9849
|
* @memberof SpecialtyModel
|
|
9777
9850
|
*/
|
|
9778
9851
|
'auditableEntity'?: AuditableEntity;
|
|
9779
|
-
/**
|
|
9780
|
-
*
|
|
9781
|
-
* @type {string}
|
|
9782
|
-
* @memberof SpecialtyModel
|
|
9783
|
-
*/
|
|
9784
|
-
'description'?: string | null;
|
|
9785
9852
|
/**
|
|
9786
9853
|
*
|
|
9787
9854
|
* @type {string}
|
|
@@ -9827,10 +9894,10 @@ export interface SpecialtyTypeItemModel {
|
|
|
9827
9894
|
'languageCode'?: string | null;
|
|
9828
9895
|
/**
|
|
9829
9896
|
*
|
|
9830
|
-
* @type {Array<
|
|
9897
|
+
* @type {Array<TranslationSimpleWithDescriptionModel>}
|
|
9831
9898
|
* @memberof SpecialtyTypeItemModel
|
|
9832
9899
|
*/
|
|
9833
|
-
'simpleTranslations'?: Array<
|
|
9900
|
+
'simpleTranslations'?: Array<TranslationSimpleWithDescriptionModel> | null;
|
|
9834
9901
|
/**
|
|
9835
9902
|
*
|
|
9836
9903
|
* @type {string}
|
|
@@ -9924,10 +9991,10 @@ export interface SpecialtyTypeModel {
|
|
|
9924
9991
|
'languageCode'?: string | null;
|
|
9925
9992
|
/**
|
|
9926
9993
|
*
|
|
9927
|
-
* @type {Array<
|
|
9994
|
+
* @type {Array<TranslationSimpleWithDescriptionModel>}
|
|
9928
9995
|
* @memberof SpecialtyTypeModel
|
|
9929
9996
|
*/
|
|
9930
|
-
'simpleTranslations'?: Array<
|
|
9997
|
+
'simpleTranslations'?: Array<TranslationSimpleWithDescriptionModel> | null;
|
|
9931
9998
|
/**
|
|
9932
9999
|
*
|
|
9933
10000
|
* @type {string}
|
|
@@ -10006,6 +10073,12 @@ export interface SpecialtyTypeModel {
|
|
|
10006
10073
|
* @memberof SpecialtyTypeModel
|
|
10007
10074
|
*/
|
|
10008
10075
|
'content'?: string | null;
|
|
10076
|
+
/**
|
|
10077
|
+
*
|
|
10078
|
+
* @type {string}
|
|
10079
|
+
* @memberof SpecialtyTypeModel
|
|
10080
|
+
*/
|
|
10081
|
+
'overview'?: string | null;
|
|
10009
10082
|
/**
|
|
10010
10083
|
*
|
|
10011
10084
|
* @type {Array<LocalizedUrlModel>}
|
|
@@ -10056,55 +10129,6 @@ export interface SpecialtyTypeSimpleItemModel {
|
|
|
10056
10129
|
*/
|
|
10057
10130
|
'confirmed'?: boolean;
|
|
10058
10131
|
}
|
|
10059
|
-
/**
|
|
10060
|
-
*
|
|
10061
|
-
* @export
|
|
10062
|
-
* @interface SpecialtyTypeTranslationSimpleModel
|
|
10063
|
-
*/
|
|
10064
|
-
export interface SpecialtyTypeTranslationSimpleModel {
|
|
10065
|
-
/**
|
|
10066
|
-
*
|
|
10067
|
-
* @type {string}
|
|
10068
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10069
|
-
*/
|
|
10070
|
-
'languageCode'?: string | null;
|
|
10071
|
-
/**
|
|
10072
|
-
*
|
|
10073
|
-
* @type {string}
|
|
10074
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10075
|
-
*/
|
|
10076
|
-
'name'?: string | null;
|
|
10077
|
-
/**
|
|
10078
|
-
*
|
|
10079
|
-
* @type {string}
|
|
10080
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10081
|
-
*/
|
|
10082
|
-
'normalizedName'?: string | null;
|
|
10083
|
-
/**
|
|
10084
|
-
*
|
|
10085
|
-
* @type {string}
|
|
10086
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10087
|
-
*/
|
|
10088
|
-
'slug'?: string | null;
|
|
10089
|
-
/**
|
|
10090
|
-
*
|
|
10091
|
-
* @type {Date}
|
|
10092
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10093
|
-
*/
|
|
10094
|
-
'updatedDate'?: Date | null;
|
|
10095
|
-
/**
|
|
10096
|
-
*
|
|
10097
|
-
* @type {boolean}
|
|
10098
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10099
|
-
*/
|
|
10100
|
-
'isConfirmed'?: boolean;
|
|
10101
|
-
/**
|
|
10102
|
-
*
|
|
10103
|
-
* @type {string}
|
|
10104
|
-
* @memberof SpecialtyTypeTranslationSimpleModel
|
|
10105
|
-
*/
|
|
10106
|
-
'description'?: string | null;
|
|
10107
|
-
}
|
|
10108
10132
|
/**
|
|
10109
10133
|
*
|
|
10110
10134
|
* @export
|
|
@@ -10575,6 +10599,55 @@ export interface TranslationSimpleModel {
|
|
|
10575
10599
|
*/
|
|
10576
10600
|
'isConfirmed'?: boolean;
|
|
10577
10601
|
}
|
|
10602
|
+
/**
|
|
10603
|
+
*
|
|
10604
|
+
* @export
|
|
10605
|
+
* @interface TranslationSimpleWithDescriptionModel
|
|
10606
|
+
*/
|
|
10607
|
+
export interface TranslationSimpleWithDescriptionModel {
|
|
10608
|
+
/**
|
|
10609
|
+
*
|
|
10610
|
+
* @type {string}
|
|
10611
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10612
|
+
*/
|
|
10613
|
+
'languageCode'?: string | null;
|
|
10614
|
+
/**
|
|
10615
|
+
*
|
|
10616
|
+
* @type {string}
|
|
10617
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10618
|
+
*/
|
|
10619
|
+
'name'?: string | null;
|
|
10620
|
+
/**
|
|
10621
|
+
*
|
|
10622
|
+
* @type {string}
|
|
10623
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10624
|
+
*/
|
|
10625
|
+
'normalizedName'?: string | null;
|
|
10626
|
+
/**
|
|
10627
|
+
*
|
|
10628
|
+
* @type {string}
|
|
10629
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10630
|
+
*/
|
|
10631
|
+
'slug'?: string | null;
|
|
10632
|
+
/**
|
|
10633
|
+
*
|
|
10634
|
+
* @type {Date}
|
|
10635
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10636
|
+
*/
|
|
10637
|
+
'updatedDate'?: Date | null;
|
|
10638
|
+
/**
|
|
10639
|
+
*
|
|
10640
|
+
* @type {boolean}
|
|
10641
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10642
|
+
*/
|
|
10643
|
+
'isConfirmed'?: boolean;
|
|
10644
|
+
/**
|
|
10645
|
+
*
|
|
10646
|
+
* @type {string}
|
|
10647
|
+
* @memberof TranslationSimpleWithDescriptionModel
|
|
10648
|
+
*/
|
|
10649
|
+
'description'?: string | null;
|
|
10650
|
+
}
|
|
10578
10651
|
/**
|
|
10579
10652
|
*
|
|
10580
10653
|
* @export
|
|
@@ -26185,6 +26258,305 @@ export class NotificationsApi extends BaseAPI {
|
|
|
26185
26258
|
}
|
|
26186
26259
|
|
|
26187
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
|
+
|
|
26188
26560
|
/**
|
|
26189
26561
|
* PatientsApi - axios parameter creator
|
|
26190
26562
|
* @export
|