ch-admin-api-client-typescript 2.2.10 → 2.2.18

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
@@ -890,6 +890,50 @@ export interface ArticleTagItemModel {
890
890
  */
891
891
  'order'?: number;
892
892
  }
893
+ /**
894
+ *
895
+ * @export
896
+ * @interface ArticleTagModel
897
+ */
898
+ export interface ArticleTagModel {
899
+ /**
900
+ *
901
+ * @type {string}
902
+ * @memberof ArticleTagModel
903
+ */
904
+ 'articleId'?: string;
905
+ /**
906
+ *
907
+ * @type {string}
908
+ * @memberof ArticleTagModel
909
+ */
910
+ 'tagId'?: string | null;
911
+ /**
912
+ *
913
+ * @type {number}
914
+ * @memberof ArticleTagModel
915
+ */
916
+ 'order'?: number;
917
+ }
918
+ /**
919
+ *
920
+ * @export
921
+ * @interface ArticleTagsModel
922
+ */
923
+ export interface ArticleTagsModel {
924
+ /**
925
+ *
926
+ * @type {Array<ArticleTagItemModel>}
927
+ * @memberof ArticleTagsModel
928
+ */
929
+ 'items'?: Array<ArticleTagItemModel> | null;
930
+ /**
931
+ *
932
+ * @type {PagedListMetaData}
933
+ * @memberof ArticleTagsModel
934
+ */
935
+ 'metaData'?: PagedListMetaData;
936
+ }
893
937
  /**
894
938
  *
895
939
  * @export
@@ -3348,6 +3392,25 @@ export interface CreateArticleSourceCommand {
3348
3392
  */
3349
3393
  'order'?: number;
3350
3394
  }
3395
+ /**
3396
+ *
3397
+ * @export
3398
+ * @interface CreateArticleTagCommand
3399
+ */
3400
+ export interface CreateArticleTagCommand {
3401
+ /**
3402
+ *
3403
+ * @type {string}
3404
+ * @memberof CreateArticleTagCommand
3405
+ */
3406
+ 'articleId'?: string;
3407
+ /**
3408
+ *
3409
+ * @type {string}
3410
+ * @memberof CreateArticleTagCommand
3411
+ */
3412
+ 'tagId'?: string | null;
3413
+ }
3351
3414
  /**
3352
3415
  *
3353
3416
  * @export
@@ -3639,6 +3702,18 @@ export interface CreateDoctorCertificateCommand {
3639
3702
  * @interface CreateDoctorCommand
3640
3703
  */
3641
3704
  export interface CreateDoctorCommand {
3705
+ /**
3706
+ *
3707
+ * @type {string}
3708
+ * @memberof CreateDoctorCommand
3709
+ */
3710
+ 'userName'?: string | null;
3711
+ /**
3712
+ *
3713
+ * @type {string}
3714
+ * @memberof CreateDoctorCommand
3715
+ */
3716
+ 'email'?: string | null;
3642
3717
  /**
3643
3718
  *
3644
3719
  * @type {string}
@@ -3681,36 +3756,6 @@ export interface CreateDoctorCommand {
3681
3756
  * @memberof CreateDoctorCommand
3682
3757
  */
3683
3758
  'dateOfBirth'?: Date | null;
3684
- /**
3685
- *
3686
- * @type {Array<MediaModel>}
3687
- * @memberof CreateDoctorCommand
3688
- */
3689
- 'medias'?: Array<MediaModel> | null;
3690
- /**
3691
- *
3692
- * @type {Array<UserLanguageModel>}
3693
- * @memberof CreateDoctorCommand
3694
- */
3695
- 'languages'?: Array<UserLanguageModel> | null;
3696
- /**
3697
- *
3698
- * @type {Array<UserLocationModel>}
3699
- * @memberof CreateDoctorCommand
3700
- */
3701
- 'locations'?: Array<UserLocationModel> | null;
3702
- /**
3703
- *
3704
- * @type {string}
3705
- * @memberof CreateDoctorCommand
3706
- */
3707
- 'userName'?: string | null;
3708
- /**
3709
- *
3710
- * @type {string}
3711
- * @memberof CreateDoctorCommand
3712
- */
3713
- 'email'?: string | null;
3714
3759
  /**
3715
3760
  *
3716
3761
  * @type {string}
@@ -3729,36 +3774,6 @@ export interface CreateDoctorCommand {
3729
3774
  * @memberof CreateDoctorCommand
3730
3775
  */
3731
3776
  'consultationFee'?: number | null;
3732
- /**
3733
- *
3734
- * @type {Array<DoctorEducationModel>}
3735
- * @memberof CreateDoctorCommand
3736
- */
3737
- 'educations'?: Array<DoctorEducationModel> | null;
3738
- /**
3739
- *
3740
- * @type {Array<DoctorPortfolioModel>}
3741
- * @memberof CreateDoctorCommand
3742
- */
3743
- 'portfolios'?: Array<DoctorPortfolioModel> | null;
3744
- /**
3745
- *
3746
- * @type {Array<DoctorSpecialtyModel>}
3747
- * @memberof CreateDoctorCommand
3748
- */
3749
- 'specialties'?: Array<DoctorSpecialtyModel> | null;
3750
- /**
3751
- *
3752
- * @type {Array<DoctorCertificateModel>}
3753
- * @memberof CreateDoctorCommand
3754
- */
3755
- 'certificates'?: Array<DoctorCertificateModel> | null;
3756
- /**
3757
- *
3758
- * @type {Array<AwardModel>}
3759
- * @memberof CreateDoctorCommand
3760
- */
3761
- 'awards'?: Array<AwardModel> | null;
3762
3777
  }
3763
3778
  /**
3764
3779
  *
@@ -3913,13 +3928,13 @@ export interface CreateHospitalCommand {
3913
3928
  * @type {number}
3914
3929
  * @memberof CreateHospitalCommand
3915
3930
  */
3916
- 'departmentsCount'?: number | null;
3931
+ 'medicalStaffCount'?: number | null;
3917
3932
  /**
3918
3933
  *
3919
3934
  * @type {number}
3920
3935
  * @memberof CreateHospitalCommand
3921
3936
  */
3922
- 'medicalStaffCount'?: number | null;
3937
+ 'doctorCount'?: number | null;
3923
3938
  /**
3924
3939
  *
3925
3940
  * @type {string}
@@ -4233,6 +4248,74 @@ export interface CreateMediaCommand {
4233
4248
  */
4234
4249
  'order'?: number;
4235
4250
  }
4251
+ /**
4252
+ *
4253
+ * @export
4254
+ * @interface CreatePlanCommand
4255
+ */
4256
+ export interface CreatePlanCommand {
4257
+ /**
4258
+ *
4259
+ * @type {string}
4260
+ * @memberof CreatePlanCommand
4261
+ */
4262
+ 'name'?: string | null;
4263
+ /**
4264
+ *
4265
+ * @type {number}
4266
+ * @memberof CreatePlanCommand
4267
+ */
4268
+ 'memberLimit'?: number;
4269
+ /**
4270
+ *
4271
+ * @type {number}
4272
+ * @memberof CreatePlanCommand
4273
+ */
4274
+ 'unitPrice'?: number;
4275
+ /**
4276
+ *
4277
+ * @type {string}
4278
+ * @memberof CreatePlanCommand
4279
+ */
4280
+ 'stripePriceId'?: string | null;
4281
+ /**
4282
+ *
4283
+ * @type {RecurringInterval}
4284
+ * @memberof CreatePlanCommand
4285
+ */
4286
+ 'interval'?: RecurringInterval;
4287
+ /**
4288
+ *
4289
+ * @type {boolean}
4290
+ * @memberof CreatePlanCommand
4291
+ */
4292
+ 'isActive'?: boolean;
4293
+ /**
4294
+ *
4295
+ * @type {number}
4296
+ * @memberof CreatePlanCommand
4297
+ */
4298
+ 'order'?: number;
4299
+ }
4300
+ /**
4301
+ *
4302
+ * @export
4303
+ * @interface CreatePlanHospitalCommand
4304
+ */
4305
+ export interface CreatePlanHospitalCommand {
4306
+ /**
4307
+ *
4308
+ * @type {string}
4309
+ * @memberof CreatePlanHospitalCommand
4310
+ */
4311
+ 'hospitalId'?: string;
4312
+ /**
4313
+ *
4314
+ * @type {number}
4315
+ * @memberof CreatePlanHospitalCommand
4316
+ */
4317
+ 'order'?: number;
4318
+ }
4236
4319
  /**
4237
4320
  *
4238
4321
  * @export
@@ -4253,10 +4336,10 @@ export interface CreateServiceCategoryCommand {
4253
4336
  'description'?: string | null;
4254
4337
  /**
4255
4338
  *
4256
- * @type {Array<string>}
4339
+ * @type {number}
4257
4340
  * @memberof CreateServiceCategoryCommand
4258
4341
  */
4259
- 'services'?: Array<string> | null;
4342
+ 'order'?: number;
4260
4343
  }
4261
4344
  /**
4262
4345
  *
@@ -5048,6 +5131,19 @@ export interface DealsModel {
5048
5131
  */
5049
5132
  'metaData'?: PagedListMetaData;
5050
5133
  }
5134
+ /**
5135
+ *
5136
+ * @export
5137
+ * @interface DeleteArticleTagCommand
5138
+ */
5139
+ export interface DeleteArticleTagCommand {
5140
+ /**
5141
+ *
5142
+ * @type {string}
5143
+ * @memberof DeleteArticleTagCommand
5144
+ */
5145
+ 'tagId'?: string | null;
5146
+ }
5051
5147
  /**
5052
5148
  *
5053
5149
  * @export
@@ -9198,6 +9294,74 @@ export interface MediasModel {
9198
9294
  */
9199
9295
  'metaData'?: PagedListMetaData;
9200
9296
  }
9297
+ /**
9298
+ *
9299
+ * @export
9300
+ * @interface MemberModel
9301
+ */
9302
+ export interface MemberModel {
9303
+ /**
9304
+ *
9305
+ * @type {string}
9306
+ * @memberof MemberModel
9307
+ */
9308
+ 'id'?: string;
9309
+ /**
9310
+ *
9311
+ * @type {string}
9312
+ * @memberof MemberModel
9313
+ */
9314
+ 'email'?: string | null;
9315
+ /**
9316
+ *
9317
+ * @type {string}
9318
+ * @memberof MemberModel
9319
+ */
9320
+ 'firstName'?: string | null;
9321
+ /**
9322
+ *
9323
+ * @type {string}
9324
+ * @memberof MemberModel
9325
+ */
9326
+ 'lastName'?: string | null;
9327
+ /**
9328
+ *
9329
+ * @type {string}
9330
+ * @memberof MemberModel
9331
+ */
9332
+ 'fullName'?: string | null;
9333
+ /**
9334
+ *
9335
+ * @type {Gender}
9336
+ * @memberof MemberModel
9337
+ */
9338
+ 'gender'?: Gender;
9339
+ /**
9340
+ *
9341
+ * @type {Date}
9342
+ * @memberof MemberModel
9343
+ */
9344
+ 'dateOfBirth'?: Date | null;
9345
+ }
9346
+ /**
9347
+ *
9348
+ * @export
9349
+ * @interface MembersModel
9350
+ */
9351
+ export interface MembersModel {
9352
+ /**
9353
+ *
9354
+ * @type {Array<MemberModel>}
9355
+ * @memberof MembersModel
9356
+ */
9357
+ 'items'?: Array<MemberModel> | null;
9358
+ /**
9359
+ *
9360
+ * @type {PagedListMetaData}
9361
+ * @memberof MembersModel
9362
+ */
9363
+ 'metaData'?: PagedListMetaData;
9364
+ }
9201
9365
  /**
9202
9366
  *
9203
9367
  * @export
@@ -9305,25 +9469,154 @@ export interface MembershipInvitation {
9305
9469
  /**
9306
9470
  *
9307
9471
  * @export
9308
- * @enum {string}
9472
+ * @interface MembershipItemModel
9309
9473
  */
9310
-
9311
- export enum NotificationCode {
9312
- WelcomeEmail = 'WelcomeEmail',
9313
- DirectMessageSent = 'DirectMessageSent',
9314
- BookingNew = 'BookingNew',
9315
- BookingUpdated = 'BookingUpdated',
9316
- BookingRejected = 'BookingRejected',
9317
- BookingApproved = 'BookingApproved',
9318
- BookingPaid = 'BookingPaid',
9319
- BookingCanceled = 'BookingCanceled',
9320
- BookingRefundRequested = 'BookingRefundRequested',
9321
- BookingRefunded = 'BookingRefunded',
9322
- ConsultationNew = 'ConsultationNew',
9323
- ConsultationUpdated = 'ConsultationUpdated',
9324
- ConsultationRejected = 'ConsultationRejected',
9325
- ConsultationApproved = 'ConsultationApproved',
9326
- ConsultationPaid = 'ConsultationPaid',
9474
+ export interface MembershipItemModel {
9475
+ /**
9476
+ *
9477
+ * @type {string}
9478
+ * @memberof MembershipItemModel
9479
+ */
9480
+ 'id'?: string;
9481
+ /**
9482
+ *
9483
+ * @type {string}
9484
+ * @memberof MembershipItemModel
9485
+ */
9486
+ 'planId'?: string;
9487
+ /**
9488
+ *
9489
+ * @type {string}
9490
+ * @memberof MembershipItemModel
9491
+ */
9492
+ 'planName'?: string | null;
9493
+ /**
9494
+ *
9495
+ * @type {string}
9496
+ * @memberof MembershipItemModel
9497
+ */
9498
+ 'patientId'?: string;
9499
+ /**
9500
+ *
9501
+ * @type {string}
9502
+ * @memberof MembershipItemModel
9503
+ */
9504
+ 'patientName'?: string | null;
9505
+ /**
9506
+ *
9507
+ * @type {number}
9508
+ * @memberof MembershipItemModel
9509
+ */
9510
+ 'memberCount'?: number;
9511
+ /**
9512
+ *
9513
+ * @type {boolean}
9514
+ * @memberof MembershipItemModel
9515
+ */
9516
+ 'isActive'?: boolean;
9517
+ /**
9518
+ *
9519
+ * @type {SubscriptionModel}
9520
+ * @memberof MembershipItemModel
9521
+ */
9522
+ 'subscription'?: SubscriptionModel;
9523
+ }
9524
+ /**
9525
+ *
9526
+ * @export
9527
+ * @interface MembershipModel
9528
+ */
9529
+ export interface MembershipModel {
9530
+ /**
9531
+ *
9532
+ * @type {string}
9533
+ * @memberof MembershipModel
9534
+ */
9535
+ 'id'?: string;
9536
+ /**
9537
+ *
9538
+ * @type {string}
9539
+ * @memberof MembershipModel
9540
+ */
9541
+ 'planId'?: string;
9542
+ /**
9543
+ *
9544
+ * @type {string}
9545
+ * @memberof MembershipModel
9546
+ */
9547
+ 'planName'?: string | null;
9548
+ /**
9549
+ *
9550
+ * @type {string}
9551
+ * @memberof MembershipModel
9552
+ */
9553
+ 'patientId'?: string;
9554
+ /**
9555
+ *
9556
+ * @type {string}
9557
+ * @memberof MembershipModel
9558
+ */
9559
+ 'patientName'?: string | null;
9560
+ /**
9561
+ *
9562
+ * @type {number}
9563
+ * @memberof MembershipModel
9564
+ */
9565
+ 'memberCount'?: number;
9566
+ /**
9567
+ *
9568
+ * @type {boolean}
9569
+ * @memberof MembershipModel
9570
+ */
9571
+ 'isActive'?: boolean;
9572
+ /**
9573
+ *
9574
+ * @type {SubscriptionModel}
9575
+ * @memberof MembershipModel
9576
+ */
9577
+ 'subscription'?: SubscriptionModel;
9578
+ }
9579
+ /**
9580
+ *
9581
+ * @export
9582
+ * @interface MembershipsModel
9583
+ */
9584
+ export interface MembershipsModel {
9585
+ /**
9586
+ *
9587
+ * @type {Array<MembershipItemModel>}
9588
+ * @memberof MembershipsModel
9589
+ */
9590
+ 'items'?: Array<MembershipItemModel> | null;
9591
+ /**
9592
+ *
9593
+ * @type {PagedListMetaData}
9594
+ * @memberof MembershipsModel
9595
+ */
9596
+ 'metaData'?: PagedListMetaData;
9597
+ }
9598
+ /**
9599
+ *
9600
+ * @export
9601
+ * @enum {string}
9602
+ */
9603
+
9604
+ export enum NotificationCode {
9605
+ WelcomeEmail = 'WelcomeEmail',
9606
+ DirectMessageSent = 'DirectMessageSent',
9607
+ BookingNew = 'BookingNew',
9608
+ BookingUpdated = 'BookingUpdated',
9609
+ BookingRejected = 'BookingRejected',
9610
+ BookingApproved = 'BookingApproved',
9611
+ BookingPaid = 'BookingPaid',
9612
+ BookingCanceled = 'BookingCanceled',
9613
+ BookingRefundRequested = 'BookingRefundRequested',
9614
+ BookingRefunded = 'BookingRefunded',
9615
+ ConsultationNew = 'ConsultationNew',
9616
+ ConsultationUpdated = 'ConsultationUpdated',
9617
+ ConsultationRejected = 'ConsultationRejected',
9618
+ ConsultationApproved = 'ConsultationApproved',
9619
+ ConsultationPaid = 'ConsultationPaid',
9327
9620
  ConsultationCanceled = 'ConsultationCanceled',
9328
9621
  ConsultationRefundRequested = 'ConsultationRefundRequested',
9329
9622
  ConsultationRefunded = 'ConsultationRefunded',
@@ -9904,202 +10197,424 @@ export interface Plan {
9904
10197
  /**
9905
10198
  *
9906
10199
  * @export
9907
- * @enum {string}
9908
- */
9909
-
9910
- export enum Platform {
9911
- Web = 'Web',
9912
- IOs = 'iOS',
9913
- Android = 'Android'
9914
- }
9915
-
9916
- /**
9917
- *
9918
- * @export
9919
- * @interface ProblemDetails
10200
+ * @interface PlanHospitalItemModel
9920
10201
  */
9921
- export interface ProblemDetails {
9922
- [key: string]: any | any;
9923
-
10202
+ export interface PlanHospitalItemModel {
9924
10203
  /**
9925
10204
  *
9926
10205
  * @type {string}
9927
- * @memberof ProblemDetails
10206
+ * @memberof PlanHospitalItemModel
9928
10207
  */
9929
- 'type'?: string | null;
10208
+ 'planId'?: string;
9930
10209
  /**
9931
10210
  *
9932
10211
  * @type {string}
9933
- * @memberof ProblemDetails
10212
+ * @memberof PlanHospitalItemModel
9934
10213
  */
9935
- 'title'?: string | null;
10214
+ 'planName'?: string | null;
9936
10215
  /**
9937
10216
  *
9938
- * @type {number}
9939
- * @memberof ProblemDetails
10217
+ * @type {string}
10218
+ * @memberof PlanHospitalItemModel
9940
10219
  */
9941
- 'status'?: number | null;
10220
+ 'hospitalId'?: string;
9942
10221
  /**
9943
10222
  *
9944
10223
  * @type {string}
9945
- * @memberof ProblemDetails
10224
+ * @memberof PlanHospitalItemModel
9946
10225
  */
9947
- 'detail'?: string | null;
10226
+ 'hospitalName'?: string | null;
9948
10227
  /**
9949
10228
  *
9950
- * @type {string}
9951
- * @memberof ProblemDetails
10229
+ * @type {number}
10230
+ * @memberof PlanHospitalItemModel
9952
10231
  */
9953
- 'instance'?: string | null;
9954
- }
9955
- /**
9956
- *
9957
- * @export
9958
- * @enum {string}
9959
- */
9960
-
9961
- export enum Procedure {
9962
- Treatment = 'Treatment',
9963
- Diagnostic = 'Diagnostic'
10232
+ 'order'?: number;
9964
10233
  }
9965
-
9966
10234
  /**
9967
10235
  *
9968
10236
  * @export
9969
- * @interface Question
10237
+ * @interface PlanHospitalModel
9970
10238
  */
9971
- export interface Question {
10239
+ export interface PlanHospitalModel {
9972
10240
  /**
9973
10241
  *
9974
10242
  * @type {string}
9975
- * @memberof Question
10243
+ * @memberof PlanHospitalModel
9976
10244
  */
9977
- 'id'?: string;
10245
+ 'planId'?: string;
9978
10246
  /**
9979
10247
  *
9980
10248
  * @type {string}
9981
- * @memberof Question
10249
+ * @memberof PlanHospitalModel
9982
10250
  */
9983
- 'title'?: string | null;
10251
+ 'planName'?: string | null;
9984
10252
  /**
9985
10253
  *
9986
10254
  * @type {string}
9987
- * @memberof Question
10255
+ * @memberof PlanHospitalModel
9988
10256
  */
9989
- 'normalizedTitle'?: string | null;
10257
+ 'hospitalId'?: string;
9990
10258
  /**
9991
10259
  *
9992
10260
  * @type {string}
9993
- * @memberof Question
9994
- */
9995
- 'body'?: string | null;
9996
- /**
9997
- *
9998
- * @type {QuestionType}
9999
- * @memberof Question
10261
+ * @memberof PlanHospitalModel
10000
10262
  */
10001
- 'questionType'?: QuestionType;
10263
+ 'hospitalName'?: string | null;
10002
10264
  /**
10003
10265
  *
10004
- * @type {QuestionStatus}
10005
- * @memberof Question
10266
+ * @type {number}
10267
+ * @memberof PlanHospitalModel
10006
10268
  */
10007
- 'questionStatus'?: QuestionStatus;
10269
+ 'order'?: number;
10270
+ }
10271
+ /**
10272
+ *
10273
+ * @export
10274
+ * @interface PlanHospitalsModel
10275
+ */
10276
+ export interface PlanHospitalsModel {
10008
10277
  /**
10009
10278
  *
10010
- * @type {string}
10011
- * @memberof Question
10279
+ * @type {Array<PlanHospitalItemModel>}
10280
+ * @memberof PlanHospitalsModel
10012
10281
  */
10013
- 'patientId'?: string;
10282
+ 'items'?: Array<PlanHospitalItemModel> | null;
10014
10283
  /**
10015
10284
  *
10016
- * @type {Patient}
10017
- * @memberof Question
10285
+ * @type {PagedListMetaData}
10286
+ * @memberof PlanHospitalsModel
10018
10287
  */
10019
- 'patient'?: Patient;
10288
+ 'metaData'?: PagedListMetaData;
10289
+ }
10290
+ /**
10291
+ *
10292
+ * @export
10293
+ * @interface PlanItemModel
10294
+ */
10295
+ export interface PlanItemModel {
10020
10296
  /**
10021
10297
  *
10022
10298
  * @type {string}
10023
- * @memberof Question
10299
+ * @memberof PlanItemModel
10024
10300
  */
10025
- 'hospitalId'?: string;
10301
+ 'id'?: string;
10026
10302
  /**
10027
10303
  *
10028
- * @type {Hospital}
10029
- * @memberof Question
10304
+ * @type {string}
10305
+ * @memberof PlanItemModel
10030
10306
  */
10031
- 'hospital'?: Hospital;
10307
+ 'name'?: string | null;
10032
10308
  /**
10033
10309
  *
10034
- * @type {string}
10035
- * @memberof Question
10310
+ * @type {number}
10311
+ * @memberof PlanItemModel
10036
10312
  */
10037
- 'dealPackageId'?: string | null;
10313
+ 'memberLimit'?: number;
10038
10314
  /**
10039
10315
  *
10040
- * @type {DealPackage}
10041
- * @memberof Question
10316
+ * @type {number}
10317
+ * @memberof PlanItemModel
10042
10318
  */
10043
- 'dealPackage'?: DealPackage;
10319
+ 'unitPrice'?: number;
10044
10320
  /**
10045
10321
  *
10046
- * @type {number}
10047
- * @memberof Question
10322
+ * @type {string}
10323
+ * @memberof PlanItemModel
10048
10324
  */
10049
- 'quantity'?: number | null;
10325
+ 'stripePriceId'?: string | null;
10050
10326
  /**
10051
10327
  *
10052
- * @type {Array<QuestionComment>}
10053
- * @memberof Question
10328
+ * @type {RecurringInterval}
10329
+ * @memberof PlanItemModel
10054
10330
  */
10055
- 'questionComments'?: Array<QuestionComment> | null;
10331
+ 'interval'?: RecurringInterval;
10056
10332
  /**
10057
10333
  *
10058
- * @type {Array<Media>}
10059
- * @memberof Question
10334
+ * @type {boolean}
10335
+ * @memberof PlanItemModel
10060
10336
  */
10061
- 'medias'?: Array<Media> | null;
10337
+ 'isActive'?: boolean;
10062
10338
  /**
10063
10339
  *
10064
- * @type {AuditableEntity}
10065
- * @memberof Question
10340
+ * @type {number}
10341
+ * @memberof PlanItemModel
10066
10342
  */
10067
- 'auditableEntity'?: AuditableEntity;
10343
+ 'order'?: number;
10068
10344
  }
10069
10345
  /**
10070
10346
  *
10071
10347
  * @export
10072
- * @interface QuestionComment
10348
+ * @interface PlanModel
10073
10349
  */
10074
- export interface QuestionComment {
10350
+ export interface PlanModel {
10075
10351
  /**
10076
10352
  *
10077
10353
  * @type {string}
10078
- * @memberof QuestionComment
10354
+ * @memberof PlanModel
10079
10355
  */
10080
10356
  'id'?: string;
10081
10357
  /**
10082
10358
  *
10083
10359
  * @type {string}
10084
- * @memberof QuestionComment
10360
+ * @memberof PlanModel
10085
10361
  */
10086
- 'userId'?: string;
10362
+ 'name'?: string | null;
10087
10363
  /**
10088
10364
  *
10089
- * @type {User}
10090
- * @memberof QuestionComment
10365
+ * @type {number}
10366
+ * @memberof PlanModel
10091
10367
  */
10092
- 'user'?: User;
10368
+ 'memberLimit'?: number;
10093
10369
  /**
10094
10370
  *
10095
- * @type {string}
10096
- * @memberof QuestionComment
10371
+ * @type {number}
10372
+ * @memberof PlanModel
10097
10373
  */
10098
- 'questionId'?: string;
10374
+ 'unitPrice'?: number;
10099
10375
  /**
10100
10376
  *
10101
- * @type {Question}
10102
- * @memberof QuestionComment
10377
+ * @type {string}
10378
+ * @memberof PlanModel
10379
+ */
10380
+ 'stripePriceId'?: string | null;
10381
+ /**
10382
+ *
10383
+ * @type {RecurringInterval}
10384
+ * @memberof PlanModel
10385
+ */
10386
+ 'interval'?: RecurringInterval;
10387
+ /**
10388
+ *
10389
+ * @type {boolean}
10390
+ * @memberof PlanModel
10391
+ */
10392
+ 'isActive'?: boolean;
10393
+ /**
10394
+ *
10395
+ * @type {number}
10396
+ * @memberof PlanModel
10397
+ */
10398
+ 'order'?: number;
10399
+ }
10400
+ /**
10401
+ *
10402
+ * @export
10403
+ * @interface PlansModel
10404
+ */
10405
+ export interface PlansModel {
10406
+ /**
10407
+ *
10408
+ * @type {Array<PlanItemModel>}
10409
+ * @memberof PlansModel
10410
+ */
10411
+ 'items'?: Array<PlanItemModel> | null;
10412
+ /**
10413
+ *
10414
+ * @type {PagedListMetaData}
10415
+ * @memberof PlansModel
10416
+ */
10417
+ 'metaData'?: PagedListMetaData;
10418
+ }
10419
+ /**
10420
+ *
10421
+ * @export
10422
+ * @enum {string}
10423
+ */
10424
+
10425
+ export enum Platform {
10426
+ Web = 'Web',
10427
+ IOs = 'iOS',
10428
+ Android = 'Android'
10429
+ }
10430
+
10431
+ /**
10432
+ *
10433
+ * @export
10434
+ * @interface ProblemDetails
10435
+ */
10436
+ export interface ProblemDetails {
10437
+ [key: string]: any | any;
10438
+
10439
+ /**
10440
+ *
10441
+ * @type {string}
10442
+ * @memberof ProblemDetails
10443
+ */
10444
+ 'type'?: string | null;
10445
+ /**
10446
+ *
10447
+ * @type {string}
10448
+ * @memberof ProblemDetails
10449
+ */
10450
+ 'title'?: string | null;
10451
+ /**
10452
+ *
10453
+ * @type {number}
10454
+ * @memberof ProblemDetails
10455
+ */
10456
+ 'status'?: number | null;
10457
+ /**
10458
+ *
10459
+ * @type {string}
10460
+ * @memberof ProblemDetails
10461
+ */
10462
+ 'detail'?: string | null;
10463
+ /**
10464
+ *
10465
+ * @type {string}
10466
+ * @memberof ProblemDetails
10467
+ */
10468
+ 'instance'?: string | null;
10469
+ }
10470
+ /**
10471
+ *
10472
+ * @export
10473
+ * @enum {string}
10474
+ */
10475
+
10476
+ export enum Procedure {
10477
+ Treatment = 'Treatment',
10478
+ Diagnostic = 'Diagnostic'
10479
+ }
10480
+
10481
+ /**
10482
+ *
10483
+ * @export
10484
+ * @interface Question
10485
+ */
10486
+ export interface Question {
10487
+ /**
10488
+ *
10489
+ * @type {string}
10490
+ * @memberof Question
10491
+ */
10492
+ 'id'?: string;
10493
+ /**
10494
+ *
10495
+ * @type {string}
10496
+ * @memberof Question
10497
+ */
10498
+ 'title'?: string | null;
10499
+ /**
10500
+ *
10501
+ * @type {string}
10502
+ * @memberof Question
10503
+ */
10504
+ 'normalizedTitle'?: string | null;
10505
+ /**
10506
+ *
10507
+ * @type {string}
10508
+ * @memberof Question
10509
+ */
10510
+ 'body'?: string | null;
10511
+ /**
10512
+ *
10513
+ * @type {QuestionType}
10514
+ * @memberof Question
10515
+ */
10516
+ 'questionType'?: QuestionType;
10517
+ /**
10518
+ *
10519
+ * @type {QuestionStatus}
10520
+ * @memberof Question
10521
+ */
10522
+ 'questionStatus'?: QuestionStatus;
10523
+ /**
10524
+ *
10525
+ * @type {string}
10526
+ * @memberof Question
10527
+ */
10528
+ 'patientId'?: string;
10529
+ /**
10530
+ *
10531
+ * @type {Patient}
10532
+ * @memberof Question
10533
+ */
10534
+ 'patient'?: Patient;
10535
+ /**
10536
+ *
10537
+ * @type {string}
10538
+ * @memberof Question
10539
+ */
10540
+ 'hospitalId'?: string;
10541
+ /**
10542
+ *
10543
+ * @type {Hospital}
10544
+ * @memberof Question
10545
+ */
10546
+ 'hospital'?: Hospital;
10547
+ /**
10548
+ *
10549
+ * @type {string}
10550
+ * @memberof Question
10551
+ */
10552
+ 'dealPackageId'?: string | null;
10553
+ /**
10554
+ *
10555
+ * @type {DealPackage}
10556
+ * @memberof Question
10557
+ */
10558
+ 'dealPackage'?: DealPackage;
10559
+ /**
10560
+ *
10561
+ * @type {number}
10562
+ * @memberof Question
10563
+ */
10564
+ 'quantity'?: number | null;
10565
+ /**
10566
+ *
10567
+ * @type {Array<QuestionComment>}
10568
+ * @memberof Question
10569
+ */
10570
+ 'questionComments'?: Array<QuestionComment> | null;
10571
+ /**
10572
+ *
10573
+ * @type {Array<Media>}
10574
+ * @memberof Question
10575
+ */
10576
+ 'medias'?: Array<Media> | null;
10577
+ /**
10578
+ *
10579
+ * @type {AuditableEntity}
10580
+ * @memberof Question
10581
+ */
10582
+ 'auditableEntity'?: AuditableEntity;
10583
+ }
10584
+ /**
10585
+ *
10586
+ * @export
10587
+ * @interface QuestionComment
10588
+ */
10589
+ export interface QuestionComment {
10590
+ /**
10591
+ *
10592
+ * @type {string}
10593
+ * @memberof QuestionComment
10594
+ */
10595
+ 'id'?: string;
10596
+ /**
10597
+ *
10598
+ * @type {string}
10599
+ * @memberof QuestionComment
10600
+ */
10601
+ 'userId'?: string;
10602
+ /**
10603
+ *
10604
+ * @type {User}
10605
+ * @memberof QuestionComment
10606
+ */
10607
+ 'user'?: User;
10608
+ /**
10609
+ *
10610
+ * @type {string}
10611
+ * @memberof QuestionComment
10612
+ */
10613
+ 'questionId'?: string;
10614
+ /**
10615
+ *
10616
+ * @type {Question}
10617
+ * @memberof QuestionComment
10103
10618
  */
10104
10619
  'question'?: Question;
10105
10620
  /**
@@ -11130,6 +11645,31 @@ export interface SpecialtyTypesModel {
11130
11645
  */
11131
11646
  'metaData'?: PagedListMetaData;
11132
11647
  }
11648
+ /**
11649
+ *
11650
+ * @export
11651
+ * @interface SubscriptionModel
11652
+ */
11653
+ export interface SubscriptionModel {
11654
+ /**
11655
+ *
11656
+ * @type {Date}
11657
+ * @memberof SubscriptionModel
11658
+ */
11659
+ 'startDate'?: Date | null;
11660
+ /**
11661
+ *
11662
+ * @type {Date}
11663
+ * @memberof SubscriptionModel
11664
+ */
11665
+ 'endDate'?: Date | null;
11666
+ /**
11667
+ *
11668
+ * @type {string}
11669
+ * @memberof SubscriptionModel
11670
+ */
11671
+ 'status'?: string | null;
11672
+ }
11133
11673
  /**
11134
11674
  *
11135
11675
  * @export
@@ -11587,6 +12127,12 @@ export interface UpdateDealCommand {
11587
12127
  * @memberof UpdateDealCommand
11588
12128
  */
11589
12129
  'name'?: string | null;
12130
+ /**
12131
+ *
12132
+ * @type {string}
12133
+ * @memberof UpdateDealCommand
12134
+ */
12135
+ 'slug'?: string | null;
11590
12136
  /**
11591
12137
  *
11592
12138
  * @type {string}
@@ -11906,13 +12452,7 @@ export interface UpdateHospitalCommand {
11906
12452
  * @type {string}
11907
12453
  * @memberof UpdateHospitalCommand
11908
12454
  */
11909
- 'id'?: string;
11910
- /**
11911
- *
11912
- * @type {string}
11913
- * @memberof UpdateHospitalCommand
11914
- */
11915
- 'name'?: string | null;
12455
+ 'name'?: string | null;
11916
12456
  /**
11917
12457
  *
11918
12458
  * @type {string}
@@ -11972,7 +12512,7 @@ export interface UpdateHospitalCommand {
11972
12512
  * @type {string}
11973
12513
  * @memberof UpdateHospitalCommand
11974
12514
  */
11975
- 'countryName'?: string | null;
12515
+ 'countryId'?: string;
11976
12516
  /**
11977
12517
  *
11978
12518
  * @type {MarketingType}
@@ -11997,108 +12537,12 @@ export interface UpdateHospitalCommand {
11997
12537
  * @memberof UpdateHospitalCommand
11998
12538
  */
11999
12539
  'timeZone'?: string | null;
12000
- /**
12001
- *
12002
- * @type {number}
12003
- * @memberof UpdateHospitalCommand
12004
- */
12005
- 'articlesCount'?: number;
12006
- /**
12007
- *
12008
- * @type {number}
12009
- * @memberof UpdateHospitalCommand
12010
- */
12011
- 'packagesCount'?: number;
12012
- /**
12013
- *
12014
- * @type {number}
12015
- * @memberof UpdateHospitalCommand
12016
- */
12017
- 'equipmentsCount'?: number;
12018
- /**
12019
- *
12020
- * @type {number}
12021
- * @memberof UpdateHospitalCommand
12022
- */
12023
- 'reviewsCount'?: number;
12024
- /**
12025
- *
12026
- * @type {number}
12027
- * @memberof UpdateHospitalCommand
12028
- */
12029
- 'departmentsCount'?: number;
12030
- /**
12031
- *
12032
- * @type {number}
12033
- * @memberof UpdateHospitalCommand
12034
- */
12035
- 'specialtiesCount'?: number;
12036
- /**
12037
- *
12038
- * @type {number}
12039
- * @memberof UpdateHospitalCommand
12040
- */
12041
- 'accreditationsCount'?: number;
12042
- /**
12043
- *
12044
- * @type {number}
12045
- * @memberof UpdateHospitalCommand
12046
- */
12047
- 'doctorAffiliationsCount'?: number;
12048
- /**
12049
- *
12050
- * @type {number}
12051
- * @memberof UpdateHospitalCommand
12052
- */
12053
- 'managerAffiliationsCount'?: number;
12054
- /**
12055
- *
12056
- * @type {string}
12057
- * @memberof UpdateHospitalCommand
12058
- */
12059
- 'specialtiesSummerized'?: string | null;
12060
- /**
12061
- *
12062
- * @type {Array<AwardModel>}
12063
- * @memberof UpdateHospitalCommand
12064
- */
12065
- 'awards'?: Array<AwardModel> | null;
12066
- /**
12067
- *
12068
- * @type {Array<MediaModel>}
12069
- * @memberof UpdateHospitalCommand
12070
- */
12071
- 'medias'?: Array<MediaModel> | null;
12072
- /**
12073
- *
12074
- * @type {Array<AccreditationModel>}
12075
- * @memberof UpdateHospitalCommand
12076
- */
12077
- 'accreditations'?: Array<AccreditationModel> | null;
12078
- /**
12079
- *
12080
- * @type {Array<HospitalEvaluationModel>}
12081
- * @memberof UpdateHospitalCommand
12082
- */
12083
- 'evaluations'?: Array<HospitalEvaluationModel> | null;
12084
12540
  /**
12085
12541
  *
12086
12542
  * @type {LocationModel}
12087
12543
  * @memberof UpdateHospitalCommand
12088
12544
  */
12089
12545
  'location'?: LocationModel;
12090
- /**
12091
- *
12092
- * @type {AuditableEntity}
12093
- * @memberof UpdateHospitalCommand
12094
- */
12095
- 'auditableEntity'?: AuditableEntity;
12096
- /**
12097
- *
12098
- * @type {boolean}
12099
- * @memberof UpdateHospitalCommand
12100
- */
12101
- 'confirmed'?: boolean;
12102
12546
  }
12103
12547
  /**
12104
12548
  *
@@ -12318,57 +12762,89 @@ export interface UpdateMediaCommand {
12318
12762
  /**
12319
12763
  *
12320
12764
  * @export
12321
- * @interface UpdateServiceCategoryCommand
12765
+ * @interface UpdatePlanCommand
12322
12766
  */
12323
- export interface UpdateServiceCategoryCommand {
12767
+ export interface UpdatePlanCommand {
12324
12768
  /**
12325
12769
  *
12326
12770
  * @type {string}
12327
- * @memberof UpdateServiceCategoryCommand
12771
+ * @memberof UpdatePlanCommand
12328
12772
  */
12329
- 'id'?: string;
12773
+ 'name'?: string | null;
12330
12774
  /**
12331
12775
  *
12332
- * @type {string}
12333
- * @memberof UpdateServiceCategoryCommand
12776
+ * @type {number}
12777
+ * @memberof UpdatePlanCommand
12334
12778
  */
12335
- 'name'?: string | null;
12779
+ 'memberLimit'?: number;
12336
12780
  /**
12337
12781
  *
12338
- * @type {string}
12339
- * @memberof UpdateServiceCategoryCommand
12782
+ * @type {number}
12783
+ * @memberof UpdatePlanCommand
12340
12784
  */
12341
- 'normalizedName'?: string | null;
12785
+ 'unitPrice'?: number;
12342
12786
  /**
12343
12787
  *
12344
12788
  * @type {string}
12345
- * @memberof UpdateServiceCategoryCommand
12789
+ * @memberof UpdatePlanCommand
12346
12790
  */
12347
- 'description'?: string | null;
12791
+ 'stripePriceId'?: string | null;
12792
+ /**
12793
+ *
12794
+ * @type {RecurringInterval}
12795
+ * @memberof UpdatePlanCommand
12796
+ */
12797
+ 'interval'?: RecurringInterval;
12798
+ /**
12799
+ *
12800
+ * @type {boolean}
12801
+ * @memberof UpdatePlanCommand
12802
+ */
12803
+ 'isActive'?: boolean;
12348
12804
  /**
12349
12805
  *
12350
12806
  * @type {number}
12351
- * @memberof UpdateServiceCategoryCommand
12807
+ * @memberof UpdatePlanCommand
12352
12808
  */
12353
- 'order'?: number | null;
12809
+ 'order'?: number;
12810
+ }
12811
+ /**
12812
+ *
12813
+ * @export
12814
+ * @interface UpdatePlanHospitalCommand
12815
+ */
12816
+ export interface UpdatePlanHospitalCommand {
12354
12817
  /**
12355
12818
  *
12356
12819
  * @type {number}
12820
+ * @memberof UpdatePlanHospitalCommand
12821
+ */
12822
+ 'order'?: number;
12823
+ }
12824
+ /**
12825
+ *
12826
+ * @export
12827
+ * @interface UpdateServiceCategoryCommand
12828
+ */
12829
+ export interface UpdateServiceCategoryCommand {
12830
+ /**
12831
+ *
12832
+ * @type {string}
12357
12833
  * @memberof UpdateServiceCategoryCommand
12358
12834
  */
12359
- 'serviceCount'?: number;
12835
+ 'name'?: string | null;
12360
12836
  /**
12361
12837
  *
12362
- * @type {Array<HospitalServiceItemModel>}
12838
+ * @type {string}
12363
12839
  * @memberof UpdateServiceCategoryCommand
12364
12840
  */
12365
- 'services'?: Array<HospitalServiceItemModel> | null;
12841
+ 'description'?: string | null;
12366
12842
  /**
12367
12843
  *
12368
- * @type {Array<string>}
12844
+ * @type {number}
12369
12845
  * @memberof UpdateServiceCategoryCommand
12370
12846
  */
12371
- 'selectedServices'?: Array<string> | null;
12847
+ 'order'?: number;
12372
12848
  }
12373
12849
  /**
12374
12850
  *
@@ -14437,22 +14913,16 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14437
14913
  },
14438
14914
  /**
14439
14915
  *
14440
- * @summary GetAll ArticleContributors.
14916
+ * @summary GetAll ArticleTags.
14441
14917
  * @param {string} articleId
14442
- * @param {string} [articleName]
14443
- * @param {string} [contributorId]
14444
- * @param {string} [contributorName]
14445
- * @param {string} [email]
14446
- * @param {string} [description]
14447
- * @param {string} [website]
14448
- * @param {ContributionType} [contributionType]
14918
+ * @param {string} [tagId]
14449
14919
  * @param {number} [page]
14450
14920
  * @param {number} [limit]
14451
14921
  * @param {Date} [lastRetrieved]
14452
14922
  * @param {*} [options] Override http request option.
14453
14923
  * @throws {RequiredError}
14454
14924
  */
14455
- apiV1ArticlesArticleIdTagsGet: async (articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14925
+ apiV1ArticlesArticleIdTagsGet: async (articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14456
14926
  // verify required parameter 'articleId' is not null or undefined
14457
14927
  assertParamExists('apiV1ArticlesArticleIdTagsGet', 'articleId', articleId)
14458
14928
  const localVarPath = `/api/v1/articles/{articleId}/tags`
@@ -14472,32 +14942,8 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14472
14942
  // oauth required
14473
14943
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
14474
14944
 
14475
- if (articleName !== undefined) {
14476
- localVarQueryParameter['ArticleName'] = articleName;
14477
- }
14478
-
14479
- if (contributorId !== undefined) {
14480
- localVarQueryParameter['ContributorId'] = contributorId;
14481
- }
14482
-
14483
- if (contributorName !== undefined) {
14484
- localVarQueryParameter['ContributorName'] = contributorName;
14485
- }
14486
-
14487
- if (email !== undefined) {
14488
- localVarQueryParameter['Email'] = email;
14489
- }
14490
-
14491
- if (description !== undefined) {
14492
- localVarQueryParameter['Description'] = description;
14493
- }
14494
-
14495
- if (website !== undefined) {
14496
- localVarQueryParameter['Website'] = website;
14497
- }
14498
-
14499
- if (contributionType !== undefined) {
14500
- localVarQueryParameter['ContributionType'] = contributionType;
14945
+ if (tagId !== undefined) {
14946
+ localVarQueryParameter['TagId'] = tagId;
14501
14947
  }
14502
14948
 
14503
14949
  if (page !== undefined) {
@@ -14527,12 +14973,13 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14527
14973
  },
14528
14974
  /**
14529
14975
  *
14976
+ * @summary Create ArticleTag.
14530
14977
  * @param {string} articleId
14531
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
14978
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
14532
14979
  * @param {*} [options] Override http request option.
14533
14980
  * @throws {RequiredError}
14534
14981
  */
14535
- apiV1ArticlesArticleIdTagsPost: async (articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14982
+ apiV1ArticlesArticleIdTagsPost: async (articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14536
14983
  // verify required parameter 'articleId' is not null or undefined
14537
14984
  assertParamExists('apiV1ArticlesArticleIdTagsPost', 'articleId', articleId)
14538
14985
  const localVarPath = `/api/v1/articles/{articleId}/tags`
@@ -14559,7 +15006,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14559
15006
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14560
15007
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14561
15008
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14562
- localVarRequestOptions.data = serializeDataIfNeeded(createArticleContributorCommand, localVarRequestOptions, configuration)
15009
+ localVarRequestOptions.data = serializeDataIfNeeded(createArticleTagCommand, localVarRequestOptions, configuration)
14563
15010
 
14564
15011
  return {
14565
15012
  url: toPathString(localVarUrlObj),
@@ -14568,23 +15015,20 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14568
15015
  },
14569
15016
  /**
14570
15017
  *
14571
- * @summary Delete ArticleContributor.
15018
+ * @summary Delete ArticleTag.
14572
15019
  * @param {string} articleId
14573
- * @param {string} contributorId
14574
15020
  * @param {string} tagId
15021
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
14575
15022
  * @param {*} [options] Override http request option.
14576
15023
  * @throws {RequiredError}
14577
15024
  */
14578
- apiV1ArticlesArticleIdTagsTagIdDelete: async (articleId: string, contributorId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15025
+ apiV1ArticlesArticleIdTagsTagIdDelete: async (articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14579
15026
  // verify required parameter 'articleId' is not null or undefined
14580
15027
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'articleId', articleId)
14581
- // verify required parameter 'contributorId' is not null or undefined
14582
- assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'contributorId', contributorId)
14583
15028
  // verify required parameter 'tagId' is not null or undefined
14584
15029
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'tagId', tagId)
14585
15030
  const localVarPath = `/api/v1/articles/{articleId}/tags/{tagId}`
14586
15031
  .replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
14587
- .replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
14588
15032
  .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
14589
15033
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14590
15034
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14603,9 +15047,12 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14603
15047
 
14604
15048
 
14605
15049
 
15050
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15051
+
14606
15052
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14607
15053
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14608
15054
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15055
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteArticleTagCommand, localVarRequestOptions, configuration)
14609
15056
 
14610
15057
  return {
14611
15058
  url: toPathString(localVarUrlObj),
@@ -14614,23 +15061,19 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14614
15061
  },
14615
15062
  /**
14616
15063
  *
14617
- * @summary Get ArticleContributor.
15064
+ * @summary Get ArticleTag.
14618
15065
  * @param {string} articleId
14619
- * @param {string} contributorId
14620
15066
  * @param {string} tagId
14621
15067
  * @param {*} [options] Override http request option.
14622
15068
  * @throws {RequiredError}
14623
15069
  */
14624
- apiV1ArticlesArticleIdTagsTagIdGet: async (articleId: string, contributorId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15070
+ apiV1ArticlesArticleIdTagsTagIdGet: async (articleId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14625
15071
  // verify required parameter 'articleId' is not null or undefined
14626
15072
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'articleId', articleId)
14627
- // verify required parameter 'contributorId' is not null or undefined
14628
- assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'contributorId', contributorId)
14629
15073
  // verify required parameter 'tagId' is not null or undefined
14630
15074
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'tagId', tagId)
14631
15075
  const localVarPath = `/api/v1/articles/{articleId}/tags/{tagId}`
14632
15076
  .replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
14633
- .replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
14634
15077
  .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
14635
15078
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14636
15079
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15110,60 +15553,54 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
15110
15553
  },
15111
15554
  /**
15112
15555
  *
15113
- * @summary GetAll ArticleContributors.
15556
+ * @summary GetAll ArticleTags.
15114
15557
  * @param {string} articleId
15115
- * @param {string} [articleName]
15116
- * @param {string} [contributorId]
15117
- * @param {string} [contributorName]
15118
- * @param {string} [email]
15119
- * @param {string} [description]
15120
- * @param {string} [website]
15121
- * @param {ContributionType} [contributionType]
15558
+ * @param {string} [tagId]
15122
15559
  * @param {number} [page]
15123
15560
  * @param {number} [limit]
15124
15561
  * @param {Date} [lastRetrieved]
15125
15562
  * @param {*} [options] Override http request option.
15126
15563
  * @throws {RequiredError}
15127
15564
  */
15128
- async apiV1ArticlesArticleIdTagsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorsModel>> {
15129
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options);
15565
+ async apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagsModel>> {
15566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options);
15130
15567
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15131
15568
  },
15132
15569
  /**
15133
15570
  *
15571
+ * @summary Create ArticleTag.
15134
15572
  * @param {string} articleId
15135
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
15573
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
15136
15574
  * @param {*} [options] Override http request option.
15137
15575
  * @throws {RequiredError}
15138
15576
  */
15139
- async apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
15140
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options);
15577
+ async apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagModel>> {
15578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options);
15141
15579
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15142
15580
  },
15143
15581
  /**
15144
15582
  *
15145
- * @summary Delete ArticleContributor.
15583
+ * @summary Delete ArticleTag.
15146
15584
  * @param {string} articleId
15147
- * @param {string} contributorId
15148
15585
  * @param {string} tagId
15586
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
15149
15587
  * @param {*} [options] Override http request option.
15150
15588
  * @throws {RequiredError}
15151
15589
  */
15152
- async apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
15153
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options);
15590
+ async apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
15591
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options);
15154
15592
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15155
15593
  },
15156
15594
  /**
15157
15595
  *
15158
- * @summary Get ArticleContributor.
15596
+ * @summary Get ArticleTag.
15159
15597
  * @param {string} articleId
15160
- * @param {string} contributorId
15161
15598
  * @param {string} tagId
15162
15599
  * @param {*} [options] Override http request option.
15163
15600
  * @throws {RequiredError}
15164
15601
  */
15165
- async apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
15166
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options);
15602
+ async apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagModel>> {
15603
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options);
15167
15604
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15168
15605
  },
15169
15606
  /**
@@ -15444,57 +15881,51 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
15444
15881
  },
15445
15882
  /**
15446
15883
  *
15447
- * @summary GetAll ArticleContributors.
15884
+ * @summary GetAll ArticleTags.
15448
15885
  * @param {string} articleId
15449
- * @param {string} [articleName]
15450
- * @param {string} [contributorId]
15451
- * @param {string} [contributorName]
15452
- * @param {string} [email]
15453
- * @param {string} [description]
15454
- * @param {string} [website]
15455
- * @param {ContributionType} [contributionType]
15886
+ * @param {string} [tagId]
15456
15887
  * @param {number} [page]
15457
15888
  * @param {number} [limit]
15458
15889
  * @param {Date} [lastRetrieved]
15459
15890
  * @param {*} [options] Override http request option.
15460
15891
  * @throws {RequiredError}
15461
15892
  */
15462
- apiV1ArticlesArticleIdTagsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleContributorsModel> {
15463
- return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
15893
+ apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleTagsModel> {
15894
+ return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
15464
15895
  },
15465
15896
  /**
15466
15897
  *
15898
+ * @summary Create ArticleTag.
15467
15899
  * @param {string} articleId
15468
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
15900
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
15469
15901
  * @param {*} [options] Override http request option.
15470
15902
  * @throws {RequiredError}
15471
15903
  */
15472
- apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: any): AxiosPromise<ArticleContributorModel> {
15473
- return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options).then((request) => request(axios, basePath));
15904
+ apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: any): AxiosPromise<ArticleTagModel> {
15905
+ return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then((request) => request(axios, basePath));
15474
15906
  },
15475
15907
  /**
15476
15908
  *
15477
- * @summary Delete ArticleContributor.
15909
+ * @summary Delete ArticleTag.
15478
15910
  * @param {string} articleId
15479
- * @param {string} contributorId
15480
15911
  * @param {string} tagId
15912
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
15481
15913
  * @param {*} [options] Override http request option.
15482
15914
  * @throws {RequiredError}
15483
15915
  */
15484
- apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, contributorId: string, tagId: string, options?: any): AxiosPromise<boolean> {
15485
- return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options).then((request) => request(axios, basePath));
15916
+ apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options?: any): AxiosPromise<boolean> {
15917
+ return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options).then((request) => request(axios, basePath));
15486
15918
  },
15487
15919
  /**
15488
15920
  *
15489
- * @summary Get ArticleContributor.
15921
+ * @summary Get ArticleTag.
15490
15922
  * @param {string} articleId
15491
- * @param {string} contributorId
15492
15923
  * @param {string} tagId
15493
15924
  * @param {*} [options] Override http request option.
15494
15925
  * @throws {RequiredError}
15495
15926
  */
15496
- apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, contributorId: string, tagId: string, options?: any): AxiosPromise<ArticleContributorModel> {
15497
- return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options).then((request) => request(axios, basePath));
15927
+ apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: any): AxiosPromise<ArticleTagModel> {
15928
+ return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then((request) => request(axios, basePath));
15498
15929
  },
15499
15930
  /**
15500
15931
  *
@@ -15807,15 +16238,9 @@ export class ArticlesApi extends BaseAPI {
15807
16238
 
15808
16239
  /**
15809
16240
  *
15810
- * @summary GetAll ArticleContributors.
16241
+ * @summary GetAll ArticleTags.
15811
16242
  * @param {string} articleId
15812
- * @param {string} [articleName]
15813
- * @param {string} [contributorId]
15814
- * @param {string} [contributorName]
15815
- * @param {string} [email]
15816
- * @param {string} [description]
15817
- * @param {string} [website]
15818
- * @param {ContributionType} [contributionType]
16243
+ * @param {string} [tagId]
15819
16244
  * @param {number} [page]
15820
16245
  * @param {number} [limit]
15821
16246
  * @param {Date} [lastRetrieved]
@@ -15823,48 +16248,48 @@ export class ArticlesApi extends BaseAPI {
15823
16248
  * @throws {RequiredError}
15824
16249
  * @memberof ArticlesApi
15825
16250
  */
15826
- public apiV1ArticlesArticleIdTagsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
15827
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
16251
+ public apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
16252
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
15828
16253
  }
15829
16254
 
15830
16255
  /**
15831
16256
  *
16257
+ * @summary Create ArticleTag.
15832
16258
  * @param {string} articleId
15833
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
16259
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
15834
16260
  * @param {*} [options] Override http request option.
15835
16261
  * @throws {RequiredError}
15836
16262
  * @memberof ArticlesApi
15837
16263
  */
15838
- public apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: AxiosRequestConfig) {
15839
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options).then((request) => request(this.axios, this.basePath));
16264
+ public apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: AxiosRequestConfig) {
16265
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then((request) => request(this.axios, this.basePath));
15840
16266
  }
15841
16267
 
15842
16268
  /**
15843
16269
  *
15844
- * @summary Delete ArticleContributor.
16270
+ * @summary Delete ArticleTag.
15845
16271
  * @param {string} articleId
15846
- * @param {string} contributorId
15847
16272
  * @param {string} tagId
16273
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
15848
16274
  * @param {*} [options] Override http request option.
15849
16275
  * @throws {RequiredError}
15850
16276
  * @memberof ArticlesApi
15851
16277
  */
15852
- public apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig) {
15853
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options).then((request) => request(this.axios, this.basePath));
16278
+ public apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options?: AxiosRequestConfig) {
16279
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options).then((request) => request(this.axios, this.basePath));
15854
16280
  }
15855
16281
 
15856
16282
  /**
15857
16283
  *
15858
- * @summary Get ArticleContributor.
16284
+ * @summary Get ArticleTag.
15859
16285
  * @param {string} articleId
15860
- * @param {string} contributorId
15861
16286
  * @param {string} tagId
15862
16287
  * @param {*} [options] Override http request option.
15863
16288
  * @throws {RequiredError}
15864
16289
  * @memberof ArticlesApi
15865
16290
  */
15866
- public apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig) {
15867
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options).then((request) => request(this.axios, this.basePath));
16291
+ public apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: AxiosRequestConfig) {
16292
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then((request) => request(this.axios, this.basePath));
15868
16293
  }
15869
16294
 
15870
16295
  /**
@@ -20533,7 +20958,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
20533
20958
  * @param {*} [options] Override http request option.
20534
20959
  * @throws {RequiredError}
20535
20960
  */
20536
- async apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
20961
+ async apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
20537
20962
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options);
20538
20963
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20539
20964
  },
@@ -20557,7 +20982,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
20557
20982
  * @param {*} [options] Override http request option.
20558
20983
  * @throws {RequiredError}
20559
20984
  */
20560
- async apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
20985
+ async apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
20561
20986
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPut(dealId, updateDealCommand, options);
20562
20987
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20563
20988
  },
@@ -20620,7 +21045,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
20620
21045
  * @param {*} [options] Override http request option.
20621
21046
  * @throws {RequiredError}
20622
21047
  */
20623
- async apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
21048
+ async apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealServiceModel>> {
20624
21049
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options);
20625
21050
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20626
21051
  },
@@ -20750,7 +21175,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
20750
21175
  * @param {*} [options] Override http request option.
20751
21176
  * @throws {RequiredError}
20752
21177
  */
20753
- apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: any): AxiosPromise<boolean> {
21178
+ apiV1DealsDealIdPackagesPackageIdPut(dealId: string, packageId: string, updateDealPackageCommand?: UpdateDealPackageCommand, options?: any): AxiosPromise<DealPackageModel> {
20754
21179
  return localVarFp.apiV1DealsDealIdPackagesPackageIdPut(dealId, packageId, updateDealPackageCommand, options).then((request) => request(axios, basePath));
20755
21180
  },
20756
21181
  /**
@@ -20772,7 +21197,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
20772
21197
  * @param {*} [options] Override http request option.
20773
21198
  * @throws {RequiredError}
20774
21199
  */
20775
- apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: any): AxiosPromise<boolean> {
21200
+ apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: any): AxiosPromise<DealModel> {
20776
21201
  return localVarFp.apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(axios, basePath));
20777
21202
  },
20778
21203
  /**
@@ -20830,7 +21255,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
20830
21255
  * @param {*} [options] Override http request option.
20831
21256
  * @throws {RequiredError}
20832
21257
  */
20833
- apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: any): AxiosPromise<boolean> {
21258
+ apiV1DealsDealIdServicesServiceIdPut(dealId: string, serviceId: string, updateDealServiceCommand?: UpdateDealServiceCommand, options?: any): AxiosPromise<DealServiceModel> {
20834
21259
  return localVarFp.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options).then((request) => request(axios, basePath));
20835
21260
  },
20836
21261
  /**
@@ -23108,7 +23533,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
23108
23533
  * @param {*} [options] Override http request option.
23109
23534
  * @throws {RequiredError}
23110
23535
  */
23111
- async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
23536
+ async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
23112
23537
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options);
23113
23538
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23114
23539
  },
@@ -23214,7 +23639,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
23214
23639
  * @param {*} [options] Override http request option.
23215
23640
  * @throws {RequiredError}
23216
23641
  */
23217
- async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
23642
+ async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
23218
23643
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsPost(createDoctorCommand, options);
23219
23644
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23220
23645
  },
@@ -23538,7 +23963,7 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
23538
23963
  * @param {*} [options] Override http request option.
23539
23964
  * @throws {RequiredError}
23540
23965
  */
23541
- apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<boolean> {
23966
+ apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
23542
23967
  return localVarFp.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options).then((request) => request(axios, basePath));
23543
23968
  },
23544
23969
  /**
@@ -23637,7 +24062,7 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
23637
24062
  * @param {*} [options] Override http request option.
23638
24063
  * @throws {RequiredError}
23639
24064
  */
23640
- apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<string> {
24065
+ apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
23641
24066
  return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(axios, basePath));
23642
24067
  },
23643
24068
  /**
@@ -29248,16 +29673,360 @@ export class ManagersApi extends BaseAPI {
29248
29673
 
29249
29674
 
29250
29675
  /**
29251
- * NotificationsApi - axios parameter creator
29676
+ * MembershipsApi - axios parameter creator
29252
29677
  * @export
29253
29678
  */
29254
- export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
29679
+ export const MembershipsApiAxiosParamCreator = function (configuration?: Configuration) {
29255
29680
  return {
29256
29681
  /**
29257
29682
  *
29258
- * @summary Check notification.
29259
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29260
- * @param {*} [options] Override http request option.
29683
+ * @summary Get all memberships.
29684
+ * @param {string} [id]
29685
+ * @param {string} [planId]
29686
+ * @param {string} [planName]
29687
+ * @param {string} [ownerId]
29688
+ * @param {string} [ownerName]
29689
+ * @param {boolean} [isActive]
29690
+ * @param {number} [page]
29691
+ * @param {number} [limit]
29692
+ * @param {Date} [lastRetrieved]
29693
+ * @param {*} [options] Override http request option.
29694
+ * @throws {RequiredError}
29695
+ */
29696
+ apiV1MembershipsGet: async (id?: string, planId?: string, planName?: string, ownerId?: string, ownerName?: string, isActive?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29697
+ const localVarPath = `/api/v1/memberships`;
29698
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29699
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29700
+ let baseOptions;
29701
+ if (configuration) {
29702
+ baseOptions = configuration.baseOptions;
29703
+ }
29704
+
29705
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29706
+ const localVarHeaderParameter = {} as any;
29707
+ const localVarQueryParameter = {} as any;
29708
+
29709
+ // authentication oauth2 required
29710
+ // oauth required
29711
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29712
+
29713
+ if (id !== undefined) {
29714
+ localVarQueryParameter['Id'] = id;
29715
+ }
29716
+
29717
+ if (planId !== undefined) {
29718
+ localVarQueryParameter['PlanId'] = planId;
29719
+ }
29720
+
29721
+ if (planName !== undefined) {
29722
+ localVarQueryParameter['PlanName'] = planName;
29723
+ }
29724
+
29725
+ if (ownerId !== undefined) {
29726
+ localVarQueryParameter['OwnerId'] = ownerId;
29727
+ }
29728
+
29729
+ if (ownerName !== undefined) {
29730
+ localVarQueryParameter['OwnerName'] = ownerName;
29731
+ }
29732
+
29733
+ if (isActive !== undefined) {
29734
+ localVarQueryParameter['IsActive'] = isActive;
29735
+ }
29736
+
29737
+ if (page !== undefined) {
29738
+ localVarQueryParameter['page'] = page;
29739
+ }
29740
+
29741
+ if (limit !== undefined) {
29742
+ localVarQueryParameter['limit'] = limit;
29743
+ }
29744
+
29745
+ if (lastRetrieved !== undefined) {
29746
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
29747
+ (lastRetrieved as any).toISOString() :
29748
+ lastRetrieved;
29749
+ }
29750
+
29751
+
29752
+
29753
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29754
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29755
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29756
+
29757
+ return {
29758
+ url: toPathString(localVarUrlObj),
29759
+ options: localVarRequestOptions,
29760
+ };
29761
+ },
29762
+ /**
29763
+ *
29764
+ * @summary Get membership.
29765
+ * @param {string} membershipId
29766
+ * @param {*} [options] Override http request option.
29767
+ * @throws {RequiredError}
29768
+ */
29769
+ apiV1MembershipsMembershipIdGet: async (membershipId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29770
+ // verify required parameter 'membershipId' is not null or undefined
29771
+ assertParamExists('apiV1MembershipsMembershipIdGet', 'membershipId', membershipId)
29772
+ const localVarPath = `/api/v1/memberships/{membershipId}`
29773
+ .replace(`{${"membershipId"}}`, encodeURIComponent(String(membershipId)));
29774
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29775
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29776
+ let baseOptions;
29777
+ if (configuration) {
29778
+ baseOptions = configuration.baseOptions;
29779
+ }
29780
+
29781
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29782
+ const localVarHeaderParameter = {} as any;
29783
+ const localVarQueryParameter = {} as any;
29784
+
29785
+ // authentication oauth2 required
29786
+ // oauth required
29787
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29788
+
29789
+
29790
+
29791
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29792
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29793
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29794
+
29795
+ return {
29796
+ url: toPathString(localVarUrlObj),
29797
+ options: localVarRequestOptions,
29798
+ };
29799
+ },
29800
+ /**
29801
+ *
29802
+ * @summary Get all members.
29803
+ * @param {string} membershipId
29804
+ * @param {number} [page]
29805
+ * @param {number} [limit]
29806
+ * @param {Date} [lastRetrieved]
29807
+ * @param {*} [options] Override http request option.
29808
+ * @throws {RequiredError}
29809
+ */
29810
+ apiV1MembershipsMembershipIdMembersGet: async (membershipId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29811
+ // verify required parameter 'membershipId' is not null or undefined
29812
+ assertParamExists('apiV1MembershipsMembershipIdMembersGet', 'membershipId', membershipId)
29813
+ const localVarPath = `/api/v1/memberships/{membershipId}/members`
29814
+ .replace(`{${"membershipId"}}`, encodeURIComponent(String(membershipId)));
29815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29817
+ let baseOptions;
29818
+ if (configuration) {
29819
+ baseOptions = configuration.baseOptions;
29820
+ }
29821
+
29822
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29823
+ const localVarHeaderParameter = {} as any;
29824
+ const localVarQueryParameter = {} as any;
29825
+
29826
+ // authentication oauth2 required
29827
+ // oauth required
29828
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29829
+
29830
+ if (page !== undefined) {
29831
+ localVarQueryParameter['page'] = page;
29832
+ }
29833
+
29834
+ if (limit !== undefined) {
29835
+ localVarQueryParameter['limit'] = limit;
29836
+ }
29837
+
29838
+ if (lastRetrieved !== undefined) {
29839
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
29840
+ (lastRetrieved as any).toISOString() :
29841
+ lastRetrieved;
29842
+ }
29843
+
29844
+
29845
+
29846
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29847
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29848
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29849
+
29850
+ return {
29851
+ url: toPathString(localVarUrlObj),
29852
+ options: localVarRequestOptions,
29853
+ };
29854
+ },
29855
+ }
29856
+ };
29857
+
29858
+ /**
29859
+ * MembershipsApi - functional programming interface
29860
+ * @export
29861
+ */
29862
+ export const MembershipsApiFp = function(configuration?: Configuration) {
29863
+ const localVarAxiosParamCreator = MembershipsApiAxiosParamCreator(configuration)
29864
+ return {
29865
+ /**
29866
+ *
29867
+ * @summary Get all memberships.
29868
+ * @param {string} [id]
29869
+ * @param {string} [planId]
29870
+ * @param {string} [planName]
29871
+ * @param {string} [ownerId]
29872
+ * @param {string} [ownerName]
29873
+ * @param {boolean} [isActive]
29874
+ * @param {number} [page]
29875
+ * @param {number} [limit]
29876
+ * @param {Date} [lastRetrieved]
29877
+ * @param {*} [options] Override http request option.
29878
+ * @throws {RequiredError}
29879
+ */
29880
+ async apiV1MembershipsGet(id?: string, planId?: string, planName?: string, ownerId?: string, ownerName?: string, isActive?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MembershipsModel>> {
29881
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MembershipsGet(id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options);
29882
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29883
+ },
29884
+ /**
29885
+ *
29886
+ * @summary Get membership.
29887
+ * @param {string} membershipId
29888
+ * @param {*} [options] Override http request option.
29889
+ * @throws {RequiredError}
29890
+ */
29891
+ async apiV1MembershipsMembershipIdGet(membershipId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MembershipModel>> {
29892
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MembershipsMembershipIdGet(membershipId, options);
29893
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29894
+ },
29895
+ /**
29896
+ *
29897
+ * @summary Get all members.
29898
+ * @param {string} membershipId
29899
+ * @param {number} [page]
29900
+ * @param {number} [limit]
29901
+ * @param {Date} [lastRetrieved]
29902
+ * @param {*} [options] Override http request option.
29903
+ * @throws {RequiredError}
29904
+ */
29905
+ async apiV1MembershipsMembershipIdMembersGet(membershipId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MembersModel>> {
29906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MembershipsMembershipIdMembersGet(membershipId, page, limit, lastRetrieved, options);
29907
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29908
+ },
29909
+ }
29910
+ };
29911
+
29912
+ /**
29913
+ * MembershipsApi - factory interface
29914
+ * @export
29915
+ */
29916
+ export const MembershipsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29917
+ const localVarFp = MembershipsApiFp(configuration)
29918
+ return {
29919
+ /**
29920
+ *
29921
+ * @summary Get all memberships.
29922
+ * @param {string} [id]
29923
+ * @param {string} [planId]
29924
+ * @param {string} [planName]
29925
+ * @param {string} [ownerId]
29926
+ * @param {string} [ownerName]
29927
+ * @param {boolean} [isActive]
29928
+ * @param {number} [page]
29929
+ * @param {number} [limit]
29930
+ * @param {Date} [lastRetrieved]
29931
+ * @param {*} [options] Override http request option.
29932
+ * @throws {RequiredError}
29933
+ */
29934
+ apiV1MembershipsGet(id?: string, planId?: string, planName?: string, ownerId?: string, ownerName?: string, isActive?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MembershipsModel> {
29935
+ return localVarFp.apiV1MembershipsGet(id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29936
+ },
29937
+ /**
29938
+ *
29939
+ * @summary Get membership.
29940
+ * @param {string} membershipId
29941
+ * @param {*} [options] Override http request option.
29942
+ * @throws {RequiredError}
29943
+ */
29944
+ apiV1MembershipsMembershipIdGet(membershipId: string, options?: any): AxiosPromise<MembershipModel> {
29945
+ return localVarFp.apiV1MembershipsMembershipIdGet(membershipId, options).then((request) => request(axios, basePath));
29946
+ },
29947
+ /**
29948
+ *
29949
+ * @summary Get all members.
29950
+ * @param {string} membershipId
29951
+ * @param {number} [page]
29952
+ * @param {number} [limit]
29953
+ * @param {Date} [lastRetrieved]
29954
+ * @param {*} [options] Override http request option.
29955
+ * @throws {RequiredError}
29956
+ */
29957
+ apiV1MembershipsMembershipIdMembersGet(membershipId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MembersModel> {
29958
+ return localVarFp.apiV1MembershipsMembershipIdMembersGet(membershipId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29959
+ },
29960
+ };
29961
+ };
29962
+
29963
+ /**
29964
+ * MembershipsApi - object-oriented interface
29965
+ * @export
29966
+ * @class MembershipsApi
29967
+ * @extends {BaseAPI}
29968
+ */
29969
+ export class MembershipsApi extends BaseAPI {
29970
+ /**
29971
+ *
29972
+ * @summary Get all memberships.
29973
+ * @param {string} [id]
29974
+ * @param {string} [planId]
29975
+ * @param {string} [planName]
29976
+ * @param {string} [ownerId]
29977
+ * @param {string} [ownerName]
29978
+ * @param {boolean} [isActive]
29979
+ * @param {number} [page]
29980
+ * @param {number} [limit]
29981
+ * @param {Date} [lastRetrieved]
29982
+ * @param {*} [options] Override http request option.
29983
+ * @throws {RequiredError}
29984
+ * @memberof MembershipsApi
29985
+ */
29986
+ public apiV1MembershipsGet(id?: string, planId?: string, planName?: string, ownerId?: string, ownerName?: string, isActive?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29987
+ return MembershipsApiFp(this.configuration).apiV1MembershipsGet(id, planId, planName, ownerId, ownerName, isActive, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29988
+ }
29989
+
29990
+ /**
29991
+ *
29992
+ * @summary Get membership.
29993
+ * @param {string} membershipId
29994
+ * @param {*} [options] Override http request option.
29995
+ * @throws {RequiredError}
29996
+ * @memberof MembershipsApi
29997
+ */
29998
+ public apiV1MembershipsMembershipIdGet(membershipId: string, options?: AxiosRequestConfig) {
29999
+ return MembershipsApiFp(this.configuration).apiV1MembershipsMembershipIdGet(membershipId, options).then((request) => request(this.axios, this.basePath));
30000
+ }
30001
+
30002
+ /**
30003
+ *
30004
+ * @summary Get all members.
30005
+ * @param {string} membershipId
30006
+ * @param {number} [page]
30007
+ * @param {number} [limit]
30008
+ * @param {Date} [lastRetrieved]
30009
+ * @param {*} [options] Override http request option.
30010
+ * @throws {RequiredError}
30011
+ * @memberof MembershipsApi
30012
+ */
30013
+ public apiV1MembershipsMembershipIdMembersGet(membershipId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30014
+ return MembershipsApiFp(this.configuration).apiV1MembershipsMembershipIdMembersGet(membershipId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30015
+ }
30016
+ }
30017
+
30018
+
30019
+ /**
30020
+ * NotificationsApi - axios parameter creator
30021
+ * @export
30022
+ */
30023
+ export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
30024
+ return {
30025
+ /**
30026
+ *
30027
+ * @summary Check notification.
30028
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30029
+ * @param {*} [options] Override http request option.
29261
30030
  * @throws {RequiredError}
29262
30031
  */
29263
30032
  apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -29331,21 +30100,581 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
29331
30100
  localVarQueryParameter['page'] = page;
29332
30101
  }
29333
30102
 
29334
- if (limit !== undefined) {
29335
- localVarQueryParameter['limit'] = limit;
29336
- }
30103
+ if (limit !== undefined) {
30104
+ localVarQueryParameter['limit'] = limit;
30105
+ }
30106
+
30107
+ if (lastRetrieved !== undefined) {
30108
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
30109
+ (lastRetrieved as any).toISOString() :
30110
+ lastRetrieved;
30111
+ }
30112
+
30113
+
30114
+
30115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30117
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30118
+
30119
+ return {
30120
+ url: toPathString(localVarUrlObj),
30121
+ options: localVarRequestOptions,
30122
+ };
30123
+ },
30124
+ }
30125
+ };
30126
+
30127
+ /**
30128
+ * NotificationsApi - functional programming interface
30129
+ * @export
30130
+ */
30131
+ export const NotificationsApiFp = function(configuration?: Configuration) {
30132
+ const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
30133
+ return {
30134
+ /**
30135
+ *
30136
+ * @summary Check notification.
30137
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30138
+ * @param {*} [options] Override http request option.
30139
+ * @throws {RequiredError}
30140
+ */
30141
+ async apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options);
30143
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30144
+ },
30145
+ /**
30146
+ *
30147
+ * @summary Get all notifications.
30148
+ * @param {NotificationCode} [notificationCode]
30149
+ * @param {boolean} [unreadCountOnly]
30150
+ * @param {number} [page]
30151
+ * @param {number} [limit]
30152
+ * @param {Date} [lastRetrieved]
30153
+ * @param {*} [options] Override http request option.
30154
+ * @throws {RequiredError}
30155
+ */
30156
+ async apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationsModel>> {
30157
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options);
30158
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30159
+ },
30160
+ }
30161
+ };
30162
+
30163
+ /**
30164
+ * NotificationsApi - factory interface
30165
+ * @export
30166
+ */
30167
+ export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30168
+ const localVarFp = NotificationsApiFp(configuration)
30169
+ return {
30170
+ /**
30171
+ *
30172
+ * @summary Check notification.
30173
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30174
+ * @param {*} [options] Override http request option.
30175
+ * @throws {RequiredError}
30176
+ */
30177
+ apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: any): AxiosPromise<boolean> {
30178
+ return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(axios, basePath));
30179
+ },
30180
+ /**
30181
+ *
30182
+ * @summary Get all notifications.
30183
+ * @param {NotificationCode} [notificationCode]
30184
+ * @param {boolean} [unreadCountOnly]
30185
+ * @param {number} [page]
30186
+ * @param {number} [limit]
30187
+ * @param {Date} [lastRetrieved]
30188
+ * @param {*} [options] Override http request option.
30189
+ * @throws {RequiredError}
30190
+ */
30191
+ apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationsModel> {
30192
+ return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30193
+ },
30194
+ };
30195
+ };
30196
+
30197
+ /**
30198
+ * NotificationsApi - object-oriented interface
30199
+ * @export
30200
+ * @class NotificationsApi
30201
+ * @extends {BaseAPI}
30202
+ */
30203
+ export class NotificationsApi extends BaseAPI {
30204
+ /**
30205
+ *
30206
+ * @summary Check notification.
30207
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30208
+ * @param {*} [options] Override http request option.
30209
+ * @throws {RequiredError}
30210
+ * @memberof NotificationsApi
30211
+ */
30212
+ public apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig) {
30213
+ return NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
30214
+ }
30215
+
30216
+ /**
30217
+ *
30218
+ * @summary Get all notifications.
30219
+ * @param {NotificationCode} [notificationCode]
30220
+ * @param {boolean} [unreadCountOnly]
30221
+ * @param {number} [page]
30222
+ * @param {number} [limit]
30223
+ * @param {Date} [lastRetrieved]
30224
+ * @param {*} [options] Override http request option.
30225
+ * @throws {RequiredError}
30226
+ * @memberof NotificationsApi
30227
+ */
30228
+ public apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30229
+ return NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30230
+ }
30231
+ }
30232
+
30233
+
30234
+ /**
30235
+ * PlansApi - axios parameter creator
30236
+ * @export
30237
+ */
30238
+ export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
30239
+ return {
30240
+ /**
30241
+ *
30242
+ * @summary Get all plans.
30243
+ * @param {string} [id]
30244
+ * @param {string} [name]
30245
+ * @param {number} [page]
30246
+ * @param {number} [limit]
30247
+ * @param {Date} [lastRetrieved]
30248
+ * @param {*} [options] Override http request option.
30249
+ * @throws {RequiredError}
30250
+ */
30251
+ apiV1PlansGet: async (id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30252
+ const localVarPath = `/api/v1/plans`;
30253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30254
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30255
+ let baseOptions;
30256
+ if (configuration) {
30257
+ baseOptions = configuration.baseOptions;
30258
+ }
30259
+
30260
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30261
+ const localVarHeaderParameter = {} as any;
30262
+ const localVarQueryParameter = {} as any;
30263
+
30264
+ // authentication oauth2 required
30265
+ // oauth required
30266
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30267
+
30268
+ if (id !== undefined) {
30269
+ localVarQueryParameter['Id'] = id;
30270
+ }
30271
+
30272
+ if (name !== undefined) {
30273
+ localVarQueryParameter['Name'] = name;
30274
+ }
30275
+
30276
+ if (page !== undefined) {
30277
+ localVarQueryParameter['page'] = page;
30278
+ }
30279
+
30280
+ if (limit !== undefined) {
30281
+ localVarQueryParameter['limit'] = limit;
30282
+ }
30283
+
30284
+ if (lastRetrieved !== undefined) {
30285
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
30286
+ (lastRetrieved as any).toISOString() :
30287
+ lastRetrieved;
30288
+ }
30289
+
30290
+
30291
+
30292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30295
+
30296
+ return {
30297
+ url: toPathString(localVarUrlObj),
30298
+ options: localVarRequestOptions,
30299
+ };
30300
+ },
30301
+ /**
30302
+ *
30303
+ * @summary Delete plan.
30304
+ * @param {string} planId
30305
+ * @param {*} [options] Override http request option.
30306
+ * @throws {RequiredError}
30307
+ */
30308
+ apiV1PlansPlanIdDelete: async (planId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30309
+ // verify required parameter 'planId' is not null or undefined
30310
+ assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId)
30311
+ const localVarPath = `/api/v1/plans/{planId}`
30312
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30313
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30314
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30315
+ let baseOptions;
30316
+ if (configuration) {
30317
+ baseOptions = configuration.baseOptions;
30318
+ }
30319
+
30320
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
30321
+ const localVarHeaderParameter = {} as any;
30322
+ const localVarQueryParameter = {} as any;
30323
+
30324
+ // authentication oauth2 required
30325
+ // oauth required
30326
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30327
+
30328
+
30329
+
30330
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30332
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30333
+
30334
+ return {
30335
+ url: toPathString(localVarUrlObj),
30336
+ options: localVarRequestOptions,
30337
+ };
30338
+ },
30339
+ /**
30340
+ *
30341
+ * @summary Get plan.
30342
+ * @param {string} planId
30343
+ * @param {*} [options] Override http request option.
30344
+ * @throws {RequiredError}
30345
+ */
30346
+ apiV1PlansPlanIdGet: async (planId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30347
+ // verify required parameter 'planId' is not null or undefined
30348
+ assertParamExists('apiV1PlansPlanIdGet', 'planId', planId)
30349
+ const localVarPath = `/api/v1/plans/{planId}`
30350
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30353
+ let baseOptions;
30354
+ if (configuration) {
30355
+ baseOptions = configuration.baseOptions;
30356
+ }
30357
+
30358
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30359
+ const localVarHeaderParameter = {} as any;
30360
+ const localVarQueryParameter = {} as any;
30361
+
30362
+ // authentication oauth2 required
30363
+ // oauth required
30364
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30365
+
30366
+
30367
+
30368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30370
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30371
+
30372
+ return {
30373
+ url: toPathString(localVarUrlObj),
30374
+ options: localVarRequestOptions,
30375
+ };
30376
+ },
30377
+ /**
30378
+ *
30379
+ * @summary Get all plan hospital.
30380
+ * @param {string} planId
30381
+ * @param {number} [page]
30382
+ * @param {number} [limit]
30383
+ * @param {Date} [lastRetrieved]
30384
+ * @param {*} [options] Override http request option.
30385
+ * @throws {RequiredError}
30386
+ */
30387
+ apiV1PlansPlanIdHospitalsGet: async (planId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30388
+ // verify required parameter 'planId' is not null or undefined
30389
+ assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId)
30390
+ const localVarPath = `/api/v1/plans/{planId}/hospitals`
30391
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30393
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30394
+ let baseOptions;
30395
+ if (configuration) {
30396
+ baseOptions = configuration.baseOptions;
30397
+ }
30398
+
30399
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30400
+ const localVarHeaderParameter = {} as any;
30401
+ const localVarQueryParameter = {} as any;
30402
+
30403
+ // authentication oauth2 required
30404
+ // oauth required
30405
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30406
+
30407
+ if (page !== undefined) {
30408
+ localVarQueryParameter['page'] = page;
30409
+ }
30410
+
30411
+ if (limit !== undefined) {
30412
+ localVarQueryParameter['limit'] = limit;
30413
+ }
30414
+
30415
+ if (lastRetrieved !== undefined) {
30416
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
30417
+ (lastRetrieved as any).toISOString() :
30418
+ lastRetrieved;
30419
+ }
30420
+
30421
+
30422
+
30423
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30425
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30426
+
30427
+ return {
30428
+ url: toPathString(localVarUrlObj),
30429
+ options: localVarRequestOptions,
30430
+ };
30431
+ },
30432
+ /**
30433
+ *
30434
+ * @summary Delete plan hospital.
30435
+ * @param {string} planId
30436
+ * @param {string} hospitalId
30437
+ * @param {*} [options] Override http request option.
30438
+ * @throws {RequiredError}
30439
+ */
30440
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: async (planId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30441
+ // verify required parameter 'planId' is not null or undefined
30442
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId)
30443
+ // verify required parameter 'hospitalId' is not null or undefined
30444
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId)
30445
+ const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
30446
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
30447
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
30448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30449
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30450
+ let baseOptions;
30451
+ if (configuration) {
30452
+ baseOptions = configuration.baseOptions;
30453
+ }
30454
+
30455
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
30456
+ const localVarHeaderParameter = {} as any;
30457
+ const localVarQueryParameter = {} as any;
30458
+
30459
+ // authentication oauth2 required
30460
+ // oauth required
30461
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30462
+
30463
+
30464
+
30465
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30466
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30467
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30468
+
30469
+ return {
30470
+ url: toPathString(localVarUrlObj),
30471
+ options: localVarRequestOptions,
30472
+ };
30473
+ },
30474
+ /**
30475
+ *
30476
+ * @summary Get plan hospital.
30477
+ * @param {string} planId
30478
+ * @param {string} hospitalId
30479
+ * @param {*} [options] Override http request option.
30480
+ * @throws {RequiredError}
30481
+ */
30482
+ apiV1PlansPlanIdHospitalsHospitalIdGet: async (planId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30483
+ // verify required parameter 'planId' is not null or undefined
30484
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId)
30485
+ // verify required parameter 'hospitalId' is not null or undefined
30486
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId)
30487
+ const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
30488
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
30489
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
30490
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30491
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30492
+ let baseOptions;
30493
+ if (configuration) {
30494
+ baseOptions = configuration.baseOptions;
30495
+ }
30496
+
30497
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30498
+ const localVarHeaderParameter = {} as any;
30499
+ const localVarQueryParameter = {} as any;
30500
+
30501
+ // authentication oauth2 required
30502
+ // oauth required
30503
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30504
+
30505
+
30506
+
30507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30509
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30510
+
30511
+ return {
30512
+ url: toPathString(localVarUrlObj),
30513
+ options: localVarRequestOptions,
30514
+ };
30515
+ },
30516
+ /**
30517
+ *
30518
+ * @summary Update plan hospital.
30519
+ * @param {string} planId
30520
+ * @param {string} hospitalId
30521
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30522
+ * @param {*} [options] Override http request option.
30523
+ * @throws {RequiredError}
30524
+ */
30525
+ apiV1PlansPlanIdHospitalsHospitalIdPut: async (planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30526
+ // verify required parameter 'planId' is not null or undefined
30527
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId)
30528
+ // verify required parameter 'hospitalId' is not null or undefined
30529
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId)
30530
+ const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
30531
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
30532
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
30533
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30534
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30535
+ let baseOptions;
30536
+ if (configuration) {
30537
+ baseOptions = configuration.baseOptions;
30538
+ }
30539
+
30540
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
30541
+ const localVarHeaderParameter = {} as any;
30542
+ const localVarQueryParameter = {} as any;
30543
+
30544
+ // authentication oauth2 required
30545
+ // oauth required
30546
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30547
+
30548
+
30549
+
30550
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30551
+
30552
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30554
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30555
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration)
30556
+
30557
+ return {
30558
+ url: toPathString(localVarUrlObj),
30559
+ options: localVarRequestOptions,
30560
+ };
30561
+ },
30562
+ /**
30563
+ *
30564
+ * @summary Create plan hospital.
30565
+ * @param {string} planId
30566
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30567
+ * @param {*} [options] Override http request option.
30568
+ * @throws {RequiredError}
30569
+ */
30570
+ apiV1PlansPlanIdHospitalsPost: async (planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30571
+ // verify required parameter 'planId' is not null or undefined
30572
+ assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId)
30573
+ const localVarPath = `/api/v1/plans/{planId}/hospitals`
30574
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30577
+ let baseOptions;
30578
+ if (configuration) {
30579
+ baseOptions = configuration.baseOptions;
30580
+ }
30581
+
30582
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30583
+ const localVarHeaderParameter = {} as any;
30584
+ const localVarQueryParameter = {} as any;
30585
+
30586
+ // authentication oauth2 required
30587
+ // oauth required
30588
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30589
+
30590
+
30591
+
30592
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30593
+
30594
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30595
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30596
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30597
+ localVarRequestOptions.data = serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration)
30598
+
30599
+ return {
30600
+ url: toPathString(localVarUrlObj),
30601
+ options: localVarRequestOptions,
30602
+ };
30603
+ },
30604
+ /**
30605
+ *
30606
+ * @summary Update plan.
30607
+ * @param {string} planId
30608
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30609
+ * @param {*} [options] Override http request option.
30610
+ * @throws {RequiredError}
30611
+ */
30612
+ apiV1PlansPlanIdPut: async (planId: string, updatePlanCommand?: UpdatePlanCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30613
+ // verify required parameter 'planId' is not null or undefined
30614
+ assertParamExists('apiV1PlansPlanIdPut', 'planId', planId)
30615
+ const localVarPath = `/api/v1/plans/{planId}`
30616
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30619
+ let baseOptions;
30620
+ if (configuration) {
30621
+ baseOptions = configuration.baseOptions;
30622
+ }
30623
+
30624
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
30625
+ const localVarHeaderParameter = {} as any;
30626
+ const localVarQueryParameter = {} as any;
30627
+
30628
+ // authentication oauth2 required
30629
+ // oauth required
30630
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30631
+
30632
+
30633
+
30634
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30635
+
30636
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30638
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30639
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration)
30640
+
30641
+ return {
30642
+ url: toPathString(localVarUrlObj),
30643
+ options: localVarRequestOptions,
30644
+ };
30645
+ },
30646
+ /**
30647
+ *
30648
+ * @summary Create a plan.
30649
+ * @param {CreatePlanCommand} [createPlanCommand]
30650
+ * @param {*} [options] Override http request option.
30651
+ * @throws {RequiredError}
30652
+ */
30653
+ apiV1PlansPost: async (createPlanCommand?: CreatePlanCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30654
+ const localVarPath = `/api/v1/plans`;
30655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30657
+ let baseOptions;
30658
+ if (configuration) {
30659
+ baseOptions = configuration.baseOptions;
30660
+ }
30661
+
30662
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30663
+ const localVarHeaderParameter = {} as any;
30664
+ const localVarQueryParameter = {} as any;
29337
30665
 
29338
- if (lastRetrieved !== undefined) {
29339
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
29340
- (lastRetrieved as any).toISOString() :
29341
- lastRetrieved;
29342
- }
30666
+ // authentication oauth2 required
30667
+ // oauth required
30668
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29343
30669
 
29344
30670
 
29345
30671
 
30672
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30673
+
29346
30674
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29347
30675
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29348
30676
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30677
+ localVarRequestOptions.data = serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration)
29349
30678
 
29350
30679
  return {
29351
30680
  url: toPathString(localVarUrlObj),
@@ -29356,108 +30685,399 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
29356
30685
  };
29357
30686
 
29358
30687
  /**
29359
- * NotificationsApi - functional programming interface
30688
+ * PlansApi - functional programming interface
29360
30689
  * @export
29361
30690
  */
29362
- export const NotificationsApiFp = function(configuration?: Configuration) {
29363
- const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
30691
+ export const PlansApiFp = function(configuration?: Configuration) {
30692
+ const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
29364
30693
  return {
29365
30694
  /**
29366
30695
  *
29367
- * @summary Check notification.
29368
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30696
+ * @summary Get all plans.
30697
+ * @param {string} [id]
30698
+ * @param {string} [name]
30699
+ * @param {number} [page]
30700
+ * @param {number} [limit]
30701
+ * @param {Date} [lastRetrieved]
29369
30702
  * @param {*} [options] Override http request option.
29370
30703
  * @throws {RequiredError}
29371
30704
  */
29372
- async apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29373
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options);
30705
+ async apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlansModel>> {
30706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options);
29374
30707
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29375
30708
  },
29376
30709
  /**
29377
30710
  *
29378
- * @summary Get all notifications.
29379
- * @param {NotificationCode} [notificationCode]
29380
- * @param {boolean} [unreadCountOnly]
30711
+ * @summary Delete plan.
30712
+ * @param {string} planId
30713
+ * @param {*} [options] Override http request option.
30714
+ * @throws {RequiredError}
30715
+ */
30716
+ async apiV1PlansPlanIdDelete(planId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options);
30718
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30719
+ },
30720
+ /**
30721
+ *
30722
+ * @summary Get plan.
30723
+ * @param {string} planId
30724
+ * @param {*} [options] Override http request option.
30725
+ * @throws {RequiredError}
30726
+ */
30727
+ async apiV1PlansPlanIdGet(planId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
30728
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options);
30729
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30730
+ },
30731
+ /**
30732
+ *
30733
+ * @summary Get all plan hospital.
30734
+ * @param {string} planId
29381
30735
  * @param {number} [page]
29382
30736
  * @param {number} [limit]
29383
30737
  * @param {Date} [lastRetrieved]
29384
30738
  * @param {*} [options] Override http request option.
29385
30739
  * @throws {RequiredError}
29386
30740
  */
29387
- async apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationsModel>> {
29388
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options);
30741
+ async apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalsModel>> {
30742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options);
30743
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30744
+ },
30745
+ /**
30746
+ *
30747
+ * @summary Delete plan hospital.
30748
+ * @param {string} planId
30749
+ * @param {string} hospitalId
30750
+ * @param {*} [options] Override http request option.
30751
+ * @throws {RequiredError}
30752
+ */
30753
+ async apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30754
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options);
30755
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30756
+ },
30757
+ /**
30758
+ *
30759
+ * @summary Get plan hospital.
30760
+ * @param {string} planId
30761
+ * @param {string} hospitalId
30762
+ * @param {*} [options] Override http request option.
30763
+ * @throws {RequiredError}
30764
+ */
30765
+ async apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
30766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options);
30767
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30768
+ },
30769
+ /**
30770
+ *
30771
+ * @summary Update plan hospital.
30772
+ * @param {string} planId
30773
+ * @param {string} hospitalId
30774
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30775
+ * @param {*} [options] Override http request option.
30776
+ * @throws {RequiredError}
30777
+ */
30778
+ async apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
30779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options);
30780
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30781
+ },
30782
+ /**
30783
+ *
30784
+ * @summary Create plan hospital.
30785
+ * @param {string} planId
30786
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30787
+ * @param {*} [options] Override http request option.
30788
+ * @throws {RequiredError}
30789
+ */
30790
+ async apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
30791
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options);
30792
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30793
+ },
30794
+ /**
30795
+ *
30796
+ * @summary Update plan.
30797
+ * @param {string} planId
30798
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30799
+ * @param {*} [options] Override http request option.
30800
+ * @throws {RequiredError}
30801
+ */
30802
+ async apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
30803
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options);
30804
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30805
+ },
30806
+ /**
30807
+ *
30808
+ * @summary Create a plan.
30809
+ * @param {CreatePlanCommand} [createPlanCommand]
30810
+ * @param {*} [options] Override http request option.
30811
+ * @throws {RequiredError}
30812
+ */
30813
+ async apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
30814
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options);
29389
30815
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29390
30816
  },
29391
30817
  }
29392
30818
  };
29393
30819
 
29394
30820
  /**
29395
- * NotificationsApi - factory interface
30821
+ * PlansApi - factory interface
29396
30822
  * @export
29397
30823
  */
29398
- export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29399
- const localVarFp = NotificationsApiFp(configuration)
30824
+ export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30825
+ const localVarFp = PlansApiFp(configuration)
29400
30826
  return {
29401
30827
  /**
29402
30828
  *
29403
- * @summary Check notification.
29404
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30829
+ * @summary Get all plans.
30830
+ * @param {string} [id]
30831
+ * @param {string} [name]
30832
+ * @param {number} [page]
30833
+ * @param {number} [limit]
30834
+ * @param {Date} [lastRetrieved]
29405
30835
  * @param {*} [options] Override http request option.
29406
30836
  * @throws {RequiredError}
29407
30837
  */
29408
- apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: any): AxiosPromise<boolean> {
29409
- return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(axios, basePath));
30838
+ apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PlansModel> {
30839
+ return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29410
30840
  },
29411
30841
  /**
29412
30842
  *
29413
- * @summary Get all notifications.
29414
- * @param {NotificationCode} [notificationCode]
29415
- * @param {boolean} [unreadCountOnly]
30843
+ * @summary Delete plan.
30844
+ * @param {string} planId
30845
+ * @param {*} [options] Override http request option.
30846
+ * @throws {RequiredError}
30847
+ */
30848
+ apiV1PlansPlanIdDelete(planId: string, options?: any): AxiosPromise<boolean> {
30849
+ return localVarFp.apiV1PlansPlanIdDelete(planId, options).then((request) => request(axios, basePath));
30850
+ },
30851
+ /**
30852
+ *
30853
+ * @summary Get plan.
30854
+ * @param {string} planId
30855
+ * @param {*} [options] Override http request option.
30856
+ * @throws {RequiredError}
30857
+ */
30858
+ apiV1PlansPlanIdGet(planId: string, options?: any): AxiosPromise<PlanModel> {
30859
+ return localVarFp.apiV1PlansPlanIdGet(planId, options).then((request) => request(axios, basePath));
30860
+ },
30861
+ /**
30862
+ *
30863
+ * @summary Get all plan hospital.
30864
+ * @param {string} planId
29416
30865
  * @param {number} [page]
29417
30866
  * @param {number} [limit]
29418
30867
  * @param {Date} [lastRetrieved]
29419
30868
  * @param {*} [options] Override http request option.
29420
30869
  * @throws {RequiredError}
29421
30870
  */
29422
- apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationsModel> {
29423
- return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30871
+ apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PlanHospitalsModel> {
30872
+ return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30873
+ },
30874
+ /**
30875
+ *
30876
+ * @summary Delete plan hospital.
30877
+ * @param {string} planId
30878
+ * @param {string} hospitalId
30879
+ * @param {*} [options] Override http request option.
30880
+ * @throws {RequiredError}
30881
+ */
30882
+ apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
30883
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then((request) => request(axios, basePath));
30884
+ },
30885
+ /**
30886
+ *
30887
+ * @summary Get plan hospital.
30888
+ * @param {string} planId
30889
+ * @param {string} hospitalId
30890
+ * @param {*} [options] Override http request option.
30891
+ * @throws {RequiredError}
30892
+ */
30893
+ apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: any): AxiosPromise<PlanHospitalModel> {
30894
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then((request) => request(axios, basePath));
30895
+ },
30896
+ /**
30897
+ *
30898
+ * @summary Update plan hospital.
30899
+ * @param {string} planId
30900
+ * @param {string} hospitalId
30901
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30902
+ * @param {*} [options] Override http request option.
30903
+ * @throws {RequiredError}
30904
+ */
30905
+ apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: any): AxiosPromise<PlanHospitalModel> {
30906
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then((request) => request(axios, basePath));
30907
+ },
30908
+ /**
30909
+ *
30910
+ * @summary Create plan hospital.
30911
+ * @param {string} planId
30912
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30913
+ * @param {*} [options] Override http request option.
30914
+ * @throws {RequiredError}
30915
+ */
30916
+ apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: any): AxiosPromise<PlanHospitalModel> {
30917
+ return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then((request) => request(axios, basePath));
30918
+ },
30919
+ /**
30920
+ *
30921
+ * @summary Update plan.
30922
+ * @param {string} planId
30923
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30924
+ * @param {*} [options] Override http request option.
30925
+ * @throws {RequiredError}
30926
+ */
30927
+ apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: any): AxiosPromise<PlanModel> {
30928
+ return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then((request) => request(axios, basePath));
30929
+ },
30930
+ /**
30931
+ *
30932
+ * @summary Create a plan.
30933
+ * @param {CreatePlanCommand} [createPlanCommand]
30934
+ * @param {*} [options] Override http request option.
30935
+ * @throws {RequiredError}
30936
+ */
30937
+ apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: any): AxiosPromise<PlanModel> {
30938
+ return localVarFp.apiV1PlansPost(createPlanCommand, options).then((request) => request(axios, basePath));
29424
30939
  },
29425
30940
  };
29426
30941
  };
29427
30942
 
29428
30943
  /**
29429
- * NotificationsApi - object-oriented interface
30944
+ * PlansApi - object-oriented interface
29430
30945
  * @export
29431
- * @class NotificationsApi
30946
+ * @class PlansApi
29432
30947
  * @extends {BaseAPI}
29433
30948
  */
29434
- export class NotificationsApi extends BaseAPI {
30949
+ export class PlansApi extends BaseAPI {
29435
30950
  /**
29436
30951
  *
29437
- * @summary Check notification.
29438
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30952
+ * @summary Get all plans.
30953
+ * @param {string} [id]
30954
+ * @param {string} [name]
30955
+ * @param {number} [page]
30956
+ * @param {number} [limit]
30957
+ * @param {Date} [lastRetrieved]
29439
30958
  * @param {*} [options] Override http request option.
29440
30959
  * @throws {RequiredError}
29441
- * @memberof NotificationsApi
30960
+ * @memberof PlansApi
29442
30961
  */
29443
- public apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig) {
29444
- return NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
30962
+ public apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30963
+ return PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29445
30964
  }
29446
30965
 
29447
30966
  /**
29448
30967
  *
29449
- * @summary Get all notifications.
29450
- * @param {NotificationCode} [notificationCode]
29451
- * @param {boolean} [unreadCountOnly]
30968
+ * @summary Delete plan.
30969
+ * @param {string} planId
30970
+ * @param {*} [options] Override http request option.
30971
+ * @throws {RequiredError}
30972
+ * @memberof PlansApi
30973
+ */
30974
+ public apiV1PlansPlanIdDelete(planId: string, options?: AxiosRequestConfig) {
30975
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then((request) => request(this.axios, this.basePath));
30976
+ }
30977
+
30978
+ /**
30979
+ *
30980
+ * @summary Get plan.
30981
+ * @param {string} planId
30982
+ * @param {*} [options] Override http request option.
30983
+ * @throws {RequiredError}
30984
+ * @memberof PlansApi
30985
+ */
30986
+ public apiV1PlansPlanIdGet(planId: string, options?: AxiosRequestConfig) {
30987
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then((request) => request(this.axios, this.basePath));
30988
+ }
30989
+
30990
+ /**
30991
+ *
30992
+ * @summary Get all plan hospital.
30993
+ * @param {string} planId
29452
30994
  * @param {number} [page]
29453
30995
  * @param {number} [limit]
29454
30996
  * @param {Date} [lastRetrieved]
29455
30997
  * @param {*} [options] Override http request option.
29456
30998
  * @throws {RequiredError}
29457
- * @memberof NotificationsApi
30999
+ * @memberof PlansApi
29458
31000
  */
29459
- public apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29460
- return NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
31001
+ public apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
31002
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
31003
+ }
31004
+
31005
+ /**
31006
+ *
31007
+ * @summary Delete plan hospital.
31008
+ * @param {string} planId
31009
+ * @param {string} hospitalId
31010
+ * @param {*} [options] Override http request option.
31011
+ * @throws {RequiredError}
31012
+ * @memberof PlansApi
31013
+ */
31014
+ public apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: AxiosRequestConfig) {
31015
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then((request) => request(this.axios, this.basePath));
31016
+ }
31017
+
31018
+ /**
31019
+ *
31020
+ * @summary Get plan hospital.
31021
+ * @param {string} planId
31022
+ * @param {string} hospitalId
31023
+ * @param {*} [options] Override http request option.
31024
+ * @throws {RequiredError}
31025
+ * @memberof PlansApi
31026
+ */
31027
+ public apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: AxiosRequestConfig) {
31028
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then((request) => request(this.axios, this.basePath));
31029
+ }
31030
+
31031
+ /**
31032
+ *
31033
+ * @summary Update plan hospital.
31034
+ * @param {string} planId
31035
+ * @param {string} hospitalId
31036
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
31037
+ * @param {*} [options] Override http request option.
31038
+ * @throws {RequiredError}
31039
+ * @memberof PlansApi
31040
+ */
31041
+ public apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: AxiosRequestConfig) {
31042
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then((request) => request(this.axios, this.basePath));
31043
+ }
31044
+
31045
+ /**
31046
+ *
31047
+ * @summary Create plan hospital.
31048
+ * @param {string} planId
31049
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
31050
+ * @param {*} [options] Override http request option.
31051
+ * @throws {RequiredError}
31052
+ * @memberof PlansApi
31053
+ */
31054
+ public apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: AxiosRequestConfig) {
31055
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then((request) => request(this.axios, this.basePath));
31056
+ }
31057
+
31058
+ /**
31059
+ *
31060
+ * @summary Update plan.
31061
+ * @param {string} planId
31062
+ * @param {UpdatePlanCommand} [updatePlanCommand]
31063
+ * @param {*} [options] Override http request option.
31064
+ * @throws {RequiredError}
31065
+ * @memberof PlansApi
31066
+ */
31067
+ public apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: AxiosRequestConfig) {
31068
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then((request) => request(this.axios, this.basePath));
31069
+ }
31070
+
31071
+ /**
31072
+ *
31073
+ * @summary Create a plan.
31074
+ * @param {CreatePlanCommand} [createPlanCommand]
31075
+ * @param {*} [options] Override http request option.
31076
+ * @throws {RequiredError}
31077
+ * @memberof PlansApi
31078
+ */
31079
+ public apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: AxiosRequestConfig) {
31080
+ return PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then((request) => request(this.axios, this.basePath));
29461
31081
  }
29462
31082
  }
29463
31083
 
@@ -30121,7 +31741,7 @@ export class ServicesApi extends BaseAPI {
30121
31741
  export const ServicesCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
30122
31742
  return {
30123
31743
  /**
30124
- * Sample request: GET /api/v1/ServiceCategories
31744
+ *
30125
31745
  * @summary Get all ServiceCategories.
30126
31746
  * @param {string} [id]
30127
31747
  * @param {string} [name]
@@ -30229,7 +31849,7 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
30229
31849
  };
30230
31850
  },
30231
31851
  /**
30232
- * Sample request: DELETE /api/v1/ServiceCategories/1
31852
+ *
30233
31853
  * @summary Delete ServiceCategory.
30234
31854
  * @param {string} serviceCategoryId
30235
31855
  * @param {*} [options] Override http request option.
@@ -30267,7 +31887,7 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
30267
31887
  };
30268
31888
  },
30269
31889
  /**
30270
- * Sample request: GET /api/v1/ServiceCategories/1
31890
+ *
30271
31891
  * @summary Get ServiceCategory.
30272
31892
  * @param {string} serviceCategoryId
30273
31893
  * @param {string} [languageCode]
@@ -30310,7 +31930,7 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
30310
31930
  };
30311
31931
  },
30312
31932
  /**
30313
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
31933
+ *
30314
31934
  * @summary Update ServiceCategory
30315
31935
  * @param {string} serviceCategoryId
30316
31936
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]
@@ -30362,7 +31982,7 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
30362
31982
  const localVarAxiosParamCreator = ServicesCategoriesApiAxiosParamCreator(configuration)
30363
31983
  return {
30364
31984
  /**
30365
- * Sample request: GET /api/v1/ServiceCategories
31985
+ *
30366
31986
  * @summary Get all ServiceCategories.
30367
31987
  * @param {string} [id]
30368
31988
  * @param {string} [name]
@@ -30389,7 +32009,7 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
30389
32009
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30390
32010
  },
30391
32011
  /**
30392
- * Sample request: DELETE /api/v1/ServiceCategories/1
32012
+ *
30393
32013
  * @summary Delete ServiceCategory.
30394
32014
  * @param {string} serviceCategoryId
30395
32015
  * @param {*} [options] Override http request option.
@@ -30400,7 +32020,7 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
30400
32020
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30401
32021
  },
30402
32022
  /**
30403
- * Sample request: GET /api/v1/ServiceCategories/1
32023
+ *
30404
32024
  * @summary Get ServiceCategory.
30405
32025
  * @param {string} serviceCategoryId
30406
32026
  * @param {string} [languageCode]
@@ -30412,14 +32032,14 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
30412
32032
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30413
32033
  },
30414
32034
  /**
30415
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
32035
+ *
30416
32036
  * @summary Update ServiceCategory
30417
32037
  * @param {string} serviceCategoryId
30418
32038
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]
30419
32039
  * @param {*} [options] Override http request option.
30420
32040
  * @throws {RequiredError}
30421
32041
  */
30422
- async apiV1ServicescategoriesServiceCategoryIdPut(serviceCategoryId: string, updateServiceCategoryCommand?: UpdateServiceCategoryCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
32042
+ async apiV1ServicescategoriesServiceCategoryIdPut(serviceCategoryId: string, updateServiceCategoryCommand?: UpdateServiceCategoryCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoryModel>> {
30423
32043
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicescategoriesServiceCategoryIdPut(serviceCategoryId, updateServiceCategoryCommand, options);
30424
32044
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30425
32045
  },
@@ -30434,7 +32054,7 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
30434
32054
  const localVarFp = ServicesCategoriesApiFp(configuration)
30435
32055
  return {
30436
32056
  /**
30437
- * Sample request: GET /api/v1/ServiceCategories
32057
+ *
30438
32058
  * @summary Get all ServiceCategories.
30439
32059
  * @param {string} [id]
30440
32060
  * @param {string} [name]
@@ -30459,7 +32079,7 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
30459
32079
  return localVarFp.apiV1ServicescategoriesPost(createServiceCategoryCommand, options).then((request) => request(axios, basePath));
30460
32080
  },
30461
32081
  /**
30462
- * Sample request: DELETE /api/v1/ServiceCategories/1
32082
+ *
30463
32083
  * @summary Delete ServiceCategory.
30464
32084
  * @param {string} serviceCategoryId
30465
32085
  * @param {*} [options] Override http request option.
@@ -30469,7 +32089,7 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
30469
32089
  return localVarFp.apiV1ServicescategoriesServiceCategoryIdDelete(serviceCategoryId, options).then((request) => request(axios, basePath));
30470
32090
  },
30471
32091
  /**
30472
- * Sample request: GET /api/v1/ServiceCategories/1
32092
+ *
30473
32093
  * @summary Get ServiceCategory.
30474
32094
  * @param {string} serviceCategoryId
30475
32095
  * @param {string} [languageCode]
@@ -30480,14 +32100,14 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
30480
32100
  return localVarFp.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, languageCode, options).then((request) => request(axios, basePath));
30481
32101
  },
30482
32102
  /**
30483
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
32103
+ *
30484
32104
  * @summary Update ServiceCategory
30485
32105
  * @param {string} serviceCategoryId
30486
32106
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]
30487
32107
  * @param {*} [options] Override http request option.
30488
32108
  * @throws {RequiredError}
30489
32109
  */
30490
- apiV1ServicescategoriesServiceCategoryIdPut(serviceCategoryId: string, updateServiceCategoryCommand?: UpdateServiceCategoryCommand, options?: any): AxiosPromise<void> {
32110
+ apiV1ServicescategoriesServiceCategoryIdPut(serviceCategoryId: string, updateServiceCategoryCommand?: UpdateServiceCategoryCommand, options?: any): AxiosPromise<ServiceCategoryModel> {
30491
32111
  return localVarFp.apiV1ServicescategoriesServiceCategoryIdPut(serviceCategoryId, updateServiceCategoryCommand, options).then((request) => request(axios, basePath));
30492
32112
  },
30493
32113
  };
@@ -30501,7 +32121,7 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
30501
32121
  */
30502
32122
  export class ServicesCategoriesApi extends BaseAPI {
30503
32123
  /**
30504
- * Sample request: GET /api/v1/ServiceCategories
32124
+ *
30505
32125
  * @summary Get all ServiceCategories.
30506
32126
  * @param {string} [id]
30507
32127
  * @param {string} [name]
@@ -30530,7 +32150,7 @@ export class ServicesCategoriesApi extends BaseAPI {
30530
32150
  }
30531
32151
 
30532
32152
  /**
30533
- * Sample request: DELETE /api/v1/ServiceCategories/1
32153
+ *
30534
32154
  * @summary Delete ServiceCategory.
30535
32155
  * @param {string} serviceCategoryId
30536
32156
  * @param {*} [options] Override http request option.
@@ -30542,7 +32162,7 @@ export class ServicesCategoriesApi extends BaseAPI {
30542
32162
  }
30543
32163
 
30544
32164
  /**
30545
- * Sample request: GET /api/v1/ServiceCategories/1
32165
+ *
30546
32166
  * @summary Get ServiceCategory.
30547
32167
  * @param {string} serviceCategoryId
30548
32168
  * @param {string} [languageCode]
@@ -30555,7 +32175,7 @@ export class ServicesCategoriesApi extends BaseAPI {
30555
32175
  }
30556
32176
 
30557
32177
  /**
30558
- * Sample request: PUT /api/v1/ServiceCategories/1 { \"name\": \"Adults\", \"description\": \"There are so many “-ologists“ that they can be hard to keep straight. However, this list could be a handy reference. This is not meant to be an exhaustive and all-inclusive list of what a specialist does, but it should provide you with a basic overview.\" }
32178
+ *
30559
32179
  * @summary Update ServiceCategory
30560
32180
  * @param {string} serviceCategoryId
30561
32181
  * @param {UpdateServiceCategoryCommand} [updateServiceCategoryCommand]