@ahomevilla-hotel/node-sdk 1.0.14 → 1.0.17
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/api.ts +1675 -185
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -208,12 +208,6 @@ export interface Branch {
|
|
|
208
208
|
* @memberof Branch
|
|
209
209
|
*/
|
|
210
210
|
'address': string;
|
|
211
|
-
/**
|
|
212
|
-
* Branch\'s geographical location
|
|
213
|
-
* @type {object}
|
|
214
|
-
* @memberof Branch
|
|
215
|
-
*/
|
|
216
|
-
'location': object;
|
|
217
211
|
/**
|
|
218
212
|
* Branch\'s rating
|
|
219
213
|
* @type {number}
|
|
@@ -317,24 +311,30 @@ export interface BranchDetail {
|
|
|
317
311
|
* @memberof BranchDetail
|
|
318
312
|
*/
|
|
319
313
|
'address': string;
|
|
320
|
-
/**
|
|
321
|
-
* Branch\'s geographical location
|
|
322
|
-
* @type {object}
|
|
323
|
-
* @memberof BranchDetail
|
|
324
|
-
*/
|
|
325
|
-
'location': object;
|
|
326
314
|
/**
|
|
327
315
|
* Branch\'s rating
|
|
328
316
|
* @type {number}
|
|
329
317
|
* @memberof BranchDetail
|
|
330
318
|
*/
|
|
331
319
|
'rating': number;
|
|
320
|
+
/**
|
|
321
|
+
* Amenities available in the branch
|
|
322
|
+
* @type {Array<Amenity>}
|
|
323
|
+
* @memberof BranchDetail
|
|
324
|
+
*/
|
|
325
|
+
'amenities': Array<Amenity>;
|
|
332
326
|
/**
|
|
333
327
|
* List of rooms available in the branch
|
|
334
|
-
* @type {Array<
|
|
328
|
+
* @type {Array<RoomDetail>}
|
|
335
329
|
* @memberof BranchDetail
|
|
336
330
|
*/
|
|
337
|
-
'rooms': Array<
|
|
331
|
+
'rooms': Array<RoomDetail>;
|
|
332
|
+
/**
|
|
333
|
+
* Nearby locations
|
|
334
|
+
* @type {Array<NearBy>}
|
|
335
|
+
* @memberof BranchDetail
|
|
336
|
+
*/
|
|
337
|
+
'nearBy': Array<NearBy>;
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
*
|
|
@@ -374,6 +374,31 @@ export interface BranchesPaginationResultDto {
|
|
|
374
374
|
*/
|
|
375
375
|
'meta': UsersPaginationResultDtoMeta;
|
|
376
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @export
|
|
380
|
+
* @interface ChangePasswordDto
|
|
381
|
+
*/
|
|
382
|
+
export interface ChangePasswordDto {
|
|
383
|
+
/**
|
|
384
|
+
* The current password of the user
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof ChangePasswordDto
|
|
387
|
+
*/
|
|
388
|
+
'currentPassword': string;
|
|
389
|
+
/**
|
|
390
|
+
* The new password of the user
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof ChangePasswordDto
|
|
393
|
+
*/
|
|
394
|
+
'newPassword': string;
|
|
395
|
+
/**
|
|
396
|
+
* The confirm password of the user
|
|
397
|
+
* @type {string}
|
|
398
|
+
* @memberof ChangePasswordDto
|
|
399
|
+
*/
|
|
400
|
+
'confirmPassword': string;
|
|
401
|
+
}
|
|
377
402
|
/**
|
|
378
403
|
*
|
|
379
404
|
* @export
|
|
@@ -474,12 +499,6 @@ export interface CreateBranchDto {
|
|
|
474
499
|
* @memberof CreateBranchDto
|
|
475
500
|
*/
|
|
476
501
|
'address': string;
|
|
477
|
-
/**
|
|
478
|
-
* Branch\'s geographical location
|
|
479
|
-
* @type {LocationDto}
|
|
480
|
-
* @memberof CreateBranchDto
|
|
481
|
-
*/
|
|
482
|
-
'location': LocationDto;
|
|
483
502
|
/**
|
|
484
503
|
* The branch\'s rating.
|
|
485
504
|
* @type {number}
|
|
@@ -487,6 +506,47 @@ export interface CreateBranchDto {
|
|
|
487
506
|
*/
|
|
488
507
|
'rating': number;
|
|
489
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @export
|
|
512
|
+
* @interface CreateHotelRoomDto
|
|
513
|
+
*/
|
|
514
|
+
export interface CreateHotelRoomDto {
|
|
515
|
+
/**
|
|
516
|
+
* Hotel Room\'s name
|
|
517
|
+
* @type {string}
|
|
518
|
+
* @memberof CreateHotelRoomDto
|
|
519
|
+
*/
|
|
520
|
+
'name': string;
|
|
521
|
+
/**
|
|
522
|
+
* Hotel Room\'s slug
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof CreateHotelRoomDto
|
|
525
|
+
*/
|
|
526
|
+
'slug': string;
|
|
527
|
+
/**
|
|
528
|
+
* Hotel Room\'s status
|
|
529
|
+
* @type {string}
|
|
530
|
+
* @memberof CreateHotelRoomDto
|
|
531
|
+
*/
|
|
532
|
+
'status': CreateHotelRoomDtoStatusEnum;
|
|
533
|
+
/**
|
|
534
|
+
* ID of the room detail
|
|
535
|
+
* @type {string}
|
|
536
|
+
* @memberof CreateHotelRoomDto
|
|
537
|
+
*/
|
|
538
|
+
'detailId': string;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export const CreateHotelRoomDtoStatusEnum = {
|
|
542
|
+
Available: 'AVAILABLE',
|
|
543
|
+
Booked: 'BOOKED',
|
|
544
|
+
Occupied: 'OCCUPIED',
|
|
545
|
+
Maintenance: 'MAINTENANCE'
|
|
546
|
+
} as const;
|
|
547
|
+
|
|
548
|
+
export type CreateHotelRoomDtoStatusEnum = typeof CreateHotelRoomDtoStatusEnum[keyof typeof CreateHotelRoomDtoStatusEnum];
|
|
549
|
+
|
|
490
550
|
/**
|
|
491
551
|
*
|
|
492
552
|
* @export
|
|
@@ -524,6 +584,30 @@ export interface CreateRoomDetailDto {
|
|
|
524
584
|
* @memberof CreateRoomDetailDto
|
|
525
585
|
*/
|
|
526
586
|
'name': string;
|
|
587
|
+
/**
|
|
588
|
+
* Hotel Room\'s slug
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof CreateRoomDetailDto
|
|
591
|
+
*/
|
|
592
|
+
'slug': string;
|
|
593
|
+
/**
|
|
594
|
+
* ID of the branch where this room is located
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof CreateRoomDetailDto
|
|
597
|
+
*/
|
|
598
|
+
'branchId': string;
|
|
599
|
+
/**
|
|
600
|
+
* Hotel Room\'s thumbnail image
|
|
601
|
+
* @type {Image}
|
|
602
|
+
* @memberof CreateRoomDetailDto
|
|
603
|
+
*/
|
|
604
|
+
'thumbnail': Image;
|
|
605
|
+
/**
|
|
606
|
+
* Hotel Room\'s image gallery
|
|
607
|
+
* @type {Array<Image>}
|
|
608
|
+
* @memberof CreateRoomDetailDto
|
|
609
|
+
*/
|
|
610
|
+
'images': Array<Image>;
|
|
527
611
|
/**
|
|
528
612
|
*
|
|
529
613
|
* @type {string}
|
|
@@ -561,11 +645,41 @@ export interface CreateRoomDetailDto {
|
|
|
561
645
|
*/
|
|
562
646
|
'max_children': number;
|
|
563
647
|
/**
|
|
564
|
-
*
|
|
565
|
-
* @type {
|
|
648
|
+
* Hotel Room\'s base price per hour
|
|
649
|
+
* @type {string}
|
|
566
650
|
* @memberof CreateRoomDetailDto
|
|
567
651
|
*/
|
|
568
|
-
'
|
|
652
|
+
'base_price_per_hour': string;
|
|
653
|
+
/**
|
|
654
|
+
* Hotel Room\'s special price per hour
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof CreateRoomDetailDto
|
|
657
|
+
*/
|
|
658
|
+
'special_price_per_hour'?: string;
|
|
659
|
+
/**
|
|
660
|
+
* Hotel Room\'s base price per night
|
|
661
|
+
* @type {string}
|
|
662
|
+
* @memberof CreateRoomDetailDto
|
|
663
|
+
*/
|
|
664
|
+
'base_price_per_night': string;
|
|
665
|
+
/**
|
|
666
|
+
* Hotel Room\'s special price per night
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof CreateRoomDetailDto
|
|
669
|
+
*/
|
|
670
|
+
'special_price_per_night'?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Hotel Room\'s base price per day
|
|
673
|
+
* @type {string}
|
|
674
|
+
* @memberof CreateRoomDetailDto
|
|
675
|
+
*/
|
|
676
|
+
'base_price_per_day': string;
|
|
677
|
+
/**
|
|
678
|
+
* Hotel Room\'s special price per day
|
|
679
|
+
* @type {string}
|
|
680
|
+
* @memberof CreateRoomDetailDto
|
|
681
|
+
*/
|
|
682
|
+
'special_price_per_day'?: string;
|
|
569
683
|
}
|
|
570
684
|
|
|
571
685
|
export const CreateRoomDetailDtoRoomTypeEnum = {
|
|
@@ -686,6 +800,47 @@ export interface FilterBranchesDto {
|
|
|
686
800
|
*/
|
|
687
801
|
'amenities'?: Array<string>;
|
|
688
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @export
|
|
806
|
+
* @interface FilterHotelRoomDto
|
|
807
|
+
*/
|
|
808
|
+
export interface FilterHotelRoomDto {
|
|
809
|
+
/**
|
|
810
|
+
* Search by keyword
|
|
811
|
+
* @type {string}
|
|
812
|
+
* @memberof FilterHotelRoomDto
|
|
813
|
+
*/
|
|
814
|
+
'keyword'?: string;
|
|
815
|
+
/**
|
|
816
|
+
* Filter by hotel room status
|
|
817
|
+
* @type {string}
|
|
818
|
+
* @memberof FilterHotelRoomDto
|
|
819
|
+
*/
|
|
820
|
+
'status'?: FilterHotelRoomDtoStatusEnum;
|
|
821
|
+
/**
|
|
822
|
+
* Filter by room detail ID
|
|
823
|
+
* @type {string}
|
|
824
|
+
* @memberof FilterHotelRoomDto
|
|
825
|
+
*/
|
|
826
|
+
'detailId'?: string;
|
|
827
|
+
/**
|
|
828
|
+
* Filter by room detail slug
|
|
829
|
+
* @type {string}
|
|
830
|
+
* @memberof FilterHotelRoomDto
|
|
831
|
+
*/
|
|
832
|
+
'detailSlug'?: string;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export const FilterHotelRoomDtoStatusEnum = {
|
|
836
|
+
Available: 'AVAILABLE',
|
|
837
|
+
Booked: 'BOOKED',
|
|
838
|
+
Occupied: 'OCCUPIED',
|
|
839
|
+
Maintenance: 'MAINTENANCE'
|
|
840
|
+
} as const;
|
|
841
|
+
|
|
842
|
+
export type FilterHotelRoomDtoStatusEnum = typeof FilterHotelRoomDtoStatusEnum[keyof typeof FilterHotelRoomDtoStatusEnum];
|
|
843
|
+
|
|
689
844
|
/**
|
|
690
845
|
*
|
|
691
846
|
* @export
|
|
@@ -699,6 +854,102 @@ export interface FilterProvincesDto {
|
|
|
699
854
|
*/
|
|
700
855
|
'keyword'?: string;
|
|
701
856
|
}
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @export
|
|
860
|
+
* @interface FilterRoomDetailDto
|
|
861
|
+
*/
|
|
862
|
+
export interface FilterRoomDetailDto {
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {string}
|
|
866
|
+
* @memberof FilterRoomDetailDto
|
|
867
|
+
*/
|
|
868
|
+
'keyword'?: string;
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @type {string}
|
|
872
|
+
* @memberof FilterRoomDetailDto
|
|
873
|
+
*/
|
|
874
|
+
'room_type'?: FilterRoomDetailDtoRoomTypeEnum;
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof FilterRoomDetailDto
|
|
879
|
+
*/
|
|
880
|
+
'bed_type'?: FilterRoomDetailDtoBedTypeEnum;
|
|
881
|
+
/**
|
|
882
|
+
* Filter by rating
|
|
883
|
+
* @type {number}
|
|
884
|
+
* @memberof FilterRoomDetailDto
|
|
885
|
+
*/
|
|
886
|
+
'rating_from'?: number;
|
|
887
|
+
/**
|
|
888
|
+
* Filter by rating
|
|
889
|
+
* @type {number}
|
|
890
|
+
* @memberof FilterRoomDetailDto
|
|
891
|
+
*/
|
|
892
|
+
'rating_to'?: number;
|
|
893
|
+
/**
|
|
894
|
+
* Filter by branch ID
|
|
895
|
+
* @type {string}
|
|
896
|
+
* @memberof FilterRoomDetailDto
|
|
897
|
+
*/
|
|
898
|
+
'branchId'?: string;
|
|
899
|
+
/**
|
|
900
|
+
* Filter by branch slug
|
|
901
|
+
* @type {string}
|
|
902
|
+
* @memberof FilterRoomDetailDto
|
|
903
|
+
*/
|
|
904
|
+
'branchSlug'?: string;
|
|
905
|
+
/**
|
|
906
|
+
* Filter by province ID
|
|
907
|
+
* @type {string}
|
|
908
|
+
* @memberof FilterRoomDetailDto
|
|
909
|
+
*/
|
|
910
|
+
'provinceId'?: string;
|
|
911
|
+
/**
|
|
912
|
+
* Filter by province slug
|
|
913
|
+
* @type {string}
|
|
914
|
+
* @memberof FilterRoomDetailDto
|
|
915
|
+
*/
|
|
916
|
+
'provinceSlug'?: string;
|
|
917
|
+
/**
|
|
918
|
+
* Filter by amenities
|
|
919
|
+
* @type {Array<string>}
|
|
920
|
+
* @memberof FilterRoomDetailDto
|
|
921
|
+
*/
|
|
922
|
+
'amenities'?: Array<string>;
|
|
923
|
+
/**
|
|
924
|
+
* Filter by minimum price
|
|
925
|
+
* @type {object}
|
|
926
|
+
* @memberof FilterRoomDetailDto
|
|
927
|
+
*/
|
|
928
|
+
'minPrice'?: object;
|
|
929
|
+
/**
|
|
930
|
+
* Filter by maximum price
|
|
931
|
+
* @type {object}
|
|
932
|
+
* @memberof FilterRoomDetailDto
|
|
933
|
+
*/
|
|
934
|
+
'maxPrice'?: object;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
export const FilterRoomDetailDtoRoomTypeEnum = {
|
|
938
|
+
Standard: 'STANDARD',
|
|
939
|
+
Superior: 'SUPERIOR',
|
|
940
|
+
Deluxe: 'DELUXE'
|
|
941
|
+
} as const;
|
|
942
|
+
|
|
943
|
+
export type FilterRoomDetailDtoRoomTypeEnum = typeof FilterRoomDetailDtoRoomTypeEnum[keyof typeof FilterRoomDetailDtoRoomTypeEnum];
|
|
944
|
+
export const FilterRoomDetailDtoBedTypeEnum = {
|
|
945
|
+
Single: 'SINGLE',
|
|
946
|
+
Double: 'DOUBLE',
|
|
947
|
+
Queen: 'QUEEN',
|
|
948
|
+
King: 'KING'
|
|
949
|
+
} as const;
|
|
950
|
+
|
|
951
|
+
export type FilterRoomDetailDtoBedTypeEnum = typeof FilterRoomDetailDtoBedTypeEnum[keyof typeof FilterRoomDetailDtoBedTypeEnum];
|
|
952
|
+
|
|
702
953
|
/**
|
|
703
954
|
*
|
|
704
955
|
* @export
|
|
@@ -758,77 +1009,35 @@ export interface HotelRoom {
|
|
|
758
1009
|
*/
|
|
759
1010
|
'updatedAt': string;
|
|
760
1011
|
/**
|
|
761
|
-
*
|
|
1012
|
+
* Hotel Room\'s name
|
|
762
1013
|
* @type {string}
|
|
763
1014
|
* @memberof HotelRoom
|
|
764
1015
|
*/
|
|
765
1016
|
'name': string;
|
|
766
1017
|
/**
|
|
767
|
-
*
|
|
768
|
-
* @type {Image}
|
|
769
|
-
* @memberof HotelRoom
|
|
770
|
-
*/
|
|
771
|
-
'thumbnail': Image;
|
|
772
|
-
/**
|
|
773
|
-
*
|
|
774
|
-
* @type {Array<Image>}
|
|
775
|
-
* @memberof HotelRoom
|
|
776
|
-
*/
|
|
777
|
-
'images': Array<Image>;
|
|
778
|
-
/**
|
|
779
|
-
*
|
|
1018
|
+
* Hotel Room\'s slug
|
|
780
1019
|
* @type {string}
|
|
781
1020
|
* @memberof HotelRoom
|
|
782
1021
|
*/
|
|
783
|
-
'
|
|
1022
|
+
'slug': string;
|
|
784
1023
|
/**
|
|
785
|
-
*
|
|
1024
|
+
* Hotel Room\'s status
|
|
786
1025
|
* @type {string}
|
|
787
1026
|
* @memberof HotelRoom
|
|
788
1027
|
*/
|
|
789
|
-
'
|
|
1028
|
+
'status': HotelRoomStatusEnum;
|
|
790
1029
|
/**
|
|
791
|
-
*
|
|
1030
|
+
* ID of the room detail
|
|
792
1031
|
* @type {string}
|
|
793
1032
|
* @memberof HotelRoom
|
|
794
1033
|
*/
|
|
795
1034
|
'detailId': string;
|
|
796
1035
|
/**
|
|
797
|
-
*
|
|
798
|
-
* @type {
|
|
799
|
-
* @memberof HotelRoom
|
|
800
|
-
*/
|
|
801
|
-
'base_price_per_hour': number;
|
|
802
|
-
/**
|
|
803
|
-
*
|
|
804
|
-
* @type {number}
|
|
805
|
-
* @memberof HotelRoom
|
|
806
|
-
*/
|
|
807
|
-
'special_price_per_hour'?: number;
|
|
808
|
-
/**
|
|
809
|
-
*
|
|
810
|
-
* @type {number}
|
|
811
|
-
* @memberof HotelRoom
|
|
812
|
-
*/
|
|
813
|
-
'base_price_per_night': number;
|
|
814
|
-
/**
|
|
815
|
-
*
|
|
816
|
-
* @type {number}
|
|
817
|
-
* @memberof HotelRoom
|
|
818
|
-
*/
|
|
819
|
-
'special_price_per_night'?: number;
|
|
820
|
-
/**
|
|
821
|
-
*
|
|
822
|
-
* @type {number}
|
|
823
|
-
* @memberof HotelRoom
|
|
824
|
-
*/
|
|
825
|
-
'base_price_per_day': number;
|
|
826
|
-
/**
|
|
827
|
-
*
|
|
828
|
-
* @type {number}
|
|
1036
|
+
* Room detail
|
|
1037
|
+
* @type {RoomDetail}
|
|
829
1038
|
* @memberof HotelRoom
|
|
830
1039
|
*/
|
|
831
|
-
'
|
|
1040
|
+
'detail': RoomDetail;
|
|
832
1041
|
}
|
|
833
1042
|
|
|
834
1043
|
export const HotelRoomStatusEnum = {
|
|
@@ -843,17 +1052,36 @@ export type HotelRoomStatusEnum = typeof HotelRoomStatusEnum[keyof typeof HotelR
|
|
|
843
1052
|
/**
|
|
844
1053
|
*
|
|
845
1054
|
* @export
|
|
846
|
-
* @interface
|
|
1055
|
+
* @interface HotelRoomPaginationResultDto
|
|
847
1056
|
*/
|
|
848
|
-
export interface
|
|
1057
|
+
export interface HotelRoomPaginationResultDto {
|
|
849
1058
|
/**
|
|
850
|
-
*
|
|
851
|
-
* @type {
|
|
852
|
-
* @memberof
|
|
1059
|
+
*
|
|
1060
|
+
* @type {Array<HotelRoom>}
|
|
1061
|
+
* @memberof HotelRoomPaginationResultDto
|
|
853
1062
|
*/
|
|
854
|
-
'
|
|
1063
|
+
'data': Array<HotelRoom>;
|
|
855
1064
|
/**
|
|
856
|
-
*
|
|
1065
|
+
*
|
|
1066
|
+
* @type {UsersPaginationResultDtoMeta}
|
|
1067
|
+
* @memberof HotelRoomPaginationResultDto
|
|
1068
|
+
*/
|
|
1069
|
+
'meta': UsersPaginationResultDtoMeta;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @export
|
|
1074
|
+
* @interface Image
|
|
1075
|
+
*/
|
|
1076
|
+
export interface Image {
|
|
1077
|
+
/**
|
|
1078
|
+
* The image\'s URL.
|
|
1079
|
+
* @type {string}
|
|
1080
|
+
* @memberof Image
|
|
1081
|
+
*/
|
|
1082
|
+
'url': string;
|
|
1083
|
+
/**
|
|
1084
|
+
* The image\'s public ID in Cloudinary.
|
|
857
1085
|
* @type {string}
|
|
858
1086
|
* @memberof Image
|
|
859
1087
|
*/
|
|
@@ -891,25 +1119,6 @@ export interface InitiateForgotPasswordEmailDto {
|
|
|
891
1119
|
*/
|
|
892
1120
|
'email': string;
|
|
893
1121
|
}
|
|
894
|
-
/**
|
|
895
|
-
*
|
|
896
|
-
* @export
|
|
897
|
-
* @interface LocationDto
|
|
898
|
-
*/
|
|
899
|
-
export interface LocationDto {
|
|
900
|
-
/**
|
|
901
|
-
* Latitude coordinate
|
|
902
|
-
* @type {number}
|
|
903
|
-
* @memberof LocationDto
|
|
904
|
-
*/
|
|
905
|
-
'latitude': number;
|
|
906
|
-
/**
|
|
907
|
-
* Longitude coordinate
|
|
908
|
-
* @type {number}
|
|
909
|
-
* @memberof LocationDto
|
|
910
|
-
*/
|
|
911
|
-
'longitude': number;
|
|
912
|
-
}
|
|
913
1122
|
/**
|
|
914
1123
|
*
|
|
915
1124
|
* @export
|
|
@@ -967,6 +1176,25 @@ export interface LogoutResponseDto {
|
|
|
967
1176
|
*/
|
|
968
1177
|
'message': string;
|
|
969
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @export
|
|
1182
|
+
* @interface NearBy
|
|
1183
|
+
*/
|
|
1184
|
+
export interface NearBy {
|
|
1185
|
+
/**
|
|
1186
|
+
* Name of the nearby location
|
|
1187
|
+
* @type {string}
|
|
1188
|
+
* @memberof NearBy
|
|
1189
|
+
*/
|
|
1190
|
+
'name': string;
|
|
1191
|
+
/**
|
|
1192
|
+
* Distance from the branch
|
|
1193
|
+
* @type {string}
|
|
1194
|
+
* @memberof NearBy
|
|
1195
|
+
*/
|
|
1196
|
+
'distance': string;
|
|
1197
|
+
}
|
|
970
1198
|
/**
|
|
971
1199
|
*
|
|
972
1200
|
* @export
|
|
@@ -1122,6 +1350,37 @@ export interface QueryBranchesDto {
|
|
|
1122
1350
|
*/
|
|
1123
1351
|
'sort'?: string;
|
|
1124
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @export
|
|
1356
|
+
* @interface QueryHotelRoomDto
|
|
1357
|
+
*/
|
|
1358
|
+
export interface QueryHotelRoomDto {
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @type {number}
|
|
1362
|
+
* @memberof QueryHotelRoomDto
|
|
1363
|
+
*/
|
|
1364
|
+
'page'?: number;
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @type {number}
|
|
1368
|
+
* @memberof QueryHotelRoomDto
|
|
1369
|
+
*/
|
|
1370
|
+
'pageSize'?: number;
|
|
1371
|
+
/**
|
|
1372
|
+
* JSON string of FilterHotelRoomDto
|
|
1373
|
+
* @type {string}
|
|
1374
|
+
* @memberof QueryHotelRoomDto
|
|
1375
|
+
*/
|
|
1376
|
+
'filters'?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* JSON string of SortHotelRoomDto[]
|
|
1379
|
+
* @type {string}
|
|
1380
|
+
* @memberof QueryHotelRoomDto
|
|
1381
|
+
*/
|
|
1382
|
+
'sort'?: string;
|
|
1383
|
+
}
|
|
1125
1384
|
/**
|
|
1126
1385
|
*
|
|
1127
1386
|
* @export
|
|
@@ -1153,6 +1412,37 @@ export interface QueryProvincesDto {
|
|
|
1153
1412
|
*/
|
|
1154
1413
|
'sort'?: string;
|
|
1155
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
*
|
|
1417
|
+
* @export
|
|
1418
|
+
* @interface QueryRoomDetailDto
|
|
1419
|
+
*/
|
|
1420
|
+
export interface QueryRoomDetailDto {
|
|
1421
|
+
/**
|
|
1422
|
+
*
|
|
1423
|
+
* @type {number}
|
|
1424
|
+
* @memberof QueryRoomDetailDto
|
|
1425
|
+
*/
|
|
1426
|
+
'page'?: number;
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @type {number}
|
|
1430
|
+
* @memberof QueryRoomDetailDto
|
|
1431
|
+
*/
|
|
1432
|
+
'pageSize'?: number;
|
|
1433
|
+
/**
|
|
1434
|
+
* JSON string of FilterRoomDetailDto
|
|
1435
|
+
* @type {string}
|
|
1436
|
+
* @memberof QueryRoomDetailDto
|
|
1437
|
+
*/
|
|
1438
|
+
'filters'?: string;
|
|
1439
|
+
/**
|
|
1440
|
+
*
|
|
1441
|
+
* @type {Array<string>}
|
|
1442
|
+
* @memberof QueryRoomDetailDto
|
|
1443
|
+
*/
|
|
1444
|
+
'sort'?: Array<string>;
|
|
1445
|
+
}
|
|
1156
1446
|
/**
|
|
1157
1447
|
*
|
|
1158
1448
|
* @export
|
|
@@ -1368,6 +1658,36 @@ export interface RoomDetail {
|
|
|
1368
1658
|
* @memberof RoomDetail
|
|
1369
1659
|
*/
|
|
1370
1660
|
'name': string;
|
|
1661
|
+
/**
|
|
1662
|
+
* Hotel Detail\'s slug
|
|
1663
|
+
* @type {string}
|
|
1664
|
+
* @memberof RoomDetail
|
|
1665
|
+
*/
|
|
1666
|
+
'slug': string;
|
|
1667
|
+
/**
|
|
1668
|
+
* ID of the branch where this room is located
|
|
1669
|
+
* @type {string}
|
|
1670
|
+
* @memberof RoomDetail
|
|
1671
|
+
*/
|
|
1672
|
+
'branchId': string;
|
|
1673
|
+
/**
|
|
1674
|
+
* Branch where this room is located
|
|
1675
|
+
* @type {Branch}
|
|
1676
|
+
* @memberof RoomDetail
|
|
1677
|
+
*/
|
|
1678
|
+
'branch': Branch;
|
|
1679
|
+
/**
|
|
1680
|
+
* Hotel Room\'s thumbnail image
|
|
1681
|
+
* @type {Image}
|
|
1682
|
+
* @memberof RoomDetail
|
|
1683
|
+
*/
|
|
1684
|
+
'thumbnail': Image;
|
|
1685
|
+
/**
|
|
1686
|
+
* Hotel Room\'s image gallery
|
|
1687
|
+
* @type {Array<Image>}
|
|
1688
|
+
* @memberof RoomDetail
|
|
1689
|
+
*/
|
|
1690
|
+
'images': Array<Image>;
|
|
1371
1691
|
/**
|
|
1372
1692
|
*
|
|
1373
1693
|
* @type {string}
|
|
@@ -1410,12 +1730,48 @@ export interface RoomDetail {
|
|
|
1410
1730
|
* @memberof RoomDetail
|
|
1411
1731
|
*/
|
|
1412
1732
|
'quantity': number;
|
|
1733
|
+
/**
|
|
1734
|
+
* Hotel Room\'s base price per hour
|
|
1735
|
+
* @type {string}
|
|
1736
|
+
* @memberof RoomDetail
|
|
1737
|
+
*/
|
|
1738
|
+
'base_price_per_hour': string;
|
|
1739
|
+
/**
|
|
1740
|
+
* Hotel Room\'s special price per hour
|
|
1741
|
+
* @type {string}
|
|
1742
|
+
* @memberof RoomDetail
|
|
1743
|
+
*/
|
|
1744
|
+
'special_price_per_hour'?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* Hotel Room\'s base price per night
|
|
1747
|
+
* @type {string}
|
|
1748
|
+
* @memberof RoomDetail
|
|
1749
|
+
*/
|
|
1750
|
+
'base_price_per_night': string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Hotel Room\'s special price per night
|
|
1753
|
+
* @type {string}
|
|
1754
|
+
* @memberof RoomDetail
|
|
1755
|
+
*/
|
|
1756
|
+
'special_price_per_night'?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Hotel Room\'s base price per day
|
|
1759
|
+
* @type {string}
|
|
1760
|
+
* @memberof RoomDetail
|
|
1761
|
+
*/
|
|
1762
|
+
'base_price_per_day': string;
|
|
1763
|
+
/**
|
|
1764
|
+
* Hotel Room\'s special price per day
|
|
1765
|
+
* @type {string}
|
|
1766
|
+
* @memberof RoomDetail
|
|
1767
|
+
*/
|
|
1768
|
+
'special_price_per_day'?: string;
|
|
1413
1769
|
/**
|
|
1414
1770
|
*
|
|
1415
1771
|
* @type {Array<HotelRoom>}
|
|
1416
1772
|
* @memberof RoomDetail
|
|
1417
1773
|
*/
|
|
1418
|
-
'
|
|
1774
|
+
'flat_rooms': Array<HotelRoom>;
|
|
1419
1775
|
}
|
|
1420
1776
|
|
|
1421
1777
|
export const RoomDetailRoomTypeEnum = {
|
|
@@ -1434,6 +1790,25 @@ export const RoomDetailBedTypeEnum = {
|
|
|
1434
1790
|
|
|
1435
1791
|
export type RoomDetailBedTypeEnum = typeof RoomDetailBedTypeEnum[keyof typeof RoomDetailBedTypeEnum];
|
|
1436
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
*
|
|
1795
|
+
* @export
|
|
1796
|
+
* @interface RoomDetailInfinitePaginationResultDto
|
|
1797
|
+
*/
|
|
1798
|
+
export interface RoomDetailInfinitePaginationResultDto {
|
|
1799
|
+
/**
|
|
1800
|
+
*
|
|
1801
|
+
* @type {Array<RoomDetail>}
|
|
1802
|
+
* @memberof RoomDetailInfinitePaginationResultDto
|
|
1803
|
+
*/
|
|
1804
|
+
'data': Array<RoomDetail>;
|
|
1805
|
+
/**
|
|
1806
|
+
*
|
|
1807
|
+
* @type {boolean}
|
|
1808
|
+
* @memberof RoomDetailInfinitePaginationResultDto
|
|
1809
|
+
*/
|
|
1810
|
+
'hasNextPage': boolean;
|
|
1811
|
+
}
|
|
1437
1812
|
/**
|
|
1438
1813
|
*
|
|
1439
1814
|
* @export
|
|
@@ -1520,6 +1895,33 @@ export const SortBranchDtoOrderEnum = {
|
|
|
1520
1895
|
|
|
1521
1896
|
export type SortBranchDtoOrderEnum = typeof SortBranchDtoOrderEnum[keyof typeof SortBranchDtoOrderEnum];
|
|
1522
1897
|
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @export
|
|
1901
|
+
* @interface SortHotelRoomDto
|
|
1902
|
+
*/
|
|
1903
|
+
export interface SortHotelRoomDto {
|
|
1904
|
+
/**
|
|
1905
|
+
* Key of Entity to sort
|
|
1906
|
+
* @type {string}
|
|
1907
|
+
* @memberof SortHotelRoomDto
|
|
1908
|
+
*/
|
|
1909
|
+
'orderBy': string;
|
|
1910
|
+
/**
|
|
1911
|
+
* Order of sorting
|
|
1912
|
+
* @type {string}
|
|
1913
|
+
* @memberof SortHotelRoomDto
|
|
1914
|
+
*/
|
|
1915
|
+
'order': SortHotelRoomDtoOrderEnum;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
export const SortHotelRoomDtoOrderEnum = {
|
|
1919
|
+
Asc: 'asc',
|
|
1920
|
+
Desc: 'desc'
|
|
1921
|
+
} as const;
|
|
1922
|
+
|
|
1923
|
+
export type SortHotelRoomDtoOrderEnum = typeof SortHotelRoomDtoOrderEnum[keyof typeof SortHotelRoomDtoOrderEnum];
|
|
1924
|
+
|
|
1523
1925
|
/**
|
|
1524
1926
|
*
|
|
1525
1927
|
* @export
|
|
@@ -1547,6 +1949,33 @@ export const SortProvinceDtoOrderEnum = {
|
|
|
1547
1949
|
|
|
1548
1950
|
export type SortProvinceDtoOrderEnum = typeof SortProvinceDtoOrderEnum[keyof typeof SortProvinceDtoOrderEnum];
|
|
1549
1951
|
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @export
|
|
1955
|
+
* @interface SortRoomDetailDto
|
|
1956
|
+
*/
|
|
1957
|
+
export interface SortRoomDetailDto {
|
|
1958
|
+
/**
|
|
1959
|
+
* Key of Entity to sort
|
|
1960
|
+
* @type {string}
|
|
1961
|
+
* @memberof SortRoomDetailDto
|
|
1962
|
+
*/
|
|
1963
|
+
'orderBy': string;
|
|
1964
|
+
/**
|
|
1965
|
+
* Order of sorting
|
|
1966
|
+
* @type {string}
|
|
1967
|
+
* @memberof SortRoomDetailDto
|
|
1968
|
+
*/
|
|
1969
|
+
'order': SortRoomDetailDtoOrderEnum;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
export const SortRoomDetailDtoOrderEnum = {
|
|
1973
|
+
Asc: 'asc',
|
|
1974
|
+
Desc: 'desc'
|
|
1975
|
+
} as const;
|
|
1976
|
+
|
|
1977
|
+
export type SortRoomDetailDtoOrderEnum = typeof SortRoomDetailDtoOrderEnum[keyof typeof SortRoomDetailDtoOrderEnum];
|
|
1978
|
+
|
|
1550
1979
|
/**
|
|
1551
1980
|
*
|
|
1552
1981
|
* @export
|
|
@@ -1674,12 +2103,6 @@ export interface UpdateBranchDto {
|
|
|
1674
2103
|
* @memberof UpdateBranchDto
|
|
1675
2104
|
*/
|
|
1676
2105
|
'address'?: string;
|
|
1677
|
-
/**
|
|
1678
|
-
* Branch\'s geographical location
|
|
1679
|
-
* @type {LocationDto}
|
|
1680
|
-
* @memberof UpdateBranchDto
|
|
1681
|
-
*/
|
|
1682
|
-
'location'?: LocationDto;
|
|
1683
2106
|
/**
|
|
1684
2107
|
* The branch\'s rating.
|
|
1685
2108
|
* @type {number}
|
|
@@ -1687,91 +2110,243 @@ export interface UpdateBranchDto {
|
|
|
1687
2110
|
*/
|
|
1688
2111
|
'rating'?: number;
|
|
1689
2112
|
/**
|
|
1690
|
-
*
|
|
1691
|
-
* @type {Array<
|
|
2113
|
+
* Branch amenities
|
|
2114
|
+
* @type {Array<string>}
|
|
1692
2115
|
* @memberof UpdateBranchDto
|
|
1693
2116
|
*/
|
|
1694
|
-
'
|
|
2117
|
+
'amenityIds'?: Array<string>;
|
|
2118
|
+
/**
|
|
2119
|
+
* Nearby locations
|
|
2120
|
+
* @type {Array<NearBy>}
|
|
2121
|
+
* @memberof UpdateBranchDto
|
|
2122
|
+
*/
|
|
2123
|
+
'nearBy'?: Array<NearBy>;
|
|
1695
2124
|
}
|
|
1696
2125
|
/**
|
|
1697
2126
|
*
|
|
1698
2127
|
* @export
|
|
1699
|
-
* @interface
|
|
2128
|
+
* @interface UpdateHotelRoomDto
|
|
1700
2129
|
*/
|
|
1701
|
-
export interface
|
|
2130
|
+
export interface UpdateHotelRoomDto {
|
|
1702
2131
|
/**
|
|
1703
|
-
*
|
|
2132
|
+
* Hotel Room\'s name
|
|
1704
2133
|
* @type {string}
|
|
1705
|
-
* @memberof
|
|
2134
|
+
* @memberof UpdateHotelRoomDto
|
|
1706
2135
|
*/
|
|
1707
2136
|
'name'?: string;
|
|
1708
2137
|
/**
|
|
1709
|
-
*
|
|
2138
|
+
* Hotel Room\'s slug
|
|
1710
2139
|
* @type {string}
|
|
1711
|
-
* @memberof
|
|
2140
|
+
* @memberof UpdateHotelRoomDto
|
|
1712
2141
|
*/
|
|
1713
|
-
'
|
|
2142
|
+
'slug'?: string;
|
|
1714
2143
|
/**
|
|
1715
|
-
*
|
|
2144
|
+
* Hotel Room\'s status
|
|
1716
2145
|
* @type {string}
|
|
1717
|
-
* @memberof
|
|
2146
|
+
* @memberof UpdateHotelRoomDto
|
|
1718
2147
|
*/
|
|
1719
|
-
'
|
|
2148
|
+
'status'?: UpdateHotelRoomDtoStatusEnum;
|
|
2149
|
+
/**
|
|
2150
|
+
* ID of the room detail
|
|
2151
|
+
* @type {string}
|
|
2152
|
+
* @memberof UpdateHotelRoomDto
|
|
2153
|
+
*/
|
|
2154
|
+
'detailId'?: string;
|
|
1720
2155
|
}
|
|
2156
|
+
|
|
2157
|
+
export const UpdateHotelRoomDtoStatusEnum = {
|
|
2158
|
+
Available: 'AVAILABLE',
|
|
2159
|
+
Booked: 'BOOKED',
|
|
2160
|
+
Occupied: 'OCCUPIED',
|
|
2161
|
+
Maintenance: 'MAINTENANCE'
|
|
2162
|
+
} as const;
|
|
2163
|
+
|
|
2164
|
+
export type UpdateHotelRoomDtoStatusEnum = typeof UpdateHotelRoomDtoStatusEnum[keyof typeof UpdateHotelRoomDtoStatusEnum];
|
|
2165
|
+
|
|
1721
2166
|
/**
|
|
1722
2167
|
*
|
|
1723
2168
|
* @export
|
|
1724
|
-
* @interface
|
|
2169
|
+
* @interface UpdateProfileDto
|
|
1725
2170
|
*/
|
|
1726
|
-
export interface
|
|
2171
|
+
export interface UpdateProfileDto {
|
|
1727
2172
|
/**
|
|
1728
|
-
*
|
|
2173
|
+
* Full name of the user
|
|
1729
2174
|
* @type {string}
|
|
1730
|
-
* @memberof
|
|
2175
|
+
* @memberof UpdateProfileDto
|
|
1731
2176
|
*/
|
|
1732
2177
|
'name'?: string;
|
|
1733
2178
|
/**
|
|
1734
|
-
*
|
|
1735
|
-
* @type {
|
|
1736
|
-
* @memberof
|
|
2179
|
+
* Avatar of the user
|
|
2180
|
+
* @type {Image}
|
|
2181
|
+
* @memberof UpdateProfileDto
|
|
1737
2182
|
*/
|
|
1738
|
-
'
|
|
2183
|
+
'avatar'?: Image;
|
|
1739
2184
|
/**
|
|
1740
|
-
*
|
|
2185
|
+
* Birth date of the user
|
|
1741
2186
|
* @type {string}
|
|
1742
|
-
* @memberof
|
|
2187
|
+
* @memberof UpdateProfileDto
|
|
1743
2188
|
*/
|
|
1744
|
-
'
|
|
2189
|
+
'birth_date'?: string;
|
|
1745
2190
|
/**
|
|
1746
|
-
*
|
|
2191
|
+
* User gender
|
|
1747
2192
|
* @type {string}
|
|
1748
|
-
* @memberof
|
|
1749
|
-
*/
|
|
1750
|
-
'bed_type'?: UpdateRoomDetailDtoBedTypeEnum;
|
|
1751
|
-
/**
|
|
1752
|
-
*
|
|
1753
|
-
* @type {Array<string>}
|
|
1754
|
-
* @memberof UpdateRoomDetailDto
|
|
2193
|
+
* @memberof UpdateProfileDto
|
|
1755
2194
|
*/
|
|
1756
|
-
'
|
|
2195
|
+
'gender'?: UpdateProfileDtoGenderEnum;
|
|
1757
2196
|
/**
|
|
1758
|
-
*
|
|
1759
|
-
* @type {
|
|
1760
|
-
* @memberof
|
|
2197
|
+
* User email
|
|
2198
|
+
* @type {string}
|
|
2199
|
+
* @memberof UpdateProfileDto
|
|
1761
2200
|
*/
|
|
1762
|
-
'
|
|
2201
|
+
'email'?: string;
|
|
1763
2202
|
/**
|
|
1764
|
-
*
|
|
1765
|
-
* @type {
|
|
1766
|
-
* @memberof
|
|
2203
|
+
* User phone number
|
|
2204
|
+
* @type {string}
|
|
2205
|
+
* @memberof UpdateProfileDto
|
|
1767
2206
|
*/
|
|
1768
|
-
'
|
|
1769
|
-
|
|
2207
|
+
'phone'?: string;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
export const UpdateProfileDtoGenderEnum = {
|
|
2211
|
+
Male: 'MALE',
|
|
2212
|
+
Female: 'FEMALE'
|
|
2213
|
+
} as const;
|
|
2214
|
+
|
|
2215
|
+
export type UpdateProfileDtoGenderEnum = typeof UpdateProfileDtoGenderEnum[keyof typeof UpdateProfileDtoGenderEnum];
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
*
|
|
2219
|
+
* @export
|
|
2220
|
+
* @interface UpdateProvinceDto
|
|
2221
|
+
*/
|
|
2222
|
+
export interface UpdateProvinceDto {
|
|
2223
|
+
/**
|
|
2224
|
+
* Name of the province
|
|
2225
|
+
* @type {string}
|
|
2226
|
+
* @memberof UpdateProvinceDto
|
|
2227
|
+
*/
|
|
2228
|
+
'name'?: string;
|
|
2229
|
+
/**
|
|
2230
|
+
* ZIP/Postal code of the province
|
|
2231
|
+
* @type {string}
|
|
2232
|
+
* @memberof UpdateProvinceDto
|
|
2233
|
+
*/
|
|
2234
|
+
'zip_code'?: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* URL-friendly slug of the province name
|
|
2237
|
+
* @type {string}
|
|
2238
|
+
* @memberof UpdateProvinceDto
|
|
2239
|
+
*/
|
|
2240
|
+
'slug'?: string;
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
*
|
|
2244
|
+
* @export
|
|
2245
|
+
* @interface UpdateRoomDetailDto
|
|
2246
|
+
*/
|
|
2247
|
+
export interface UpdateRoomDetailDto {
|
|
2248
|
+
/**
|
|
2249
|
+
*
|
|
2250
|
+
* @type {string}
|
|
2251
|
+
* @memberof UpdateRoomDetailDto
|
|
2252
|
+
*/
|
|
2253
|
+
'name'?: string;
|
|
2254
|
+
/**
|
|
2255
|
+
* Hotel Room\'s slug
|
|
2256
|
+
* @type {string}
|
|
2257
|
+
* @memberof UpdateRoomDetailDto
|
|
2258
|
+
*/
|
|
2259
|
+
'slug'?: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* ID of the branch where this room is located
|
|
2262
|
+
* @type {string}
|
|
2263
|
+
* @memberof UpdateRoomDetailDto
|
|
2264
|
+
*/
|
|
2265
|
+
'branchId'?: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* Hotel Room\'s thumbnail image
|
|
2268
|
+
* @type {Image}
|
|
2269
|
+
* @memberof UpdateRoomDetailDto
|
|
2270
|
+
*/
|
|
2271
|
+
'thumbnail'?: Image;
|
|
2272
|
+
/**
|
|
2273
|
+
* Hotel Room\'s image gallery
|
|
2274
|
+
* @type {Array<Image>}
|
|
2275
|
+
* @memberof UpdateRoomDetailDto
|
|
2276
|
+
*/
|
|
2277
|
+
'images'?: Array<Image>;
|
|
2278
|
+
/**
|
|
2279
|
+
*
|
|
2280
|
+
* @type {string}
|
|
2281
|
+
* @memberof UpdateRoomDetailDto
|
|
2282
|
+
*/
|
|
2283
|
+
'description'?: string;
|
|
2284
|
+
/**
|
|
2285
|
+
*
|
|
2286
|
+
* @type {string}
|
|
2287
|
+
* @memberof UpdateRoomDetailDto
|
|
2288
|
+
*/
|
|
2289
|
+
'room_type'?: UpdateRoomDetailDtoRoomTypeEnum;
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @type {string}
|
|
2293
|
+
* @memberof UpdateRoomDetailDto
|
|
2294
|
+
*/
|
|
2295
|
+
'bed_type'?: UpdateRoomDetailDtoBedTypeEnum;
|
|
2296
|
+
/**
|
|
2297
|
+
* Branch amenities
|
|
2298
|
+
* @type {Array<string>}
|
|
2299
|
+
* @memberof UpdateRoomDetailDto
|
|
2300
|
+
*/
|
|
2301
|
+
'amenityIds'?: Array<string>;
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @type {number}
|
|
2305
|
+
* @memberof UpdateRoomDetailDto
|
|
2306
|
+
*/
|
|
2307
|
+
'max_adults'?: number;
|
|
2308
|
+
/**
|
|
1770
2309
|
*
|
|
1771
2310
|
* @type {number}
|
|
1772
2311
|
* @memberof UpdateRoomDetailDto
|
|
1773
2312
|
*/
|
|
1774
|
-
'
|
|
2313
|
+
'max_children'?: number;
|
|
2314
|
+
/**
|
|
2315
|
+
* Hotel Room\'s base price per hour
|
|
2316
|
+
* @type {string}
|
|
2317
|
+
* @memberof UpdateRoomDetailDto
|
|
2318
|
+
*/
|
|
2319
|
+
'base_price_per_hour'?: string;
|
|
2320
|
+
/**
|
|
2321
|
+
* Hotel Room\'s special price per hour
|
|
2322
|
+
* @type {string}
|
|
2323
|
+
* @memberof UpdateRoomDetailDto
|
|
2324
|
+
*/
|
|
2325
|
+
'special_price_per_hour'?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* Hotel Room\'s base price per night
|
|
2328
|
+
* @type {string}
|
|
2329
|
+
* @memberof UpdateRoomDetailDto
|
|
2330
|
+
*/
|
|
2331
|
+
'base_price_per_night'?: string;
|
|
2332
|
+
/**
|
|
2333
|
+
* Hotel Room\'s special price per night
|
|
2334
|
+
* @type {string}
|
|
2335
|
+
* @memberof UpdateRoomDetailDto
|
|
2336
|
+
*/
|
|
2337
|
+
'special_price_per_night'?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* Hotel Room\'s base price per day
|
|
2340
|
+
* @type {string}
|
|
2341
|
+
* @memberof UpdateRoomDetailDto
|
|
2342
|
+
*/
|
|
2343
|
+
'base_price_per_day'?: string;
|
|
2344
|
+
/**
|
|
2345
|
+
* Hotel Room\'s special price per day
|
|
2346
|
+
* @type {string}
|
|
2347
|
+
* @memberof UpdateRoomDetailDto
|
|
2348
|
+
*/
|
|
2349
|
+
'special_price_per_day'?: string;
|
|
1775
2350
|
}
|
|
1776
2351
|
|
|
1777
2352
|
export const UpdateRoomDetailDtoRoomTypeEnum = {
|
|
@@ -2578,6 +3153,42 @@ export class AppApi extends BaseAPI {
|
|
|
2578
3153
|
*/
|
|
2579
3154
|
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2580
3155
|
return {
|
|
3156
|
+
/**
|
|
3157
|
+
*
|
|
3158
|
+
* @summary Change user password
|
|
3159
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
3160
|
+
* @param {*} [options] Override http request option.
|
|
3161
|
+
* @throws {RequiredError}
|
|
3162
|
+
*/
|
|
3163
|
+
authControllerChangePassword: async (changePasswordDto: ChangePasswordDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3164
|
+
// verify required parameter 'changePasswordDto' is not null or undefined
|
|
3165
|
+
assertParamExists('authControllerChangePassword', 'changePasswordDto', changePasswordDto)
|
|
3166
|
+
const localVarPath = `/api/auth/change-password`;
|
|
3167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3169
|
+
let baseOptions;
|
|
3170
|
+
if (configuration) {
|
|
3171
|
+
baseOptions = configuration.baseOptions;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3175
|
+
const localVarHeaderParameter = {} as any;
|
|
3176
|
+
const localVarQueryParameter = {} as any;
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3181
|
+
|
|
3182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3184
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3185
|
+
localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
|
|
3186
|
+
|
|
3187
|
+
return {
|
|
3188
|
+
url: toPathString(localVarUrlObj),
|
|
3189
|
+
options: localVarRequestOptions,
|
|
3190
|
+
};
|
|
3191
|
+
},
|
|
2581
3192
|
/**
|
|
2582
3193
|
* Retrieve all active sessions for the current user
|
|
2583
3194
|
* @summary Get active sessions
|
|
@@ -2957,6 +3568,42 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
2957
3568
|
options: localVarRequestOptions,
|
|
2958
3569
|
};
|
|
2959
3570
|
},
|
|
3571
|
+
/**
|
|
3572
|
+
*
|
|
3573
|
+
* @summary Update user profile
|
|
3574
|
+
* @param {UpdateProfileDto} updateProfileDto
|
|
3575
|
+
* @param {*} [options] Override http request option.
|
|
3576
|
+
* @throws {RequiredError}
|
|
3577
|
+
*/
|
|
3578
|
+
authControllerUpdateProfile: async (updateProfileDto: UpdateProfileDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3579
|
+
// verify required parameter 'updateProfileDto' is not null or undefined
|
|
3580
|
+
assertParamExists('authControllerUpdateProfile', 'updateProfileDto', updateProfileDto)
|
|
3581
|
+
const localVarPath = `/api/auth/profile`;
|
|
3582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3583
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3584
|
+
let baseOptions;
|
|
3585
|
+
if (configuration) {
|
|
3586
|
+
baseOptions = configuration.baseOptions;
|
|
3587
|
+
}
|
|
3588
|
+
|
|
3589
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3590
|
+
const localVarHeaderParameter = {} as any;
|
|
3591
|
+
const localVarQueryParameter = {} as any;
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
|
|
3595
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3596
|
+
|
|
3597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3599
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3600
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProfileDto, localVarRequestOptions, configuration)
|
|
3601
|
+
|
|
3602
|
+
return {
|
|
3603
|
+
url: toPathString(localVarUrlObj),
|
|
3604
|
+
options: localVarRequestOptions,
|
|
3605
|
+
};
|
|
3606
|
+
},
|
|
2960
3607
|
/**
|
|
2961
3608
|
*
|
|
2962
3609
|
* @summary Verify email with OTP code
|
|
@@ -3003,6 +3650,19 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
3003
3650
|
export const AuthApiFp = function(configuration?: Configuration) {
|
|
3004
3651
|
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
3005
3652
|
return {
|
|
3653
|
+
/**
|
|
3654
|
+
*
|
|
3655
|
+
* @summary Change user password
|
|
3656
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
3657
|
+
* @param {*} [options] Override http request option.
|
|
3658
|
+
* @throws {RequiredError}
|
|
3659
|
+
*/
|
|
3660
|
+
async authControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerChangePassword(changePasswordDto, options);
|
|
3662
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3663
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerChangePassword']?.[localVarOperationServerIndex]?.url;
|
|
3664
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3665
|
+
},
|
|
3006
3666
|
/**
|
|
3007
3667
|
* Retrieve all active sessions for the current user
|
|
3008
3668
|
* @summary Get active sessions
|
|
@@ -3142,6 +3802,19 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
3142
3802
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerRevokeSession']?.[localVarOperationServerIndex]?.url;
|
|
3143
3803
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3144
3804
|
},
|
|
3805
|
+
/**
|
|
3806
|
+
*
|
|
3807
|
+
* @summary Update user profile
|
|
3808
|
+
* @param {UpdateProfileDto} updateProfileDto
|
|
3809
|
+
* @param {*} [options] Override http request option.
|
|
3810
|
+
* @throws {RequiredError}
|
|
3811
|
+
*/
|
|
3812
|
+
async authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
|
3813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerUpdateProfile(updateProfileDto, options);
|
|
3814
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3815
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerUpdateProfile']?.[localVarOperationServerIndex]?.url;
|
|
3816
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3817
|
+
},
|
|
3145
3818
|
/**
|
|
3146
3819
|
*
|
|
3147
3820
|
* @summary Verify email with OTP code
|
|
@@ -3165,6 +3838,16 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
3165
3838
|
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3166
3839
|
const localVarFp = AuthApiFp(configuration)
|
|
3167
3840
|
return {
|
|
3841
|
+
/**
|
|
3842
|
+
*
|
|
3843
|
+
* @summary Change user password
|
|
3844
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
3845
|
+
* @param {*} [options] Override http request option.
|
|
3846
|
+
* @throws {RequiredError}
|
|
3847
|
+
*/
|
|
3848
|
+
authControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3849
|
+
return localVarFp.authControllerChangePassword(changePasswordDto, options).then((request) => request(axios, basePath));
|
|
3850
|
+
},
|
|
3168
3851
|
/**
|
|
3169
3852
|
* Retrieve all active sessions for the current user
|
|
3170
3853
|
* @summary Get active sessions
|
|
@@ -3271,6 +3954,16 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
3271
3954
|
authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<RevokeSessionResponseDto> {
|
|
3272
3955
|
return localVarFp.authControllerRevokeSession(sessionId, options).then((request) => request(axios, basePath));
|
|
3273
3956
|
},
|
|
3957
|
+
/**
|
|
3958
|
+
*
|
|
3959
|
+
* @summary Update user profile
|
|
3960
|
+
* @param {UpdateProfileDto} updateProfileDto
|
|
3961
|
+
* @param {*} [options] Override http request option.
|
|
3962
|
+
* @throws {RequiredError}
|
|
3963
|
+
*/
|
|
3964
|
+
authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig): AxiosPromise<User> {
|
|
3965
|
+
return localVarFp.authControllerUpdateProfile(updateProfileDto, options).then((request) => request(axios, basePath));
|
|
3966
|
+
},
|
|
3274
3967
|
/**
|
|
3275
3968
|
*
|
|
3276
3969
|
* @summary Verify email with OTP code
|
|
@@ -3291,6 +3984,18 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
3291
3984
|
* @extends {BaseAPI}
|
|
3292
3985
|
*/
|
|
3293
3986
|
export class AuthApi extends BaseAPI {
|
|
3987
|
+
/**
|
|
3988
|
+
*
|
|
3989
|
+
* @summary Change user password
|
|
3990
|
+
* @param {ChangePasswordDto} changePasswordDto
|
|
3991
|
+
* @param {*} [options] Override http request option.
|
|
3992
|
+
* @throws {RequiredError}
|
|
3993
|
+
* @memberof AuthApi
|
|
3994
|
+
*/
|
|
3995
|
+
public authControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig) {
|
|
3996
|
+
return AuthApiFp(this.configuration).authControllerChangePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3294
3999
|
/**
|
|
3295
4000
|
* Retrieve all active sessions for the current user
|
|
3296
4001
|
* @summary Get active sessions
|
|
@@ -3419,6 +4124,18 @@ export class AuthApi extends BaseAPI {
|
|
|
3419
4124
|
return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3420
4125
|
}
|
|
3421
4126
|
|
|
4127
|
+
/**
|
|
4128
|
+
*
|
|
4129
|
+
* @summary Update user profile
|
|
4130
|
+
* @param {UpdateProfileDto} updateProfileDto
|
|
4131
|
+
* @param {*} [options] Override http request option.
|
|
4132
|
+
* @throws {RequiredError}
|
|
4133
|
+
* @memberof AuthApi
|
|
4134
|
+
*/
|
|
4135
|
+
public authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig) {
|
|
4136
|
+
return AuthApiFp(this.configuration).authControllerUpdateProfile(updateProfileDto, options).then((request) => request(this.axios, this.basePath));
|
|
4137
|
+
}
|
|
4138
|
+
|
|
3422
4139
|
/**
|
|
3423
4140
|
*
|
|
3424
4141
|
* @summary Verify email with OTP code
|
|
@@ -3643,13 +4360,11 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3643
4360
|
/**
|
|
3644
4361
|
*
|
|
3645
4362
|
* @summary Get latest branches
|
|
3646
|
-
* @param {number}
|
|
4363
|
+
* @param {number} [limit] Number of branches to get
|
|
3647
4364
|
* @param {*} [options] Override http request option.
|
|
3648
4365
|
* @throws {RequiredError}
|
|
3649
4366
|
*/
|
|
3650
|
-
branchControllerGetLatestBranches: async (
|
|
3651
|
-
// verify required parameter 'body' is not null or undefined
|
|
3652
|
-
assertParamExists('branchControllerGetLatestBranches', 'body', body)
|
|
4367
|
+
branchControllerGetLatestBranches: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3653
4368
|
const localVarPath = `/api/branches/latest`;
|
|
3654
4369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3655
4370
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3662,14 +4377,15 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3662
4377
|
const localVarHeaderParameter = {} as any;
|
|
3663
4378
|
const localVarQueryParameter = {} as any;
|
|
3664
4379
|
|
|
4380
|
+
if (limit !== undefined) {
|
|
4381
|
+
localVarQueryParameter['limit'] = limit;
|
|
4382
|
+
}
|
|
3665
4383
|
|
|
3666
|
-
|
|
3667
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3668
4384
|
|
|
4385
|
+
|
|
3669
4386
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3670
4387
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3671
4388
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3672
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
3673
4389
|
|
|
3674
4390
|
return {
|
|
3675
4391
|
url: toPathString(localVarUrlObj),
|
|
@@ -3867,12 +4583,12 @@ export const BranchesApiFp = function(configuration?: Configuration) {
|
|
|
3867
4583
|
/**
|
|
3868
4584
|
*
|
|
3869
4585
|
* @summary Get latest branches
|
|
3870
|
-
* @param {number}
|
|
4586
|
+
* @param {number} [limit] Number of branches to get
|
|
3871
4587
|
* @param {*} [options] Override http request option.
|
|
3872
4588
|
* @throws {RequiredError}
|
|
3873
4589
|
*/
|
|
3874
|
-
async branchControllerGetLatestBranches(
|
|
3875
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerGetLatestBranches(
|
|
4590
|
+
async branchControllerGetLatestBranches(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
|
|
4591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerGetLatestBranches(limit, options);
|
|
3876
4592
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3877
4593
|
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerGetLatestBranches']?.[localVarOperationServerIndex]?.url;
|
|
3878
4594
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3985,12 +4701,12 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
|
|
|
3985
4701
|
/**
|
|
3986
4702
|
*
|
|
3987
4703
|
* @summary Get latest branches
|
|
3988
|
-
* @param {number}
|
|
4704
|
+
* @param {number} [limit] Number of branches to get
|
|
3989
4705
|
* @param {*} [options] Override http request option.
|
|
3990
4706
|
* @throws {RequiredError}
|
|
3991
4707
|
*/
|
|
3992
|
-
branchControllerGetLatestBranches(
|
|
3993
|
-
return localVarFp.branchControllerGetLatestBranches(
|
|
4708
|
+
branchControllerGetLatestBranches(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
|
|
4709
|
+
return localVarFp.branchControllerGetLatestBranches(limit, options).then((request) => request(axios, basePath));
|
|
3994
4710
|
},
|
|
3995
4711
|
/**
|
|
3996
4712
|
*
|
|
@@ -4101,13 +4817,13 @@ export class BranchesApi extends BaseAPI {
|
|
|
4101
4817
|
/**
|
|
4102
4818
|
*
|
|
4103
4819
|
* @summary Get latest branches
|
|
4104
|
-
* @param {number}
|
|
4820
|
+
* @param {number} [limit] Number of branches to get
|
|
4105
4821
|
* @param {*} [options] Override http request option.
|
|
4106
4822
|
* @throws {RequiredError}
|
|
4107
4823
|
* @memberof BranchesApi
|
|
4108
4824
|
*/
|
|
4109
|
-
public branchControllerGetLatestBranches(
|
|
4110
|
-
return BranchesApiFp(this.configuration).branchControllerGetLatestBranches(
|
|
4825
|
+
public branchControllerGetLatestBranches(limit?: number, options?: RawAxiosRequestConfig) {
|
|
4826
|
+
return BranchesApiFp(this.configuration).branchControllerGetLatestBranches(limit, options).then((request) => request(this.axios, this.basePath));
|
|
4111
4827
|
}
|
|
4112
4828
|
|
|
4113
4829
|
/**
|
|
@@ -5085,17 +5801,47 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5085
5801
|
options: localVarRequestOptions,
|
|
5086
5802
|
};
|
|
5087
5803
|
},
|
|
5804
|
+
/**
|
|
5805
|
+
*
|
|
5806
|
+
* @summary Get all soft-deleted room details
|
|
5807
|
+
* @param {*} [options] Override http request option.
|
|
5808
|
+
* @throws {RequiredError}
|
|
5809
|
+
*/
|
|
5810
|
+
roomDetailControllerFindDeleted: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5811
|
+
const localVarPath = `/api/room-details/deleted`;
|
|
5812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5813
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5814
|
+
let baseOptions;
|
|
5815
|
+
if (configuration) {
|
|
5816
|
+
baseOptions = configuration.baseOptions;
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5820
|
+
const localVarHeaderParameter = {} as any;
|
|
5821
|
+
const localVarQueryParameter = {} as any;
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
|
|
5825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5828
|
+
|
|
5829
|
+
return {
|
|
5830
|
+
url: toPathString(localVarUrlObj),
|
|
5831
|
+
options: localVarRequestOptions,
|
|
5832
|
+
};
|
|
5833
|
+
},
|
|
5088
5834
|
/**
|
|
5089
5835
|
*
|
|
5090
5836
|
* @summary Get all room details with pagination and filters
|
|
5091
5837
|
* @param {number} [page]
|
|
5092
5838
|
* @param {number} [pageSize]
|
|
5093
|
-
* @param {
|
|
5839
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
5094
5840
|
* @param {Array<string>} [sort]
|
|
5095
5841
|
* @param {*} [options] Override http request option.
|
|
5096
5842
|
* @throws {RequiredError}
|
|
5097
5843
|
*/
|
|
5098
|
-
roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?:
|
|
5844
|
+
roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5099
5845
|
const localVarPath = `/api/room-details`;
|
|
5100
5846
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5101
5847
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5117,9 +5863,7 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5117
5863
|
}
|
|
5118
5864
|
|
|
5119
5865
|
if (filters !== undefined) {
|
|
5120
|
-
|
|
5121
|
-
localVarQueryParameter[key] = value;
|
|
5122
|
-
}
|
|
5866
|
+
localVarQueryParameter['filters'] = filters;
|
|
5123
5867
|
}
|
|
5124
5868
|
|
|
5125
5869
|
if (sort) {
|
|
@@ -5139,10 +5883,60 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5139
5883
|
},
|
|
5140
5884
|
/**
|
|
5141
5885
|
*
|
|
5142
|
-
* @summary Get
|
|
5143
|
-
* @param {
|
|
5144
|
-
* @param {
|
|
5145
|
-
* @
|
|
5886
|
+
* @summary Get all room details with infinite pagination and filters
|
|
5887
|
+
* @param {number} [page]
|
|
5888
|
+
* @param {number} [pageSize]
|
|
5889
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
5890
|
+
* @param {Array<string>} [sort]
|
|
5891
|
+
* @param {*} [options] Override http request option.
|
|
5892
|
+
* @throws {RequiredError}
|
|
5893
|
+
*/
|
|
5894
|
+
roomDetailControllerFindManyInfinite: async (page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5895
|
+
const localVarPath = `/api/room-details/infinite`;
|
|
5896
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5897
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5898
|
+
let baseOptions;
|
|
5899
|
+
if (configuration) {
|
|
5900
|
+
baseOptions = configuration.baseOptions;
|
|
5901
|
+
}
|
|
5902
|
+
|
|
5903
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5904
|
+
const localVarHeaderParameter = {} as any;
|
|
5905
|
+
const localVarQueryParameter = {} as any;
|
|
5906
|
+
|
|
5907
|
+
if (page !== undefined) {
|
|
5908
|
+
localVarQueryParameter['page'] = page;
|
|
5909
|
+
}
|
|
5910
|
+
|
|
5911
|
+
if (pageSize !== undefined) {
|
|
5912
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
5913
|
+
}
|
|
5914
|
+
|
|
5915
|
+
if (filters !== undefined) {
|
|
5916
|
+
localVarQueryParameter['filters'] = filters;
|
|
5917
|
+
}
|
|
5918
|
+
|
|
5919
|
+
if (sort) {
|
|
5920
|
+
localVarQueryParameter['sort'] = sort;
|
|
5921
|
+
}
|
|
5922
|
+
|
|
5923
|
+
|
|
5924
|
+
|
|
5925
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5926
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5927
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5928
|
+
|
|
5929
|
+
return {
|
|
5930
|
+
url: toPathString(localVarUrlObj),
|
|
5931
|
+
options: localVarRequestOptions,
|
|
5932
|
+
};
|
|
5933
|
+
},
|
|
5934
|
+
/**
|
|
5935
|
+
*
|
|
5936
|
+
* @summary Get a room detail by id
|
|
5937
|
+
* @param {string} id
|
|
5938
|
+
* @param {*} [options] Override http request option.
|
|
5939
|
+
* @throws {RequiredError}
|
|
5146
5940
|
*/
|
|
5147
5941
|
roomDetailControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5148
5942
|
// verify required parameter 'id' is not null or undefined
|
|
@@ -5173,7 +5967,7 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5173
5967
|
},
|
|
5174
5968
|
/**
|
|
5175
5969
|
*
|
|
5176
|
-
* @summary
|
|
5970
|
+
* @summary Soft delete a room detail
|
|
5177
5971
|
* @param {string} id
|
|
5178
5972
|
* @param {*} [options] Override http request option.
|
|
5179
5973
|
* @throws {RequiredError}
|
|
@@ -5196,6 +5990,40 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5196
5990
|
|
|
5197
5991
|
|
|
5198
5992
|
|
|
5993
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5994
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5995
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5996
|
+
|
|
5997
|
+
return {
|
|
5998
|
+
url: toPathString(localVarUrlObj),
|
|
5999
|
+
options: localVarRequestOptions,
|
|
6000
|
+
};
|
|
6001
|
+
},
|
|
6002
|
+
/**
|
|
6003
|
+
*
|
|
6004
|
+
* @summary Restore a soft-deleted room detail
|
|
6005
|
+
* @param {string} id
|
|
6006
|
+
* @param {*} [options] Override http request option.
|
|
6007
|
+
* @throws {RequiredError}
|
|
6008
|
+
*/
|
|
6009
|
+
roomDetailControllerRestore: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6010
|
+
// verify required parameter 'id' is not null or undefined
|
|
6011
|
+
assertParamExists('roomDetailControllerRestore', 'id', id)
|
|
6012
|
+
const localVarPath = `/api/room-details/{id}/restore`
|
|
6013
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6014
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6015
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6016
|
+
let baseOptions;
|
|
6017
|
+
if (configuration) {
|
|
6018
|
+
baseOptions = configuration.baseOptions;
|
|
6019
|
+
}
|
|
6020
|
+
|
|
6021
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6022
|
+
const localVarHeaderParameter = {} as any;
|
|
6023
|
+
const localVarQueryParameter = {} as any;
|
|
6024
|
+
|
|
6025
|
+
|
|
6026
|
+
|
|
5199
6027
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5200
6028
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5201
6029
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -5268,22 +6096,50 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
|
|
|
5268
6096
|
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
5269
6097
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5270
6098
|
},
|
|
6099
|
+
/**
|
|
6100
|
+
*
|
|
6101
|
+
* @summary Get all soft-deleted room details
|
|
6102
|
+
* @param {*} [options] Override http request option.
|
|
6103
|
+
* @throws {RequiredError}
|
|
6104
|
+
*/
|
|
6105
|
+
async roomDetailControllerFindDeleted(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RoomDetail>>> {
|
|
6106
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindDeleted(options);
|
|
6107
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6108
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindDeleted']?.[localVarOperationServerIndex]?.url;
|
|
6109
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6110
|
+
},
|
|
5271
6111
|
/**
|
|
5272
6112
|
*
|
|
5273
6113
|
* @summary Get all room details with pagination and filters
|
|
5274
6114
|
* @param {number} [page]
|
|
5275
6115
|
* @param {number} [pageSize]
|
|
5276
|
-
* @param {
|
|
6116
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
5277
6117
|
* @param {Array<string>} [sort]
|
|
5278
6118
|
* @param {*} [options] Override http request option.
|
|
5279
6119
|
* @throws {RequiredError}
|
|
5280
6120
|
*/
|
|
5281
|
-
async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?:
|
|
6121
|
+
async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailPaginationResultDto>> {
|
|
5282
6122
|
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindMany(page, pageSize, filters, sort, options);
|
|
5283
6123
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5284
6124
|
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindMany']?.[localVarOperationServerIndex]?.url;
|
|
5285
6125
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5286
6126
|
},
|
|
6127
|
+
/**
|
|
6128
|
+
*
|
|
6129
|
+
* @summary Get all room details with infinite pagination and filters
|
|
6130
|
+
* @param {number} [page]
|
|
6131
|
+
* @param {number} [pageSize]
|
|
6132
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
6133
|
+
* @param {Array<string>} [sort]
|
|
6134
|
+
* @param {*} [options] Override http request option.
|
|
6135
|
+
* @throws {RequiredError}
|
|
6136
|
+
*/
|
|
6137
|
+
async roomDetailControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailInfinitePaginationResultDto>> {
|
|
6138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindManyInfinite(page, pageSize, filters, sort, options);
|
|
6139
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6140
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindManyInfinite']?.[localVarOperationServerIndex]?.url;
|
|
6141
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6142
|
+
},
|
|
5287
6143
|
/**
|
|
5288
6144
|
*
|
|
5289
6145
|
* @summary Get a room detail by id
|
|
@@ -5299,7 +6155,7 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
|
|
|
5299
6155
|
},
|
|
5300
6156
|
/**
|
|
5301
6157
|
*
|
|
5302
|
-
* @summary
|
|
6158
|
+
* @summary Soft delete a room detail
|
|
5303
6159
|
* @param {string} id
|
|
5304
6160
|
* @param {*} [options] Override http request option.
|
|
5305
6161
|
* @throws {RequiredError}
|
|
@@ -5310,6 +6166,19 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
|
|
|
5310
6166
|
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
5311
6167
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5312
6168
|
},
|
|
6169
|
+
/**
|
|
6170
|
+
*
|
|
6171
|
+
* @summary Restore a soft-deleted room detail
|
|
6172
|
+
* @param {string} id
|
|
6173
|
+
* @param {*} [options] Override http request option.
|
|
6174
|
+
* @throws {RequiredError}
|
|
6175
|
+
*/
|
|
6176
|
+
async roomDetailControllerRestore(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetail>> {
|
|
6177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerRestore(id, options);
|
|
6178
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6179
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerRestore']?.[localVarOperationServerIndex]?.url;
|
|
6180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6181
|
+
},
|
|
5313
6182
|
/**
|
|
5314
6183
|
*
|
|
5315
6184
|
* @summary Update a room detail
|
|
@@ -5344,19 +6213,41 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
|
|
|
5344
6213
|
roomDetailControllerCreate(createRoomDetailDto: CreateRoomDetailDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetail> {
|
|
5345
6214
|
return localVarFp.roomDetailControllerCreate(createRoomDetailDto, options).then((request) => request(axios, basePath));
|
|
5346
6215
|
},
|
|
6216
|
+
/**
|
|
6217
|
+
*
|
|
6218
|
+
* @summary Get all soft-deleted room details
|
|
6219
|
+
* @param {*} [options] Override http request option.
|
|
6220
|
+
* @throws {RequiredError}
|
|
6221
|
+
*/
|
|
6222
|
+
roomDetailControllerFindDeleted(options?: RawAxiosRequestConfig): AxiosPromise<Array<RoomDetail>> {
|
|
6223
|
+
return localVarFp.roomDetailControllerFindDeleted(options).then((request) => request(axios, basePath));
|
|
6224
|
+
},
|
|
5347
6225
|
/**
|
|
5348
6226
|
*
|
|
5349
6227
|
* @summary Get all room details with pagination and filters
|
|
5350
6228
|
* @param {number} [page]
|
|
5351
6229
|
* @param {number} [pageSize]
|
|
5352
|
-
* @param {
|
|
6230
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
5353
6231
|
* @param {Array<string>} [sort]
|
|
5354
6232
|
* @param {*} [options] Override http request option.
|
|
5355
6233
|
* @throws {RequiredError}
|
|
5356
6234
|
*/
|
|
5357
|
-
roomDetailControllerFindMany(page?: number, pageSize?: number, filters?:
|
|
6235
|
+
roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailPaginationResultDto> {
|
|
5358
6236
|
return localVarFp.roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
5359
6237
|
},
|
|
6238
|
+
/**
|
|
6239
|
+
*
|
|
6240
|
+
* @summary Get all room details with infinite pagination and filters
|
|
6241
|
+
* @param {number} [page]
|
|
6242
|
+
* @param {number} [pageSize]
|
|
6243
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
6244
|
+
* @param {Array<string>} [sort]
|
|
6245
|
+
* @param {*} [options] Override http request option.
|
|
6246
|
+
* @throws {RequiredError}
|
|
6247
|
+
*/
|
|
6248
|
+
roomDetailControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailInfinitePaginationResultDto> {
|
|
6249
|
+
return localVarFp.roomDetailControllerFindManyInfinite(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
6250
|
+
},
|
|
5360
6251
|
/**
|
|
5361
6252
|
*
|
|
5362
6253
|
* @summary Get a room detail by id
|
|
@@ -5369,7 +6260,7 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
|
|
|
5369
6260
|
},
|
|
5370
6261
|
/**
|
|
5371
6262
|
*
|
|
5372
|
-
* @summary
|
|
6263
|
+
* @summary Soft delete a room detail
|
|
5373
6264
|
* @param {string} id
|
|
5374
6265
|
* @param {*} [options] Override http request option.
|
|
5375
6266
|
* @throws {RequiredError}
|
|
@@ -5377,6 +6268,16 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
|
|
|
5377
6268
|
roomDetailControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
5378
6269
|
return localVarFp.roomDetailControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
5379
6270
|
},
|
|
6271
|
+
/**
|
|
6272
|
+
*
|
|
6273
|
+
* @summary Restore a soft-deleted room detail
|
|
6274
|
+
* @param {string} id
|
|
6275
|
+
* @param {*} [options] Override http request option.
|
|
6276
|
+
* @throws {RequiredError}
|
|
6277
|
+
*/
|
|
6278
|
+
roomDetailControllerRestore(id: string, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetail> {
|
|
6279
|
+
return localVarFp.roomDetailControllerRestore(id, options).then((request) => request(axios, basePath));
|
|
6280
|
+
},
|
|
5380
6281
|
/**
|
|
5381
6282
|
*
|
|
5382
6283
|
* @summary Update a room detail
|
|
@@ -5410,21 +6311,47 @@ export class RoomDetailsApi extends BaseAPI {
|
|
|
5410
6311
|
return RoomDetailsApiFp(this.configuration).roomDetailControllerCreate(createRoomDetailDto, options).then((request) => request(this.axios, this.basePath));
|
|
5411
6312
|
}
|
|
5412
6313
|
|
|
6314
|
+
/**
|
|
6315
|
+
*
|
|
6316
|
+
* @summary Get all soft-deleted room details
|
|
6317
|
+
* @param {*} [options] Override http request option.
|
|
6318
|
+
* @throws {RequiredError}
|
|
6319
|
+
* @memberof RoomDetailsApi
|
|
6320
|
+
*/
|
|
6321
|
+
public roomDetailControllerFindDeleted(options?: RawAxiosRequestConfig) {
|
|
6322
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerFindDeleted(options).then((request) => request(this.axios, this.basePath));
|
|
6323
|
+
}
|
|
6324
|
+
|
|
5413
6325
|
/**
|
|
5414
6326
|
*
|
|
5415
6327
|
* @summary Get all room details with pagination and filters
|
|
5416
6328
|
* @param {number} [page]
|
|
5417
6329
|
* @param {number} [pageSize]
|
|
5418
|
-
* @param {
|
|
6330
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
5419
6331
|
* @param {Array<string>} [sort]
|
|
5420
6332
|
* @param {*} [options] Override http request option.
|
|
5421
6333
|
* @throws {RequiredError}
|
|
5422
6334
|
* @memberof RoomDetailsApi
|
|
5423
6335
|
*/
|
|
5424
|
-
public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?:
|
|
6336
|
+
public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig) {
|
|
5425
6337
|
return RoomDetailsApiFp(this.configuration).roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
5426
6338
|
}
|
|
5427
6339
|
|
|
6340
|
+
/**
|
|
6341
|
+
*
|
|
6342
|
+
* @summary Get all room details with infinite pagination and filters
|
|
6343
|
+
* @param {number} [page]
|
|
6344
|
+
* @param {number} [pageSize]
|
|
6345
|
+
* @param {string} [filters] JSON string of FilterRoomDetailDto
|
|
6346
|
+
* @param {Array<string>} [sort]
|
|
6347
|
+
* @param {*} [options] Override http request option.
|
|
6348
|
+
* @throws {RequiredError}
|
|
6349
|
+
* @memberof RoomDetailsApi
|
|
6350
|
+
*/
|
|
6351
|
+
public roomDetailControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig) {
|
|
6352
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerFindManyInfinite(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
6353
|
+
}
|
|
6354
|
+
|
|
5428
6355
|
/**
|
|
5429
6356
|
*
|
|
5430
6357
|
* @summary Get a room detail by id
|
|
@@ -5439,7 +6366,7 @@ export class RoomDetailsApi extends BaseAPI {
|
|
|
5439
6366
|
|
|
5440
6367
|
/**
|
|
5441
6368
|
*
|
|
5442
|
-
* @summary
|
|
6369
|
+
* @summary Soft delete a room detail
|
|
5443
6370
|
* @param {string} id
|
|
5444
6371
|
* @param {*} [options] Override http request option.
|
|
5445
6372
|
* @throws {RequiredError}
|
|
@@ -5449,6 +6376,18 @@ export class RoomDetailsApi extends BaseAPI {
|
|
|
5449
6376
|
return RoomDetailsApiFp(this.configuration).roomDetailControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
5450
6377
|
}
|
|
5451
6378
|
|
|
6379
|
+
/**
|
|
6380
|
+
*
|
|
6381
|
+
* @summary Restore a soft-deleted room detail
|
|
6382
|
+
* @param {string} id
|
|
6383
|
+
* @param {*} [options] Override http request option.
|
|
6384
|
+
* @throws {RequiredError}
|
|
6385
|
+
* @memberof RoomDetailsApi
|
|
6386
|
+
*/
|
|
6387
|
+
public roomDetailControllerRestore(id: string, options?: RawAxiosRequestConfig) {
|
|
6388
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerRestore(id, options).then((request) => request(this.axios, this.basePath));
|
|
6389
|
+
}
|
|
6390
|
+
|
|
5452
6391
|
/**
|
|
5453
6392
|
*
|
|
5454
6393
|
* @summary Update a room detail
|
|
@@ -5465,6 +6404,557 @@ export class RoomDetailsApi extends BaseAPI {
|
|
|
5465
6404
|
|
|
5466
6405
|
|
|
5467
6406
|
|
|
6407
|
+
/**
|
|
6408
|
+
* RoomsApi - axios parameter creator
|
|
6409
|
+
* @export
|
|
6410
|
+
*/
|
|
6411
|
+
export const RoomsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6412
|
+
return {
|
|
6413
|
+
/**
|
|
6414
|
+
*
|
|
6415
|
+
* @summary Create a new room
|
|
6416
|
+
* @param {CreateHotelRoomDto} createHotelRoomDto
|
|
6417
|
+
* @param {*} [options] Override http request option.
|
|
6418
|
+
* @throws {RequiredError}
|
|
6419
|
+
*/
|
|
6420
|
+
roomControllerCreate: async (createHotelRoomDto: CreateHotelRoomDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6421
|
+
// verify required parameter 'createHotelRoomDto' is not null or undefined
|
|
6422
|
+
assertParamExists('roomControllerCreate', 'createHotelRoomDto', createHotelRoomDto)
|
|
6423
|
+
const localVarPath = `/api/rooms`;
|
|
6424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6425
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6426
|
+
let baseOptions;
|
|
6427
|
+
if (configuration) {
|
|
6428
|
+
baseOptions = configuration.baseOptions;
|
|
6429
|
+
}
|
|
6430
|
+
|
|
6431
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6432
|
+
const localVarHeaderParameter = {} as any;
|
|
6433
|
+
const localVarQueryParameter = {} as any;
|
|
6434
|
+
|
|
6435
|
+
|
|
6436
|
+
|
|
6437
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6438
|
+
|
|
6439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6441
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6442
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createHotelRoomDto, localVarRequestOptions, configuration)
|
|
6443
|
+
|
|
6444
|
+
return {
|
|
6445
|
+
url: toPathString(localVarUrlObj),
|
|
6446
|
+
options: localVarRequestOptions,
|
|
6447
|
+
};
|
|
6448
|
+
},
|
|
6449
|
+
/**
|
|
6450
|
+
*
|
|
6451
|
+
* @summary Get all soft-deleted rooms
|
|
6452
|
+
* @param {*} [options] Override http request option.
|
|
6453
|
+
* @throws {RequiredError}
|
|
6454
|
+
*/
|
|
6455
|
+
roomControllerFindDeleted: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6456
|
+
const localVarPath = `/api/rooms/deleted`;
|
|
6457
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6458
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6459
|
+
let baseOptions;
|
|
6460
|
+
if (configuration) {
|
|
6461
|
+
baseOptions = configuration.baseOptions;
|
|
6462
|
+
}
|
|
6463
|
+
|
|
6464
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6465
|
+
const localVarHeaderParameter = {} as any;
|
|
6466
|
+
const localVarQueryParameter = {} as any;
|
|
6467
|
+
|
|
6468
|
+
|
|
6469
|
+
|
|
6470
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6471
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6472
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6473
|
+
|
|
6474
|
+
return {
|
|
6475
|
+
url: toPathString(localVarUrlObj),
|
|
6476
|
+
options: localVarRequestOptions,
|
|
6477
|
+
};
|
|
6478
|
+
},
|
|
6479
|
+
/**
|
|
6480
|
+
*
|
|
6481
|
+
* @summary Get all rooms with pagination and filters
|
|
6482
|
+
* @param {number} [page]
|
|
6483
|
+
* @param {number} [pageSize]
|
|
6484
|
+
* @param {string} [filters] JSON string of FilterHotelRoomDto
|
|
6485
|
+
* @param {string} [sort] JSON string of SortHotelRoomDto[]
|
|
6486
|
+
* @param {*} [options] Override http request option.
|
|
6487
|
+
* @throws {RequiredError}
|
|
6488
|
+
*/
|
|
6489
|
+
roomControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6490
|
+
const localVarPath = `/api/rooms`;
|
|
6491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6493
|
+
let baseOptions;
|
|
6494
|
+
if (configuration) {
|
|
6495
|
+
baseOptions = configuration.baseOptions;
|
|
6496
|
+
}
|
|
6497
|
+
|
|
6498
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6499
|
+
const localVarHeaderParameter = {} as any;
|
|
6500
|
+
const localVarQueryParameter = {} as any;
|
|
6501
|
+
|
|
6502
|
+
if (page !== undefined) {
|
|
6503
|
+
localVarQueryParameter['page'] = page;
|
|
6504
|
+
}
|
|
6505
|
+
|
|
6506
|
+
if (pageSize !== undefined) {
|
|
6507
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6510
|
+
if (filters !== undefined) {
|
|
6511
|
+
localVarQueryParameter['filters'] = filters;
|
|
6512
|
+
}
|
|
6513
|
+
|
|
6514
|
+
if (sort !== undefined) {
|
|
6515
|
+
localVarQueryParameter['sort'] = sort;
|
|
6516
|
+
}
|
|
6517
|
+
|
|
6518
|
+
|
|
6519
|
+
|
|
6520
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6521
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6522
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6523
|
+
|
|
6524
|
+
return {
|
|
6525
|
+
url: toPathString(localVarUrlObj),
|
|
6526
|
+
options: localVarRequestOptions,
|
|
6527
|
+
};
|
|
6528
|
+
},
|
|
6529
|
+
/**
|
|
6530
|
+
*
|
|
6531
|
+
* @summary Get a room by id
|
|
6532
|
+
* @param {string} id
|
|
6533
|
+
* @param {*} [options] Override http request option.
|
|
6534
|
+
* @throws {RequiredError}
|
|
6535
|
+
*/
|
|
6536
|
+
roomControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6537
|
+
// verify required parameter 'id' is not null or undefined
|
|
6538
|
+
assertParamExists('roomControllerFindOne', 'id', id)
|
|
6539
|
+
const localVarPath = `/api/rooms/{id}`
|
|
6540
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6542
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6543
|
+
let baseOptions;
|
|
6544
|
+
if (configuration) {
|
|
6545
|
+
baseOptions = configuration.baseOptions;
|
|
6546
|
+
}
|
|
6547
|
+
|
|
6548
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6549
|
+
const localVarHeaderParameter = {} as any;
|
|
6550
|
+
const localVarQueryParameter = {} as any;
|
|
6551
|
+
|
|
6552
|
+
|
|
6553
|
+
|
|
6554
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6556
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6557
|
+
|
|
6558
|
+
return {
|
|
6559
|
+
url: toPathString(localVarUrlObj),
|
|
6560
|
+
options: localVarRequestOptions,
|
|
6561
|
+
};
|
|
6562
|
+
},
|
|
6563
|
+
/**
|
|
6564
|
+
*
|
|
6565
|
+
* @summary Soft delete a room
|
|
6566
|
+
* @param {string} id
|
|
6567
|
+
* @param {*} [options] Override http request option.
|
|
6568
|
+
* @throws {RequiredError}
|
|
6569
|
+
*/
|
|
6570
|
+
roomControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6571
|
+
// verify required parameter 'id' is not null or undefined
|
|
6572
|
+
assertParamExists('roomControllerRemove', 'id', id)
|
|
6573
|
+
const localVarPath = `/api/rooms/{id}`
|
|
6574
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6575
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6576
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6577
|
+
let baseOptions;
|
|
6578
|
+
if (configuration) {
|
|
6579
|
+
baseOptions = configuration.baseOptions;
|
|
6580
|
+
}
|
|
6581
|
+
|
|
6582
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6583
|
+
const localVarHeaderParameter = {} as any;
|
|
6584
|
+
const localVarQueryParameter = {} as any;
|
|
6585
|
+
|
|
6586
|
+
|
|
6587
|
+
|
|
6588
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6589
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6590
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6591
|
+
|
|
6592
|
+
return {
|
|
6593
|
+
url: toPathString(localVarUrlObj),
|
|
6594
|
+
options: localVarRequestOptions,
|
|
6595
|
+
};
|
|
6596
|
+
},
|
|
6597
|
+
/**
|
|
6598
|
+
*
|
|
6599
|
+
* @summary Restore a soft-deleted room
|
|
6600
|
+
* @param {string} id
|
|
6601
|
+
* @param {*} [options] Override http request option.
|
|
6602
|
+
* @throws {RequiredError}
|
|
6603
|
+
*/
|
|
6604
|
+
roomControllerRestore: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6605
|
+
// verify required parameter 'id' is not null or undefined
|
|
6606
|
+
assertParamExists('roomControllerRestore', 'id', id)
|
|
6607
|
+
const localVarPath = `/api/rooms/{id}/restore`
|
|
6608
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6609
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6610
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6611
|
+
let baseOptions;
|
|
6612
|
+
if (configuration) {
|
|
6613
|
+
baseOptions = configuration.baseOptions;
|
|
6614
|
+
}
|
|
6615
|
+
|
|
6616
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6617
|
+
const localVarHeaderParameter = {} as any;
|
|
6618
|
+
const localVarQueryParameter = {} as any;
|
|
6619
|
+
|
|
6620
|
+
|
|
6621
|
+
|
|
6622
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6624
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6625
|
+
|
|
6626
|
+
return {
|
|
6627
|
+
url: toPathString(localVarUrlObj),
|
|
6628
|
+
options: localVarRequestOptions,
|
|
6629
|
+
};
|
|
6630
|
+
},
|
|
6631
|
+
/**
|
|
6632
|
+
*
|
|
6633
|
+
* @summary Update a room
|
|
6634
|
+
* @param {string} id
|
|
6635
|
+
* @param {UpdateHotelRoomDto} updateHotelRoomDto
|
|
6636
|
+
* @param {*} [options] Override http request option.
|
|
6637
|
+
* @throws {RequiredError}
|
|
6638
|
+
*/
|
|
6639
|
+
roomControllerUpdate: async (id: string, updateHotelRoomDto: UpdateHotelRoomDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6640
|
+
// verify required parameter 'id' is not null or undefined
|
|
6641
|
+
assertParamExists('roomControllerUpdate', 'id', id)
|
|
6642
|
+
// verify required parameter 'updateHotelRoomDto' is not null or undefined
|
|
6643
|
+
assertParamExists('roomControllerUpdate', 'updateHotelRoomDto', updateHotelRoomDto)
|
|
6644
|
+
const localVarPath = `/api/rooms/{id}`
|
|
6645
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6648
|
+
let baseOptions;
|
|
6649
|
+
if (configuration) {
|
|
6650
|
+
baseOptions = configuration.baseOptions;
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6653
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
6654
|
+
const localVarHeaderParameter = {} as any;
|
|
6655
|
+
const localVarQueryParameter = {} as any;
|
|
6656
|
+
|
|
6657
|
+
|
|
6658
|
+
|
|
6659
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6660
|
+
|
|
6661
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6662
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6663
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6664
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHotelRoomDto, localVarRequestOptions, configuration)
|
|
6665
|
+
|
|
6666
|
+
return {
|
|
6667
|
+
url: toPathString(localVarUrlObj),
|
|
6668
|
+
options: localVarRequestOptions,
|
|
6669
|
+
};
|
|
6670
|
+
},
|
|
6671
|
+
}
|
|
6672
|
+
};
|
|
6673
|
+
|
|
6674
|
+
/**
|
|
6675
|
+
* RoomsApi - functional programming interface
|
|
6676
|
+
* @export
|
|
6677
|
+
*/
|
|
6678
|
+
export const RoomsApiFp = function(configuration?: Configuration) {
|
|
6679
|
+
const localVarAxiosParamCreator = RoomsApiAxiosParamCreator(configuration)
|
|
6680
|
+
return {
|
|
6681
|
+
/**
|
|
6682
|
+
*
|
|
6683
|
+
* @summary Create a new room
|
|
6684
|
+
* @param {CreateHotelRoomDto} createHotelRoomDto
|
|
6685
|
+
* @param {*} [options] Override http request option.
|
|
6686
|
+
* @throws {RequiredError}
|
|
6687
|
+
*/
|
|
6688
|
+
async roomControllerCreate(createHotelRoomDto: CreateHotelRoomDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HotelRoom>> {
|
|
6689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerCreate(createHotelRoomDto, options);
|
|
6690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6691
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
6692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6693
|
+
},
|
|
6694
|
+
/**
|
|
6695
|
+
*
|
|
6696
|
+
* @summary Get all soft-deleted rooms
|
|
6697
|
+
* @param {*} [options] Override http request option.
|
|
6698
|
+
* @throws {RequiredError}
|
|
6699
|
+
*/
|
|
6700
|
+
async roomControllerFindDeleted(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HotelRoom>>> {
|
|
6701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerFindDeleted(options);
|
|
6702
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6703
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerFindDeleted']?.[localVarOperationServerIndex]?.url;
|
|
6704
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6705
|
+
},
|
|
6706
|
+
/**
|
|
6707
|
+
*
|
|
6708
|
+
* @summary Get all rooms with pagination and filters
|
|
6709
|
+
* @param {number} [page]
|
|
6710
|
+
* @param {number} [pageSize]
|
|
6711
|
+
* @param {string} [filters] JSON string of FilterHotelRoomDto
|
|
6712
|
+
* @param {string} [sort] JSON string of SortHotelRoomDto[]
|
|
6713
|
+
* @param {*} [options] Override http request option.
|
|
6714
|
+
* @throws {RequiredError}
|
|
6715
|
+
*/
|
|
6716
|
+
async roomControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HotelRoomPaginationResultDto>> {
|
|
6717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerFindMany(page, pageSize, filters, sort, options);
|
|
6718
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6719
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerFindMany']?.[localVarOperationServerIndex]?.url;
|
|
6720
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6721
|
+
},
|
|
6722
|
+
/**
|
|
6723
|
+
*
|
|
6724
|
+
* @summary Get a room by id
|
|
6725
|
+
* @param {string} id
|
|
6726
|
+
* @param {*} [options] Override http request option.
|
|
6727
|
+
* @throws {RequiredError}
|
|
6728
|
+
*/
|
|
6729
|
+
async roomControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HotelRoom>> {
|
|
6730
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerFindOne(id, options);
|
|
6731
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6732
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
6733
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6734
|
+
},
|
|
6735
|
+
/**
|
|
6736
|
+
*
|
|
6737
|
+
* @summary Soft delete a room
|
|
6738
|
+
* @param {string} id
|
|
6739
|
+
* @param {*} [options] Override http request option.
|
|
6740
|
+
* @throws {RequiredError}
|
|
6741
|
+
*/
|
|
6742
|
+
async roomControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerRemove(id, options);
|
|
6744
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6745
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
6746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6747
|
+
},
|
|
6748
|
+
/**
|
|
6749
|
+
*
|
|
6750
|
+
* @summary Restore a soft-deleted room
|
|
6751
|
+
* @param {string} id
|
|
6752
|
+
* @param {*} [options] Override http request option.
|
|
6753
|
+
* @throws {RequiredError}
|
|
6754
|
+
*/
|
|
6755
|
+
async roomControllerRestore(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HotelRoom>> {
|
|
6756
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerRestore(id, options);
|
|
6757
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6758
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerRestore']?.[localVarOperationServerIndex]?.url;
|
|
6759
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6760
|
+
},
|
|
6761
|
+
/**
|
|
6762
|
+
*
|
|
6763
|
+
* @summary Update a room
|
|
6764
|
+
* @param {string} id
|
|
6765
|
+
* @param {UpdateHotelRoomDto} updateHotelRoomDto
|
|
6766
|
+
* @param {*} [options] Override http request option.
|
|
6767
|
+
* @throws {RequiredError}
|
|
6768
|
+
*/
|
|
6769
|
+
async roomControllerUpdate(id: string, updateHotelRoomDto: UpdateHotelRoomDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HotelRoom>> {
|
|
6770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerUpdate(id, updateHotelRoomDto, options);
|
|
6771
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6772
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
6773
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6774
|
+
},
|
|
6775
|
+
}
|
|
6776
|
+
};
|
|
6777
|
+
|
|
6778
|
+
/**
|
|
6779
|
+
* RoomsApi - factory interface
|
|
6780
|
+
* @export
|
|
6781
|
+
*/
|
|
6782
|
+
export const RoomsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6783
|
+
const localVarFp = RoomsApiFp(configuration)
|
|
6784
|
+
return {
|
|
6785
|
+
/**
|
|
6786
|
+
*
|
|
6787
|
+
* @summary Create a new room
|
|
6788
|
+
* @param {CreateHotelRoomDto} createHotelRoomDto
|
|
6789
|
+
* @param {*} [options] Override http request option.
|
|
6790
|
+
* @throws {RequiredError}
|
|
6791
|
+
*/
|
|
6792
|
+
roomControllerCreate(createHotelRoomDto: CreateHotelRoomDto, options?: RawAxiosRequestConfig): AxiosPromise<HotelRoom> {
|
|
6793
|
+
return localVarFp.roomControllerCreate(createHotelRoomDto, options).then((request) => request(axios, basePath));
|
|
6794
|
+
},
|
|
6795
|
+
/**
|
|
6796
|
+
*
|
|
6797
|
+
* @summary Get all soft-deleted rooms
|
|
6798
|
+
* @param {*} [options] Override http request option.
|
|
6799
|
+
* @throws {RequiredError}
|
|
6800
|
+
*/
|
|
6801
|
+
roomControllerFindDeleted(options?: RawAxiosRequestConfig): AxiosPromise<Array<HotelRoom>> {
|
|
6802
|
+
return localVarFp.roomControllerFindDeleted(options).then((request) => request(axios, basePath));
|
|
6803
|
+
},
|
|
6804
|
+
/**
|
|
6805
|
+
*
|
|
6806
|
+
* @summary Get all rooms with pagination and filters
|
|
6807
|
+
* @param {number} [page]
|
|
6808
|
+
* @param {number} [pageSize]
|
|
6809
|
+
* @param {string} [filters] JSON string of FilterHotelRoomDto
|
|
6810
|
+
* @param {string} [sort] JSON string of SortHotelRoomDto[]
|
|
6811
|
+
* @param {*} [options] Override http request option.
|
|
6812
|
+
* @throws {RequiredError}
|
|
6813
|
+
*/
|
|
6814
|
+
roomControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<HotelRoomPaginationResultDto> {
|
|
6815
|
+
return localVarFp.roomControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
6816
|
+
},
|
|
6817
|
+
/**
|
|
6818
|
+
*
|
|
6819
|
+
* @summary Get a room by id
|
|
6820
|
+
* @param {string} id
|
|
6821
|
+
* @param {*} [options] Override http request option.
|
|
6822
|
+
* @throws {RequiredError}
|
|
6823
|
+
*/
|
|
6824
|
+
roomControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<HotelRoom> {
|
|
6825
|
+
return localVarFp.roomControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
6826
|
+
},
|
|
6827
|
+
/**
|
|
6828
|
+
*
|
|
6829
|
+
* @summary Soft delete a room
|
|
6830
|
+
* @param {string} id
|
|
6831
|
+
* @param {*} [options] Override http request option.
|
|
6832
|
+
* @throws {RequiredError}
|
|
6833
|
+
*/
|
|
6834
|
+
roomControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6835
|
+
return localVarFp.roomControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
6836
|
+
},
|
|
6837
|
+
/**
|
|
6838
|
+
*
|
|
6839
|
+
* @summary Restore a soft-deleted room
|
|
6840
|
+
* @param {string} id
|
|
6841
|
+
* @param {*} [options] Override http request option.
|
|
6842
|
+
* @throws {RequiredError}
|
|
6843
|
+
*/
|
|
6844
|
+
roomControllerRestore(id: string, options?: RawAxiosRequestConfig): AxiosPromise<HotelRoom> {
|
|
6845
|
+
return localVarFp.roomControllerRestore(id, options).then((request) => request(axios, basePath));
|
|
6846
|
+
},
|
|
6847
|
+
/**
|
|
6848
|
+
*
|
|
6849
|
+
* @summary Update a room
|
|
6850
|
+
* @param {string} id
|
|
6851
|
+
* @param {UpdateHotelRoomDto} updateHotelRoomDto
|
|
6852
|
+
* @param {*} [options] Override http request option.
|
|
6853
|
+
* @throws {RequiredError}
|
|
6854
|
+
*/
|
|
6855
|
+
roomControllerUpdate(id: string, updateHotelRoomDto: UpdateHotelRoomDto, options?: RawAxiosRequestConfig): AxiosPromise<HotelRoom> {
|
|
6856
|
+
return localVarFp.roomControllerUpdate(id, updateHotelRoomDto, options).then((request) => request(axios, basePath));
|
|
6857
|
+
},
|
|
6858
|
+
};
|
|
6859
|
+
};
|
|
6860
|
+
|
|
6861
|
+
/**
|
|
6862
|
+
* RoomsApi - object-oriented interface
|
|
6863
|
+
* @export
|
|
6864
|
+
* @class RoomsApi
|
|
6865
|
+
* @extends {BaseAPI}
|
|
6866
|
+
*/
|
|
6867
|
+
export class RoomsApi extends BaseAPI {
|
|
6868
|
+
/**
|
|
6869
|
+
*
|
|
6870
|
+
* @summary Create a new room
|
|
6871
|
+
* @param {CreateHotelRoomDto} createHotelRoomDto
|
|
6872
|
+
* @param {*} [options] Override http request option.
|
|
6873
|
+
* @throws {RequiredError}
|
|
6874
|
+
* @memberof RoomsApi
|
|
6875
|
+
*/
|
|
6876
|
+
public roomControllerCreate(createHotelRoomDto: CreateHotelRoomDto, options?: RawAxiosRequestConfig) {
|
|
6877
|
+
return RoomsApiFp(this.configuration).roomControllerCreate(createHotelRoomDto, options).then((request) => request(this.axios, this.basePath));
|
|
6878
|
+
}
|
|
6879
|
+
|
|
6880
|
+
/**
|
|
6881
|
+
*
|
|
6882
|
+
* @summary Get all soft-deleted rooms
|
|
6883
|
+
* @param {*} [options] Override http request option.
|
|
6884
|
+
* @throws {RequiredError}
|
|
6885
|
+
* @memberof RoomsApi
|
|
6886
|
+
*/
|
|
6887
|
+
public roomControllerFindDeleted(options?: RawAxiosRequestConfig) {
|
|
6888
|
+
return RoomsApiFp(this.configuration).roomControllerFindDeleted(options).then((request) => request(this.axios, this.basePath));
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6891
|
+
/**
|
|
6892
|
+
*
|
|
6893
|
+
* @summary Get all rooms with pagination and filters
|
|
6894
|
+
* @param {number} [page]
|
|
6895
|
+
* @param {number} [pageSize]
|
|
6896
|
+
* @param {string} [filters] JSON string of FilterHotelRoomDto
|
|
6897
|
+
* @param {string} [sort] JSON string of SortHotelRoomDto[]
|
|
6898
|
+
* @param {*} [options] Override http request option.
|
|
6899
|
+
* @throws {RequiredError}
|
|
6900
|
+
* @memberof RoomsApi
|
|
6901
|
+
*/
|
|
6902
|
+
public roomControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
6903
|
+
return RoomsApiFp(this.configuration).roomControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
6904
|
+
}
|
|
6905
|
+
|
|
6906
|
+
/**
|
|
6907
|
+
*
|
|
6908
|
+
* @summary Get a room by id
|
|
6909
|
+
* @param {string} id
|
|
6910
|
+
* @param {*} [options] Override http request option.
|
|
6911
|
+
* @throws {RequiredError}
|
|
6912
|
+
* @memberof RoomsApi
|
|
6913
|
+
*/
|
|
6914
|
+
public roomControllerFindOne(id: string, options?: RawAxiosRequestConfig) {
|
|
6915
|
+
return RoomsApiFp(this.configuration).roomControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
6916
|
+
}
|
|
6917
|
+
|
|
6918
|
+
/**
|
|
6919
|
+
*
|
|
6920
|
+
* @summary Soft delete a room
|
|
6921
|
+
* @param {string} id
|
|
6922
|
+
* @param {*} [options] Override http request option.
|
|
6923
|
+
* @throws {RequiredError}
|
|
6924
|
+
* @memberof RoomsApi
|
|
6925
|
+
*/
|
|
6926
|
+
public roomControllerRemove(id: string, options?: RawAxiosRequestConfig) {
|
|
6927
|
+
return RoomsApiFp(this.configuration).roomControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
6928
|
+
}
|
|
6929
|
+
|
|
6930
|
+
/**
|
|
6931
|
+
*
|
|
6932
|
+
* @summary Restore a soft-deleted room
|
|
6933
|
+
* @param {string} id
|
|
6934
|
+
* @param {*} [options] Override http request option.
|
|
6935
|
+
* @throws {RequiredError}
|
|
6936
|
+
* @memberof RoomsApi
|
|
6937
|
+
*/
|
|
6938
|
+
public roomControllerRestore(id: string, options?: RawAxiosRequestConfig) {
|
|
6939
|
+
return RoomsApiFp(this.configuration).roomControllerRestore(id, options).then((request) => request(this.axios, this.basePath));
|
|
6940
|
+
}
|
|
6941
|
+
|
|
6942
|
+
/**
|
|
6943
|
+
*
|
|
6944
|
+
* @summary Update a room
|
|
6945
|
+
* @param {string} id
|
|
6946
|
+
* @param {UpdateHotelRoomDto} updateHotelRoomDto
|
|
6947
|
+
* @param {*} [options] Override http request option.
|
|
6948
|
+
* @throws {RequiredError}
|
|
6949
|
+
* @memberof RoomsApi
|
|
6950
|
+
*/
|
|
6951
|
+
public roomControllerUpdate(id: string, updateHotelRoomDto: UpdateHotelRoomDto, options?: RawAxiosRequestConfig) {
|
|
6952
|
+
return RoomsApiFp(this.configuration).roomControllerUpdate(id, updateHotelRoomDto, options).then((request) => request(this.axios, this.basePath));
|
|
6953
|
+
}
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
|
|
6957
|
+
|
|
5468
6958
|
/**
|
|
5469
6959
|
* UsersApi - axios parameter creator
|
|
5470
6960
|
* @export
|