ch-api-client-typescript2 2.6.7 → 2.7.0

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
@@ -2455,6 +2455,91 @@ export interface CountryModel {
2455
2455
  */
2456
2456
  'languageCode'?: string | null;
2457
2457
  }
2458
+ /**
2459
+ *
2460
+ * @export
2461
+ * @interface CreateBookingCommand
2462
+ */
2463
+ export interface CreateBookingCommand {
2464
+ /**
2465
+ *
2466
+ * @type {string}
2467
+ * @memberof CreateBookingCommand
2468
+ */
2469
+ 'hospitalId'?: string;
2470
+ /**
2471
+ *
2472
+ * @type {string}
2473
+ * @memberof CreateBookingCommand
2474
+ */
2475
+ 'dealPackageId'?: string;
2476
+ /**
2477
+ *
2478
+ * @type {number}
2479
+ * @memberof CreateBookingCommand
2480
+ */
2481
+ 'quantity'?: number;
2482
+ /**
2483
+ *
2484
+ * @type {string}
2485
+ * @memberof CreateBookingCommand
2486
+ */
2487
+ 'firstName'?: string | null;
2488
+ /**
2489
+ *
2490
+ * @type {string}
2491
+ * @memberof CreateBookingCommand
2492
+ */
2493
+ 'lastName'?: string | null;
2494
+ /**
2495
+ *
2496
+ * @type {string}
2497
+ * @memberof CreateBookingCommand
2498
+ */
2499
+ 'email'?: string | null;
2500
+ /**
2501
+ *
2502
+ * @type {string}
2503
+ * @memberof CreateBookingCommand
2504
+ */
2505
+ 'phone'?: string | null;
2506
+ /**
2507
+ *
2508
+ * @type {Date}
2509
+ * @memberof CreateBookingCommand
2510
+ */
2511
+ 'dateOfBirth'?: Date | null;
2512
+ /**
2513
+ *
2514
+ * @type {Gender}
2515
+ * @memberof CreateBookingCommand
2516
+ */
2517
+ 'gender'?: Gender;
2518
+ /**
2519
+ *
2520
+ * @type {Date}
2521
+ * @memberof CreateBookingCommand
2522
+ */
2523
+ 'approximateDateStart'?: Date;
2524
+ /**
2525
+ *
2526
+ * @type {Date}
2527
+ * @memberof CreateBookingCommand
2528
+ */
2529
+ 'approximateDateEnd'?: Date;
2530
+ /**
2531
+ *
2532
+ * @type {string}
2533
+ * @memberof CreateBookingCommand
2534
+ */
2535
+ 'comment'?: string | null;
2536
+ /**
2537
+ *
2538
+ * @type {string}
2539
+ * @memberof CreateBookingCommand
2540
+ */
2541
+ 'timeZone'?: string | null;
2542
+ }
2458
2543
  /**
2459
2544
  *
2460
2545
  * @export
@@ -2492,6 +2577,121 @@ export interface CreateChatUserCommand {
2492
2577
  */
2493
2578
  'discoveryKeys'?: Array<string> | null;
2494
2579
  }
2580
+ /**
2581
+ *
2582
+ * @export
2583
+ * @interface CreateConsultationCommand
2584
+ */
2585
+ export interface CreateConsultationCommand {
2586
+ /**
2587
+ *
2588
+ * @type {ConsultationType}
2589
+ * @memberof CreateConsultationCommand
2590
+ */
2591
+ 'consultationType'?: ConsultationType;
2592
+ /**
2593
+ *
2594
+ * @type {string}
2595
+ * @memberof CreateConsultationCommand
2596
+ */
2597
+ 'hospitalId'?: string;
2598
+ /**
2599
+ *
2600
+ * @type {string}
2601
+ * @memberof CreateConsultationCommand
2602
+ */
2603
+ 'specialtyId'?: string | null;
2604
+ /**
2605
+ *
2606
+ * @type {string}
2607
+ * @memberof CreateConsultationCommand
2608
+ */
2609
+ 'doctorId'?: string | null;
2610
+ /**
2611
+ *
2612
+ * @type {string}
2613
+ * @memberof CreateConsultationCommand
2614
+ */
2615
+ 'dealId'?: string | null;
2616
+ /**
2617
+ *
2618
+ * @type {string}
2619
+ * @memberof CreateConsultationCommand
2620
+ */
2621
+ 'language'?: string | null;
2622
+ /**
2623
+ *
2624
+ * @type {boolean}
2625
+ * @memberof CreateConsultationCommand
2626
+ */
2627
+ 'isAccountHolder'?: boolean;
2628
+ /**
2629
+ *
2630
+ * @type {string}
2631
+ * @memberof CreateConsultationCommand
2632
+ */
2633
+ 'firstName'?: string | null;
2634
+ /**
2635
+ *
2636
+ * @type {string}
2637
+ * @memberof CreateConsultationCommand
2638
+ */
2639
+ 'lastName'?: string | null;
2640
+ /**
2641
+ *
2642
+ * @type {string}
2643
+ * @memberof CreateConsultationCommand
2644
+ */
2645
+ 'email'?: string | null;
2646
+ /**
2647
+ *
2648
+ * @type {string}
2649
+ * @memberof CreateConsultationCommand
2650
+ */
2651
+ 'phone'?: string | null;
2652
+ /**
2653
+ *
2654
+ * @type {Date}
2655
+ * @memberof CreateConsultationCommand
2656
+ */
2657
+ 'dateOfBirth'?: Date | null;
2658
+ /**
2659
+ *
2660
+ * @type {Gender}
2661
+ * @memberof CreateConsultationCommand
2662
+ */
2663
+ 'gender'?: Gender;
2664
+ /**
2665
+ *
2666
+ * @type {string}
2667
+ * @memberof CreateConsultationCommand
2668
+ */
2669
+ 'comment'?: string | null;
2670
+ /**
2671
+ *
2672
+ * @type {string}
2673
+ * @memberof CreateConsultationCommand
2674
+ */
2675
+ 'timeRange'?: string | null;
2676
+ /**
2677
+ *
2678
+ * @type {Date}
2679
+ * @memberof CreateConsultationCommand
2680
+ */
2681
+ 'approximateDateStart'?: Date;
2682
+ /**
2683
+ *
2684
+ * @type {Date}
2685
+ * @memberof CreateConsultationCommand
2686
+ */
2687
+ 'approximateDateEnd'?: Date;
2688
+ /**
2689
+ *
2690
+ * @type {string}
2691
+ * @memberof CreateConsultationCommand
2692
+ */
2693
+ 'timeZone'?: string | null;
2694
+ }
2495
2695
  /**
2496
2696
  *
2497
2697
  * @export
@@ -3375,6 +3575,12 @@ export interface DoctorItemModel {
3375
3575
  * @memberof DoctorItemModel
3376
3576
  */
3377
3577
  'id'?: string;
3578
+ /**
3579
+ *
3580
+ * @type {string}
3581
+ * @memberof DoctorItemModel
3582
+ */
3583
+ 'userType'?: string | null;
3378
3584
  /**
3379
3585
  *
3380
3586
  * @type {string}
@@ -3453,12 +3659,6 @@ export interface DoctorItemModel {
3453
3659
  * @memberof DoctorItemModel
3454
3660
  */
3455
3661
  'auditableEntity'?: AuditableEntity;
3456
- /**
3457
- *
3458
- * @type {string}
3459
- * @memberof DoctorItemModel
3460
- */
3461
- 'userType'?: string | null;
3462
3662
  /**
3463
3663
  *
3464
3664
  * @type {Array<UserLanguageModel>}
@@ -3513,6 +3713,30 @@ export interface DoctorItemModel {
3513
3713
  * @memberof DoctorItemModel
3514
3714
  */
3515
3715
  'consultationFee'?: number | null;
3716
+ /**
3717
+ *
3718
+ * @type {number}
3719
+ * @memberof DoctorItemModel
3720
+ */
3721
+ 'doctorSpecialtiesCount'?: number;
3722
+ /**
3723
+ *
3724
+ * @type {Array<DoctorSpecialtyItemModel>}
3725
+ * @memberof DoctorItemModel
3726
+ */
3727
+ 'doctorSpecialties'?: Array<DoctorSpecialtyItemModel> | null;
3728
+ /**
3729
+ *
3730
+ * @type {number}
3731
+ * @memberof DoctorItemModel
3732
+ */
3733
+ 'doctorAffiliationsCount'?: number;
3734
+ /**
3735
+ *
3736
+ * @type {Array<HospitalAffiliationModel>}
3737
+ * @memberof DoctorItemModel
3738
+ */
3739
+ 'doctorAffiliations'?: Array<HospitalAffiliationModel> | null;
3516
3740
  /**
3517
3741
  *
3518
3742
  * @type {Array<LocalizedUrlModel>}
@@ -3538,6 +3762,12 @@ export interface DoctorModel {
3538
3762
  * @memberof DoctorModel
3539
3763
  */
3540
3764
  'id'?: string;
3765
+ /**
3766
+ *
3767
+ * @type {string}
3768
+ * @memberof DoctorModel
3769
+ */
3770
+ 'userType'?: string | null;
3541
3771
  /**
3542
3772
  *
3543
3773
  * @type {string}
@@ -3616,12 +3846,6 @@ export interface DoctorModel {
3616
3846
  * @memberof DoctorModel
3617
3847
  */
3618
3848
  'auditableEntity'?: AuditableEntity;
3619
- /**
3620
- *
3621
- * @type {string}
3622
- * @memberof DoctorModel
3623
- */
3624
- 'userType'?: string | null;
3625
3849
  /**
3626
3850
  *
3627
3851
  * @type {Array<UserLanguageModel>}
@@ -3676,6 +3900,30 @@ export interface DoctorModel {
3676
3900
  * @memberof DoctorModel
3677
3901
  */
3678
3902
  'consultationFee'?: number | null;
3903
+ /**
3904
+ *
3905
+ * @type {number}
3906
+ * @memberof DoctorModel
3907
+ */
3908
+ 'doctorSpecialtiesCount'?: number;
3909
+ /**
3910
+ *
3911
+ * @type {Array<DoctorSpecialtyItemModel>}
3912
+ * @memberof DoctorModel
3913
+ */
3914
+ 'doctorSpecialties'?: Array<DoctorSpecialtyItemModel> | null;
3915
+ /**
3916
+ *
3917
+ * @type {number}
3918
+ * @memberof DoctorModel
3919
+ */
3920
+ 'doctorAffiliationsCount'?: number;
3921
+ /**
3922
+ *
3923
+ * @type {Array<HospitalAffiliationModel>}
3924
+ * @memberof DoctorModel
3925
+ */
3926
+ 'doctorAffiliations'?: Array<HospitalAffiliationModel> | null;
3679
3927
  /**
3680
3928
  *
3681
3929
  * @type {Array<LocalizedUrlModel>}
@@ -3831,6 +4079,49 @@ export interface DoctorSpecialtiesModel {
3831
4079
  */
3832
4080
  'metaData'?: PagedListMetaData;
3833
4081
  }
4082
+ /**
4083
+ *
4084
+ * @export
4085
+ * @interface DoctorSpecialtyItemModel
4086
+ */
4087
+ export interface DoctorSpecialtyItemModel {
4088
+ /**
4089
+ *
4090
+ * @type {string}
4091
+ * @memberof DoctorSpecialtyItemModel
4092
+ */
4093
+ 'specialtyId'?: string;
4094
+ /**
4095
+ *
4096
+ * @type {string}
4097
+ * @memberof DoctorSpecialtyItemModel
4098
+ */
4099
+ 'specialtyName'?: string | null;
4100
+ /**
4101
+ *
4102
+ * @type {string}
4103
+ * @memberof DoctorSpecialtyItemModel
4104
+ */
4105
+ 'specialtySlug'?: string | null;
4106
+ /**
4107
+ *
4108
+ * @type {string}
4109
+ * @memberof DoctorSpecialtyItemModel
4110
+ */
4111
+ 'specialtyTypeId'?: string;
4112
+ /**
4113
+ *
4114
+ * @type {string}
4115
+ * @memberof DoctorSpecialtyItemModel
4116
+ */
4117
+ 'specialtyTypeName'?: string | null;
4118
+ /**
4119
+ *
4120
+ * @type {number}
4121
+ * @memberof DoctorSpecialtyItemModel
4122
+ */
4123
+ 'order'?: number;
4124
+ }
3834
4125
  /**
3835
4126
  *
3836
4127
  * @export
@@ -4337,6 +4628,55 @@ export interface HospitalAccreditationsModel {
4337
4628
  */
4338
4629
  'metaData'?: PagedListMetaData;
4339
4630
  }
4631
+ /**
4632
+ *
4633
+ * @export
4634
+ * @interface HospitalAffiliationModel
4635
+ */
4636
+ export interface HospitalAffiliationModel {
4637
+ /**
4638
+ *
4639
+ * @type {string}
4640
+ * @memberof HospitalAffiliationModel
4641
+ */
4642
+ 'hospitalId'?: string;
4643
+ /**
4644
+ *
4645
+ * @type {string}
4646
+ * @memberof HospitalAffiliationModel
4647
+ */
4648
+ 'hospitalName'?: string | null;
4649
+ /**
4650
+ *
4651
+ * @type {string}
4652
+ * @memberof HospitalAffiliationModel
4653
+ */
4654
+ 'hospitalSlug'?: string | null;
4655
+ /**
4656
+ *
4657
+ * @type {string}
4658
+ * @memberof HospitalAffiliationModel
4659
+ */
4660
+ 'countryId'?: string;
4661
+ /**
4662
+ *
4663
+ * @type {string}
4664
+ * @memberof HospitalAffiliationModel
4665
+ */
4666
+ 'countryName'?: string | null;
4667
+ /**
4668
+ *
4669
+ * @type {string}
4670
+ * @memberof HospitalAffiliationModel
4671
+ */
4672
+ 'stateName'?: string | null;
4673
+ /**
4674
+ *
4675
+ * @type {string}
4676
+ * @memberof HospitalAffiliationModel
4677
+ */
4678
+ 'cityName'?: string | null;
4679
+ }
4340
4680
  /**
4341
4681
  *
4342
4682
  * @export
@@ -6171,6 +6511,12 @@ export interface PatientModel {
6171
6511
  * @memberof PatientModel
6172
6512
  */
6173
6513
  'id'?: string;
6514
+ /**
6515
+ *
6516
+ * @type {string}
6517
+ * @memberof PatientModel
6518
+ */
6519
+ 'userType'?: string | null;
6174
6520
  /**
6175
6521
  *
6176
6522
  * @type {string}
@@ -6249,12 +6595,6 @@ export interface PatientModel {
6249
6595
  * @memberof PatientModel
6250
6596
  */
6251
6597
  'auditableEntity'?: AuditableEntity;
6252
- /**
6253
- *
6254
- * @type {string}
6255
- * @memberof PatientModel
6256
- */
6257
- 'userType'?: string | null;
6258
6598
  /**
6259
6599
  *
6260
6600
  * @type {Array<UserLanguageModel>}
@@ -7241,94 +7581,264 @@ export interface TagItemModel {
7241
7581
  * @type {number}
7242
7582
  * @memberof TagItemModel
7243
7583
  */
7244
- 'articleTagsCount'?: number;
7584
+ 'articleTagsCount'?: number;
7585
+ /**
7586
+ *
7587
+ * @type {number}
7588
+ * @memberof TagItemModel
7589
+ */
7590
+ 'youtubeTagsCount'?: number;
7591
+ }
7592
+ /**
7593
+ *
7594
+ * @export
7595
+ * @interface TagModel
7596
+ */
7597
+ export interface TagModel {
7598
+ /**
7599
+ *
7600
+ * @type {string}
7601
+ * @memberof TagModel
7602
+ */
7603
+ 'tagId'?: string | null;
7604
+ /**
7605
+ *
7606
+ * @type {string}
7607
+ * @memberof TagModel
7608
+ */
7609
+ 'normalizedTagId'?: string | null;
7610
+ /**
7611
+ *
7612
+ * @type {number}
7613
+ * @memberof TagModel
7614
+ */
7615
+ 'articleTagsCount'?: number;
7616
+ /**
7617
+ *
7618
+ * @type {number}
7619
+ * @memberof TagModel
7620
+ */
7621
+ 'youtubeTagsCount'?: number;
7622
+ }
7623
+ /**
7624
+ *
7625
+ * @export
7626
+ * @interface TagsModel
7627
+ */
7628
+ export interface TagsModel {
7629
+ /**
7630
+ *
7631
+ * @type {Array<TagItemModel>}
7632
+ * @memberof TagsModel
7633
+ */
7634
+ 'items'?: Array<TagItemModel> | null;
7635
+ /**
7636
+ *
7637
+ * @type {PagedListMetaData}
7638
+ * @memberof TagsModel
7639
+ */
7640
+ 'metaData'?: PagedListMetaData;
7641
+ }
7642
+ /**
7643
+ *
7644
+ * @export
7645
+ * @interface UpdateBookingCommand
7646
+ */
7647
+ export interface UpdateBookingCommand {
7648
+ /**
7649
+ *
7650
+ * @type {number}
7651
+ * @memberof UpdateBookingCommand
7652
+ */
7653
+ 'quantity'?: number;
7654
+ /**
7655
+ *
7656
+ * @type {string}
7657
+ * @memberof UpdateBookingCommand
7658
+ */
7659
+ 'firstName'?: string | null;
7660
+ /**
7661
+ *
7662
+ * @type {string}
7663
+ * @memberof UpdateBookingCommand
7664
+ */
7665
+ 'lastName'?: string | null;
7666
+ /**
7667
+ *
7668
+ * @type {string}
7669
+ * @memberof UpdateBookingCommand
7670
+ */
7671
+ 'email'?: string | null;
7672
+ /**
7673
+ *
7674
+ * @type {string}
7675
+ * @memberof UpdateBookingCommand
7676
+ */
7677
+ 'phone'?: string | null;
7678
+ /**
7679
+ *
7680
+ * @type {Date}
7681
+ * @memberof UpdateBookingCommand
7682
+ */
7683
+ 'dateOfBirth'?: Date | null;
7684
+ /**
7685
+ *
7686
+ * @type {Gender}
7687
+ * @memberof UpdateBookingCommand
7688
+ */
7689
+ 'gender'?: Gender;
7690
+ /**
7691
+ *
7692
+ * @type {Date}
7693
+ * @memberof UpdateBookingCommand
7694
+ */
7695
+ 'approximateDateStart'?: Date;
7696
+ /**
7697
+ *
7698
+ * @type {Date}
7699
+ * @memberof UpdateBookingCommand
7700
+ */
7701
+ 'approximateDateEnd'?: Date;
7702
+ /**
7703
+ *
7704
+ * @type {string}
7705
+ * @memberof UpdateBookingCommand
7706
+ */
7707
+ 'comment'?: string | null;
7708
+ /**
7709
+ *
7710
+ * @type {string}
7711
+ * @memberof UpdateBookingCommand
7712
+ */
7713
+ 'timeZone'?: string | null;
7714
+ }
7715
+ /**
7716
+ *
7717
+ * @export
7718
+ * @interface UpdateChatUserCommand
7719
+ */
7720
+ export interface UpdateChatUserCommand {
7721
+ /**
7722
+ *
7723
+ * @type {string}
7724
+ * @memberof UpdateChatUserCommand
7725
+ */
7726
+ 'nickname'?: string | null;
7727
+ /**
7728
+ *
7729
+ * @type {string}
7730
+ * @memberof UpdateChatUserCommand
7731
+ */
7732
+ 'profileUrl'?: string | null;
7733
+ /**
7734
+ *
7735
+ * @type {boolean}
7736
+ * @memberof UpdateChatUserCommand
7737
+ */
7738
+ 'issueAccessToken'?: boolean;
7739
+ /**
7740
+ *
7741
+ * @type {Array<string>}
7742
+ * @memberof UpdateChatUserCommand
7743
+ */
7744
+ 'discoveryKeys'?: Array<string> | null;
7745
+ }
7746
+ /**
7747
+ *
7748
+ * @export
7749
+ * @interface UpdateConsultationCommand
7750
+ */
7751
+ export interface UpdateConsultationCommand {
7752
+ /**
7753
+ *
7754
+ * @type {string}
7755
+ * @memberof UpdateConsultationCommand
7756
+ */
7757
+ 'specialtyId'?: string | null;
7758
+ /**
7759
+ *
7760
+ * @type {string}
7761
+ * @memberof UpdateConsultationCommand
7762
+ */
7763
+ 'doctorId'?: string | null;
7764
+ /**
7765
+ *
7766
+ * @type {string}
7767
+ * @memberof UpdateConsultationCommand
7768
+ */
7769
+ 'language'?: string | null;
7770
+ /**
7771
+ *
7772
+ * @type {boolean}
7773
+ * @memberof UpdateConsultationCommand
7774
+ */
7775
+ 'isAccountHolder'?: boolean;
7245
7776
  /**
7246
7777
  *
7247
- * @type {number}
7248
- * @memberof TagItemModel
7778
+ * @type {string}
7779
+ * @memberof UpdateConsultationCommand
7249
7780
  */
7250
- 'youtubeTagsCount'?: number;
7251
- }
7252
- /**
7253
- *
7254
- * @export
7255
- * @interface TagModel
7256
- */
7257
- export interface TagModel {
7781
+ 'firstName'?: string | null;
7258
7782
  /**
7259
7783
  *
7260
7784
  * @type {string}
7261
- * @memberof TagModel
7785
+ * @memberof UpdateConsultationCommand
7262
7786
  */
7263
- 'tagId'?: string | null;
7787
+ 'lastName'?: string | null;
7264
7788
  /**
7265
7789
  *
7266
7790
  * @type {string}
7267
- * @memberof TagModel
7791
+ * @memberof UpdateConsultationCommand
7268
7792
  */
7269
- 'normalizedTagId'?: string | null;
7793
+ 'email'?: string | null;
7270
7794
  /**
7271
7795
  *
7272
- * @type {number}
7273
- * @memberof TagModel
7796
+ * @type {string}
7797
+ * @memberof UpdateConsultationCommand
7274
7798
  */
7275
- 'articleTagsCount'?: number;
7799
+ 'phone'?: string | null;
7276
7800
  /**
7277
7801
  *
7278
- * @type {number}
7279
- * @memberof TagModel
7802
+ * @type {Date}
7803
+ * @memberof UpdateConsultationCommand
7280
7804
  */
7281
- 'youtubeTagsCount'?: number;
7282
- }
7283
- /**
7284
- *
7285
- * @export
7286
- * @interface TagsModel
7287
- */
7288
- export interface TagsModel {
7805
+ 'dateOfBirth'?: Date | null;
7289
7806
  /**
7290
7807
  *
7291
- * @type {Array<TagItemModel>}
7292
- * @memberof TagsModel
7808
+ * @type {Gender}
7809
+ * @memberof UpdateConsultationCommand
7293
7810
  */
7294
- 'items'?: Array<TagItemModel> | null;
7811
+ 'gender'?: Gender;
7295
7812
  /**
7296
7813
  *
7297
- * @type {PagedListMetaData}
7298
- * @memberof TagsModel
7814
+ * @type {string}
7815
+ * @memberof UpdateConsultationCommand
7299
7816
  */
7300
- 'metaData'?: PagedListMetaData;
7301
- }
7302
- /**
7303
- *
7304
- * @export
7305
- * @interface UpdateChatUserCommand
7306
- */
7307
- export interface UpdateChatUserCommand {
7817
+ 'comment'?: string | null;
7308
7818
  /**
7309
7819
  *
7310
7820
  * @type {string}
7311
- * @memberof UpdateChatUserCommand
7821
+ * @memberof UpdateConsultationCommand
7312
7822
  */
7313
- 'nickname'?: string | null;
7823
+ 'timeRange'?: string | null;
7314
7824
  /**
7315
7825
  *
7316
- * @type {string}
7317
- * @memberof UpdateChatUserCommand
7826
+ * @type {Date}
7827
+ * @memberof UpdateConsultationCommand
7318
7828
  */
7319
- 'profileUrl'?: string | null;
7829
+ 'approximateDateStart'?: Date;
7320
7830
  /**
7321
7831
  *
7322
- * @type {boolean}
7323
- * @memberof UpdateChatUserCommand
7832
+ * @type {Date}
7833
+ * @memberof UpdateConsultationCommand
7324
7834
  */
7325
- 'issueAccessToken'?: boolean;
7835
+ 'approximateDateEnd'?: Date;
7326
7836
  /**
7327
7837
  *
7328
- * @type {Array<string>}
7329
- * @memberof UpdateChatUserCommand
7838
+ * @type {string}
7839
+ * @memberof UpdateConsultationCommand
7330
7840
  */
7331
- 'discoveryKeys'?: Array<string> | null;
7841
+ 'timeZone'?: string | null;
7332
7842
  }
7333
7843
  /**
7334
7844
  *
@@ -7561,6 +8071,12 @@ export interface UserModel {
7561
8071
  * @memberof UserModel
7562
8072
  */
7563
8073
  'id'?: string;
8074
+ /**
8075
+ *
8076
+ * @type {string}
8077
+ * @memberof UserModel
8078
+ */
8079
+ 'userType'?: string | null;
7564
8080
  /**
7565
8081
  *
7566
8082
  * @type {string}
@@ -7639,12 +8155,6 @@ export interface UserModel {
7639
8155
  * @memberof UserModel
7640
8156
  */
7641
8157
  'auditableEntity'?: AuditableEntity;
7642
- /**
7643
- *
7644
- * @type {string}
7645
- * @memberof UserModel
7646
- */
7647
- 'userType'?: string | null;
7648
8158
  /**
7649
8159
  *
7650
8160
  * @type {Array<UserLanguageModel>}
@@ -9198,6 +9708,124 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
9198
9708
  options: localVarRequestOptions,
9199
9709
  };
9200
9710
  },
9711
+ /**
9712
+ *
9713
+ * @summary Mark as Paid booking.
9714
+ * @param {string} bookingId
9715
+ * @param {*} [options] Override http request option.
9716
+ * @throws {RequiredError}
9717
+ */
9718
+ apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9719
+ // verify required parameter 'bookingId' is not null or undefined
9720
+ assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
9721
+ const localVarPath = `/api/v2/bookings/{bookingId}/paid`
9722
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
9723
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9724
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9725
+ let baseOptions;
9726
+ if (configuration) {
9727
+ baseOptions = configuration.baseOptions;
9728
+ }
9729
+
9730
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9731
+ const localVarHeaderParameter = {} as any;
9732
+ const localVarQueryParameter = {} as any;
9733
+
9734
+ // authentication oauth2 required
9735
+ // oauth required
9736
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
9737
+
9738
+
9739
+
9740
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9741
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9742
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9743
+
9744
+ return {
9745
+ url: toPathString(localVarUrlObj),
9746
+ options: localVarRequestOptions,
9747
+ };
9748
+ },
9749
+ /**
9750
+ *
9751
+ * @summary Pay booking.
9752
+ * @param {string} bookingId
9753
+ * @param {*} [options] Override http request option.
9754
+ * @throws {RequiredError}
9755
+ */
9756
+ apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9757
+ // verify required parameter 'bookingId' is not null or undefined
9758
+ assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
9759
+ const localVarPath = `/api/v2/bookings/{bookingId}/pay`
9760
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
9761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9763
+ let baseOptions;
9764
+ if (configuration) {
9765
+ baseOptions = configuration.baseOptions;
9766
+ }
9767
+
9768
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9769
+ const localVarHeaderParameter = {} as any;
9770
+ const localVarQueryParameter = {} as any;
9771
+
9772
+ // authentication oauth2 required
9773
+ // oauth required
9774
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
9775
+
9776
+
9777
+
9778
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9779
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9780
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9781
+
9782
+ return {
9783
+ url: toPathString(localVarUrlObj),
9784
+ options: localVarRequestOptions,
9785
+ };
9786
+ },
9787
+ /**
9788
+ *
9789
+ * @summary Update booking.
9790
+ * @param {string} bookingId
9791
+ * @param {UpdateBookingCommand} [updateBookingCommand]
9792
+ * @param {*} [options] Override http request option.
9793
+ * @throws {RequiredError}
9794
+ */
9795
+ apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9796
+ // verify required parameter 'bookingId' is not null or undefined
9797
+ assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
9798
+ const localVarPath = `/api/v2/bookings/{bookingId}`
9799
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
9800
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9801
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9802
+ let baseOptions;
9803
+ if (configuration) {
9804
+ baseOptions = configuration.baseOptions;
9805
+ }
9806
+
9807
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9808
+ const localVarHeaderParameter = {} as any;
9809
+ const localVarQueryParameter = {} as any;
9810
+
9811
+ // authentication oauth2 required
9812
+ // oauth required
9813
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
9814
+
9815
+
9816
+
9817
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9818
+
9819
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9820
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9821
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9822
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
9823
+
9824
+ return {
9825
+ url: toPathString(localVarUrlObj),
9826
+ options: localVarRequestOptions,
9827
+ };
9828
+ },
9201
9829
  /**
9202
9830
  *
9203
9831
  * @summary Reject booking.
@@ -9311,6 +9939,48 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
9311
9939
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9312
9940
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9313
9941
 
9942
+ return {
9943
+ url: toPathString(localVarUrlObj),
9944
+ options: localVarRequestOptions,
9945
+ };
9946
+ },
9947
+ /**
9948
+ *
9949
+ * @summary Create booking.
9950
+ * @param {string} requestId
9951
+ * @param {CreateBookingCommand} [createBookingCommand]
9952
+ * @param {*} [options] Override http request option.
9953
+ * @throws {RequiredError}
9954
+ */
9955
+ apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9956
+ // verify required parameter 'requestId' is not null or undefined
9957
+ assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
9958
+ const localVarPath = `/api/v2/bookings/{requestId}`
9959
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
9960
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9961
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9962
+ let baseOptions;
9963
+ if (configuration) {
9964
+ baseOptions = configuration.baseOptions;
9965
+ }
9966
+
9967
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9968
+ const localVarHeaderParameter = {} as any;
9969
+ const localVarQueryParameter = {} as any;
9970
+
9971
+ // authentication oauth2 required
9972
+ // oauth required
9973
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
9974
+
9975
+
9976
+
9977
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9978
+
9979
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9980
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9981
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9982
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
9983
+
9314
9984
  return {
9315
9985
  url: toPathString(localVarUrlObj),
9316
9986
  options: localVarRequestOptions,
@@ -9330,45 +10000,79 @@ export const BookingsApiFp = function(configuration?: Configuration) {
9330
10000
  *
9331
10001
  * @summary Approve booking.
9332
10002
  * @param {string} bookingId
9333
- * @param {ApproveBookingCommand} [approveBookingCommand]
10003
+ * @param {ApproveBookingCommand} [approveBookingCommand]
10004
+ * @param {*} [options] Override http request option.
10005
+ * @throws {RequiredError}
10006
+ */
10007
+ async apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
10008
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options);
10009
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10010
+ },
10011
+ /**
10012
+ *
10013
+ * @summary Cancel booking.
10014
+ * @param {string} bookingId
10015
+ * @param {*} [options] Override http request option.
10016
+ * @throws {RequiredError}
10017
+ */
10018
+ async apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
10019
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options);
10020
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10021
+ },
10022
+ /**
10023
+ *
10024
+ * @summary Delete booking.
10025
+ * @param {string} bookingId
10026
+ * @param {*} [options] Override http request option.
10027
+ * @throws {RequiredError}
10028
+ */
10029
+ async apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
10030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options);
10031
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10032
+ },
10033
+ /**
10034
+ *
10035
+ * @summary Get booking.
10036
+ * @param {string} bookingId
9334
10037
  * @param {*} [options] Override http request option.
9335
10038
  * @throws {RequiredError}
9336
10039
  */
9337
- async apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
9338
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options);
10040
+ async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
10041
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
9339
10042
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9340
10043
  },
9341
10044
  /**
9342
10045
  *
9343
- * @summary Cancel booking.
10046
+ * @summary Mark as Paid booking.
9344
10047
  * @param {string} bookingId
9345
10048
  * @param {*} [options] Override http request option.
9346
10049
  * @throws {RequiredError}
9347
10050
  */
9348
- async apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
9349
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options);
10051
+ async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10052
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
9350
10053
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9351
10054
  },
9352
10055
  /**
9353
10056
  *
9354
- * @summary Delete booking.
10057
+ * @summary Pay booking.
9355
10058
  * @param {string} bookingId
9356
10059
  * @param {*} [options] Override http request option.
9357
10060
  * @throws {RequiredError}
9358
10061
  */
9359
- async apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
9360
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options);
10062
+ async apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10063
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options);
9361
10064
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9362
10065
  },
9363
10066
  /**
9364
10067
  *
9365
- * @summary Get booking.
10068
+ * @summary Update booking.
9366
10069
  * @param {string} bookingId
10070
+ * @param {UpdateBookingCommand} [updateBookingCommand]
9367
10071
  * @param {*} [options] Override http request option.
9368
10072
  * @throws {RequiredError}
9369
10073
  */
9370
- async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
9371
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
10074
+ async apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
10075
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
9372
10076
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9373
10077
  },
9374
10078
  /**
@@ -9401,6 +10105,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
9401
10105
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options);
9402
10106
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9403
10107
  },
10108
+ /**
10109
+ *
10110
+ * @summary Create booking.
10111
+ * @param {string} requestId
10112
+ * @param {CreateBookingCommand} [createBookingCommand]
10113
+ * @param {*} [options] Override http request option.
10114
+ * @throws {RequiredError}
10115
+ */
10116
+ async apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
10117
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options);
10118
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10119
+ },
9404
10120
  }
9405
10121
  };
9406
10122
 
@@ -9452,6 +10168,37 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
9452
10168
  apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
9453
10169
  return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
9454
10170
  },
10171
+ /**
10172
+ *
10173
+ * @summary Mark as Paid booking.
10174
+ * @param {string} bookingId
10175
+ * @param {*} [options] Override http request option.
10176
+ * @throws {RequiredError}
10177
+ */
10178
+ apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
10179
+ return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
10180
+ },
10181
+ /**
10182
+ *
10183
+ * @summary Pay booking.
10184
+ * @param {string} bookingId
10185
+ * @param {*} [options] Override http request option.
10186
+ * @throws {RequiredError}
10187
+ */
10188
+ apiV2BookingsBookingIdPayPost(bookingId: string, options?: any): AxiosPromise<string> {
10189
+ return localVarFp.apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(axios, basePath));
10190
+ },
10191
+ /**
10192
+ *
10193
+ * @summary Update booking.
10194
+ * @param {string} bookingId
10195
+ * @param {UpdateBookingCommand} [updateBookingCommand]
10196
+ * @param {*} [options] Override http request option.
10197
+ * @throws {RequiredError}
10198
+ */
10199
+ apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
10200
+ return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
10201
+ },
9455
10202
  /**
9456
10203
  *
9457
10204
  * @summary Reject booking.
@@ -9480,6 +10227,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
9480
10227
  apiV2BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<BookingsModel> {
9481
10228
  return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
9482
10229
  },
10230
+ /**
10231
+ *
10232
+ * @summary Create booking.
10233
+ * @param {string} requestId
10234
+ * @param {CreateBookingCommand} [createBookingCommand]
10235
+ * @param {*} [options] Override http request option.
10236
+ * @throws {RequiredError}
10237
+ */
10238
+ apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: any): AxiosPromise<BookingModel> {
10239
+ return localVarFp.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(axios, basePath));
10240
+ },
9483
10241
  };
9484
10242
  };
9485
10243
 
@@ -9539,6 +10297,43 @@ export class BookingsApi extends BaseAPI {
9539
10297
  return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
9540
10298
  }
9541
10299
 
10300
+ /**
10301
+ *
10302
+ * @summary Mark as Paid booking.
10303
+ * @param {string} bookingId
10304
+ * @param {*} [options] Override http request option.
10305
+ * @throws {RequiredError}
10306
+ * @memberof BookingsApi
10307
+ */
10308
+ public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
10309
+ return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
10310
+ }
10311
+
10312
+ /**
10313
+ *
10314
+ * @summary Pay booking.
10315
+ * @param {string} bookingId
10316
+ * @param {*} [options] Override http request option.
10317
+ * @throws {RequiredError}
10318
+ * @memberof BookingsApi
10319
+ */
10320
+ public apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig) {
10321
+ return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(this.axios, this.basePath));
10322
+ }
10323
+
10324
+ /**
10325
+ *
10326
+ * @summary Update booking.
10327
+ * @param {string} bookingId
10328
+ * @param {UpdateBookingCommand} [updateBookingCommand]
10329
+ * @param {*} [options] Override http request option.
10330
+ * @throws {RequiredError}
10331
+ * @memberof BookingsApi
10332
+ */
10333
+ public apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig) {
10334
+ return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
10335
+ }
10336
+
9542
10337
  /**
9543
10338
  *
9544
10339
  * @summary Reject booking.
@@ -9570,6 +10365,19 @@ export class BookingsApi extends BaseAPI {
9570
10365
  public apiV2BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
9571
10366
  return BookingsApiFp(this.configuration).apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
9572
10367
  }
10368
+
10369
+ /**
10370
+ *
10371
+ * @summary Create booking.
10372
+ * @param {string} requestId
10373
+ * @param {CreateBookingCommand} [createBookingCommand]
10374
+ * @param {*} [options] Override http request option.
10375
+ * @throws {RequiredError}
10376
+ * @memberof BookingsApi
10377
+ */
10378
+ public apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig) {
10379
+ return BookingsApiFp(this.configuration).apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(this.axios, this.basePath));
10380
+ }
9573
10381
  }
9574
10382
 
9575
10383
 
@@ -10458,6 +11266,86 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
10458
11266
  options: localVarRequestOptions,
10459
11267
  };
10460
11268
  },
11269
+ /**
11270
+ *
11271
+ * @summary Pay consultation.
11272
+ * @param {string} consultationId
11273
+ * @param {*} [options] Override http request option.
11274
+ * @throws {RequiredError}
11275
+ */
11276
+ apiV2ConsultationsConsultationIdPayPost: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11277
+ // verify required parameter 'consultationId' is not null or undefined
11278
+ assertParamExists('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId)
11279
+ const localVarPath = `/api/v2/consultations/{consultationId}/pay`
11280
+ .replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
11281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11283
+ let baseOptions;
11284
+ if (configuration) {
11285
+ baseOptions = configuration.baseOptions;
11286
+ }
11287
+
11288
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11289
+ const localVarHeaderParameter = {} as any;
11290
+ const localVarQueryParameter = {} as any;
11291
+
11292
+ // authentication oauth2 required
11293
+ // oauth required
11294
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
11295
+
11296
+
11297
+
11298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11300
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11301
+
11302
+ return {
11303
+ url: toPathString(localVarUrlObj),
11304
+ options: localVarRequestOptions,
11305
+ };
11306
+ },
11307
+ /**
11308
+ *
11309
+ * @summary Update consultation.
11310
+ * @param {string} consultationId
11311
+ * @param {UpdateConsultationCommand} [updateConsultationCommand]
11312
+ * @param {*} [options] Override http request option.
11313
+ * @throws {RequiredError}
11314
+ */
11315
+ apiV2ConsultationsConsultationIdPut: async (consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11316
+ // verify required parameter 'consultationId' is not null or undefined
11317
+ assertParamExists('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId)
11318
+ const localVarPath = `/api/v2/consultations/{consultationId}`
11319
+ .replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
11320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11321
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11322
+ let baseOptions;
11323
+ if (configuration) {
11324
+ baseOptions = configuration.baseOptions;
11325
+ }
11326
+
11327
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11328
+ const localVarHeaderParameter = {} as any;
11329
+ const localVarQueryParameter = {} as any;
11330
+
11331
+ // authentication oauth2 required
11332
+ // oauth required
11333
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
11334
+
11335
+
11336
+
11337
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11338
+
11339
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11340
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11341
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11342
+ localVarRequestOptions.data = serializeDataIfNeeded(updateConsultationCommand, localVarRequestOptions, configuration)
11343
+
11344
+ return {
11345
+ url: toPathString(localVarUrlObj),
11346
+ options: localVarRequestOptions,
11347
+ };
11348
+ },
10461
11349
  /**
10462
11350
  *
10463
11351
  * @summary Reject consultation.
@@ -10571,6 +11459,48 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
10571
11459
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10572
11460
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10573
11461
 
11462
+ return {
11463
+ url: toPathString(localVarUrlObj),
11464
+ options: localVarRequestOptions,
11465
+ };
11466
+ },
11467
+ /**
11468
+ *
11469
+ * @summary Create consultation.
11470
+ * @param {string} requestId
11471
+ * @param {CreateConsultationCommand} [createConsultationCommand]
11472
+ * @param {*} [options] Override http request option.
11473
+ * @throws {RequiredError}
11474
+ */
11475
+ apiV2ConsultationsRequestIdPost: async (requestId: string, createConsultationCommand?: CreateConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11476
+ // verify required parameter 'requestId' is not null or undefined
11477
+ assertParamExists('apiV2ConsultationsRequestIdPost', 'requestId', requestId)
11478
+ const localVarPath = `/api/v2/consultations/{requestId}`
11479
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
11480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11482
+ let baseOptions;
11483
+ if (configuration) {
11484
+ baseOptions = configuration.baseOptions;
11485
+ }
11486
+
11487
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11488
+ const localVarHeaderParameter = {} as any;
11489
+ const localVarQueryParameter = {} as any;
11490
+
11491
+ // authentication oauth2 required
11492
+ // oauth required
11493
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
11494
+
11495
+
11496
+
11497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11498
+
11499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11501
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11502
+ localVarRequestOptions.data = serializeDataIfNeeded(createConsultationCommand, localVarRequestOptions, configuration)
11503
+
10574
11504
  return {
10575
11505
  url: toPathString(localVarUrlObj),
10576
11506
  options: localVarRequestOptions,
@@ -10631,6 +11561,29 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
10631
11561
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdGet(consultationId, options);
10632
11562
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10633
11563
  },
11564
+ /**
11565
+ *
11566
+ * @summary Pay consultation.
11567
+ * @param {string} consultationId
11568
+ * @param {*} [options] Override http request option.
11569
+ * @throws {RequiredError}
11570
+ */
11571
+ async apiV2ConsultationsConsultationIdPayPost(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
11572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPayPost(consultationId, options);
11573
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11574
+ },
11575
+ /**
11576
+ *
11577
+ * @summary Update consultation.
11578
+ * @param {string} consultationId
11579
+ * @param {UpdateConsultationCommand} [updateConsultationCommand]
11580
+ * @param {*} [options] Override http request option.
11581
+ * @throws {RequiredError}
11582
+ */
11583
+ async apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationModel>> {
11584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options);
11585
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11586
+ },
10634
11587
  /**
10635
11588
  *
10636
11589
  * @summary Reject consultation.
@@ -10661,6 +11614,18 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
10661
11614
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options);
10662
11615
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10663
11616
  },
11617
+ /**
11618
+ *
11619
+ * @summary Create consultation.
11620
+ * @param {string} requestId
11621
+ * @param {CreateConsultationCommand} [createConsultationCommand]
11622
+ * @param {*} [options] Override http request option.
11623
+ * @throws {RequiredError}
11624
+ */
11625
+ async apiV2ConsultationsRequestIdPost(requestId: string, createConsultationCommand?: CreateConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationModel>> {
11626
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options);
11627
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11628
+ },
10664
11629
  }
10665
11630
  };
10666
11631
 
@@ -10712,6 +11677,27 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
10712
11677
  apiV2ConsultationsConsultationIdGet(consultationId: string, options?: any): AxiosPromise<ConsultationModel> {
10713
11678
  return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(axios, basePath));
10714
11679
  },
11680
+ /**
11681
+ *
11682
+ * @summary Pay consultation.
11683
+ * @param {string} consultationId
11684
+ * @param {*} [options] Override http request option.
11685
+ * @throws {RequiredError}
11686
+ */
11687
+ apiV2ConsultationsConsultationIdPayPost(consultationId: string, options?: any): AxiosPromise<string> {
11688
+ return localVarFp.apiV2ConsultationsConsultationIdPayPost(consultationId, options).then((request) => request(axios, basePath));
11689
+ },
11690
+ /**
11691
+ *
11692
+ * @summary Update consultation.
11693
+ * @param {string} consultationId
11694
+ * @param {UpdateConsultationCommand} [updateConsultationCommand]
11695
+ * @param {*} [options] Override http request option.
11696
+ * @throws {RequiredError}
11697
+ */
11698
+ apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
11699
+ return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(axios, basePath));
11700
+ },
10715
11701
  /**
10716
11702
  *
10717
11703
  * @summary Reject consultation.
@@ -10740,6 +11726,17 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
10740
11726
  apiV2ConsultationsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: ConsultationStatus, consultationType?: ConsultationType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ConsultationsModel> {
10741
11727
  return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
10742
11728
  },
11729
+ /**
11730
+ *
11731
+ * @summary Create consultation.
11732
+ * @param {string} requestId
11733
+ * @param {CreateConsultationCommand} [createConsultationCommand]
11734
+ * @param {*} [options] Override http request option.
11735
+ * @throws {RequiredError}
11736
+ */
11737
+ apiV2ConsultationsRequestIdPost(requestId: string, createConsultationCommand?: CreateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
11738
+ return localVarFp.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then((request) => request(axios, basePath));
11739
+ },
10743
11740
  };
10744
11741
  };
10745
11742
 
@@ -10799,6 +11796,31 @@ export class ConsultationsApi extends BaseAPI {
10799
11796
  return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(this.axios, this.basePath));
10800
11797
  }
10801
11798
 
11799
+ /**
11800
+ *
11801
+ * @summary Pay consultation.
11802
+ * @param {string} consultationId
11803
+ * @param {*} [options] Override http request option.
11804
+ * @throws {RequiredError}
11805
+ * @memberof ConsultationsApi
11806
+ */
11807
+ public apiV2ConsultationsConsultationIdPayPost(consultationId: string, options?: AxiosRequestConfig) {
11808
+ return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPayPost(consultationId, options).then((request) => request(this.axios, this.basePath));
11809
+ }
11810
+
11811
+ /**
11812
+ *
11813
+ * @summary Update consultation.
11814
+ * @param {string} consultationId
11815
+ * @param {UpdateConsultationCommand} [updateConsultationCommand]
11816
+ * @param {*} [options] Override http request option.
11817
+ * @throws {RequiredError}
11818
+ * @memberof ConsultationsApi
11819
+ */
11820
+ public apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: AxiosRequestConfig) {
11821
+ return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(this.axios, this.basePath));
11822
+ }
11823
+
10802
11824
  /**
10803
11825
  *
10804
11826
  * @summary Reject consultation.
@@ -10830,6 +11852,19 @@ export class ConsultationsApi extends BaseAPI {
10830
11852
  public apiV2ConsultationsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: ConsultationStatus, consultationType?: ConsultationType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
10831
11853
  return ConsultationsApiFp(this.configuration).apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
10832
11854
  }
11855
+
11856
+ /**
11857
+ *
11858
+ * @summary Create consultation.
11859
+ * @param {string} requestId
11860
+ * @param {CreateConsultationCommand} [createConsultationCommand]
11861
+ * @param {*} [options] Override http request option.
11862
+ * @throws {RequiredError}
11863
+ * @memberof ConsultationsApi
11864
+ */
11865
+ public apiV2ConsultationsRequestIdPost(requestId: string, createConsultationCommand?: CreateConsultationCommand, options?: AxiosRequestConfig) {
11866
+ return ConsultationsApiFp(this.configuration).apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then((request) => request(this.axios, this.basePath));
11867
+ }
10833
11868
  }
10834
11869
 
10835
11870