ch-api-client-typescript2 2.6.7 → 2.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +617 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +619 -0
- package/package.json +1 -1
- package/src/api.ts +916 -21
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
|
|
@@ -7299,6 +7499,79 @@ export interface TagsModel {
|
|
|
7299
7499
|
*/
|
|
7300
7500
|
'metaData'?: PagedListMetaData;
|
|
7301
7501
|
}
|
|
7502
|
+
/**
|
|
7503
|
+
*
|
|
7504
|
+
* @export
|
|
7505
|
+
* @interface UpdateBookingCommand
|
|
7506
|
+
*/
|
|
7507
|
+
export interface UpdateBookingCommand {
|
|
7508
|
+
/**
|
|
7509
|
+
*
|
|
7510
|
+
* @type {number}
|
|
7511
|
+
* @memberof UpdateBookingCommand
|
|
7512
|
+
*/
|
|
7513
|
+
'quantity'?: number;
|
|
7514
|
+
/**
|
|
7515
|
+
*
|
|
7516
|
+
* @type {string}
|
|
7517
|
+
* @memberof UpdateBookingCommand
|
|
7518
|
+
*/
|
|
7519
|
+
'firstName'?: string | null;
|
|
7520
|
+
/**
|
|
7521
|
+
*
|
|
7522
|
+
* @type {string}
|
|
7523
|
+
* @memberof UpdateBookingCommand
|
|
7524
|
+
*/
|
|
7525
|
+
'lastName'?: string | null;
|
|
7526
|
+
/**
|
|
7527
|
+
*
|
|
7528
|
+
* @type {string}
|
|
7529
|
+
* @memberof UpdateBookingCommand
|
|
7530
|
+
*/
|
|
7531
|
+
'email'?: string | null;
|
|
7532
|
+
/**
|
|
7533
|
+
*
|
|
7534
|
+
* @type {string}
|
|
7535
|
+
* @memberof UpdateBookingCommand
|
|
7536
|
+
*/
|
|
7537
|
+
'phone'?: string | null;
|
|
7538
|
+
/**
|
|
7539
|
+
*
|
|
7540
|
+
* @type {Date}
|
|
7541
|
+
* @memberof UpdateBookingCommand
|
|
7542
|
+
*/
|
|
7543
|
+
'dateOfBirth'?: Date | null;
|
|
7544
|
+
/**
|
|
7545
|
+
*
|
|
7546
|
+
* @type {Gender}
|
|
7547
|
+
* @memberof UpdateBookingCommand
|
|
7548
|
+
*/
|
|
7549
|
+
'gender'?: Gender;
|
|
7550
|
+
/**
|
|
7551
|
+
*
|
|
7552
|
+
* @type {Date}
|
|
7553
|
+
* @memberof UpdateBookingCommand
|
|
7554
|
+
*/
|
|
7555
|
+
'approximateDateStart'?: Date;
|
|
7556
|
+
/**
|
|
7557
|
+
*
|
|
7558
|
+
* @type {Date}
|
|
7559
|
+
* @memberof UpdateBookingCommand
|
|
7560
|
+
*/
|
|
7561
|
+
'approximateDateEnd'?: Date;
|
|
7562
|
+
/**
|
|
7563
|
+
*
|
|
7564
|
+
* @type {string}
|
|
7565
|
+
* @memberof UpdateBookingCommand
|
|
7566
|
+
*/
|
|
7567
|
+
'comment'?: string | null;
|
|
7568
|
+
/**
|
|
7569
|
+
*
|
|
7570
|
+
* @type {string}
|
|
7571
|
+
* @memberof UpdateBookingCommand
|
|
7572
|
+
*/
|
|
7573
|
+
'timeZone'?: string | null;
|
|
7574
|
+
}
|
|
7302
7575
|
/**
|
|
7303
7576
|
*
|
|
7304
7577
|
* @export
|
|
@@ -7333,61 +7606,158 @@ export interface UpdateChatUserCommand {
|
|
|
7333
7606
|
/**
|
|
7334
7607
|
*
|
|
7335
7608
|
* @export
|
|
7336
|
-
* @interface
|
|
7609
|
+
* @interface UpdateConsultationCommand
|
|
7337
7610
|
*/
|
|
7338
|
-
export interface
|
|
7611
|
+
export interface UpdateConsultationCommand {
|
|
7339
7612
|
/**
|
|
7340
7613
|
*
|
|
7341
7614
|
* @type {string}
|
|
7342
|
-
* @memberof
|
|
7615
|
+
* @memberof UpdateConsultationCommand
|
|
7343
7616
|
*/
|
|
7344
|
-
'
|
|
7617
|
+
'specialtyId'?: string | null;
|
|
7345
7618
|
/**
|
|
7346
7619
|
*
|
|
7347
7620
|
* @type {string}
|
|
7348
|
-
* @memberof
|
|
7621
|
+
* @memberof UpdateConsultationCommand
|
|
7349
7622
|
*/
|
|
7350
|
-
'
|
|
7623
|
+
'doctorId'?: string | null;
|
|
7351
7624
|
/**
|
|
7352
7625
|
*
|
|
7353
7626
|
* @type {string}
|
|
7354
|
-
* @memberof
|
|
7627
|
+
* @memberof UpdateConsultationCommand
|
|
7355
7628
|
*/
|
|
7356
|
-
'
|
|
7629
|
+
'language'?: string | null;
|
|
7357
7630
|
/**
|
|
7358
7631
|
*
|
|
7359
|
-
* @type {
|
|
7360
|
-
* @memberof
|
|
7632
|
+
* @type {boolean}
|
|
7633
|
+
* @memberof UpdateConsultationCommand
|
|
7361
7634
|
*/
|
|
7362
|
-
'
|
|
7635
|
+
'isAccountHolder'?: boolean;
|
|
7363
7636
|
/**
|
|
7364
7637
|
*
|
|
7365
7638
|
* @type {string}
|
|
7366
|
-
* @memberof
|
|
7639
|
+
* @memberof UpdateConsultationCommand
|
|
7367
7640
|
*/
|
|
7368
|
-
'
|
|
7641
|
+
'firstName'?: string | null;
|
|
7369
7642
|
/**
|
|
7370
7643
|
*
|
|
7371
7644
|
* @type {string}
|
|
7372
|
-
* @memberof
|
|
7645
|
+
* @memberof UpdateConsultationCommand
|
|
7373
7646
|
*/
|
|
7374
|
-
'
|
|
7647
|
+
'lastName'?: string | null;
|
|
7375
7648
|
/**
|
|
7376
7649
|
*
|
|
7377
7650
|
* @type {string}
|
|
7378
|
-
* @memberof
|
|
7651
|
+
* @memberof UpdateConsultationCommand
|
|
7379
7652
|
*/
|
|
7380
|
-
'
|
|
7653
|
+
'email'?: string | null;
|
|
7381
7654
|
/**
|
|
7382
7655
|
*
|
|
7383
|
-
* @type {
|
|
7384
|
-
* @memberof
|
|
7656
|
+
* @type {string}
|
|
7657
|
+
* @memberof UpdateConsultationCommand
|
|
7385
7658
|
*/
|
|
7386
|
-
'
|
|
7659
|
+
'phone'?: string | null;
|
|
7387
7660
|
/**
|
|
7388
7661
|
*
|
|
7389
7662
|
* @type {Date}
|
|
7390
|
-
* @memberof
|
|
7663
|
+
* @memberof UpdateConsultationCommand
|
|
7664
|
+
*/
|
|
7665
|
+
'dateOfBirth'?: Date | null;
|
|
7666
|
+
/**
|
|
7667
|
+
*
|
|
7668
|
+
* @type {Gender}
|
|
7669
|
+
* @memberof UpdateConsultationCommand
|
|
7670
|
+
*/
|
|
7671
|
+
'gender'?: Gender;
|
|
7672
|
+
/**
|
|
7673
|
+
*
|
|
7674
|
+
* @type {string}
|
|
7675
|
+
* @memberof UpdateConsultationCommand
|
|
7676
|
+
*/
|
|
7677
|
+
'comment'?: string | null;
|
|
7678
|
+
/**
|
|
7679
|
+
*
|
|
7680
|
+
* @type {string}
|
|
7681
|
+
* @memberof UpdateConsultationCommand
|
|
7682
|
+
*/
|
|
7683
|
+
'timeRange'?: string | null;
|
|
7684
|
+
/**
|
|
7685
|
+
*
|
|
7686
|
+
* @type {Date}
|
|
7687
|
+
* @memberof UpdateConsultationCommand
|
|
7688
|
+
*/
|
|
7689
|
+
'approximateDateStart'?: Date;
|
|
7690
|
+
/**
|
|
7691
|
+
*
|
|
7692
|
+
* @type {Date}
|
|
7693
|
+
* @memberof UpdateConsultationCommand
|
|
7694
|
+
*/
|
|
7695
|
+
'approximateDateEnd'?: Date;
|
|
7696
|
+
/**
|
|
7697
|
+
*
|
|
7698
|
+
* @type {string}
|
|
7699
|
+
* @memberof UpdateConsultationCommand
|
|
7700
|
+
*/
|
|
7701
|
+
'timeZone'?: string | null;
|
|
7702
|
+
}
|
|
7703
|
+
/**
|
|
7704
|
+
*
|
|
7705
|
+
* @export
|
|
7706
|
+
* @interface UpdatePatientCommand
|
|
7707
|
+
*/
|
|
7708
|
+
export interface UpdatePatientCommand {
|
|
7709
|
+
/**
|
|
7710
|
+
*
|
|
7711
|
+
* @type {string}
|
|
7712
|
+
* @memberof UpdatePatientCommand
|
|
7713
|
+
*/
|
|
7714
|
+
'userName'?: string | null;
|
|
7715
|
+
/**
|
|
7716
|
+
*
|
|
7717
|
+
* @type {string}
|
|
7718
|
+
* @memberof UpdatePatientCommand
|
|
7719
|
+
*/
|
|
7720
|
+
'email'?: string | null;
|
|
7721
|
+
/**
|
|
7722
|
+
*
|
|
7723
|
+
* @type {string}
|
|
7724
|
+
* @memberof UpdatePatientCommand
|
|
7725
|
+
*/
|
|
7726
|
+
'firstName'?: string | null;
|
|
7727
|
+
/**
|
|
7728
|
+
*
|
|
7729
|
+
* @type {string}
|
|
7730
|
+
* @memberof UpdatePatientCommand
|
|
7731
|
+
*/
|
|
7732
|
+
'lastName'?: string | null;
|
|
7733
|
+
/**
|
|
7734
|
+
*
|
|
7735
|
+
* @type {string}
|
|
7736
|
+
* @memberof UpdatePatientCommand
|
|
7737
|
+
*/
|
|
7738
|
+
'phone'?: string | null;
|
|
7739
|
+
/**
|
|
7740
|
+
*
|
|
7741
|
+
* @type {string}
|
|
7742
|
+
* @memberof UpdatePatientCommand
|
|
7743
|
+
*/
|
|
7744
|
+
'photo'?: string | null;
|
|
7745
|
+
/**
|
|
7746
|
+
*
|
|
7747
|
+
* @type {string}
|
|
7748
|
+
* @memberof UpdatePatientCommand
|
|
7749
|
+
*/
|
|
7750
|
+
'photoThumbnail'?: string | null;
|
|
7751
|
+
/**
|
|
7752
|
+
*
|
|
7753
|
+
* @type {Gender}
|
|
7754
|
+
* @memberof UpdatePatientCommand
|
|
7755
|
+
*/
|
|
7756
|
+
'gender'?: Gender;
|
|
7757
|
+
/**
|
|
7758
|
+
*
|
|
7759
|
+
* @type {Date}
|
|
7760
|
+
* @memberof UpdatePatientCommand
|
|
7391
7761
|
*/
|
|
7392
7762
|
'dateOfBirth'?: Date | null;
|
|
7393
7763
|
/**
|
|
@@ -9198,6 +9568,124 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9198
9568
|
options: localVarRequestOptions,
|
|
9199
9569
|
};
|
|
9200
9570
|
},
|
|
9571
|
+
/**
|
|
9572
|
+
*
|
|
9573
|
+
* @summary Mark as Paid booking.
|
|
9574
|
+
* @param {string} bookingId
|
|
9575
|
+
* @param {*} [options] Override http request option.
|
|
9576
|
+
* @throws {RequiredError}
|
|
9577
|
+
*/
|
|
9578
|
+
apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9579
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
9580
|
+
assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
|
|
9581
|
+
const localVarPath = `/api/v2/bookings/{bookingId}/paid`
|
|
9582
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
9583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9584
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9585
|
+
let baseOptions;
|
|
9586
|
+
if (configuration) {
|
|
9587
|
+
baseOptions = configuration.baseOptions;
|
|
9588
|
+
}
|
|
9589
|
+
|
|
9590
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9591
|
+
const localVarHeaderParameter = {} as any;
|
|
9592
|
+
const localVarQueryParameter = {} as any;
|
|
9593
|
+
|
|
9594
|
+
// authentication oauth2 required
|
|
9595
|
+
// oauth required
|
|
9596
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
9597
|
+
|
|
9598
|
+
|
|
9599
|
+
|
|
9600
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9601
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9602
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9603
|
+
|
|
9604
|
+
return {
|
|
9605
|
+
url: toPathString(localVarUrlObj),
|
|
9606
|
+
options: localVarRequestOptions,
|
|
9607
|
+
};
|
|
9608
|
+
},
|
|
9609
|
+
/**
|
|
9610
|
+
*
|
|
9611
|
+
* @summary Pay booking.
|
|
9612
|
+
* @param {string} bookingId
|
|
9613
|
+
* @param {*} [options] Override http request option.
|
|
9614
|
+
* @throws {RequiredError}
|
|
9615
|
+
*/
|
|
9616
|
+
apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9617
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
9618
|
+
assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
|
|
9619
|
+
const localVarPath = `/api/v2/bookings/{bookingId}/pay`
|
|
9620
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
9621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9623
|
+
let baseOptions;
|
|
9624
|
+
if (configuration) {
|
|
9625
|
+
baseOptions = configuration.baseOptions;
|
|
9626
|
+
}
|
|
9627
|
+
|
|
9628
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9629
|
+
const localVarHeaderParameter = {} as any;
|
|
9630
|
+
const localVarQueryParameter = {} as any;
|
|
9631
|
+
|
|
9632
|
+
// authentication oauth2 required
|
|
9633
|
+
// oauth required
|
|
9634
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
9635
|
+
|
|
9636
|
+
|
|
9637
|
+
|
|
9638
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9640
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9641
|
+
|
|
9642
|
+
return {
|
|
9643
|
+
url: toPathString(localVarUrlObj),
|
|
9644
|
+
options: localVarRequestOptions,
|
|
9645
|
+
};
|
|
9646
|
+
},
|
|
9647
|
+
/**
|
|
9648
|
+
*
|
|
9649
|
+
* @summary Update booking.
|
|
9650
|
+
* @param {string} bookingId
|
|
9651
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
9652
|
+
* @param {*} [options] Override http request option.
|
|
9653
|
+
* @throws {RequiredError}
|
|
9654
|
+
*/
|
|
9655
|
+
apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9656
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
9657
|
+
assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
|
|
9658
|
+
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
9659
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
9660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9662
|
+
let baseOptions;
|
|
9663
|
+
if (configuration) {
|
|
9664
|
+
baseOptions = configuration.baseOptions;
|
|
9665
|
+
}
|
|
9666
|
+
|
|
9667
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
9668
|
+
const localVarHeaderParameter = {} as any;
|
|
9669
|
+
const localVarQueryParameter = {} as any;
|
|
9670
|
+
|
|
9671
|
+
// authentication oauth2 required
|
|
9672
|
+
// oauth required
|
|
9673
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
9674
|
+
|
|
9675
|
+
|
|
9676
|
+
|
|
9677
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9678
|
+
|
|
9679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9682
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
|
|
9683
|
+
|
|
9684
|
+
return {
|
|
9685
|
+
url: toPathString(localVarUrlObj),
|
|
9686
|
+
options: localVarRequestOptions,
|
|
9687
|
+
};
|
|
9688
|
+
},
|
|
9201
9689
|
/**
|
|
9202
9690
|
*
|
|
9203
9691
|
* @summary Reject booking.
|
|
@@ -9311,6 +9799,48 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9311
9799
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9312
9800
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9313
9801
|
|
|
9802
|
+
return {
|
|
9803
|
+
url: toPathString(localVarUrlObj),
|
|
9804
|
+
options: localVarRequestOptions,
|
|
9805
|
+
};
|
|
9806
|
+
},
|
|
9807
|
+
/**
|
|
9808
|
+
*
|
|
9809
|
+
* @summary Create booking.
|
|
9810
|
+
* @param {string} requestId
|
|
9811
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
9812
|
+
* @param {*} [options] Override http request option.
|
|
9813
|
+
* @throws {RequiredError}
|
|
9814
|
+
*/
|
|
9815
|
+
apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9816
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
9817
|
+
assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
|
|
9818
|
+
const localVarPath = `/api/v2/bookings/{requestId}`
|
|
9819
|
+
.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
9820
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9821
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9822
|
+
let baseOptions;
|
|
9823
|
+
if (configuration) {
|
|
9824
|
+
baseOptions = configuration.baseOptions;
|
|
9825
|
+
}
|
|
9826
|
+
|
|
9827
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9828
|
+
const localVarHeaderParameter = {} as any;
|
|
9829
|
+
const localVarQueryParameter = {} as any;
|
|
9830
|
+
|
|
9831
|
+
// authentication oauth2 required
|
|
9832
|
+
// oauth required
|
|
9833
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
9834
|
+
|
|
9835
|
+
|
|
9836
|
+
|
|
9837
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9838
|
+
|
|
9839
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9840
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9841
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9842
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
|
|
9843
|
+
|
|
9314
9844
|
return {
|
|
9315
9845
|
url: toPathString(localVarUrlObj),
|
|
9316
9846
|
options: localVarRequestOptions,
|
|
@@ -9371,6 +9901,40 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
9371
9901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
|
|
9372
9902
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9373
9903
|
},
|
|
9904
|
+
/**
|
|
9905
|
+
*
|
|
9906
|
+
* @summary Mark as Paid booking.
|
|
9907
|
+
* @param {string} bookingId
|
|
9908
|
+
* @param {*} [options] Override http request option.
|
|
9909
|
+
* @throws {RequiredError}
|
|
9910
|
+
*/
|
|
9911
|
+
async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
9912
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
|
|
9913
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9914
|
+
},
|
|
9915
|
+
/**
|
|
9916
|
+
*
|
|
9917
|
+
* @summary Pay booking.
|
|
9918
|
+
* @param {string} bookingId
|
|
9919
|
+
* @param {*} [options] Override http request option.
|
|
9920
|
+
* @throws {RequiredError}
|
|
9921
|
+
*/
|
|
9922
|
+
async apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
9923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options);
|
|
9924
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9925
|
+
},
|
|
9926
|
+
/**
|
|
9927
|
+
*
|
|
9928
|
+
* @summary Update booking.
|
|
9929
|
+
* @param {string} bookingId
|
|
9930
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
9931
|
+
* @param {*} [options] Override http request option.
|
|
9932
|
+
* @throws {RequiredError}
|
|
9933
|
+
*/
|
|
9934
|
+
async apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
9935
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
|
|
9936
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9937
|
+
},
|
|
9374
9938
|
/**
|
|
9375
9939
|
*
|
|
9376
9940
|
* @summary Reject booking.
|
|
@@ -9401,6 +9965,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
9401
9965
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options);
|
|
9402
9966
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9403
9967
|
},
|
|
9968
|
+
/**
|
|
9969
|
+
*
|
|
9970
|
+
* @summary Create booking.
|
|
9971
|
+
* @param {string} requestId
|
|
9972
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
9973
|
+
* @param {*} [options] Override http request option.
|
|
9974
|
+
* @throws {RequiredError}
|
|
9975
|
+
*/
|
|
9976
|
+
async apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
9977
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options);
|
|
9978
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9979
|
+
},
|
|
9404
9980
|
}
|
|
9405
9981
|
};
|
|
9406
9982
|
|
|
@@ -9452,6 +10028,37 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9452
10028
|
apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
9453
10029
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
9454
10030
|
},
|
|
10031
|
+
/**
|
|
10032
|
+
*
|
|
10033
|
+
* @summary Mark as Paid booking.
|
|
10034
|
+
* @param {string} bookingId
|
|
10035
|
+
* @param {*} [options] Override http request option.
|
|
10036
|
+
* @throws {RequiredError}
|
|
10037
|
+
*/
|
|
10038
|
+
apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
10039
|
+
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
|
|
10040
|
+
},
|
|
10041
|
+
/**
|
|
10042
|
+
*
|
|
10043
|
+
* @summary Pay booking.
|
|
10044
|
+
* @param {string} bookingId
|
|
10045
|
+
* @param {*} [options] Override http request option.
|
|
10046
|
+
* @throws {RequiredError}
|
|
10047
|
+
*/
|
|
10048
|
+
apiV2BookingsBookingIdPayPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
10049
|
+
return localVarFp.apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(axios, basePath));
|
|
10050
|
+
},
|
|
10051
|
+
/**
|
|
10052
|
+
*
|
|
10053
|
+
* @summary Update booking.
|
|
10054
|
+
* @param {string} bookingId
|
|
10055
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
10056
|
+
* @param {*} [options] Override http request option.
|
|
10057
|
+
* @throws {RequiredError}
|
|
10058
|
+
*/
|
|
10059
|
+
apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
10060
|
+
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
|
|
10061
|
+
},
|
|
9455
10062
|
/**
|
|
9456
10063
|
*
|
|
9457
10064
|
* @summary Reject booking.
|
|
@@ -9480,6 +10087,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9480
10087
|
apiV2BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<BookingsModel> {
|
|
9481
10088
|
return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
9482
10089
|
},
|
|
10090
|
+
/**
|
|
10091
|
+
*
|
|
10092
|
+
* @summary Create booking.
|
|
10093
|
+
* @param {string} requestId
|
|
10094
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
10095
|
+
* @param {*} [options] Override http request option.
|
|
10096
|
+
* @throws {RequiredError}
|
|
10097
|
+
*/
|
|
10098
|
+
apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
10099
|
+
return localVarFp.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(axios, basePath));
|
|
10100
|
+
},
|
|
9483
10101
|
};
|
|
9484
10102
|
};
|
|
9485
10103
|
|
|
@@ -9539,6 +10157,43 @@ export class BookingsApi extends BaseAPI {
|
|
|
9539
10157
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
9540
10158
|
}
|
|
9541
10159
|
|
|
10160
|
+
/**
|
|
10161
|
+
*
|
|
10162
|
+
* @summary Mark as Paid booking.
|
|
10163
|
+
* @param {string} bookingId
|
|
10164
|
+
* @param {*} [options] Override http request option.
|
|
10165
|
+
* @throws {RequiredError}
|
|
10166
|
+
* @memberof BookingsApi
|
|
10167
|
+
*/
|
|
10168
|
+
public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
10169
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
10170
|
+
}
|
|
10171
|
+
|
|
10172
|
+
/**
|
|
10173
|
+
*
|
|
10174
|
+
* @summary Pay booking.
|
|
10175
|
+
* @param {string} bookingId
|
|
10176
|
+
* @param {*} [options] Override http request option.
|
|
10177
|
+
* @throws {RequiredError}
|
|
10178
|
+
* @memberof BookingsApi
|
|
10179
|
+
*/
|
|
10180
|
+
public apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
10181
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
10182
|
+
}
|
|
10183
|
+
|
|
10184
|
+
/**
|
|
10185
|
+
*
|
|
10186
|
+
* @summary Update booking.
|
|
10187
|
+
* @param {string} bookingId
|
|
10188
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
10189
|
+
* @param {*} [options] Override http request option.
|
|
10190
|
+
* @throws {RequiredError}
|
|
10191
|
+
* @memberof BookingsApi
|
|
10192
|
+
*/
|
|
10193
|
+
public apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig) {
|
|
10194
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
10195
|
+
}
|
|
10196
|
+
|
|
9542
10197
|
/**
|
|
9543
10198
|
*
|
|
9544
10199
|
* @summary Reject booking.
|
|
@@ -9570,6 +10225,19 @@ export class BookingsApi extends BaseAPI {
|
|
|
9570
10225
|
public apiV2BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
9571
10226
|
return BookingsApiFp(this.configuration).apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
9572
10227
|
}
|
|
10228
|
+
|
|
10229
|
+
/**
|
|
10230
|
+
*
|
|
10231
|
+
* @summary Create booking.
|
|
10232
|
+
* @param {string} requestId
|
|
10233
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
10234
|
+
* @param {*} [options] Override http request option.
|
|
10235
|
+
* @throws {RequiredError}
|
|
10236
|
+
* @memberof BookingsApi
|
|
10237
|
+
*/
|
|
10238
|
+
public apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig) {
|
|
10239
|
+
return BookingsApiFp(this.configuration).apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
10240
|
+
}
|
|
9573
10241
|
}
|
|
9574
10242
|
|
|
9575
10243
|
|
|
@@ -10458,6 +11126,86 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
10458
11126
|
options: localVarRequestOptions,
|
|
10459
11127
|
};
|
|
10460
11128
|
},
|
|
11129
|
+
/**
|
|
11130
|
+
*
|
|
11131
|
+
* @summary Pay consultation.
|
|
11132
|
+
* @param {string} consultationId
|
|
11133
|
+
* @param {*} [options] Override http request option.
|
|
11134
|
+
* @throws {RequiredError}
|
|
11135
|
+
*/
|
|
11136
|
+
apiV2ConsultationsConsultationIdPayPost: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11137
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
11138
|
+
assertParamExists('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId)
|
|
11139
|
+
const localVarPath = `/api/v2/consultations/{consultationId}/pay`
|
|
11140
|
+
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
11141
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11142
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11143
|
+
let baseOptions;
|
|
11144
|
+
if (configuration) {
|
|
11145
|
+
baseOptions = configuration.baseOptions;
|
|
11146
|
+
}
|
|
11147
|
+
|
|
11148
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11149
|
+
const localVarHeaderParameter = {} as any;
|
|
11150
|
+
const localVarQueryParameter = {} as any;
|
|
11151
|
+
|
|
11152
|
+
// authentication oauth2 required
|
|
11153
|
+
// oauth required
|
|
11154
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11155
|
+
|
|
11156
|
+
|
|
11157
|
+
|
|
11158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11160
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11161
|
+
|
|
11162
|
+
return {
|
|
11163
|
+
url: toPathString(localVarUrlObj),
|
|
11164
|
+
options: localVarRequestOptions,
|
|
11165
|
+
};
|
|
11166
|
+
},
|
|
11167
|
+
/**
|
|
11168
|
+
*
|
|
11169
|
+
* @summary Update consultation.
|
|
11170
|
+
* @param {string} consultationId
|
|
11171
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
11172
|
+
* @param {*} [options] Override http request option.
|
|
11173
|
+
* @throws {RequiredError}
|
|
11174
|
+
*/
|
|
11175
|
+
apiV2ConsultationsConsultationIdPut: async (consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11176
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
11177
|
+
assertParamExists('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId)
|
|
11178
|
+
const localVarPath = `/api/v2/consultations/{consultationId}`
|
|
11179
|
+
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
11180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11182
|
+
let baseOptions;
|
|
11183
|
+
if (configuration) {
|
|
11184
|
+
baseOptions = configuration.baseOptions;
|
|
11185
|
+
}
|
|
11186
|
+
|
|
11187
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11188
|
+
const localVarHeaderParameter = {} as any;
|
|
11189
|
+
const localVarQueryParameter = {} as any;
|
|
11190
|
+
|
|
11191
|
+
// authentication oauth2 required
|
|
11192
|
+
// oauth required
|
|
11193
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11194
|
+
|
|
11195
|
+
|
|
11196
|
+
|
|
11197
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11198
|
+
|
|
11199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11201
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11202
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateConsultationCommand, localVarRequestOptions, configuration)
|
|
11203
|
+
|
|
11204
|
+
return {
|
|
11205
|
+
url: toPathString(localVarUrlObj),
|
|
11206
|
+
options: localVarRequestOptions,
|
|
11207
|
+
};
|
|
11208
|
+
},
|
|
10461
11209
|
/**
|
|
10462
11210
|
*
|
|
10463
11211
|
* @summary Reject consultation.
|
|
@@ -10571,6 +11319,48 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
10571
11319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10572
11320
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10573
11321
|
|
|
11322
|
+
return {
|
|
11323
|
+
url: toPathString(localVarUrlObj),
|
|
11324
|
+
options: localVarRequestOptions,
|
|
11325
|
+
};
|
|
11326
|
+
},
|
|
11327
|
+
/**
|
|
11328
|
+
*
|
|
11329
|
+
* @summary Create consultation.
|
|
11330
|
+
* @param {string} requestId
|
|
11331
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
11332
|
+
* @param {*} [options] Override http request option.
|
|
11333
|
+
* @throws {RequiredError}
|
|
11334
|
+
*/
|
|
11335
|
+
apiV2ConsultationsRequestIdPost: async (requestId: string, createConsultationCommand?: CreateConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11336
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
11337
|
+
assertParamExists('apiV2ConsultationsRequestIdPost', 'requestId', requestId)
|
|
11338
|
+
const localVarPath = `/api/v2/consultations/{requestId}`
|
|
11339
|
+
.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
11340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11342
|
+
let baseOptions;
|
|
11343
|
+
if (configuration) {
|
|
11344
|
+
baseOptions = configuration.baseOptions;
|
|
11345
|
+
}
|
|
11346
|
+
|
|
11347
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11348
|
+
const localVarHeaderParameter = {} as any;
|
|
11349
|
+
const localVarQueryParameter = {} as any;
|
|
11350
|
+
|
|
11351
|
+
// authentication oauth2 required
|
|
11352
|
+
// oauth required
|
|
11353
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11354
|
+
|
|
11355
|
+
|
|
11356
|
+
|
|
11357
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11358
|
+
|
|
11359
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11361
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11362
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createConsultationCommand, localVarRequestOptions, configuration)
|
|
11363
|
+
|
|
10574
11364
|
return {
|
|
10575
11365
|
url: toPathString(localVarUrlObj),
|
|
10576
11366
|
options: localVarRequestOptions,
|
|
@@ -10631,6 +11421,29 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
10631
11421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdGet(consultationId, options);
|
|
10632
11422
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10633
11423
|
},
|
|
11424
|
+
/**
|
|
11425
|
+
*
|
|
11426
|
+
* @summary Pay consultation.
|
|
11427
|
+
* @param {string} consultationId
|
|
11428
|
+
* @param {*} [options] Override http request option.
|
|
11429
|
+
* @throws {RequiredError}
|
|
11430
|
+
*/
|
|
11431
|
+
async apiV2ConsultationsConsultationIdPayPost(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
11432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPayPost(consultationId, options);
|
|
11433
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11434
|
+
},
|
|
11435
|
+
/**
|
|
11436
|
+
*
|
|
11437
|
+
* @summary Update consultation.
|
|
11438
|
+
* @param {string} consultationId
|
|
11439
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
11440
|
+
* @param {*} [options] Override http request option.
|
|
11441
|
+
* @throws {RequiredError}
|
|
11442
|
+
*/
|
|
11443
|
+
async apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationModel>> {
|
|
11444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options);
|
|
11445
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11446
|
+
},
|
|
10634
11447
|
/**
|
|
10635
11448
|
*
|
|
10636
11449
|
* @summary Reject consultation.
|
|
@@ -10661,6 +11474,18 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
10661
11474
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options);
|
|
10662
11475
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10663
11476
|
},
|
|
11477
|
+
/**
|
|
11478
|
+
*
|
|
11479
|
+
* @summary Create consultation.
|
|
11480
|
+
* @param {string} requestId
|
|
11481
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
11482
|
+
* @param {*} [options] Override http request option.
|
|
11483
|
+
* @throws {RequiredError}
|
|
11484
|
+
*/
|
|
11485
|
+
async apiV2ConsultationsRequestIdPost(requestId: string, createConsultationCommand?: CreateConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationModel>> {
|
|
11486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options);
|
|
11487
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11488
|
+
},
|
|
10664
11489
|
}
|
|
10665
11490
|
};
|
|
10666
11491
|
|
|
@@ -10712,6 +11537,27 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
10712
11537
|
apiV2ConsultationsConsultationIdGet(consultationId: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
10713
11538
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(axios, basePath));
|
|
10714
11539
|
},
|
|
11540
|
+
/**
|
|
11541
|
+
*
|
|
11542
|
+
* @summary Pay consultation.
|
|
11543
|
+
* @param {string} consultationId
|
|
11544
|
+
* @param {*} [options] Override http request option.
|
|
11545
|
+
* @throws {RequiredError}
|
|
11546
|
+
*/
|
|
11547
|
+
apiV2ConsultationsConsultationIdPayPost(consultationId: string, options?: any): AxiosPromise<string> {
|
|
11548
|
+
return localVarFp.apiV2ConsultationsConsultationIdPayPost(consultationId, options).then((request) => request(axios, basePath));
|
|
11549
|
+
},
|
|
11550
|
+
/**
|
|
11551
|
+
*
|
|
11552
|
+
* @summary Update consultation.
|
|
11553
|
+
* @param {string} consultationId
|
|
11554
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
11555
|
+
* @param {*} [options] Override http request option.
|
|
11556
|
+
* @throws {RequiredError}
|
|
11557
|
+
*/
|
|
11558
|
+
apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
|
|
11559
|
+
return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(axios, basePath));
|
|
11560
|
+
},
|
|
10715
11561
|
/**
|
|
10716
11562
|
*
|
|
10717
11563
|
* @summary Reject consultation.
|
|
@@ -10740,6 +11586,17 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
10740
11586
|
apiV2ConsultationsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: ConsultationStatus, consultationType?: ConsultationType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ConsultationsModel> {
|
|
10741
11587
|
return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
10742
11588
|
},
|
|
11589
|
+
/**
|
|
11590
|
+
*
|
|
11591
|
+
* @summary Create consultation.
|
|
11592
|
+
* @param {string} requestId
|
|
11593
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
11594
|
+
* @param {*} [options] Override http request option.
|
|
11595
|
+
* @throws {RequiredError}
|
|
11596
|
+
*/
|
|
11597
|
+
apiV2ConsultationsRequestIdPost(requestId: string, createConsultationCommand?: CreateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
|
|
11598
|
+
return localVarFp.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then((request) => request(axios, basePath));
|
|
11599
|
+
},
|
|
10743
11600
|
};
|
|
10744
11601
|
};
|
|
10745
11602
|
|
|
@@ -10799,6 +11656,31 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
10799
11656
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
10800
11657
|
}
|
|
10801
11658
|
|
|
11659
|
+
/**
|
|
11660
|
+
*
|
|
11661
|
+
* @summary Pay consultation.
|
|
11662
|
+
* @param {string} consultationId
|
|
11663
|
+
* @param {*} [options] Override http request option.
|
|
11664
|
+
* @throws {RequiredError}
|
|
11665
|
+
* @memberof ConsultationsApi
|
|
11666
|
+
*/
|
|
11667
|
+
public apiV2ConsultationsConsultationIdPayPost(consultationId: string, options?: AxiosRequestConfig) {
|
|
11668
|
+
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPayPost(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
11669
|
+
}
|
|
11670
|
+
|
|
11671
|
+
/**
|
|
11672
|
+
*
|
|
11673
|
+
* @summary Update consultation.
|
|
11674
|
+
* @param {string} consultationId
|
|
11675
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
11676
|
+
* @param {*} [options] Override http request option.
|
|
11677
|
+
* @throws {RequiredError}
|
|
11678
|
+
* @memberof ConsultationsApi
|
|
11679
|
+
*/
|
|
11680
|
+
public apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: AxiosRequestConfig) {
|
|
11681
|
+
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
11682
|
+
}
|
|
11683
|
+
|
|
10802
11684
|
/**
|
|
10803
11685
|
*
|
|
10804
11686
|
* @summary Reject consultation.
|
|
@@ -10830,6 +11712,19 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
10830
11712
|
public apiV2ConsultationsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: ConsultationStatus, consultationType?: ConsultationType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
10831
11713
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
10832
11714
|
}
|
|
11715
|
+
|
|
11716
|
+
/**
|
|
11717
|
+
*
|
|
11718
|
+
* @summary Create consultation.
|
|
11719
|
+
* @param {string} requestId
|
|
11720
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
11721
|
+
* @param {*} [options] Override http request option.
|
|
11722
|
+
* @throws {RequiredError}
|
|
11723
|
+
* @memberof ConsultationsApi
|
|
11724
|
+
*/
|
|
11725
|
+
public apiV2ConsultationsRequestIdPost(requestId: string, createConsultationCommand?: CreateConsultationCommand, options?: AxiosRequestConfig) {
|
|
11726
|
+
return ConsultationsApiFp(this.configuration).apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
11727
|
+
}
|
|
10833
11728
|
}
|
|
10834
11729
|
|
|
10835
11730
|
|