ch-admin-api-client-typescript 2.2.10 → 2.2.12
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 +781 -21
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +983 -1
- package/package.json +1 -1
- package/src/api.ts +1223 -20
package/src/api.ts
CHANGED
|
@@ -4233,6 +4233,74 @@ export interface CreateMediaCommand {
|
|
|
4233
4233
|
*/
|
|
4234
4234
|
'order'?: number;
|
|
4235
4235
|
}
|
|
4236
|
+
/**
|
|
4237
|
+
*
|
|
4238
|
+
* @export
|
|
4239
|
+
* @interface CreatePlanCommand
|
|
4240
|
+
*/
|
|
4241
|
+
export interface CreatePlanCommand {
|
|
4242
|
+
/**
|
|
4243
|
+
*
|
|
4244
|
+
* @type {string}
|
|
4245
|
+
* @memberof CreatePlanCommand
|
|
4246
|
+
*/
|
|
4247
|
+
'name'?: string | null;
|
|
4248
|
+
/**
|
|
4249
|
+
*
|
|
4250
|
+
* @type {number}
|
|
4251
|
+
* @memberof CreatePlanCommand
|
|
4252
|
+
*/
|
|
4253
|
+
'memberLimit'?: number;
|
|
4254
|
+
/**
|
|
4255
|
+
*
|
|
4256
|
+
* @type {number}
|
|
4257
|
+
* @memberof CreatePlanCommand
|
|
4258
|
+
*/
|
|
4259
|
+
'unitPrice'?: number;
|
|
4260
|
+
/**
|
|
4261
|
+
*
|
|
4262
|
+
* @type {string}
|
|
4263
|
+
* @memberof CreatePlanCommand
|
|
4264
|
+
*/
|
|
4265
|
+
'stripePriceId'?: string | null;
|
|
4266
|
+
/**
|
|
4267
|
+
*
|
|
4268
|
+
* @type {RecurringInterval}
|
|
4269
|
+
* @memberof CreatePlanCommand
|
|
4270
|
+
*/
|
|
4271
|
+
'interval'?: RecurringInterval;
|
|
4272
|
+
/**
|
|
4273
|
+
*
|
|
4274
|
+
* @type {boolean}
|
|
4275
|
+
* @memberof CreatePlanCommand
|
|
4276
|
+
*/
|
|
4277
|
+
'isActive'?: boolean;
|
|
4278
|
+
/**
|
|
4279
|
+
*
|
|
4280
|
+
* @type {number}
|
|
4281
|
+
* @memberof CreatePlanCommand
|
|
4282
|
+
*/
|
|
4283
|
+
'order'?: number;
|
|
4284
|
+
}
|
|
4285
|
+
/**
|
|
4286
|
+
*
|
|
4287
|
+
* @export
|
|
4288
|
+
* @interface CreatePlanHospitalCommand
|
|
4289
|
+
*/
|
|
4290
|
+
export interface CreatePlanHospitalCommand {
|
|
4291
|
+
/**
|
|
4292
|
+
*
|
|
4293
|
+
* @type {string}
|
|
4294
|
+
* @memberof CreatePlanHospitalCommand
|
|
4295
|
+
*/
|
|
4296
|
+
'hospitalId'?: string;
|
|
4297
|
+
/**
|
|
4298
|
+
*
|
|
4299
|
+
* @type {number}
|
|
4300
|
+
* @memberof CreatePlanHospitalCommand
|
|
4301
|
+
*/
|
|
4302
|
+
'order'?: number;
|
|
4303
|
+
}
|
|
4236
4304
|
/**
|
|
4237
4305
|
*
|
|
4238
4306
|
* @export
|
|
@@ -9901,6 +9969,228 @@ export interface Plan {
|
|
|
9901
9969
|
*/
|
|
9902
9970
|
'order'?: number;
|
|
9903
9971
|
}
|
|
9972
|
+
/**
|
|
9973
|
+
*
|
|
9974
|
+
* @export
|
|
9975
|
+
* @interface PlanHospitalItemModel
|
|
9976
|
+
*/
|
|
9977
|
+
export interface PlanHospitalItemModel {
|
|
9978
|
+
/**
|
|
9979
|
+
*
|
|
9980
|
+
* @type {string}
|
|
9981
|
+
* @memberof PlanHospitalItemModel
|
|
9982
|
+
*/
|
|
9983
|
+
'planId'?: string;
|
|
9984
|
+
/**
|
|
9985
|
+
*
|
|
9986
|
+
* @type {string}
|
|
9987
|
+
* @memberof PlanHospitalItemModel
|
|
9988
|
+
*/
|
|
9989
|
+
'planName'?: string | null;
|
|
9990
|
+
/**
|
|
9991
|
+
*
|
|
9992
|
+
* @type {string}
|
|
9993
|
+
* @memberof PlanHospitalItemModel
|
|
9994
|
+
*/
|
|
9995
|
+
'hospitalId'?: string;
|
|
9996
|
+
/**
|
|
9997
|
+
*
|
|
9998
|
+
* @type {string}
|
|
9999
|
+
* @memberof PlanHospitalItemModel
|
|
10000
|
+
*/
|
|
10001
|
+
'hospitalName'?: string | null;
|
|
10002
|
+
/**
|
|
10003
|
+
*
|
|
10004
|
+
* @type {number}
|
|
10005
|
+
* @memberof PlanHospitalItemModel
|
|
10006
|
+
*/
|
|
10007
|
+
'order'?: number;
|
|
10008
|
+
}
|
|
10009
|
+
/**
|
|
10010
|
+
*
|
|
10011
|
+
* @export
|
|
10012
|
+
* @interface PlanHospitalModel
|
|
10013
|
+
*/
|
|
10014
|
+
export interface PlanHospitalModel {
|
|
10015
|
+
/**
|
|
10016
|
+
*
|
|
10017
|
+
* @type {string}
|
|
10018
|
+
* @memberof PlanHospitalModel
|
|
10019
|
+
*/
|
|
10020
|
+
'planId'?: string;
|
|
10021
|
+
/**
|
|
10022
|
+
*
|
|
10023
|
+
* @type {string}
|
|
10024
|
+
* @memberof PlanHospitalModel
|
|
10025
|
+
*/
|
|
10026
|
+
'planName'?: string | null;
|
|
10027
|
+
/**
|
|
10028
|
+
*
|
|
10029
|
+
* @type {string}
|
|
10030
|
+
* @memberof PlanHospitalModel
|
|
10031
|
+
*/
|
|
10032
|
+
'hospitalId'?: string;
|
|
10033
|
+
/**
|
|
10034
|
+
*
|
|
10035
|
+
* @type {string}
|
|
10036
|
+
* @memberof PlanHospitalModel
|
|
10037
|
+
*/
|
|
10038
|
+
'hospitalName'?: string | null;
|
|
10039
|
+
/**
|
|
10040
|
+
*
|
|
10041
|
+
* @type {number}
|
|
10042
|
+
* @memberof PlanHospitalModel
|
|
10043
|
+
*/
|
|
10044
|
+
'order'?: number;
|
|
10045
|
+
}
|
|
10046
|
+
/**
|
|
10047
|
+
*
|
|
10048
|
+
* @export
|
|
10049
|
+
* @interface PlanHospitalsModel
|
|
10050
|
+
*/
|
|
10051
|
+
export interface PlanHospitalsModel {
|
|
10052
|
+
/**
|
|
10053
|
+
*
|
|
10054
|
+
* @type {Array<PlanHospitalItemModel>}
|
|
10055
|
+
* @memberof PlanHospitalsModel
|
|
10056
|
+
*/
|
|
10057
|
+
'items'?: Array<PlanHospitalItemModel> | null;
|
|
10058
|
+
/**
|
|
10059
|
+
*
|
|
10060
|
+
* @type {PagedListMetaData}
|
|
10061
|
+
* @memberof PlanHospitalsModel
|
|
10062
|
+
*/
|
|
10063
|
+
'metaData'?: PagedListMetaData;
|
|
10064
|
+
}
|
|
10065
|
+
/**
|
|
10066
|
+
*
|
|
10067
|
+
* @export
|
|
10068
|
+
* @interface PlanItemModel
|
|
10069
|
+
*/
|
|
10070
|
+
export interface PlanItemModel {
|
|
10071
|
+
/**
|
|
10072
|
+
*
|
|
10073
|
+
* @type {string}
|
|
10074
|
+
* @memberof PlanItemModel
|
|
10075
|
+
*/
|
|
10076
|
+
'id'?: string;
|
|
10077
|
+
/**
|
|
10078
|
+
*
|
|
10079
|
+
* @type {string}
|
|
10080
|
+
* @memberof PlanItemModel
|
|
10081
|
+
*/
|
|
10082
|
+
'name'?: string | null;
|
|
10083
|
+
/**
|
|
10084
|
+
*
|
|
10085
|
+
* @type {number}
|
|
10086
|
+
* @memberof PlanItemModel
|
|
10087
|
+
*/
|
|
10088
|
+
'memberLimit'?: number;
|
|
10089
|
+
/**
|
|
10090
|
+
*
|
|
10091
|
+
* @type {number}
|
|
10092
|
+
* @memberof PlanItemModel
|
|
10093
|
+
*/
|
|
10094
|
+
'unitPrice'?: number;
|
|
10095
|
+
/**
|
|
10096
|
+
*
|
|
10097
|
+
* @type {string}
|
|
10098
|
+
* @memberof PlanItemModel
|
|
10099
|
+
*/
|
|
10100
|
+
'stripePriceId'?: string | null;
|
|
10101
|
+
/**
|
|
10102
|
+
*
|
|
10103
|
+
* @type {RecurringInterval}
|
|
10104
|
+
* @memberof PlanItemModel
|
|
10105
|
+
*/
|
|
10106
|
+
'interval'?: RecurringInterval;
|
|
10107
|
+
/**
|
|
10108
|
+
*
|
|
10109
|
+
* @type {boolean}
|
|
10110
|
+
* @memberof PlanItemModel
|
|
10111
|
+
*/
|
|
10112
|
+
'isActive'?: boolean;
|
|
10113
|
+
/**
|
|
10114
|
+
*
|
|
10115
|
+
* @type {number}
|
|
10116
|
+
* @memberof PlanItemModel
|
|
10117
|
+
*/
|
|
10118
|
+
'order'?: number;
|
|
10119
|
+
}
|
|
10120
|
+
/**
|
|
10121
|
+
*
|
|
10122
|
+
* @export
|
|
10123
|
+
* @interface PlanModel
|
|
10124
|
+
*/
|
|
10125
|
+
export interface PlanModel {
|
|
10126
|
+
/**
|
|
10127
|
+
*
|
|
10128
|
+
* @type {string}
|
|
10129
|
+
* @memberof PlanModel
|
|
10130
|
+
*/
|
|
10131
|
+
'id'?: string;
|
|
10132
|
+
/**
|
|
10133
|
+
*
|
|
10134
|
+
* @type {string}
|
|
10135
|
+
* @memberof PlanModel
|
|
10136
|
+
*/
|
|
10137
|
+
'name'?: string | null;
|
|
10138
|
+
/**
|
|
10139
|
+
*
|
|
10140
|
+
* @type {number}
|
|
10141
|
+
* @memberof PlanModel
|
|
10142
|
+
*/
|
|
10143
|
+
'memberLimit'?: number;
|
|
10144
|
+
/**
|
|
10145
|
+
*
|
|
10146
|
+
* @type {number}
|
|
10147
|
+
* @memberof PlanModel
|
|
10148
|
+
*/
|
|
10149
|
+
'unitPrice'?: number;
|
|
10150
|
+
/**
|
|
10151
|
+
*
|
|
10152
|
+
* @type {string}
|
|
10153
|
+
* @memberof PlanModel
|
|
10154
|
+
*/
|
|
10155
|
+
'stripePriceId'?: string | null;
|
|
10156
|
+
/**
|
|
10157
|
+
*
|
|
10158
|
+
* @type {RecurringInterval}
|
|
10159
|
+
* @memberof PlanModel
|
|
10160
|
+
*/
|
|
10161
|
+
'interval'?: RecurringInterval;
|
|
10162
|
+
/**
|
|
10163
|
+
*
|
|
10164
|
+
* @type {boolean}
|
|
10165
|
+
* @memberof PlanModel
|
|
10166
|
+
*/
|
|
10167
|
+
'isActive'?: boolean;
|
|
10168
|
+
/**
|
|
10169
|
+
*
|
|
10170
|
+
* @type {number}
|
|
10171
|
+
* @memberof PlanModel
|
|
10172
|
+
*/
|
|
10173
|
+
'order'?: number;
|
|
10174
|
+
}
|
|
10175
|
+
/**
|
|
10176
|
+
*
|
|
10177
|
+
* @export
|
|
10178
|
+
* @interface PlansModel
|
|
10179
|
+
*/
|
|
10180
|
+
export interface PlansModel {
|
|
10181
|
+
/**
|
|
10182
|
+
*
|
|
10183
|
+
* @type {Array<PlanItemModel>}
|
|
10184
|
+
* @memberof PlansModel
|
|
10185
|
+
*/
|
|
10186
|
+
'items'?: Array<PlanItemModel> | null;
|
|
10187
|
+
/**
|
|
10188
|
+
*
|
|
10189
|
+
* @type {PagedListMetaData}
|
|
10190
|
+
* @memberof PlansModel
|
|
10191
|
+
*/
|
|
10192
|
+
'metaData'?: PagedListMetaData;
|
|
10193
|
+
}
|
|
9904
10194
|
/**
|
|
9905
10195
|
*
|
|
9906
10196
|
* @export
|
|
@@ -12318,45 +12608,107 @@ export interface UpdateMediaCommand {
|
|
|
12318
12608
|
/**
|
|
12319
12609
|
*
|
|
12320
12610
|
* @export
|
|
12321
|
-
* @interface
|
|
12611
|
+
* @interface UpdatePlanCommand
|
|
12322
12612
|
*/
|
|
12323
|
-
export interface
|
|
12613
|
+
export interface UpdatePlanCommand {
|
|
12324
12614
|
/**
|
|
12325
12615
|
*
|
|
12326
12616
|
* @type {string}
|
|
12327
|
-
* @memberof
|
|
12617
|
+
* @memberof UpdatePlanCommand
|
|
12328
12618
|
*/
|
|
12329
|
-
'
|
|
12619
|
+
'name'?: string | null;
|
|
12330
12620
|
/**
|
|
12331
12621
|
*
|
|
12332
|
-
* @type {
|
|
12333
|
-
* @memberof
|
|
12622
|
+
* @type {number}
|
|
12623
|
+
* @memberof UpdatePlanCommand
|
|
12334
12624
|
*/
|
|
12335
|
-
'
|
|
12625
|
+
'memberLimit'?: number;
|
|
12336
12626
|
/**
|
|
12337
12627
|
*
|
|
12338
|
-
* @type {
|
|
12339
|
-
* @memberof
|
|
12628
|
+
* @type {number}
|
|
12629
|
+
* @memberof UpdatePlanCommand
|
|
12340
12630
|
*/
|
|
12341
|
-
'
|
|
12631
|
+
'unitPrice'?: number;
|
|
12342
12632
|
/**
|
|
12343
12633
|
*
|
|
12344
12634
|
* @type {string}
|
|
12345
|
-
* @memberof
|
|
12635
|
+
* @memberof UpdatePlanCommand
|
|
12346
12636
|
*/
|
|
12347
|
-
'
|
|
12637
|
+
'stripePriceId'?: string | null;
|
|
12348
12638
|
/**
|
|
12349
12639
|
*
|
|
12350
|
-
* @type {
|
|
12351
|
-
* @memberof
|
|
12640
|
+
* @type {RecurringInterval}
|
|
12641
|
+
* @memberof UpdatePlanCommand
|
|
12352
12642
|
*/
|
|
12353
|
-
'
|
|
12643
|
+
'interval'?: RecurringInterval;
|
|
12354
12644
|
/**
|
|
12355
12645
|
*
|
|
12356
|
-
* @type {
|
|
12357
|
-
* @memberof
|
|
12646
|
+
* @type {boolean}
|
|
12647
|
+
* @memberof UpdatePlanCommand
|
|
12358
12648
|
*/
|
|
12359
|
-
'
|
|
12649
|
+
'isActive'?: boolean;
|
|
12650
|
+
/**
|
|
12651
|
+
*
|
|
12652
|
+
* @type {number}
|
|
12653
|
+
* @memberof UpdatePlanCommand
|
|
12654
|
+
*/
|
|
12655
|
+
'order'?: number;
|
|
12656
|
+
}
|
|
12657
|
+
/**
|
|
12658
|
+
*
|
|
12659
|
+
* @export
|
|
12660
|
+
* @interface UpdatePlanHospitalCommand
|
|
12661
|
+
*/
|
|
12662
|
+
export interface UpdatePlanHospitalCommand {
|
|
12663
|
+
/**
|
|
12664
|
+
*
|
|
12665
|
+
* @type {number}
|
|
12666
|
+
* @memberof UpdatePlanHospitalCommand
|
|
12667
|
+
*/
|
|
12668
|
+
'order'?: number;
|
|
12669
|
+
}
|
|
12670
|
+
/**
|
|
12671
|
+
*
|
|
12672
|
+
* @export
|
|
12673
|
+
* @interface UpdateServiceCategoryCommand
|
|
12674
|
+
*/
|
|
12675
|
+
export interface UpdateServiceCategoryCommand {
|
|
12676
|
+
/**
|
|
12677
|
+
*
|
|
12678
|
+
* @type {string}
|
|
12679
|
+
* @memberof UpdateServiceCategoryCommand
|
|
12680
|
+
*/
|
|
12681
|
+
'id'?: string;
|
|
12682
|
+
/**
|
|
12683
|
+
*
|
|
12684
|
+
* @type {string}
|
|
12685
|
+
* @memberof UpdateServiceCategoryCommand
|
|
12686
|
+
*/
|
|
12687
|
+
'name'?: string | null;
|
|
12688
|
+
/**
|
|
12689
|
+
*
|
|
12690
|
+
* @type {string}
|
|
12691
|
+
* @memberof UpdateServiceCategoryCommand
|
|
12692
|
+
*/
|
|
12693
|
+
'normalizedName'?: string | null;
|
|
12694
|
+
/**
|
|
12695
|
+
*
|
|
12696
|
+
* @type {string}
|
|
12697
|
+
* @memberof UpdateServiceCategoryCommand
|
|
12698
|
+
*/
|
|
12699
|
+
'description'?: string | null;
|
|
12700
|
+
/**
|
|
12701
|
+
*
|
|
12702
|
+
* @type {number}
|
|
12703
|
+
* @memberof UpdateServiceCategoryCommand
|
|
12704
|
+
*/
|
|
12705
|
+
'order'?: number | null;
|
|
12706
|
+
/**
|
|
12707
|
+
*
|
|
12708
|
+
* @type {number}
|
|
12709
|
+
* @memberof UpdateServiceCategoryCommand
|
|
12710
|
+
*/
|
|
12711
|
+
'serviceCount'?: number;
|
|
12360
12712
|
/**
|
|
12361
12713
|
*
|
|
12362
12714
|
* @type {Array<HospitalServiceItemModel>}
|
|
@@ -23214,7 +23566,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
23214
23566
|
* @param {*} [options] Override http request option.
|
|
23215
23567
|
* @throws {RequiredError}
|
|
23216
23568
|
*/
|
|
23217
|
-
async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
23569
|
+
async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
|
|
23218
23570
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsPost(createDoctorCommand, options);
|
|
23219
23571
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
23220
23572
|
},
|
|
@@ -23637,7 +23989,7 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
23637
23989
|
* @param {*} [options] Override http request option.
|
|
23638
23990
|
* @throws {RequiredError}
|
|
23639
23991
|
*/
|
|
23640
|
-
apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<
|
|
23992
|
+
apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
|
|
23641
23993
|
return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(axios, basePath));
|
|
23642
23994
|
},
|
|
23643
23995
|
/**
|
|
@@ -29462,6 +29814,857 @@ export class NotificationsApi extends BaseAPI {
|
|
|
29462
29814
|
}
|
|
29463
29815
|
|
|
29464
29816
|
|
|
29817
|
+
/**
|
|
29818
|
+
* PlansApi - axios parameter creator
|
|
29819
|
+
* @export
|
|
29820
|
+
*/
|
|
29821
|
+
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
29822
|
+
return {
|
|
29823
|
+
/**
|
|
29824
|
+
*
|
|
29825
|
+
* @summary Get all plans.
|
|
29826
|
+
* @param {string} [id]
|
|
29827
|
+
* @param {string} [name]
|
|
29828
|
+
* @param {number} [page]
|
|
29829
|
+
* @param {number} [limit]
|
|
29830
|
+
* @param {Date} [lastRetrieved]
|
|
29831
|
+
* @param {*} [options] Override http request option.
|
|
29832
|
+
* @throws {RequiredError}
|
|
29833
|
+
*/
|
|
29834
|
+
apiV1PlansGet: async (id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29835
|
+
const localVarPath = `/api/v1/plans`;
|
|
29836
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29837
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29838
|
+
let baseOptions;
|
|
29839
|
+
if (configuration) {
|
|
29840
|
+
baseOptions = configuration.baseOptions;
|
|
29841
|
+
}
|
|
29842
|
+
|
|
29843
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29844
|
+
const localVarHeaderParameter = {} as any;
|
|
29845
|
+
const localVarQueryParameter = {} as any;
|
|
29846
|
+
|
|
29847
|
+
// authentication oauth2 required
|
|
29848
|
+
// oauth required
|
|
29849
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
29850
|
+
|
|
29851
|
+
if (id !== undefined) {
|
|
29852
|
+
localVarQueryParameter['Id'] = id;
|
|
29853
|
+
}
|
|
29854
|
+
|
|
29855
|
+
if (name !== undefined) {
|
|
29856
|
+
localVarQueryParameter['Name'] = name;
|
|
29857
|
+
}
|
|
29858
|
+
|
|
29859
|
+
if (page !== undefined) {
|
|
29860
|
+
localVarQueryParameter['page'] = page;
|
|
29861
|
+
}
|
|
29862
|
+
|
|
29863
|
+
if (limit !== undefined) {
|
|
29864
|
+
localVarQueryParameter['limit'] = limit;
|
|
29865
|
+
}
|
|
29866
|
+
|
|
29867
|
+
if (lastRetrieved !== undefined) {
|
|
29868
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
29869
|
+
(lastRetrieved as any).toISOString() :
|
|
29870
|
+
lastRetrieved;
|
|
29871
|
+
}
|
|
29872
|
+
|
|
29873
|
+
|
|
29874
|
+
|
|
29875
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29877
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29878
|
+
|
|
29879
|
+
return {
|
|
29880
|
+
url: toPathString(localVarUrlObj),
|
|
29881
|
+
options: localVarRequestOptions,
|
|
29882
|
+
};
|
|
29883
|
+
},
|
|
29884
|
+
/**
|
|
29885
|
+
*
|
|
29886
|
+
* @summary Delete plan.
|
|
29887
|
+
* @param {string} planId
|
|
29888
|
+
* @param {*} [options] Override http request option.
|
|
29889
|
+
* @throws {RequiredError}
|
|
29890
|
+
*/
|
|
29891
|
+
apiV1PlansPlanIdDelete: async (planId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29892
|
+
// verify required parameter 'planId' is not null or undefined
|
|
29893
|
+
assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId)
|
|
29894
|
+
const localVarPath = `/api/v1/plans/{planId}`
|
|
29895
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
29896
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29897
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29898
|
+
let baseOptions;
|
|
29899
|
+
if (configuration) {
|
|
29900
|
+
baseOptions = configuration.baseOptions;
|
|
29901
|
+
}
|
|
29902
|
+
|
|
29903
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
29904
|
+
const localVarHeaderParameter = {} as any;
|
|
29905
|
+
const localVarQueryParameter = {} as any;
|
|
29906
|
+
|
|
29907
|
+
// authentication oauth2 required
|
|
29908
|
+
// oauth required
|
|
29909
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
29910
|
+
|
|
29911
|
+
|
|
29912
|
+
|
|
29913
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29914
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29915
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29916
|
+
|
|
29917
|
+
return {
|
|
29918
|
+
url: toPathString(localVarUrlObj),
|
|
29919
|
+
options: localVarRequestOptions,
|
|
29920
|
+
};
|
|
29921
|
+
},
|
|
29922
|
+
/**
|
|
29923
|
+
*
|
|
29924
|
+
* @summary Get plan.
|
|
29925
|
+
* @param {string} planId
|
|
29926
|
+
* @param {*} [options] Override http request option.
|
|
29927
|
+
* @throws {RequiredError}
|
|
29928
|
+
*/
|
|
29929
|
+
apiV1PlansPlanIdGet: async (planId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29930
|
+
// verify required parameter 'planId' is not null or undefined
|
|
29931
|
+
assertParamExists('apiV1PlansPlanIdGet', 'planId', planId)
|
|
29932
|
+
const localVarPath = `/api/v1/plans/{planId}`
|
|
29933
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
29934
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29935
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29936
|
+
let baseOptions;
|
|
29937
|
+
if (configuration) {
|
|
29938
|
+
baseOptions = configuration.baseOptions;
|
|
29939
|
+
}
|
|
29940
|
+
|
|
29941
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29942
|
+
const localVarHeaderParameter = {} as any;
|
|
29943
|
+
const localVarQueryParameter = {} as any;
|
|
29944
|
+
|
|
29945
|
+
// authentication oauth2 required
|
|
29946
|
+
// oauth required
|
|
29947
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
29948
|
+
|
|
29949
|
+
|
|
29950
|
+
|
|
29951
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29952
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29953
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29954
|
+
|
|
29955
|
+
return {
|
|
29956
|
+
url: toPathString(localVarUrlObj),
|
|
29957
|
+
options: localVarRequestOptions,
|
|
29958
|
+
};
|
|
29959
|
+
},
|
|
29960
|
+
/**
|
|
29961
|
+
*
|
|
29962
|
+
* @summary Get all plan hospital.
|
|
29963
|
+
* @param {string} planId
|
|
29964
|
+
* @param {number} [page]
|
|
29965
|
+
* @param {number} [limit]
|
|
29966
|
+
* @param {Date} [lastRetrieved]
|
|
29967
|
+
* @param {*} [options] Override http request option.
|
|
29968
|
+
* @throws {RequiredError}
|
|
29969
|
+
*/
|
|
29970
|
+
apiV1PlansPlanIdHospitalsGet: async (planId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29971
|
+
// verify required parameter 'planId' is not null or undefined
|
|
29972
|
+
assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId)
|
|
29973
|
+
const localVarPath = `/api/v1/plans/{planId}/hospitals`
|
|
29974
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
29975
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29976
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29977
|
+
let baseOptions;
|
|
29978
|
+
if (configuration) {
|
|
29979
|
+
baseOptions = configuration.baseOptions;
|
|
29980
|
+
}
|
|
29981
|
+
|
|
29982
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29983
|
+
const localVarHeaderParameter = {} as any;
|
|
29984
|
+
const localVarQueryParameter = {} as any;
|
|
29985
|
+
|
|
29986
|
+
// authentication oauth2 required
|
|
29987
|
+
// oauth required
|
|
29988
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
29989
|
+
|
|
29990
|
+
if (page !== undefined) {
|
|
29991
|
+
localVarQueryParameter['page'] = page;
|
|
29992
|
+
}
|
|
29993
|
+
|
|
29994
|
+
if (limit !== undefined) {
|
|
29995
|
+
localVarQueryParameter['limit'] = limit;
|
|
29996
|
+
}
|
|
29997
|
+
|
|
29998
|
+
if (lastRetrieved !== undefined) {
|
|
29999
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
30000
|
+
(lastRetrieved as any).toISOString() :
|
|
30001
|
+
lastRetrieved;
|
|
30002
|
+
}
|
|
30003
|
+
|
|
30004
|
+
|
|
30005
|
+
|
|
30006
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30007
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30008
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30009
|
+
|
|
30010
|
+
return {
|
|
30011
|
+
url: toPathString(localVarUrlObj),
|
|
30012
|
+
options: localVarRequestOptions,
|
|
30013
|
+
};
|
|
30014
|
+
},
|
|
30015
|
+
/**
|
|
30016
|
+
*
|
|
30017
|
+
* @summary Delete plan hospital.
|
|
30018
|
+
* @param {string} planId
|
|
30019
|
+
* @param {string} hospitalId
|
|
30020
|
+
* @param {*} [options] Override http request option.
|
|
30021
|
+
* @throws {RequiredError}
|
|
30022
|
+
*/
|
|
30023
|
+
apiV1PlansPlanIdHospitalsHospitalIdDelete: async (planId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30024
|
+
// verify required parameter 'planId' is not null or undefined
|
|
30025
|
+
assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId)
|
|
30026
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
30027
|
+
assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId)
|
|
30028
|
+
const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
|
|
30029
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
|
|
30030
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
30031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30032
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30033
|
+
let baseOptions;
|
|
30034
|
+
if (configuration) {
|
|
30035
|
+
baseOptions = configuration.baseOptions;
|
|
30036
|
+
}
|
|
30037
|
+
|
|
30038
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
30039
|
+
const localVarHeaderParameter = {} as any;
|
|
30040
|
+
const localVarQueryParameter = {} as any;
|
|
30041
|
+
|
|
30042
|
+
// authentication oauth2 required
|
|
30043
|
+
// oauth required
|
|
30044
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
30045
|
+
|
|
30046
|
+
|
|
30047
|
+
|
|
30048
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30049
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30050
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30051
|
+
|
|
30052
|
+
return {
|
|
30053
|
+
url: toPathString(localVarUrlObj),
|
|
30054
|
+
options: localVarRequestOptions,
|
|
30055
|
+
};
|
|
30056
|
+
},
|
|
30057
|
+
/**
|
|
30058
|
+
*
|
|
30059
|
+
* @summary Get plan hospital.
|
|
30060
|
+
* @param {string} planId
|
|
30061
|
+
* @param {string} hospitalId
|
|
30062
|
+
* @param {*} [options] Override http request option.
|
|
30063
|
+
* @throws {RequiredError}
|
|
30064
|
+
*/
|
|
30065
|
+
apiV1PlansPlanIdHospitalsHospitalIdGet: async (planId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30066
|
+
// verify required parameter 'planId' is not null or undefined
|
|
30067
|
+
assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId)
|
|
30068
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
30069
|
+
assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId)
|
|
30070
|
+
const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
|
|
30071
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
|
|
30072
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
30073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30074
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30075
|
+
let baseOptions;
|
|
30076
|
+
if (configuration) {
|
|
30077
|
+
baseOptions = configuration.baseOptions;
|
|
30078
|
+
}
|
|
30079
|
+
|
|
30080
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30081
|
+
const localVarHeaderParameter = {} as any;
|
|
30082
|
+
const localVarQueryParameter = {} as any;
|
|
30083
|
+
|
|
30084
|
+
// authentication oauth2 required
|
|
30085
|
+
// oauth required
|
|
30086
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
30087
|
+
|
|
30088
|
+
|
|
30089
|
+
|
|
30090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30092
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30093
|
+
|
|
30094
|
+
return {
|
|
30095
|
+
url: toPathString(localVarUrlObj),
|
|
30096
|
+
options: localVarRequestOptions,
|
|
30097
|
+
};
|
|
30098
|
+
},
|
|
30099
|
+
/**
|
|
30100
|
+
*
|
|
30101
|
+
* @summary Update plan hospital.
|
|
30102
|
+
* @param {string} planId
|
|
30103
|
+
* @param {string} hospitalId
|
|
30104
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
30105
|
+
* @param {*} [options] Override http request option.
|
|
30106
|
+
* @throws {RequiredError}
|
|
30107
|
+
*/
|
|
30108
|
+
apiV1PlansPlanIdHospitalsHospitalIdPut: async (planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30109
|
+
// verify required parameter 'planId' is not null or undefined
|
|
30110
|
+
assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId)
|
|
30111
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
30112
|
+
assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId)
|
|
30113
|
+
const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
|
|
30114
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
|
|
30115
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
30116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30118
|
+
let baseOptions;
|
|
30119
|
+
if (configuration) {
|
|
30120
|
+
baseOptions = configuration.baseOptions;
|
|
30121
|
+
}
|
|
30122
|
+
|
|
30123
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
30124
|
+
const localVarHeaderParameter = {} as any;
|
|
30125
|
+
const localVarQueryParameter = {} as any;
|
|
30126
|
+
|
|
30127
|
+
// authentication oauth2 required
|
|
30128
|
+
// oauth required
|
|
30129
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
30130
|
+
|
|
30131
|
+
|
|
30132
|
+
|
|
30133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30134
|
+
|
|
30135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30137
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration)
|
|
30139
|
+
|
|
30140
|
+
return {
|
|
30141
|
+
url: toPathString(localVarUrlObj),
|
|
30142
|
+
options: localVarRequestOptions,
|
|
30143
|
+
};
|
|
30144
|
+
},
|
|
30145
|
+
/**
|
|
30146
|
+
*
|
|
30147
|
+
* @summary Create plan hospital.
|
|
30148
|
+
* @param {string} planId
|
|
30149
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
30150
|
+
* @param {*} [options] Override http request option.
|
|
30151
|
+
* @throws {RequiredError}
|
|
30152
|
+
*/
|
|
30153
|
+
apiV1PlansPlanIdHospitalsPost: async (planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30154
|
+
// verify required parameter 'planId' is not null or undefined
|
|
30155
|
+
assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId)
|
|
30156
|
+
const localVarPath = `/api/v1/plans/{planId}/hospitals`
|
|
30157
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
30158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30159
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30160
|
+
let baseOptions;
|
|
30161
|
+
if (configuration) {
|
|
30162
|
+
baseOptions = configuration.baseOptions;
|
|
30163
|
+
}
|
|
30164
|
+
|
|
30165
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30166
|
+
const localVarHeaderParameter = {} as any;
|
|
30167
|
+
const localVarQueryParameter = {} as any;
|
|
30168
|
+
|
|
30169
|
+
// authentication oauth2 required
|
|
30170
|
+
// oauth required
|
|
30171
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
30172
|
+
|
|
30173
|
+
|
|
30174
|
+
|
|
30175
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30176
|
+
|
|
30177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30179
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30180
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration)
|
|
30181
|
+
|
|
30182
|
+
return {
|
|
30183
|
+
url: toPathString(localVarUrlObj),
|
|
30184
|
+
options: localVarRequestOptions,
|
|
30185
|
+
};
|
|
30186
|
+
},
|
|
30187
|
+
/**
|
|
30188
|
+
*
|
|
30189
|
+
* @summary Update plan.
|
|
30190
|
+
* @param {string} planId
|
|
30191
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
30192
|
+
* @param {*} [options] Override http request option.
|
|
30193
|
+
* @throws {RequiredError}
|
|
30194
|
+
*/
|
|
30195
|
+
apiV1PlansPlanIdPut: async (planId: string, updatePlanCommand?: UpdatePlanCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30196
|
+
// verify required parameter 'planId' is not null or undefined
|
|
30197
|
+
assertParamExists('apiV1PlansPlanIdPut', 'planId', planId)
|
|
30198
|
+
const localVarPath = `/api/v1/plans/{planId}`
|
|
30199
|
+
.replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
|
|
30200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30202
|
+
let baseOptions;
|
|
30203
|
+
if (configuration) {
|
|
30204
|
+
baseOptions = configuration.baseOptions;
|
|
30205
|
+
}
|
|
30206
|
+
|
|
30207
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
30208
|
+
const localVarHeaderParameter = {} as any;
|
|
30209
|
+
const localVarQueryParameter = {} as any;
|
|
30210
|
+
|
|
30211
|
+
// authentication oauth2 required
|
|
30212
|
+
// oauth required
|
|
30213
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
30214
|
+
|
|
30215
|
+
|
|
30216
|
+
|
|
30217
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30218
|
+
|
|
30219
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30220
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30221
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30222
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration)
|
|
30223
|
+
|
|
30224
|
+
return {
|
|
30225
|
+
url: toPathString(localVarUrlObj),
|
|
30226
|
+
options: localVarRequestOptions,
|
|
30227
|
+
};
|
|
30228
|
+
},
|
|
30229
|
+
/**
|
|
30230
|
+
*
|
|
30231
|
+
* @summary Create a plan.
|
|
30232
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
30233
|
+
* @param {*} [options] Override http request option.
|
|
30234
|
+
* @throws {RequiredError}
|
|
30235
|
+
*/
|
|
30236
|
+
apiV1PlansPost: async (createPlanCommand?: CreatePlanCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30237
|
+
const localVarPath = `/api/v1/plans`;
|
|
30238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30240
|
+
let baseOptions;
|
|
30241
|
+
if (configuration) {
|
|
30242
|
+
baseOptions = configuration.baseOptions;
|
|
30243
|
+
}
|
|
30244
|
+
|
|
30245
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30246
|
+
const localVarHeaderParameter = {} as any;
|
|
30247
|
+
const localVarQueryParameter = {} as any;
|
|
30248
|
+
|
|
30249
|
+
// authentication oauth2 required
|
|
30250
|
+
// oauth required
|
|
30251
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
30252
|
+
|
|
30253
|
+
|
|
30254
|
+
|
|
30255
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30256
|
+
|
|
30257
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30259
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30260
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration)
|
|
30261
|
+
|
|
30262
|
+
return {
|
|
30263
|
+
url: toPathString(localVarUrlObj),
|
|
30264
|
+
options: localVarRequestOptions,
|
|
30265
|
+
};
|
|
30266
|
+
},
|
|
30267
|
+
}
|
|
30268
|
+
};
|
|
30269
|
+
|
|
30270
|
+
/**
|
|
30271
|
+
* PlansApi - functional programming interface
|
|
30272
|
+
* @export
|
|
30273
|
+
*/
|
|
30274
|
+
export const PlansApiFp = function(configuration?: Configuration) {
|
|
30275
|
+
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
30276
|
+
return {
|
|
30277
|
+
/**
|
|
30278
|
+
*
|
|
30279
|
+
* @summary Get all plans.
|
|
30280
|
+
* @param {string} [id]
|
|
30281
|
+
* @param {string} [name]
|
|
30282
|
+
* @param {number} [page]
|
|
30283
|
+
* @param {number} [limit]
|
|
30284
|
+
* @param {Date} [lastRetrieved]
|
|
30285
|
+
* @param {*} [options] Override http request option.
|
|
30286
|
+
* @throws {RequiredError}
|
|
30287
|
+
*/
|
|
30288
|
+
async apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlansModel>> {
|
|
30289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options);
|
|
30290
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30291
|
+
},
|
|
30292
|
+
/**
|
|
30293
|
+
*
|
|
30294
|
+
* @summary Delete plan.
|
|
30295
|
+
* @param {string} planId
|
|
30296
|
+
* @param {*} [options] Override http request option.
|
|
30297
|
+
* @throws {RequiredError}
|
|
30298
|
+
*/
|
|
30299
|
+
async apiV1PlansPlanIdDelete(planId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
30300
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options);
|
|
30301
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30302
|
+
},
|
|
30303
|
+
/**
|
|
30304
|
+
*
|
|
30305
|
+
* @summary Get plan.
|
|
30306
|
+
* @param {string} planId
|
|
30307
|
+
* @param {*} [options] Override http request option.
|
|
30308
|
+
* @throws {RequiredError}
|
|
30309
|
+
*/
|
|
30310
|
+
async apiV1PlansPlanIdGet(planId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
|
|
30311
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options);
|
|
30312
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30313
|
+
},
|
|
30314
|
+
/**
|
|
30315
|
+
*
|
|
30316
|
+
* @summary Get all plan hospital.
|
|
30317
|
+
* @param {string} planId
|
|
30318
|
+
* @param {number} [page]
|
|
30319
|
+
* @param {number} [limit]
|
|
30320
|
+
* @param {Date} [lastRetrieved]
|
|
30321
|
+
* @param {*} [options] Override http request option.
|
|
30322
|
+
* @throws {RequiredError}
|
|
30323
|
+
*/
|
|
30324
|
+
async apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalsModel>> {
|
|
30325
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options);
|
|
30326
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30327
|
+
},
|
|
30328
|
+
/**
|
|
30329
|
+
*
|
|
30330
|
+
* @summary Delete plan hospital.
|
|
30331
|
+
* @param {string} planId
|
|
30332
|
+
* @param {string} hospitalId
|
|
30333
|
+
* @param {*} [options] Override http request option.
|
|
30334
|
+
* @throws {RequiredError}
|
|
30335
|
+
*/
|
|
30336
|
+
async apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
30337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options);
|
|
30338
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30339
|
+
},
|
|
30340
|
+
/**
|
|
30341
|
+
*
|
|
30342
|
+
* @summary Get plan hospital.
|
|
30343
|
+
* @param {string} planId
|
|
30344
|
+
* @param {string} hospitalId
|
|
30345
|
+
* @param {*} [options] Override http request option.
|
|
30346
|
+
* @throws {RequiredError}
|
|
30347
|
+
*/
|
|
30348
|
+
async apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
|
|
30349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options);
|
|
30350
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30351
|
+
},
|
|
30352
|
+
/**
|
|
30353
|
+
*
|
|
30354
|
+
* @summary Update plan hospital.
|
|
30355
|
+
* @param {string} planId
|
|
30356
|
+
* @param {string} hospitalId
|
|
30357
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
30358
|
+
* @param {*} [options] Override http request option.
|
|
30359
|
+
* @throws {RequiredError}
|
|
30360
|
+
*/
|
|
30361
|
+
async apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
30362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options);
|
|
30363
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30364
|
+
},
|
|
30365
|
+
/**
|
|
30366
|
+
*
|
|
30367
|
+
* @summary Create plan hospital.
|
|
30368
|
+
* @param {string} planId
|
|
30369
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
30370
|
+
* @param {*} [options] Override http request option.
|
|
30371
|
+
* @throws {RequiredError}
|
|
30372
|
+
*/
|
|
30373
|
+
async apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
|
|
30374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options);
|
|
30375
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30376
|
+
},
|
|
30377
|
+
/**
|
|
30378
|
+
*
|
|
30379
|
+
* @summary Update plan.
|
|
30380
|
+
* @param {string} planId
|
|
30381
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
30382
|
+
* @param {*} [options] Override http request option.
|
|
30383
|
+
* @throws {RequiredError}
|
|
30384
|
+
*/
|
|
30385
|
+
async apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
30386
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options);
|
|
30387
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30388
|
+
},
|
|
30389
|
+
/**
|
|
30390
|
+
*
|
|
30391
|
+
* @summary Create a plan.
|
|
30392
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
30393
|
+
* @param {*} [options] Override http request option.
|
|
30394
|
+
* @throws {RequiredError}
|
|
30395
|
+
*/
|
|
30396
|
+
async apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
|
|
30397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options);
|
|
30398
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30399
|
+
},
|
|
30400
|
+
}
|
|
30401
|
+
};
|
|
30402
|
+
|
|
30403
|
+
/**
|
|
30404
|
+
* PlansApi - factory interface
|
|
30405
|
+
* @export
|
|
30406
|
+
*/
|
|
30407
|
+
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30408
|
+
const localVarFp = PlansApiFp(configuration)
|
|
30409
|
+
return {
|
|
30410
|
+
/**
|
|
30411
|
+
*
|
|
30412
|
+
* @summary Get all plans.
|
|
30413
|
+
* @param {string} [id]
|
|
30414
|
+
* @param {string} [name]
|
|
30415
|
+
* @param {number} [page]
|
|
30416
|
+
* @param {number} [limit]
|
|
30417
|
+
* @param {Date} [lastRetrieved]
|
|
30418
|
+
* @param {*} [options] Override http request option.
|
|
30419
|
+
* @throws {RequiredError}
|
|
30420
|
+
*/
|
|
30421
|
+
apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PlansModel> {
|
|
30422
|
+
return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
30423
|
+
},
|
|
30424
|
+
/**
|
|
30425
|
+
*
|
|
30426
|
+
* @summary Delete plan.
|
|
30427
|
+
* @param {string} planId
|
|
30428
|
+
* @param {*} [options] Override http request option.
|
|
30429
|
+
* @throws {RequiredError}
|
|
30430
|
+
*/
|
|
30431
|
+
apiV1PlansPlanIdDelete(planId: string, options?: any): AxiosPromise<boolean> {
|
|
30432
|
+
return localVarFp.apiV1PlansPlanIdDelete(planId, options).then((request) => request(axios, basePath));
|
|
30433
|
+
},
|
|
30434
|
+
/**
|
|
30435
|
+
*
|
|
30436
|
+
* @summary Get plan.
|
|
30437
|
+
* @param {string} planId
|
|
30438
|
+
* @param {*} [options] Override http request option.
|
|
30439
|
+
* @throws {RequiredError}
|
|
30440
|
+
*/
|
|
30441
|
+
apiV1PlansPlanIdGet(planId: string, options?: any): AxiosPromise<PlanModel> {
|
|
30442
|
+
return localVarFp.apiV1PlansPlanIdGet(planId, options).then((request) => request(axios, basePath));
|
|
30443
|
+
},
|
|
30444
|
+
/**
|
|
30445
|
+
*
|
|
30446
|
+
* @summary Get all plan hospital.
|
|
30447
|
+
* @param {string} planId
|
|
30448
|
+
* @param {number} [page]
|
|
30449
|
+
* @param {number} [limit]
|
|
30450
|
+
* @param {Date} [lastRetrieved]
|
|
30451
|
+
* @param {*} [options] Override http request option.
|
|
30452
|
+
* @throws {RequiredError}
|
|
30453
|
+
*/
|
|
30454
|
+
apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PlanHospitalsModel> {
|
|
30455
|
+
return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
30456
|
+
},
|
|
30457
|
+
/**
|
|
30458
|
+
*
|
|
30459
|
+
* @summary Delete plan hospital.
|
|
30460
|
+
* @param {string} planId
|
|
30461
|
+
* @param {string} hospitalId
|
|
30462
|
+
* @param {*} [options] Override http request option.
|
|
30463
|
+
* @throws {RequiredError}
|
|
30464
|
+
*/
|
|
30465
|
+
apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
|
|
30466
|
+
return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then((request) => request(axios, basePath));
|
|
30467
|
+
},
|
|
30468
|
+
/**
|
|
30469
|
+
*
|
|
30470
|
+
* @summary Get plan hospital.
|
|
30471
|
+
* @param {string} planId
|
|
30472
|
+
* @param {string} hospitalId
|
|
30473
|
+
* @param {*} [options] Override http request option.
|
|
30474
|
+
* @throws {RequiredError}
|
|
30475
|
+
*/
|
|
30476
|
+
apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: any): AxiosPromise<PlanHospitalModel> {
|
|
30477
|
+
return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then((request) => request(axios, basePath));
|
|
30478
|
+
},
|
|
30479
|
+
/**
|
|
30480
|
+
*
|
|
30481
|
+
* @summary Update plan hospital.
|
|
30482
|
+
* @param {string} planId
|
|
30483
|
+
* @param {string} hospitalId
|
|
30484
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
30485
|
+
* @param {*} [options] Override http request option.
|
|
30486
|
+
* @throws {RequiredError}
|
|
30487
|
+
*/
|
|
30488
|
+
apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: any): AxiosPromise<boolean> {
|
|
30489
|
+
return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then((request) => request(axios, basePath));
|
|
30490
|
+
},
|
|
30491
|
+
/**
|
|
30492
|
+
*
|
|
30493
|
+
* @summary Create plan hospital.
|
|
30494
|
+
* @param {string} planId
|
|
30495
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
30496
|
+
* @param {*} [options] Override http request option.
|
|
30497
|
+
* @throws {RequiredError}
|
|
30498
|
+
*/
|
|
30499
|
+
apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: any): AxiosPromise<PlanHospitalModel> {
|
|
30500
|
+
return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then((request) => request(axios, basePath));
|
|
30501
|
+
},
|
|
30502
|
+
/**
|
|
30503
|
+
*
|
|
30504
|
+
* @summary Update plan.
|
|
30505
|
+
* @param {string} planId
|
|
30506
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
30507
|
+
* @param {*} [options] Override http request option.
|
|
30508
|
+
* @throws {RequiredError}
|
|
30509
|
+
*/
|
|
30510
|
+
apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: any): AxiosPromise<boolean> {
|
|
30511
|
+
return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then((request) => request(axios, basePath));
|
|
30512
|
+
},
|
|
30513
|
+
/**
|
|
30514
|
+
*
|
|
30515
|
+
* @summary Create a plan.
|
|
30516
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
30517
|
+
* @param {*} [options] Override http request option.
|
|
30518
|
+
* @throws {RequiredError}
|
|
30519
|
+
*/
|
|
30520
|
+
apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: any): AxiosPromise<PlanModel> {
|
|
30521
|
+
return localVarFp.apiV1PlansPost(createPlanCommand, options).then((request) => request(axios, basePath));
|
|
30522
|
+
},
|
|
30523
|
+
};
|
|
30524
|
+
};
|
|
30525
|
+
|
|
30526
|
+
/**
|
|
30527
|
+
* PlansApi - object-oriented interface
|
|
30528
|
+
* @export
|
|
30529
|
+
* @class PlansApi
|
|
30530
|
+
* @extends {BaseAPI}
|
|
30531
|
+
*/
|
|
30532
|
+
export class PlansApi extends BaseAPI {
|
|
30533
|
+
/**
|
|
30534
|
+
*
|
|
30535
|
+
* @summary Get all plans.
|
|
30536
|
+
* @param {string} [id]
|
|
30537
|
+
* @param {string} [name]
|
|
30538
|
+
* @param {number} [page]
|
|
30539
|
+
* @param {number} [limit]
|
|
30540
|
+
* @param {Date} [lastRetrieved]
|
|
30541
|
+
* @param {*} [options] Override http request option.
|
|
30542
|
+
* @throws {RequiredError}
|
|
30543
|
+
* @memberof PlansApi
|
|
30544
|
+
*/
|
|
30545
|
+
public apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
30546
|
+
return PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
30547
|
+
}
|
|
30548
|
+
|
|
30549
|
+
/**
|
|
30550
|
+
*
|
|
30551
|
+
* @summary Delete plan.
|
|
30552
|
+
* @param {string} planId
|
|
30553
|
+
* @param {*} [options] Override http request option.
|
|
30554
|
+
* @throws {RequiredError}
|
|
30555
|
+
* @memberof PlansApi
|
|
30556
|
+
*/
|
|
30557
|
+
public apiV1PlansPlanIdDelete(planId: string, options?: AxiosRequestConfig) {
|
|
30558
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then((request) => request(this.axios, this.basePath));
|
|
30559
|
+
}
|
|
30560
|
+
|
|
30561
|
+
/**
|
|
30562
|
+
*
|
|
30563
|
+
* @summary Get plan.
|
|
30564
|
+
* @param {string} planId
|
|
30565
|
+
* @param {*} [options] Override http request option.
|
|
30566
|
+
* @throws {RequiredError}
|
|
30567
|
+
* @memberof PlansApi
|
|
30568
|
+
*/
|
|
30569
|
+
public apiV1PlansPlanIdGet(planId: string, options?: AxiosRequestConfig) {
|
|
30570
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then((request) => request(this.axios, this.basePath));
|
|
30571
|
+
}
|
|
30572
|
+
|
|
30573
|
+
/**
|
|
30574
|
+
*
|
|
30575
|
+
* @summary Get all plan hospital.
|
|
30576
|
+
* @param {string} planId
|
|
30577
|
+
* @param {number} [page]
|
|
30578
|
+
* @param {number} [limit]
|
|
30579
|
+
* @param {Date} [lastRetrieved]
|
|
30580
|
+
* @param {*} [options] Override http request option.
|
|
30581
|
+
* @throws {RequiredError}
|
|
30582
|
+
* @memberof PlansApi
|
|
30583
|
+
*/
|
|
30584
|
+
public apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
30585
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
30586
|
+
}
|
|
30587
|
+
|
|
30588
|
+
/**
|
|
30589
|
+
*
|
|
30590
|
+
* @summary Delete plan hospital.
|
|
30591
|
+
* @param {string} planId
|
|
30592
|
+
* @param {string} hospitalId
|
|
30593
|
+
* @param {*} [options] Override http request option.
|
|
30594
|
+
* @throws {RequiredError}
|
|
30595
|
+
* @memberof PlansApi
|
|
30596
|
+
*/
|
|
30597
|
+
public apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: AxiosRequestConfig) {
|
|
30598
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
30599
|
+
}
|
|
30600
|
+
|
|
30601
|
+
/**
|
|
30602
|
+
*
|
|
30603
|
+
* @summary Get plan hospital.
|
|
30604
|
+
* @param {string} planId
|
|
30605
|
+
* @param {string} hospitalId
|
|
30606
|
+
* @param {*} [options] Override http request option.
|
|
30607
|
+
* @throws {RequiredError}
|
|
30608
|
+
* @memberof PlansApi
|
|
30609
|
+
*/
|
|
30610
|
+
public apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: AxiosRequestConfig) {
|
|
30611
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
30612
|
+
}
|
|
30613
|
+
|
|
30614
|
+
/**
|
|
30615
|
+
*
|
|
30616
|
+
* @summary Update plan hospital.
|
|
30617
|
+
* @param {string} planId
|
|
30618
|
+
* @param {string} hospitalId
|
|
30619
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
30620
|
+
* @param {*} [options] Override http request option.
|
|
30621
|
+
* @throws {RequiredError}
|
|
30622
|
+
* @memberof PlansApi
|
|
30623
|
+
*/
|
|
30624
|
+
public apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: AxiosRequestConfig) {
|
|
30625
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30626
|
+
}
|
|
30627
|
+
|
|
30628
|
+
/**
|
|
30629
|
+
*
|
|
30630
|
+
* @summary Create plan hospital.
|
|
30631
|
+
* @param {string} planId
|
|
30632
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
30633
|
+
* @param {*} [options] Override http request option.
|
|
30634
|
+
* @throws {RequiredError}
|
|
30635
|
+
* @memberof PlansApi
|
|
30636
|
+
*/
|
|
30637
|
+
public apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: AxiosRequestConfig) {
|
|
30638
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30639
|
+
}
|
|
30640
|
+
|
|
30641
|
+
/**
|
|
30642
|
+
*
|
|
30643
|
+
* @summary Update plan.
|
|
30644
|
+
* @param {string} planId
|
|
30645
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
30646
|
+
* @param {*} [options] Override http request option.
|
|
30647
|
+
* @throws {RequiredError}
|
|
30648
|
+
* @memberof PlansApi
|
|
30649
|
+
*/
|
|
30650
|
+
public apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: AxiosRequestConfig) {
|
|
30651
|
+
return PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30652
|
+
}
|
|
30653
|
+
|
|
30654
|
+
/**
|
|
30655
|
+
*
|
|
30656
|
+
* @summary Create a plan.
|
|
30657
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
30658
|
+
* @param {*} [options] Override http request option.
|
|
30659
|
+
* @throws {RequiredError}
|
|
30660
|
+
* @memberof PlansApi
|
|
30661
|
+
*/
|
|
30662
|
+
public apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: AxiosRequestConfig) {
|
|
30663
|
+
return PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30664
|
+
}
|
|
30665
|
+
}
|
|
30666
|
+
|
|
30667
|
+
|
|
29465
30668
|
/**
|
|
29466
30669
|
* ProfilesApi - axios parameter creator
|
|
29467
30670
|
* @export
|