ch-api-client-typescript2 2.6.3 → 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 +736 -78
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +728 -71
- package/package.json +1 -1
- package/src/api.ts +1058 -102
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
|
|
@@ -2643,6 +2843,18 @@ export interface DealItemModel {
|
|
|
2643
2843
|
* @memberof DealItemModel
|
|
2644
2844
|
*/
|
|
2645
2845
|
'dealServices'?: Array<DealServiceItemModel> | null;
|
|
2846
|
+
/**
|
|
2847
|
+
*
|
|
2848
|
+
* @type {Array<LocalizedUrlModel>}
|
|
2849
|
+
* @memberof DealItemModel
|
|
2850
|
+
*/
|
|
2851
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2852
|
+
/**
|
|
2853
|
+
*
|
|
2854
|
+
* @type {boolean}
|
|
2855
|
+
* @memberof DealItemModel
|
|
2856
|
+
*/
|
|
2857
|
+
'confirmed'?: boolean;
|
|
2646
2858
|
/**
|
|
2647
2859
|
*
|
|
2648
2860
|
* @type {AuditableEntity}
|
|
@@ -2734,12 +2946,30 @@ export interface DealModel {
|
|
|
2734
2946
|
* @memberof DealModel
|
|
2735
2947
|
*/
|
|
2736
2948
|
'dealServices'?: Array<DealServiceItemModel> | null;
|
|
2949
|
+
/**
|
|
2950
|
+
*
|
|
2951
|
+
* @type {Array<LocalizedUrlModel>}
|
|
2952
|
+
* @memberof DealModel
|
|
2953
|
+
*/
|
|
2954
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
2955
|
+
/**
|
|
2956
|
+
*
|
|
2957
|
+
* @type {boolean}
|
|
2958
|
+
* @memberof DealModel
|
|
2959
|
+
*/
|
|
2960
|
+
'confirmed'?: boolean;
|
|
2737
2961
|
/**
|
|
2738
2962
|
*
|
|
2739
2963
|
* @type {AuditableEntity}
|
|
2740
2964
|
* @memberof DealModel
|
|
2741
2965
|
*/
|
|
2742
2966
|
'auditableEntity'?: AuditableEntity;
|
|
2967
|
+
/**
|
|
2968
|
+
*
|
|
2969
|
+
* @type {string}
|
|
2970
|
+
* @memberof DealModel
|
|
2971
|
+
*/
|
|
2972
|
+
'languageCode'?: string | null;
|
|
2743
2973
|
}
|
|
2744
2974
|
/**
|
|
2745
2975
|
*
|
|
@@ -5720,7 +5950,10 @@ export enum MediaType {
|
|
|
5720
5950
|
Photo = 'Photo',
|
|
5721
5951
|
Video = 'Video',
|
|
5722
5952
|
Youtube = 'Youtube',
|
|
5723
|
-
Document = 'Document'
|
|
5953
|
+
Document = 'Document',
|
|
5954
|
+
Frontal = 'Frontal',
|
|
5955
|
+
Diagonal = 'Diagonal',
|
|
5956
|
+
Side = 'Side'
|
|
5724
5957
|
}
|
|
5725
5958
|
|
|
5726
5959
|
/**
|
|
@@ -6650,12 +6883,6 @@ export interface ServiceCategoryItemModel {
|
|
|
6650
6883
|
* @memberof ServiceCategoryItemModel
|
|
6651
6884
|
*/
|
|
6652
6885
|
'serviceCount'?: number;
|
|
6653
|
-
/**
|
|
6654
|
-
*
|
|
6655
|
-
* @type {Array<HospitalServiceItemModel>}
|
|
6656
|
-
* @memberof ServiceCategoryItemModel
|
|
6657
|
-
*/
|
|
6658
|
-
'services'?: Array<HospitalServiceItemModel> | null;
|
|
6659
6886
|
}
|
|
6660
6887
|
/**
|
|
6661
6888
|
*
|
|
@@ -6699,12 +6926,6 @@ export interface ServiceCategoryModel {
|
|
|
6699
6926
|
* @memberof ServiceCategoryModel
|
|
6700
6927
|
*/
|
|
6701
6928
|
'serviceCount'?: number;
|
|
6702
|
-
/**
|
|
6703
|
-
*
|
|
6704
|
-
* @type {Array<HospitalServiceItemModel>}
|
|
6705
|
-
* @memberof ServiceCategoryModel
|
|
6706
|
-
*/
|
|
6707
|
-
'services'?: Array<HospitalServiceItemModel> | null;
|
|
6708
6929
|
}
|
|
6709
6930
|
/**
|
|
6710
6931
|
*
|
|
@@ -7281,74 +7502,244 @@ export interface TagsModel {
|
|
|
7281
7502
|
/**
|
|
7282
7503
|
*
|
|
7283
7504
|
* @export
|
|
7284
|
-
* @interface
|
|
7505
|
+
* @interface UpdateBookingCommand
|
|
7285
7506
|
*/
|
|
7286
|
-
export interface
|
|
7507
|
+
export interface UpdateBookingCommand {
|
|
7287
7508
|
/**
|
|
7288
7509
|
*
|
|
7289
|
-
* @type {
|
|
7290
|
-
* @memberof
|
|
7510
|
+
* @type {number}
|
|
7511
|
+
* @memberof UpdateBookingCommand
|
|
7291
7512
|
*/
|
|
7292
|
-
'
|
|
7513
|
+
'quantity'?: number;
|
|
7293
7514
|
/**
|
|
7294
7515
|
*
|
|
7295
7516
|
* @type {string}
|
|
7296
|
-
* @memberof
|
|
7517
|
+
* @memberof UpdateBookingCommand
|
|
7297
7518
|
*/
|
|
7298
|
-
'
|
|
7519
|
+
'firstName'?: string | null;
|
|
7299
7520
|
/**
|
|
7300
7521
|
*
|
|
7301
|
-
* @type {
|
|
7302
|
-
* @memberof
|
|
7522
|
+
* @type {string}
|
|
7523
|
+
* @memberof UpdateBookingCommand
|
|
7303
7524
|
*/
|
|
7304
|
-
'
|
|
7525
|
+
'lastName'?: string | null;
|
|
7305
7526
|
/**
|
|
7306
7527
|
*
|
|
7307
|
-
* @type {
|
|
7308
|
-
* @memberof
|
|
7528
|
+
* @type {string}
|
|
7529
|
+
* @memberof UpdateBookingCommand
|
|
7309
7530
|
*/
|
|
7310
|
-
'
|
|
7311
|
-
}
|
|
7312
|
-
/**
|
|
7313
|
-
*
|
|
7314
|
-
* @export
|
|
7315
|
-
* @interface UpdatePatientCommand
|
|
7316
|
-
*/
|
|
7317
|
-
export interface UpdatePatientCommand {
|
|
7531
|
+
'email'?: string | null;
|
|
7318
7532
|
/**
|
|
7319
7533
|
*
|
|
7320
7534
|
* @type {string}
|
|
7321
|
-
* @memberof
|
|
7535
|
+
* @memberof UpdateBookingCommand
|
|
7322
7536
|
*/
|
|
7323
|
-
'
|
|
7537
|
+
'phone'?: string | null;
|
|
7324
7538
|
/**
|
|
7325
7539
|
*
|
|
7326
|
-
* @type {
|
|
7327
|
-
* @memberof
|
|
7540
|
+
* @type {Date}
|
|
7541
|
+
* @memberof UpdateBookingCommand
|
|
7328
7542
|
*/
|
|
7329
|
-
'
|
|
7543
|
+
'dateOfBirth'?: Date | null;
|
|
7330
7544
|
/**
|
|
7331
7545
|
*
|
|
7332
|
-
* @type {
|
|
7333
|
-
* @memberof
|
|
7546
|
+
* @type {Gender}
|
|
7547
|
+
* @memberof UpdateBookingCommand
|
|
7334
7548
|
*/
|
|
7335
|
-
'
|
|
7549
|
+
'gender'?: Gender;
|
|
7336
7550
|
/**
|
|
7337
7551
|
*
|
|
7338
|
-
* @type {
|
|
7339
|
-
* @memberof
|
|
7552
|
+
* @type {Date}
|
|
7553
|
+
* @memberof UpdateBookingCommand
|
|
7340
7554
|
*/
|
|
7341
|
-
'
|
|
7555
|
+
'approximateDateStart'?: Date;
|
|
7342
7556
|
/**
|
|
7343
7557
|
*
|
|
7344
|
-
* @type {
|
|
7345
|
-
* @memberof
|
|
7558
|
+
* @type {Date}
|
|
7559
|
+
* @memberof UpdateBookingCommand
|
|
7346
7560
|
*/
|
|
7347
|
-
'
|
|
7561
|
+
'approximateDateEnd'?: Date;
|
|
7348
7562
|
/**
|
|
7349
7563
|
*
|
|
7350
7564
|
* @type {string}
|
|
7351
|
-
* @memberof
|
|
7565
|
+
* @memberof UpdateBookingCommand
|
|
7566
|
+
*/
|
|
7567
|
+
'comment'?: string | null;
|
|
7568
|
+
/**
|
|
7569
|
+
*
|
|
7570
|
+
* @type {string}
|
|
7571
|
+
* @memberof UpdateBookingCommand
|
|
7572
|
+
*/
|
|
7573
|
+
'timeZone'?: string | null;
|
|
7574
|
+
}
|
|
7575
|
+
/**
|
|
7576
|
+
*
|
|
7577
|
+
* @export
|
|
7578
|
+
* @interface UpdateChatUserCommand
|
|
7579
|
+
*/
|
|
7580
|
+
export interface UpdateChatUserCommand {
|
|
7581
|
+
/**
|
|
7582
|
+
*
|
|
7583
|
+
* @type {string}
|
|
7584
|
+
* @memberof UpdateChatUserCommand
|
|
7585
|
+
*/
|
|
7586
|
+
'nickname'?: string | null;
|
|
7587
|
+
/**
|
|
7588
|
+
*
|
|
7589
|
+
* @type {string}
|
|
7590
|
+
* @memberof UpdateChatUserCommand
|
|
7591
|
+
*/
|
|
7592
|
+
'profileUrl'?: string | null;
|
|
7593
|
+
/**
|
|
7594
|
+
*
|
|
7595
|
+
* @type {boolean}
|
|
7596
|
+
* @memberof UpdateChatUserCommand
|
|
7597
|
+
*/
|
|
7598
|
+
'issueAccessToken'?: boolean;
|
|
7599
|
+
/**
|
|
7600
|
+
*
|
|
7601
|
+
* @type {Array<string>}
|
|
7602
|
+
* @memberof UpdateChatUserCommand
|
|
7603
|
+
*/
|
|
7604
|
+
'discoveryKeys'?: Array<string> | null;
|
|
7605
|
+
}
|
|
7606
|
+
/**
|
|
7607
|
+
*
|
|
7608
|
+
* @export
|
|
7609
|
+
* @interface UpdateConsultationCommand
|
|
7610
|
+
*/
|
|
7611
|
+
export interface UpdateConsultationCommand {
|
|
7612
|
+
/**
|
|
7613
|
+
*
|
|
7614
|
+
* @type {string}
|
|
7615
|
+
* @memberof UpdateConsultationCommand
|
|
7616
|
+
*/
|
|
7617
|
+
'specialtyId'?: string | null;
|
|
7618
|
+
/**
|
|
7619
|
+
*
|
|
7620
|
+
* @type {string}
|
|
7621
|
+
* @memberof UpdateConsultationCommand
|
|
7622
|
+
*/
|
|
7623
|
+
'doctorId'?: string | null;
|
|
7624
|
+
/**
|
|
7625
|
+
*
|
|
7626
|
+
* @type {string}
|
|
7627
|
+
* @memberof UpdateConsultationCommand
|
|
7628
|
+
*/
|
|
7629
|
+
'language'?: string | null;
|
|
7630
|
+
/**
|
|
7631
|
+
*
|
|
7632
|
+
* @type {boolean}
|
|
7633
|
+
* @memberof UpdateConsultationCommand
|
|
7634
|
+
*/
|
|
7635
|
+
'isAccountHolder'?: boolean;
|
|
7636
|
+
/**
|
|
7637
|
+
*
|
|
7638
|
+
* @type {string}
|
|
7639
|
+
* @memberof UpdateConsultationCommand
|
|
7640
|
+
*/
|
|
7641
|
+
'firstName'?: string | null;
|
|
7642
|
+
/**
|
|
7643
|
+
*
|
|
7644
|
+
* @type {string}
|
|
7645
|
+
* @memberof UpdateConsultationCommand
|
|
7646
|
+
*/
|
|
7647
|
+
'lastName'?: string | null;
|
|
7648
|
+
/**
|
|
7649
|
+
*
|
|
7650
|
+
* @type {string}
|
|
7651
|
+
* @memberof UpdateConsultationCommand
|
|
7652
|
+
*/
|
|
7653
|
+
'email'?: string | null;
|
|
7654
|
+
/**
|
|
7655
|
+
*
|
|
7656
|
+
* @type {string}
|
|
7657
|
+
* @memberof UpdateConsultationCommand
|
|
7658
|
+
*/
|
|
7659
|
+
'phone'?: string | null;
|
|
7660
|
+
/**
|
|
7661
|
+
*
|
|
7662
|
+
* @type {Date}
|
|
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
|
|
7352
7743
|
*/
|
|
7353
7744
|
'photo'?: string | null;
|
|
7354
7745
|
/**
|
|
@@ -9177,6 +9568,124 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9177
9568
|
options: localVarRequestOptions,
|
|
9178
9569
|
};
|
|
9179
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
|
+
},
|
|
9180
9689
|
/**
|
|
9181
9690
|
*
|
|
9182
9691
|
* @summary Reject booking.
|
|
@@ -9290,6 +9799,48 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9290
9799
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9291
9800
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9292
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
|
+
|
|
9293
9844
|
return {
|
|
9294
9845
|
url: toPathString(localVarUrlObj),
|
|
9295
9846
|
options: localVarRequestOptions,
|
|
@@ -9350,6 +9901,40 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
9350
9901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
|
|
9351
9902
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9352
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
|
+
},
|
|
9353
9938
|
/**
|
|
9354
9939
|
*
|
|
9355
9940
|
* @summary Reject booking.
|
|
@@ -9380,6 +9965,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
9380
9965
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options);
|
|
9381
9966
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9382
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
|
+
},
|
|
9383
9980
|
}
|
|
9384
9981
|
};
|
|
9385
9982
|
|
|
@@ -9431,6 +10028,37 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9431
10028
|
apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
9432
10029
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
9433
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
|
+
},
|
|
9434
10062
|
/**
|
|
9435
10063
|
*
|
|
9436
10064
|
* @summary Reject booking.
|
|
@@ -9459,6 +10087,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9459
10087
|
apiV2BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<BookingsModel> {
|
|
9460
10088
|
return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
9461
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
|
+
},
|
|
9462
10101
|
};
|
|
9463
10102
|
};
|
|
9464
10103
|
|
|
@@ -9508,14 +10147,51 @@ export class BookingsApi extends BaseAPI {
|
|
|
9508
10147
|
|
|
9509
10148
|
/**
|
|
9510
10149
|
*
|
|
9511
|
-
* @summary Get booking.
|
|
10150
|
+
* @summary Get booking.
|
|
10151
|
+
* @param {string} bookingId
|
|
10152
|
+
* @param {*} [options] Override http request option.
|
|
10153
|
+
* @throws {RequiredError}
|
|
10154
|
+
* @memberof BookingsApi
|
|
10155
|
+
*/
|
|
10156
|
+
public apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig) {
|
|
10157
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
10158
|
+
}
|
|
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.
|
|
9512
10187
|
* @param {string} bookingId
|
|
10188
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
9513
10189
|
* @param {*} [options] Override http request option.
|
|
9514
10190
|
* @throws {RequiredError}
|
|
9515
10191
|
* @memberof BookingsApi
|
|
9516
10192
|
*/
|
|
9517
|
-
public
|
|
9518
|
-
return BookingsApiFp(this.configuration).
|
|
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));
|
|
9519
10195
|
}
|
|
9520
10196
|
|
|
9521
10197
|
/**
|
|
@@ -9549,6 +10225,19 @@ export class BookingsApi extends BaseAPI {
|
|
|
9549
10225
|
public apiV2BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
9550
10226
|
return BookingsApiFp(this.configuration).apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
9551
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
|
+
}
|
|
9552
10241
|
}
|
|
9553
10242
|
|
|
9554
10243
|
|
|
@@ -10437,6 +11126,86 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
10437
11126
|
options: localVarRequestOptions,
|
|
10438
11127
|
};
|
|
10439
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
|
+
},
|
|
10440
11209
|
/**
|
|
10441
11210
|
*
|
|
10442
11211
|
* @summary Reject consultation.
|
|
@@ -10550,6 +11319,48 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
10550
11319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10551
11320
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10552
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
|
+
|
|
10553
11364
|
return {
|
|
10554
11365
|
url: toPathString(localVarUrlObj),
|
|
10555
11366
|
options: localVarRequestOptions,
|
|
@@ -10610,6 +11421,29 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
10610
11421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdGet(consultationId, options);
|
|
10611
11422
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10612
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
|
+
},
|
|
10613
11447
|
/**
|
|
10614
11448
|
*
|
|
10615
11449
|
* @summary Reject consultation.
|
|
@@ -10640,6 +11474,18 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
10640
11474
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options);
|
|
10641
11475
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10642
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
|
+
},
|
|
10643
11489
|
}
|
|
10644
11490
|
};
|
|
10645
11491
|
|
|
@@ -10691,6 +11537,27 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
10691
11537
|
apiV2ConsultationsConsultationIdGet(consultationId: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
10692
11538
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(axios, basePath));
|
|
10693
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
|
+
},
|
|
10694
11561
|
/**
|
|
10695
11562
|
*
|
|
10696
11563
|
* @summary Reject consultation.
|
|
@@ -10719,6 +11586,17 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
10719
11586
|
apiV2ConsultationsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: ConsultationStatus, consultationType?: ConsultationType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ConsultationsModel> {
|
|
10720
11587
|
return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
10721
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
|
+
},
|
|
10722
11600
|
};
|
|
10723
11601
|
};
|
|
10724
11602
|
|
|
@@ -10778,6 +11656,31 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
10778
11656
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
10779
11657
|
}
|
|
10780
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
|
+
|
|
10781
11684
|
/**
|
|
10782
11685
|
*
|
|
10783
11686
|
* @summary Reject consultation.
|
|
@@ -10809,6 +11712,19 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
10809
11712
|
public apiV2ConsultationsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: ConsultationStatus, consultationType?: ConsultationType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
10810
11713
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
10811
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
|
+
}
|
|
10812
11728
|
}
|
|
10813
11729
|
|
|
10814
11730
|
|
|
@@ -11890,10 +12806,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
11890
12806
|
*
|
|
11891
12807
|
* @summary Get deal.
|
|
11892
12808
|
* @param {string} dealId
|
|
12809
|
+
* @param {string} [languageCode]
|
|
12810
|
+
* @param {boolean} [returnDefaultValue]
|
|
11893
12811
|
* @param {*} [options] Override http request option.
|
|
11894
12812
|
* @throws {RequiredError}
|
|
11895
12813
|
*/
|
|
11896
|
-
apiV2DealsDealIdGet: async (dealId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12814
|
+
apiV2DealsDealIdGet: async (dealId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11897
12815
|
// verify required parameter 'dealId' is not null or undefined
|
|
11898
12816
|
assertParamExists('apiV2DealsDealIdGet', 'dealId', dealId)
|
|
11899
12817
|
const localVarPath = `/api/v2/deals/{dealId}`
|
|
@@ -11909,6 +12827,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
11909
12827
|
const localVarHeaderParameter = {} as any;
|
|
11910
12828
|
const localVarQueryParameter = {} as any;
|
|
11911
12829
|
|
|
12830
|
+
if (languageCode !== undefined) {
|
|
12831
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
12832
|
+
}
|
|
12833
|
+
|
|
12834
|
+
if (returnDefaultValue !== undefined) {
|
|
12835
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
12836
|
+
}
|
|
12837
|
+
|
|
11912
12838
|
|
|
11913
12839
|
|
|
11914
12840
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12142,13 +13068,16 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12142
13068
|
* @param {string} [exceptHospitalId]
|
|
12143
13069
|
* @param {string} [exceptDealId]
|
|
12144
13070
|
* @param {Array<string>} [ids]
|
|
13071
|
+
* @param {string} [languageCode]
|
|
13072
|
+
* @param {boolean} [showHidden]
|
|
13073
|
+
* @param {boolean} [returnDefaultValue]
|
|
12145
13074
|
* @param {number} [page]
|
|
12146
13075
|
* @param {number} [limit]
|
|
12147
13076
|
* @param {Date} [lastRetrieved]
|
|
12148
13077
|
* @param {*} [options] Override http request option.
|
|
12149
13078
|
* @throws {RequiredError}
|
|
12150
13079
|
*/
|
|
12151
|
-
apiV2DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13080
|
+
apiV2DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12152
13081
|
const localVarPath = `/api/v2/deals`;
|
|
12153
13082
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12154
13083
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12205,6 +13134,18 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12205
13134
|
localVarQueryParameter['Ids'] = ids;
|
|
12206
13135
|
}
|
|
12207
13136
|
|
|
13137
|
+
if (languageCode !== undefined) {
|
|
13138
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
13139
|
+
}
|
|
13140
|
+
|
|
13141
|
+
if (showHidden !== undefined) {
|
|
13142
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
13143
|
+
}
|
|
13144
|
+
|
|
13145
|
+
if (returnDefaultValue !== undefined) {
|
|
13146
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
13147
|
+
}
|
|
13148
|
+
|
|
12208
13149
|
if (page !== undefined) {
|
|
12209
13150
|
localVarQueryParameter['page'] = page;
|
|
12210
13151
|
}
|
|
@@ -12234,10 +13175,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12234
13175
|
*
|
|
12235
13176
|
* @summary Get deal by slug.
|
|
12236
13177
|
* @param {string} slug
|
|
13178
|
+
* @param {string} [languageCode]
|
|
13179
|
+
* @param {boolean} [returnDefaultValue]
|
|
12237
13180
|
* @param {*} [options] Override http request option.
|
|
12238
13181
|
* @throws {RequiredError}
|
|
12239
13182
|
*/
|
|
12240
|
-
apiV2DealsSlugGet: async (slug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13183
|
+
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12241
13184
|
// verify required parameter 'slug' is not null or undefined
|
|
12242
13185
|
assertParamExists('apiV2DealsSlugGet', 'slug', slug)
|
|
12243
13186
|
const localVarPath = `/api/v2/deals/{slug}`
|
|
@@ -12253,6 +13196,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
12253
13196
|
const localVarHeaderParameter = {} as any;
|
|
12254
13197
|
const localVarQueryParameter = {} as any;
|
|
12255
13198
|
|
|
13199
|
+
if (languageCode !== undefined) {
|
|
13200
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
13201
|
+
}
|
|
13202
|
+
|
|
13203
|
+
if (returnDefaultValue !== undefined) {
|
|
13204
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
13205
|
+
}
|
|
13206
|
+
|
|
12256
13207
|
|
|
12257
13208
|
|
|
12258
13209
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12278,11 +13229,13 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
12278
13229
|
*
|
|
12279
13230
|
* @summary Get deal.
|
|
12280
13231
|
* @param {string} dealId
|
|
13232
|
+
* @param {string} [languageCode]
|
|
13233
|
+
* @param {boolean} [returnDefaultValue]
|
|
12281
13234
|
* @param {*} [options] Override http request option.
|
|
12282
13235
|
* @throws {RequiredError}
|
|
12283
13236
|
*/
|
|
12284
|
-
async apiV2DealsDealIdGet(dealId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, options);
|
|
13237
|
+
async apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
13238
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options);
|
|
12286
13239
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12287
13240
|
},
|
|
12288
13241
|
/**
|
|
@@ -12357,25 +13310,30 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
12357
13310
|
* @param {string} [exceptHospitalId]
|
|
12358
13311
|
* @param {string} [exceptDealId]
|
|
12359
13312
|
* @param {Array<string>} [ids]
|
|
13313
|
+
* @param {string} [languageCode]
|
|
13314
|
+
* @param {boolean} [showHidden]
|
|
13315
|
+
* @param {boolean} [returnDefaultValue]
|
|
12360
13316
|
* @param {number} [page]
|
|
12361
13317
|
* @param {number} [limit]
|
|
12362
13318
|
* @param {Date} [lastRetrieved]
|
|
12363
13319
|
* @param {*} [options] Override http request option.
|
|
12364
13320
|
* @throws {RequiredError}
|
|
12365
13321
|
*/
|
|
12366
|
-
async apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
12367
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options);
|
|
13322
|
+
async apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
13323
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
12368
13324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12369
13325
|
},
|
|
12370
13326
|
/**
|
|
12371
13327
|
*
|
|
12372
13328
|
* @summary Get deal by slug.
|
|
12373
13329
|
* @param {string} slug
|
|
13330
|
+
* @param {string} [languageCode]
|
|
13331
|
+
* @param {boolean} [returnDefaultValue]
|
|
12374
13332
|
* @param {*} [options] Override http request option.
|
|
12375
13333
|
* @throws {RequiredError}
|
|
12376
13334
|
*/
|
|
12377
|
-
async apiV2DealsSlugGet(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
12378
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, options);
|
|
13335
|
+
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
13336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
12379
13337
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12380
13338
|
},
|
|
12381
13339
|
}
|
|
@@ -12392,11 +13350,13 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
12392
13350
|
*
|
|
12393
13351
|
* @summary Get deal.
|
|
12394
13352
|
* @param {string} dealId
|
|
13353
|
+
* @param {string} [languageCode]
|
|
13354
|
+
* @param {boolean} [returnDefaultValue]
|
|
12395
13355
|
* @param {*} [options] Override http request option.
|
|
12396
13356
|
* @throws {RequiredError}
|
|
12397
13357
|
*/
|
|
12398
|
-
apiV2DealsDealIdGet(dealId: string, options?: any): AxiosPromise<DealModel> {
|
|
12399
|
-
return localVarFp.apiV2DealsDealIdGet(dealId, options).then((request) => request(axios, basePath));
|
|
13358
|
+
apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
13359
|
+
return localVarFp.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
12400
13360
|
},
|
|
12401
13361
|
/**
|
|
12402
13362
|
*
|
|
@@ -12466,24 +13426,29 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
12466
13426
|
* @param {string} [exceptHospitalId]
|
|
12467
13427
|
* @param {string} [exceptDealId]
|
|
12468
13428
|
* @param {Array<string>} [ids]
|
|
13429
|
+
* @param {string} [languageCode]
|
|
13430
|
+
* @param {boolean} [showHidden]
|
|
13431
|
+
* @param {boolean} [returnDefaultValue]
|
|
12469
13432
|
* @param {number} [page]
|
|
12470
13433
|
* @param {number} [limit]
|
|
12471
13434
|
* @param {Date} [lastRetrieved]
|
|
12472
13435
|
* @param {*} [options] Override http request option.
|
|
12473
13436
|
* @throws {RequiredError}
|
|
12474
13437
|
*/
|
|
12475
|
-
apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
12476
|
-
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
13438
|
+
apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
13439
|
+
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
12477
13440
|
},
|
|
12478
13441
|
/**
|
|
12479
13442
|
*
|
|
12480
13443
|
* @summary Get deal by slug.
|
|
12481
13444
|
* @param {string} slug
|
|
13445
|
+
* @param {string} [languageCode]
|
|
13446
|
+
* @param {boolean} [returnDefaultValue]
|
|
12482
13447
|
* @param {*} [options] Override http request option.
|
|
12483
13448
|
* @throws {RequiredError}
|
|
12484
13449
|
*/
|
|
12485
|
-
apiV2DealsSlugGet(slug: string, options?: any): AxiosPromise<DealModel> {
|
|
12486
|
-
return localVarFp.apiV2DealsSlugGet(slug, options).then((request) => request(axios, basePath));
|
|
13450
|
+
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
13451
|
+
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
12487
13452
|
},
|
|
12488
13453
|
};
|
|
12489
13454
|
};
|
|
@@ -12499,12 +13464,14 @@ export class DealsApi extends BaseAPI {
|
|
|
12499
13464
|
*
|
|
12500
13465
|
* @summary Get deal.
|
|
12501
13466
|
* @param {string} dealId
|
|
13467
|
+
* @param {string} [languageCode]
|
|
13468
|
+
* @param {boolean} [returnDefaultValue]
|
|
12502
13469
|
* @param {*} [options] Override http request option.
|
|
12503
13470
|
* @throws {RequiredError}
|
|
12504
13471
|
* @memberof DealsApi
|
|
12505
13472
|
*/
|
|
12506
|
-
public apiV2DealsDealIdGet(dealId: string, options?: AxiosRequestConfig) {
|
|
12507
|
-
return DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, options).then((request) => request(this.axios, this.basePath));
|
|
13473
|
+
public apiV2DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
13474
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
12508
13475
|
}
|
|
12509
13476
|
|
|
12510
13477
|
/**
|
|
@@ -12583,6 +13550,9 @@ export class DealsApi extends BaseAPI {
|
|
|
12583
13550
|
* @param {string} [exceptHospitalId]
|
|
12584
13551
|
* @param {string} [exceptDealId]
|
|
12585
13552
|
* @param {Array<string>} [ids]
|
|
13553
|
+
* @param {string} [languageCode]
|
|
13554
|
+
* @param {boolean} [showHidden]
|
|
13555
|
+
* @param {boolean} [returnDefaultValue]
|
|
12586
13556
|
* @param {number} [page]
|
|
12587
13557
|
* @param {number} [limit]
|
|
12588
13558
|
* @param {Date} [lastRetrieved]
|
|
@@ -12590,20 +13560,22 @@ export class DealsApi extends BaseAPI {
|
|
|
12590
13560
|
* @throws {RequiredError}
|
|
12591
13561
|
* @memberof DealsApi
|
|
12592
13562
|
*/
|
|
12593
|
-
public apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
12594
|
-
return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
13563
|
+
public apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
13564
|
+
return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
12595
13565
|
}
|
|
12596
13566
|
|
|
12597
13567
|
/**
|
|
12598
13568
|
*
|
|
12599
13569
|
* @summary Get deal by slug.
|
|
12600
13570
|
* @param {string} slug
|
|
13571
|
+
* @param {string} [languageCode]
|
|
13572
|
+
* @param {boolean} [returnDefaultValue]
|
|
12601
13573
|
* @param {*} [options] Override http request option.
|
|
12602
13574
|
* @throws {RequiredError}
|
|
12603
13575
|
* @memberof DealsApi
|
|
12604
13576
|
*/
|
|
12605
|
-
public apiV2DealsSlugGet(slug: string, options?: AxiosRequestConfig) {
|
|
12606
|
-
return DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, options).then((request) => request(this.axios, this.basePath));
|
|
13577
|
+
public apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
13578
|
+
return DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
12607
13579
|
}
|
|
12608
13580
|
}
|
|
12609
13581
|
|
|
@@ -19755,14 +20727,13 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19755
20727
|
* @param {string} [id]
|
|
19756
20728
|
* @param {string} [name]
|
|
19757
20729
|
* @param {string} [description]
|
|
19758
|
-
* @param {string} [languageCode]
|
|
19759
20730
|
* @param {number} [page]
|
|
19760
20731
|
* @param {number} [limit]
|
|
19761
20732
|
* @param {Date} [lastRetrieved]
|
|
19762
20733
|
* @param {*} [options] Override http request option.
|
|
19763
20734
|
* @throws {RequiredError}
|
|
19764
20735
|
*/
|
|
19765
|
-
apiV2ServicescategoriesGet: async (id?: string, name?: string, description?: string,
|
|
20736
|
+
apiV2ServicescategoriesGet: async (id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19766
20737
|
const localVarPath = `/api/v2/servicescategories`;
|
|
19767
20738
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19768
20739
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -19787,10 +20758,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19787
20758
|
localVarQueryParameter['Description'] = description;
|
|
19788
20759
|
}
|
|
19789
20760
|
|
|
19790
|
-
if (languageCode !== undefined) {
|
|
19791
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
19792
|
-
}
|
|
19793
|
-
|
|
19794
20761
|
if (page !== undefined) {
|
|
19795
20762
|
localVarQueryParameter['page'] = page;
|
|
19796
20763
|
}
|
|
@@ -19820,11 +20787,10 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19820
20787
|
*
|
|
19821
20788
|
* @summary Get ServiceCategory.
|
|
19822
20789
|
* @param {string} serviceCategoryId
|
|
19823
|
-
* @param {string} [languageCode]
|
|
19824
20790
|
* @param {*} [options] Override http request option.
|
|
19825
20791
|
* @throws {RequiredError}
|
|
19826
20792
|
*/
|
|
19827
|
-
apiV2ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string,
|
|
20793
|
+
apiV2ServicescategoriesServiceCategoryIdGet: async (serviceCategoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19828
20794
|
// verify required parameter 'serviceCategoryId' is not null or undefined
|
|
19829
20795
|
assertParamExists('apiV2ServicescategoriesServiceCategoryIdGet', 'serviceCategoryId', serviceCategoryId)
|
|
19830
20796
|
const localVarPath = `/api/v2/servicescategories/{serviceCategoryId}`
|
|
@@ -19840,10 +20806,6 @@ export const ServicesCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
19840
20806
|
const localVarHeaderParameter = {} as any;
|
|
19841
20807
|
const localVarQueryParameter = {} as any;
|
|
19842
20808
|
|
|
19843
|
-
if (languageCode !== undefined) {
|
|
19844
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
19845
|
-
}
|
|
19846
|
-
|
|
19847
20809
|
|
|
19848
20810
|
|
|
19849
20811
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -19871,27 +20833,25 @@ export const ServicesCategoriesApiFp = function(configuration?: Configuration) {
|
|
|
19871
20833
|
* @param {string} [id]
|
|
19872
20834
|
* @param {string} [name]
|
|
19873
20835
|
* @param {string} [description]
|
|
19874
|
-
* @param {string} [languageCode]
|
|
19875
20836
|
* @param {number} [page]
|
|
19876
20837
|
* @param {number} [limit]
|
|
19877
20838
|
* @param {Date} [lastRetrieved]
|
|
19878
20839
|
* @param {*} [options] Override http request option.
|
|
19879
20840
|
* @throws {RequiredError}
|
|
19880
20841
|
*/
|
|
19881
|
-
async apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19882
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description,
|
|
20842
|
+
async apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoriesModel>> {
|
|
20843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options);
|
|
19883
20844
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19884
20845
|
},
|
|
19885
20846
|
/**
|
|
19886
20847
|
*
|
|
19887
20848
|
* @summary Get ServiceCategory.
|
|
19888
20849
|
* @param {string} serviceCategoryId
|
|
19889
|
-
* @param {string} [languageCode]
|
|
19890
20850
|
* @param {*} [options] Override http request option.
|
|
19891
20851
|
* @throws {RequiredError}
|
|
19892
20852
|
*/
|
|
19893
|
-
async apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19894
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
20853
|
+
async apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceCategoryModel>> {
|
|
20854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options);
|
|
19895
20855
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19896
20856
|
},
|
|
19897
20857
|
}
|
|
@@ -19910,26 +20870,24 @@ export const ServicesCategoriesApiFactory = function (configuration?: Configurat
|
|
|
19910
20870
|
* @param {string} [id]
|
|
19911
20871
|
* @param {string} [name]
|
|
19912
20872
|
* @param {string} [description]
|
|
19913
|
-
* @param {string} [languageCode]
|
|
19914
20873
|
* @param {number} [page]
|
|
19915
20874
|
* @param {number} [limit]
|
|
19916
20875
|
* @param {Date} [lastRetrieved]
|
|
19917
20876
|
* @param {*} [options] Override http request option.
|
|
19918
20877
|
* @throws {RequiredError}
|
|
19919
20878
|
*/
|
|
19920
|
-
apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19921
|
-
return localVarFp.apiV2ServicescategoriesGet(id, name, description,
|
|
20879
|
+
apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceCategoriesModel> {
|
|
20880
|
+
return localVarFp.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
19922
20881
|
},
|
|
19923
20882
|
/**
|
|
19924
20883
|
*
|
|
19925
20884
|
* @summary Get ServiceCategory.
|
|
19926
20885
|
* @param {string} serviceCategoryId
|
|
19927
|
-
* @param {string} [languageCode]
|
|
19928
20886
|
* @param {*} [options] Override http request option.
|
|
19929
20887
|
* @throws {RequiredError}
|
|
19930
20888
|
*/
|
|
19931
|
-
apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19932
|
-
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
20889
|
+
apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: any): AxiosPromise<ServiceCategoryModel> {
|
|
20890
|
+
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(axios, basePath));
|
|
19933
20891
|
},
|
|
19934
20892
|
};
|
|
19935
20893
|
};
|
|
@@ -19947,7 +20905,6 @@ export class ServicesCategoriesApi extends BaseAPI {
|
|
|
19947
20905
|
* @param {string} [id]
|
|
19948
20906
|
* @param {string} [name]
|
|
19949
20907
|
* @param {string} [description]
|
|
19950
|
-
* @param {string} [languageCode]
|
|
19951
20908
|
* @param {number} [page]
|
|
19952
20909
|
* @param {number} [limit]
|
|
19953
20910
|
* @param {Date} [lastRetrieved]
|
|
@@ -19955,21 +20912,20 @@ export class ServicesCategoriesApi extends BaseAPI {
|
|
|
19955
20912
|
* @throws {RequiredError}
|
|
19956
20913
|
* @memberof ServicesCategoriesApi
|
|
19957
20914
|
*/
|
|
19958
|
-
public apiV2ServicescategoriesGet(id?: string, name?: string, description?: string,
|
|
19959
|
-
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description,
|
|
20915
|
+
public apiV2ServicescategoriesGet(id?: string, name?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
20916
|
+
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
19960
20917
|
}
|
|
19961
20918
|
|
|
19962
20919
|
/**
|
|
19963
20920
|
*
|
|
19964
20921
|
* @summary Get ServiceCategory.
|
|
19965
20922
|
* @param {string} serviceCategoryId
|
|
19966
|
-
* @param {string} [languageCode]
|
|
19967
20923
|
* @param {*} [options] Override http request option.
|
|
19968
20924
|
* @throws {RequiredError}
|
|
19969
20925
|
* @memberof ServicesCategoriesApi
|
|
19970
20926
|
*/
|
|
19971
|
-
public apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string,
|
|
19972
|
-
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
20927
|
+
public apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId: string, options?: AxiosRequestConfig) {
|
|
20928
|
+
return ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then((request) => request(this.axios, this.basePath));
|
|
19973
20929
|
}
|
|
19974
20930
|
}
|
|
19975
20931
|
|