@ahomevilla-hotel/node-sdk 1.0.16 → 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.
Files changed (2) hide show
  1. package/api.ts +1620 -124
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -325,10 +325,10 @@ export interface BranchDetail {
325
325
  'amenities': Array<Amenity>;
326
326
  /**
327
327
  * List of rooms available in the branch
328
- * @type {Array<HotelRoom>}
328
+ * @type {Array<RoomDetail>}
329
329
  * @memberof BranchDetail
330
330
  */
331
- 'rooms': Array<HotelRoom>;
331
+ 'rooms': Array<RoomDetail>;
332
332
  /**
333
333
  * Nearby locations
334
334
  * @type {Array<NearBy>}
@@ -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
@@ -481,6 +506,47 @@ export interface CreateBranchDto {
481
506
  */
482
507
  'rating': number;
483
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
+
484
550
  /**
485
551
  *
486
552
  * @export
@@ -518,6 +584,30 @@ export interface CreateRoomDetailDto {
518
584
  * @memberof CreateRoomDetailDto
519
585
  */
520
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>;
521
611
  /**
522
612
  *
523
613
  * @type {string}
@@ -555,11 +645,41 @@ export interface CreateRoomDetailDto {
555
645
  */
556
646
  'max_children': number;
557
647
  /**
558
- *
559
- * @type {number}
648
+ * Hotel Room\'s base price per hour
649
+ * @type {string}
560
650
  * @memberof CreateRoomDetailDto
561
651
  */
562
- 'quantity': number;
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;
563
683
  }
564
684
 
565
685
  export const CreateRoomDetailDtoRoomTypeEnum = {
@@ -680,6 +800,47 @@ export interface FilterBranchesDto {
680
800
  */
681
801
  'amenities'?: Array<string>;
682
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
+
683
844
  /**
684
845
  *
685
846
  * @export
@@ -693,6 +854,102 @@ export interface FilterProvincesDto {
693
854
  */
694
855
  'keyword'?: string;
695
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
+
696
953
  /**
697
954
  *
698
955
  * @export
@@ -752,77 +1009,35 @@ export interface HotelRoom {
752
1009
  */
753
1010
  'updatedAt': string;
754
1011
  /**
755
- *
1012
+ * Hotel Room\'s name
756
1013
  * @type {string}
757
1014
  * @memberof HotelRoom
758
1015
  */
759
1016
  'name': string;
760
1017
  /**
761
- *
762
- * @type {Image}
763
- * @memberof HotelRoom
764
- */
765
- 'thumbnail': Image;
766
- /**
767
- *
768
- * @type {Array<Image>}
769
- * @memberof HotelRoom
770
- */
771
- 'images': Array<Image>;
772
- /**
773
- *
1018
+ * Hotel Room\'s slug
774
1019
  * @type {string}
775
1020
  * @memberof HotelRoom
776
1021
  */
777
- 'status': HotelRoomStatusEnum;
1022
+ 'slug': string;
778
1023
  /**
779
- *
1024
+ * Hotel Room\'s status
780
1025
  * @type {string}
781
1026
  * @memberof HotelRoom
782
1027
  */
783
- 'branchId': string;
1028
+ 'status': HotelRoomStatusEnum;
784
1029
  /**
785
- *
1030
+ * ID of the room detail
786
1031
  * @type {string}
787
1032
  * @memberof HotelRoom
788
1033
  */
789
1034
  'detailId': string;
790
1035
  /**
791
- *
792
- * @type {number}
793
- * @memberof HotelRoom
794
- */
795
- 'base_price_per_hour': number;
796
- /**
797
- *
798
- * @type {number}
799
- * @memberof HotelRoom
800
- */
801
- 'special_price_per_hour'?: number;
802
- /**
803
- *
804
- * @type {number}
805
- * @memberof HotelRoom
806
- */
807
- 'base_price_per_night': number;
808
- /**
809
- *
810
- * @type {number}
811
- * @memberof HotelRoom
812
- */
813
- 'special_price_per_night'?: number;
814
- /**
815
- *
816
- * @type {number}
817
- * @memberof HotelRoom
818
- */
819
- 'base_price_per_day': number;
820
- /**
821
- *
822
- * @type {number}
1036
+ * Room detail
1037
+ * @type {RoomDetail}
823
1038
  * @memberof HotelRoom
824
1039
  */
825
- 'special_price_per_day'?: number;
1040
+ 'detail': RoomDetail;
826
1041
  }
827
1042
 
828
1043
  export const HotelRoomStatusEnum = {
@@ -834,6 +1049,25 @@ export const HotelRoomStatusEnum = {
834
1049
 
835
1050
  export type HotelRoomStatusEnum = typeof HotelRoomStatusEnum[keyof typeof HotelRoomStatusEnum];
836
1051
 
1052
+ /**
1053
+ *
1054
+ * @export
1055
+ * @interface HotelRoomPaginationResultDto
1056
+ */
1057
+ export interface HotelRoomPaginationResultDto {
1058
+ /**
1059
+ *
1060
+ * @type {Array<HotelRoom>}
1061
+ * @memberof HotelRoomPaginationResultDto
1062
+ */
1063
+ 'data': Array<HotelRoom>;
1064
+ /**
1065
+ *
1066
+ * @type {UsersPaginationResultDtoMeta}
1067
+ * @memberof HotelRoomPaginationResultDto
1068
+ */
1069
+ 'meta': UsersPaginationResultDtoMeta;
1070
+ }
837
1071
  /**
838
1072
  *
839
1073
  * @export
@@ -1119,54 +1353,116 @@ export interface QueryBranchesDto {
1119
1353
  /**
1120
1354
  *
1121
1355
  * @export
1122
- * @interface QueryProvincesDto
1356
+ * @interface QueryHotelRoomDto
1123
1357
  */
1124
- export interface QueryProvincesDto {
1358
+ export interface QueryHotelRoomDto {
1125
1359
  /**
1126
1360
  *
1127
1361
  * @type {number}
1128
- * @memberof QueryProvincesDto
1362
+ * @memberof QueryHotelRoomDto
1129
1363
  */
1130
1364
  'page'?: number;
1131
1365
  /**
1132
1366
  *
1133
1367
  * @type {number}
1134
- * @memberof QueryProvincesDto
1368
+ * @memberof QueryHotelRoomDto
1135
1369
  */
1136
1370
  'pageSize'?: number;
1137
1371
  /**
1138
- * JSON string of FilterProvincesDto
1372
+ * JSON string of FilterHotelRoomDto
1139
1373
  * @type {string}
1140
- * @memberof QueryProvincesDto
1374
+ * @memberof QueryHotelRoomDto
1141
1375
  */
1142
1376
  'filters'?: string;
1143
1377
  /**
1144
- * JSON string of SortProvinceDto[]
1378
+ * JSON string of SortHotelRoomDto[]
1145
1379
  * @type {string}
1146
- * @memberof QueryProvincesDto
1380
+ * @memberof QueryHotelRoomDto
1147
1381
  */
1148
1382
  'sort'?: string;
1149
1383
  }
1150
1384
  /**
1151
1385
  *
1152
1386
  * @export
1153
- * @interface QueryUsersDto
1387
+ * @interface QueryProvincesDto
1154
1388
  */
1155
- export interface QueryUsersDto {
1389
+ export interface QueryProvincesDto {
1156
1390
  /**
1157
1391
  *
1158
1392
  * @type {number}
1159
- * @memberof QueryUsersDto
1393
+ * @memberof QueryProvincesDto
1160
1394
  */
1161
1395
  'page'?: number;
1162
1396
  /**
1163
1397
  *
1164
1398
  * @type {number}
1165
- * @memberof QueryUsersDto
1399
+ * @memberof QueryProvincesDto
1166
1400
  */
1167
1401
  'pageSize'?: number;
1168
1402
  /**
1169
- * JSON string of FilterUserDto
1403
+ * JSON string of FilterProvincesDto
1404
+ * @type {string}
1405
+ * @memberof QueryProvincesDto
1406
+ */
1407
+ 'filters'?: string;
1408
+ /**
1409
+ * JSON string of SortProvinceDto[]
1410
+ * @type {string}
1411
+ * @memberof QueryProvincesDto
1412
+ */
1413
+ 'sort'?: string;
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
+ }
1446
+ /**
1447
+ *
1448
+ * @export
1449
+ * @interface QueryUsersDto
1450
+ */
1451
+ export interface QueryUsersDto {
1452
+ /**
1453
+ *
1454
+ * @type {number}
1455
+ * @memberof QueryUsersDto
1456
+ */
1457
+ 'page'?: number;
1458
+ /**
1459
+ *
1460
+ * @type {number}
1461
+ * @memberof QueryUsersDto
1462
+ */
1463
+ 'pageSize'?: number;
1464
+ /**
1465
+ * JSON string of FilterUserDto
1170
1466
  * @type {string}
1171
1467
  * @memberof QueryUsersDto
1172
1468
  */
@@ -1362,6 +1658,36 @@ export interface RoomDetail {
1362
1658
  * @memberof RoomDetail
1363
1659
  */
1364
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>;
1365
1691
  /**
1366
1692
  *
1367
1693
  * @type {string}
@@ -1404,12 +1730,48 @@ export interface RoomDetail {
1404
1730
  * @memberof RoomDetail
1405
1731
  */
1406
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;
1407
1769
  /**
1408
1770
  *
1409
1771
  * @type {Array<HotelRoom>}
1410
1772
  * @memberof RoomDetail
1411
1773
  */
1412
- 'rooms': Array<HotelRoom>;
1774
+ 'flat_rooms': Array<HotelRoom>;
1413
1775
  }
1414
1776
 
1415
1777
  export const RoomDetailRoomTypeEnum = {
@@ -1428,6 +1790,25 @@ export const RoomDetailBedTypeEnum = {
1428
1790
 
1429
1791
  export type RoomDetailBedTypeEnum = typeof RoomDetailBedTypeEnum[keyof typeof RoomDetailBedTypeEnum];
1430
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
+ }
1431
1812
  /**
1432
1813
  *
1433
1814
  * @export
@@ -1514,6 +1895,33 @@ export const SortBranchDtoOrderEnum = {
1514
1895
 
1515
1896
  export type SortBranchDtoOrderEnum = typeof SortBranchDtoOrderEnum[keyof typeof SortBranchDtoOrderEnum];
1516
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
+
1517
1925
  /**
1518
1926
  *
1519
1927
  * @export
@@ -1541,6 +1949,33 @@ export const SortProvinceDtoOrderEnum = {
1541
1949
 
1542
1950
  export type SortProvinceDtoOrderEnum = typeof SortProvinceDtoOrderEnum[keyof typeof SortProvinceDtoOrderEnum];
1543
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
+
1544
1979
  /**
1545
1980
  *
1546
1981
  * @export
@@ -1679,14 +2114,106 @@ export interface UpdateBranchDto {
1679
2114
  * @type {Array<string>}
1680
2115
  * @memberof UpdateBranchDto
1681
2116
  */
1682
- 'amenityIds': Array<string>;
2117
+ 'amenityIds'?: Array<string>;
1683
2118
  /**
1684
2119
  * Nearby locations
1685
2120
  * @type {Array<NearBy>}
1686
2121
  * @memberof UpdateBranchDto
1687
2122
  */
1688
- 'nearBy': Array<NearBy>;
2123
+ 'nearBy'?: Array<NearBy>;
2124
+ }
2125
+ /**
2126
+ *
2127
+ * @export
2128
+ * @interface UpdateHotelRoomDto
2129
+ */
2130
+ export interface UpdateHotelRoomDto {
2131
+ /**
2132
+ * Hotel Room\'s name
2133
+ * @type {string}
2134
+ * @memberof UpdateHotelRoomDto
2135
+ */
2136
+ 'name'?: string;
2137
+ /**
2138
+ * Hotel Room\'s slug
2139
+ * @type {string}
2140
+ * @memberof UpdateHotelRoomDto
2141
+ */
2142
+ 'slug'?: string;
2143
+ /**
2144
+ * Hotel Room\'s status
2145
+ * @type {string}
2146
+ * @memberof UpdateHotelRoomDto
2147
+ */
2148
+ 'status'?: UpdateHotelRoomDtoStatusEnum;
2149
+ /**
2150
+ * ID of the room detail
2151
+ * @type {string}
2152
+ * @memberof UpdateHotelRoomDto
2153
+ */
2154
+ 'detailId'?: string;
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
+
2166
+ /**
2167
+ *
2168
+ * @export
2169
+ * @interface UpdateProfileDto
2170
+ */
2171
+ export interface UpdateProfileDto {
2172
+ /**
2173
+ * Full name of the user
2174
+ * @type {string}
2175
+ * @memberof UpdateProfileDto
2176
+ */
2177
+ 'name'?: string;
2178
+ /**
2179
+ * Avatar of the user
2180
+ * @type {Image}
2181
+ * @memberof UpdateProfileDto
2182
+ */
2183
+ 'avatar'?: Image;
2184
+ /**
2185
+ * Birth date of the user
2186
+ * @type {string}
2187
+ * @memberof UpdateProfileDto
2188
+ */
2189
+ 'birth_date'?: string;
2190
+ /**
2191
+ * User gender
2192
+ * @type {string}
2193
+ * @memberof UpdateProfileDto
2194
+ */
2195
+ 'gender'?: UpdateProfileDtoGenderEnum;
2196
+ /**
2197
+ * User email
2198
+ * @type {string}
2199
+ * @memberof UpdateProfileDto
2200
+ */
2201
+ 'email'?: string;
2202
+ /**
2203
+ * User phone number
2204
+ * @type {string}
2205
+ * @memberof UpdateProfileDto
2206
+ */
2207
+ 'phone'?: string;
1689
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
+
1690
2217
  /**
1691
2218
  *
1692
2219
  * @export
@@ -1724,6 +2251,30 @@ export interface UpdateRoomDetailDto {
1724
2251
  * @memberof UpdateRoomDetailDto
1725
2252
  */
1726
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>;
1727
2278
  /**
1728
2279
  *
1729
2280
  * @type {string}
@@ -1743,7 +2294,7 @@ export interface UpdateRoomDetailDto {
1743
2294
  */
1744
2295
  'bed_type'?: UpdateRoomDetailDtoBedTypeEnum;
1745
2296
  /**
1746
- *
2297
+ * Branch amenities
1747
2298
  * @type {Array<string>}
1748
2299
  * @memberof UpdateRoomDetailDto
1749
2300
  */
@@ -1761,26 +2312,56 @@ export interface UpdateRoomDetailDto {
1761
2312
  */
1762
2313
  'max_children'?: number;
1763
2314
  /**
1764
- *
1765
- * @type {number}
2315
+ * Hotel Room\'s base price per hour
2316
+ * @type {string}
1766
2317
  * @memberof UpdateRoomDetailDto
1767
2318
  */
1768
- 'quantity'?: number;
1769
- }
1770
-
1771
- export const UpdateRoomDetailDtoRoomTypeEnum = {
1772
- Standard: 'STANDARD',
1773
- Superior: 'SUPERIOR',
1774
- Deluxe: 'DELUXE'
1775
- } as const;
1776
-
1777
- export type UpdateRoomDetailDtoRoomTypeEnum = typeof UpdateRoomDetailDtoRoomTypeEnum[keyof typeof UpdateRoomDetailDtoRoomTypeEnum];
1778
- export const UpdateRoomDetailDtoBedTypeEnum = {
1779
- Single: 'SINGLE',
1780
- Double: 'DOUBLE',
1781
- Queen: 'QUEEN',
1782
- King: 'KING'
1783
- } as const;
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;
2350
+ }
2351
+
2352
+ export const UpdateRoomDetailDtoRoomTypeEnum = {
2353
+ Standard: 'STANDARD',
2354
+ Superior: 'SUPERIOR',
2355
+ Deluxe: 'DELUXE'
2356
+ } as const;
2357
+
2358
+ export type UpdateRoomDetailDtoRoomTypeEnum = typeof UpdateRoomDetailDtoRoomTypeEnum[keyof typeof UpdateRoomDetailDtoRoomTypeEnum];
2359
+ export const UpdateRoomDetailDtoBedTypeEnum = {
2360
+ Single: 'SINGLE',
2361
+ Double: 'DOUBLE',
2362
+ Queen: 'QUEEN',
2363
+ King: 'KING'
2364
+ } as const;
1784
2365
 
1785
2366
  export type UpdateRoomDetailDtoBedTypeEnum = typeof UpdateRoomDetailDtoBedTypeEnum[keyof typeof UpdateRoomDetailDtoBedTypeEnum];
1786
2367
 
@@ -2572,6 +3153,42 @@ export class AppApi extends BaseAPI {
2572
3153
  */
2573
3154
  export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
2574
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
+ },
2575
3192
  /**
2576
3193
  * Retrieve all active sessions for the current user
2577
3194
  * @summary Get active sessions
@@ -2951,6 +3568,42 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
2951
3568
  options: localVarRequestOptions,
2952
3569
  };
2953
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
+ },
2954
3607
  /**
2955
3608
  *
2956
3609
  * @summary Verify email with OTP code
@@ -2997,6 +3650,19 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
2997
3650
  export const AuthApiFp = function(configuration?: Configuration) {
2998
3651
  const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
2999
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
+ },
3000
3666
  /**
3001
3667
  * Retrieve all active sessions for the current user
3002
3668
  * @summary Get active sessions
@@ -3136,6 +3802,19 @@ export const AuthApiFp = function(configuration?: Configuration) {
3136
3802
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerRevokeSession']?.[localVarOperationServerIndex]?.url;
3137
3803
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3138
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
+ },
3139
3818
  /**
3140
3819
  *
3141
3820
  * @summary Verify email with OTP code
@@ -3159,6 +3838,16 @@ export const AuthApiFp = function(configuration?: Configuration) {
3159
3838
  export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3160
3839
  const localVarFp = AuthApiFp(configuration)
3161
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
+ },
3162
3851
  /**
3163
3852
  * Retrieve all active sessions for the current user
3164
3853
  * @summary Get active sessions
@@ -3265,6 +3954,16 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
3265
3954
  authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<RevokeSessionResponseDto> {
3266
3955
  return localVarFp.authControllerRevokeSession(sessionId, options).then((request) => request(axios, basePath));
3267
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
+ },
3268
3967
  /**
3269
3968
  *
3270
3969
  * @summary Verify email with OTP code
@@ -3285,6 +3984,18 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
3285
3984
  * @extends {BaseAPI}
3286
3985
  */
3287
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
+
3288
3999
  /**
3289
4000
  * Retrieve all active sessions for the current user
3290
4001
  * @summary Get active sessions
@@ -3413,6 +4124,18 @@ export class AuthApi extends BaseAPI {
3413
4124
  return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
3414
4125
  }
3415
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
+
3416
4139
  /**
3417
4140
  *
3418
4141
  * @summary Verify email with OTP code
@@ -3637,13 +4360,11 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3637
4360
  /**
3638
4361
  *
3639
4362
  * @summary Get latest branches
3640
- * @param {number} body
4363
+ * @param {number} [limit] Number of branches to get
3641
4364
  * @param {*} [options] Override http request option.
3642
4365
  * @throws {RequiredError}
3643
4366
  */
3644
- branchControllerGetLatestBranches: async (body: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3645
- // verify required parameter 'body' is not null or undefined
3646
- assertParamExists('branchControllerGetLatestBranches', 'body', body)
4367
+ branchControllerGetLatestBranches: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3647
4368
  const localVarPath = `/api/branches/latest`;
3648
4369
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3649
4370
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3656,14 +4377,15 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3656
4377
  const localVarHeaderParameter = {} as any;
3657
4378
  const localVarQueryParameter = {} as any;
3658
4379
 
4380
+ if (limit !== undefined) {
4381
+ localVarQueryParameter['limit'] = limit;
4382
+ }
3659
4383
 
3660
-
3661
- localVarHeaderParameter['Content-Type'] = 'application/json';
3662
4384
 
4385
+
3663
4386
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3664
4387
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3665
4388
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3666
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
3667
4389
 
3668
4390
  return {
3669
4391
  url: toPathString(localVarUrlObj),
@@ -3861,12 +4583,12 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3861
4583
  /**
3862
4584
  *
3863
4585
  * @summary Get latest branches
3864
- * @param {number} body
4586
+ * @param {number} [limit] Number of branches to get
3865
4587
  * @param {*} [options] Override http request option.
3866
4588
  * @throws {RequiredError}
3867
4589
  */
3868
- async branchControllerGetLatestBranches(body: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
3869
- const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerGetLatestBranches(body, options);
4590
+ async branchControllerGetLatestBranches(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
4591
+ const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerGetLatestBranches(limit, options);
3870
4592
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3871
4593
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerGetLatestBranches']?.[localVarOperationServerIndex]?.url;
3872
4594
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3979,12 +4701,12 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3979
4701
  /**
3980
4702
  *
3981
4703
  * @summary Get latest branches
3982
- * @param {number} body
4704
+ * @param {number} [limit] Number of branches to get
3983
4705
  * @param {*} [options] Override http request option.
3984
4706
  * @throws {RequiredError}
3985
4707
  */
3986
- branchControllerGetLatestBranches(body: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
3987
- return localVarFp.branchControllerGetLatestBranches(body, options).then((request) => request(axios, basePath));
4708
+ branchControllerGetLatestBranches(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
4709
+ return localVarFp.branchControllerGetLatestBranches(limit, options).then((request) => request(axios, basePath));
3988
4710
  },
3989
4711
  /**
3990
4712
  *
@@ -4095,13 +4817,13 @@ export class BranchesApi extends BaseAPI {
4095
4817
  /**
4096
4818
  *
4097
4819
  * @summary Get latest branches
4098
- * @param {number} body
4820
+ * @param {number} [limit] Number of branches to get
4099
4821
  * @param {*} [options] Override http request option.
4100
4822
  * @throws {RequiredError}
4101
4823
  * @memberof BranchesApi
4102
4824
  */
4103
- public branchControllerGetLatestBranches(body: number, options?: RawAxiosRequestConfig) {
4104
- return BranchesApiFp(this.configuration).branchControllerGetLatestBranches(body, options).then((request) => request(this.axios, this.basePath));
4825
+ public branchControllerGetLatestBranches(limit?: number, options?: RawAxiosRequestConfig) {
4826
+ return BranchesApiFp(this.configuration).branchControllerGetLatestBranches(limit, options).then((request) => request(this.axios, this.basePath));
4105
4827
  }
4106
4828
 
4107
4829
  /**
@@ -5079,17 +5801,47 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
5079
5801
  options: localVarRequestOptions,
5080
5802
  };
5081
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
+ },
5082
5834
  /**
5083
5835
  *
5084
5836
  * @summary Get all room details with pagination and filters
5085
5837
  * @param {number} [page]
5086
5838
  * @param {number} [pageSize]
5087
- * @param {object} [filters]
5839
+ * @param {string} [filters] JSON string of FilterRoomDetailDto
5088
5840
  * @param {Array<string>} [sort]
5089
5841
  * @param {*} [options] Override http request option.
5090
5842
  * @throws {RequiredError}
5091
5843
  */
5092
- roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5844
+ roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5093
5845
  const localVarPath = `/api/room-details`;
5094
5846
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5095
5847
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5111,9 +5863,57 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
5111
5863
  }
5112
5864
 
5113
5865
  if (filters !== undefined) {
5114
- for (const [key, value] of Object.entries(filters)) {
5115
- localVarQueryParameter[key] = value;
5116
- }
5866
+ localVarQueryParameter['filters'] = filters;
5867
+ }
5868
+
5869
+ if (sort) {
5870
+ localVarQueryParameter['sort'] = sort;
5871
+ }
5872
+
5873
+
5874
+
5875
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5877
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5878
+
5879
+ return {
5880
+ url: toPathString(localVarUrlObj),
5881
+ options: localVarRequestOptions,
5882
+ };
5883
+ },
5884
+ /**
5885
+ *
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;
5117
5917
  }
5118
5918
 
5119
5919
  if (sort) {
@@ -5167,7 +5967,7 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
5167
5967
  },
5168
5968
  /**
5169
5969
  *
5170
- * @summary Delete a room detail
5970
+ * @summary Soft delete a room detail
5171
5971
  * @param {string} id
5172
5972
  * @param {*} [options] Override http request option.
5173
5973
  * @throws {RequiredError}
@@ -5190,6 +5990,40 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
5190
5990
 
5191
5991
 
5192
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
+
5193
6027
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5194
6028
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5195
6029
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5262,17 +6096,29 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
5262
6096
  const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerCreate']?.[localVarOperationServerIndex]?.url;
5263
6097
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5264
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
+ },
5265
6111
  /**
5266
6112
  *
5267
6113
  * @summary Get all room details with pagination and filters
5268
6114
  * @param {number} [page]
5269
6115
  * @param {number} [pageSize]
5270
- * @param {object} [filters]
6116
+ * @param {string} [filters] JSON string of FilterRoomDetailDto
5271
6117
  * @param {Array<string>} [sort]
5272
6118
  * @param {*} [options] Override http request option.
5273
6119
  * @throws {RequiredError}
5274
6120
  */
5275
- async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailPaginationResultDto>> {
6121
+ async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailPaginationResultDto>> {
5276
6122
  const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindMany(page, pageSize, filters, sort, options);
5277
6123
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5278
6124
  const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindMany']?.[localVarOperationServerIndex]?.url;
@@ -5280,8 +6126,24 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
5280
6126
  },
5281
6127
  /**
5282
6128
  *
5283
- * @summary Get a room detail by id
5284
- * @param {string} id
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
+ },
6143
+ /**
6144
+ *
6145
+ * @summary Get a room detail by id
6146
+ * @param {string} id
5285
6147
  * @param {*} [options] Override http request option.
5286
6148
  * @throws {RequiredError}
5287
6149
  */
@@ -5293,7 +6155,7 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
5293
6155
  },
5294
6156
  /**
5295
6157
  *
5296
- * @summary Delete a room detail
6158
+ * @summary Soft delete a room detail
5297
6159
  * @param {string} id
5298
6160
  * @param {*} [options] Override http request option.
5299
6161
  * @throws {RequiredError}
@@ -5304,6 +6166,19 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
5304
6166
  const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerRemove']?.[localVarOperationServerIndex]?.url;
5305
6167
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5306
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
+ },
5307
6182
  /**
5308
6183
  *
5309
6184
  * @summary Update a room detail
@@ -5338,19 +6213,41 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
5338
6213
  roomDetailControllerCreate(createRoomDetailDto: CreateRoomDetailDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetail> {
5339
6214
  return localVarFp.roomDetailControllerCreate(createRoomDetailDto, options).then((request) => request(axios, basePath));
5340
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
+ },
5341
6225
  /**
5342
6226
  *
5343
6227
  * @summary Get all room details with pagination and filters
5344
6228
  * @param {number} [page]
5345
6229
  * @param {number} [pageSize]
5346
- * @param {object} [filters]
6230
+ * @param {string} [filters] JSON string of FilterRoomDetailDto
5347
6231
  * @param {Array<string>} [sort]
5348
6232
  * @param {*} [options] Override http request option.
5349
6233
  * @throws {RequiredError}
5350
6234
  */
5351
- roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailPaginationResultDto> {
6235
+ roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailPaginationResultDto> {
5352
6236
  return localVarFp.roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
5353
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
+ },
5354
6251
  /**
5355
6252
  *
5356
6253
  * @summary Get a room detail by id
@@ -5363,7 +6260,7 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
5363
6260
  },
5364
6261
  /**
5365
6262
  *
5366
- * @summary Delete a room detail
6263
+ * @summary Soft delete a room detail
5367
6264
  * @param {string} id
5368
6265
  * @param {*} [options] Override http request option.
5369
6266
  * @throws {RequiredError}
@@ -5371,6 +6268,16 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
5371
6268
  roomDetailControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5372
6269
  return localVarFp.roomDetailControllerRemove(id, options).then((request) => request(axios, basePath));
5373
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
+ },
5374
6281
  /**
5375
6282
  *
5376
6283
  * @summary Update a room detail
@@ -5404,21 +6311,47 @@ export class RoomDetailsApi extends BaseAPI {
5404
6311
  return RoomDetailsApiFp(this.configuration).roomDetailControllerCreate(createRoomDetailDto, options).then((request) => request(this.axios, this.basePath));
5405
6312
  }
5406
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
+
5407
6325
  /**
5408
6326
  *
5409
6327
  * @summary Get all room details with pagination and filters
5410
6328
  * @param {number} [page]
5411
6329
  * @param {number} [pageSize]
5412
- * @param {object} [filters]
6330
+ * @param {string} [filters] JSON string of FilterRoomDetailDto
5413
6331
  * @param {Array<string>} [sort]
5414
6332
  * @param {*} [options] Override http request option.
5415
6333
  * @throws {RequiredError}
5416
6334
  * @memberof RoomDetailsApi
5417
6335
  */
5418
- public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig) {
6336
+ public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: Array<string>, options?: RawAxiosRequestConfig) {
5419
6337
  return RoomDetailsApiFp(this.configuration).roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
5420
6338
  }
5421
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
+
5422
6355
  /**
5423
6356
  *
5424
6357
  * @summary Get a room detail by id
@@ -5433,7 +6366,7 @@ export class RoomDetailsApi extends BaseAPI {
5433
6366
 
5434
6367
  /**
5435
6368
  *
5436
- * @summary Delete a room detail
6369
+ * @summary Soft delete a room detail
5437
6370
  * @param {string} id
5438
6371
  * @param {*} [options] Override http request option.
5439
6372
  * @throws {RequiredError}
@@ -5443,6 +6376,18 @@ export class RoomDetailsApi extends BaseAPI {
5443
6376
  return RoomDetailsApiFp(this.configuration).roomDetailControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
5444
6377
  }
5445
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
+
5446
6391
  /**
5447
6392
  *
5448
6393
  * @summary Update a room detail
@@ -5459,6 +6404,557 @@ export class RoomDetailsApi extends BaseAPI {
5459
6404
 
5460
6405
 
5461
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
+
5462
6958
  /**
5463
6959
  * UsersApi - axios parameter creator
5464
6960
  * @export