@ahomevilla-hotel/node-sdk 1.1.5 → 1.1.7
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 +76 -21
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1783,6 +1783,36 @@ export interface FilterRoomDetailDto {
|
|
|
1783
1783
|
* @memberof FilterRoomDetailDto
|
|
1784
1784
|
*/
|
|
1785
1785
|
'maxPrice'?: object;
|
|
1786
|
+
/**
|
|
1787
|
+
* Filter by start date
|
|
1788
|
+
* @type {string}
|
|
1789
|
+
* @memberof FilterRoomDetailDto
|
|
1790
|
+
*/
|
|
1791
|
+
'startDate'?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* Filter by end date
|
|
1794
|
+
* @type {string}
|
|
1795
|
+
* @memberof FilterRoomDetailDto
|
|
1796
|
+
*/
|
|
1797
|
+
'endDate'?: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* Filter by start time
|
|
1800
|
+
* @type {string}
|
|
1801
|
+
* @memberof FilterRoomDetailDto
|
|
1802
|
+
*/
|
|
1803
|
+
'startTime'?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Filter by end time
|
|
1806
|
+
* @type {string}
|
|
1807
|
+
* @memberof FilterRoomDetailDto
|
|
1808
|
+
*/
|
|
1809
|
+
'endTime'?: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* Filter by booking type
|
|
1812
|
+
* @type {string}
|
|
1813
|
+
* @memberof FilterRoomDetailDto
|
|
1814
|
+
*/
|
|
1815
|
+
'bookingType'?: FilterRoomDetailDtoBookingTypeEnum;
|
|
1786
1816
|
}
|
|
1787
1817
|
|
|
1788
1818
|
export const FilterRoomDetailDtoRoomTypeEnum = {
|
|
@@ -1800,6 +1830,13 @@ export const FilterRoomDetailDtoBedTypeEnum = {
|
|
|
1800
1830
|
} as const;
|
|
1801
1831
|
|
|
1802
1832
|
export type FilterRoomDetailDtoBedTypeEnum = typeof FilterRoomDetailDtoBedTypeEnum[keyof typeof FilterRoomDetailDtoBedTypeEnum];
|
|
1833
|
+
export const FilterRoomDetailDtoBookingTypeEnum = {
|
|
1834
|
+
Hourly: 'HOURLY',
|
|
1835
|
+
Nightly: 'NIGHTLY',
|
|
1836
|
+
Daily: 'DAILY'
|
|
1837
|
+
} as const;
|
|
1838
|
+
|
|
1839
|
+
export type FilterRoomDetailDtoBookingTypeEnum = typeof FilterRoomDetailDtoBookingTypeEnum[keyof typeof FilterRoomDetailDtoBookingTypeEnum];
|
|
1803
1840
|
|
|
1804
1841
|
/**
|
|
1805
1842
|
*
|
|
@@ -1974,10 +2011,10 @@ export interface HotelRoom {
|
|
|
1974
2011
|
'bookings'?: Array<Booking>;
|
|
1975
2012
|
/**
|
|
1976
2013
|
*
|
|
1977
|
-
* @type {
|
|
2014
|
+
* @type {UserCount}
|
|
1978
2015
|
* @memberof HotelRoom
|
|
1979
2016
|
*/
|
|
1980
|
-
'_count'?:
|
|
2017
|
+
'_count'?: UserCount;
|
|
1981
2018
|
}
|
|
1982
2019
|
|
|
1983
2020
|
export const HotelRoomStatusEnum = {
|
|
@@ -1989,19 +2026,6 @@ export const HotelRoomStatusEnum = {
|
|
|
1989
2026
|
|
|
1990
2027
|
export type HotelRoomStatusEnum = typeof HotelRoomStatusEnum[keyof typeof HotelRoomStatusEnum];
|
|
1991
2028
|
|
|
1992
|
-
/**
|
|
1993
|
-
* Count of bookings
|
|
1994
|
-
* @export
|
|
1995
|
-
* @interface HotelRoomCount
|
|
1996
|
-
*/
|
|
1997
|
-
export interface HotelRoomCount {
|
|
1998
|
-
/**
|
|
1999
|
-
*
|
|
2000
|
-
* @type {number}
|
|
2001
|
-
* @memberof HotelRoomCount
|
|
2002
|
-
*/
|
|
2003
|
-
'bookings'?: number;
|
|
2004
|
-
}
|
|
2005
2029
|
/**
|
|
2006
2030
|
*
|
|
2007
2031
|
* @export
|
|
@@ -3824,6 +3848,18 @@ export interface User {
|
|
|
3824
3848
|
* @memberof User
|
|
3825
3849
|
*/
|
|
3826
3850
|
'role': UserRoleEnum;
|
|
3851
|
+
/**
|
|
3852
|
+
* Branch details where user works
|
|
3853
|
+
* @type {Branch}
|
|
3854
|
+
* @memberof User
|
|
3855
|
+
*/
|
|
3856
|
+
'working_at'?: Branch;
|
|
3857
|
+
/**
|
|
3858
|
+
*
|
|
3859
|
+
* @type {UserCount}
|
|
3860
|
+
* @memberof User
|
|
3861
|
+
*/
|
|
3862
|
+
'_count'?: UserCount;
|
|
3827
3863
|
}
|
|
3828
3864
|
|
|
3829
3865
|
export const UserGenderEnum = {
|
|
@@ -3846,6 +3882,19 @@ export const UserRoleEnum = {
|
|
|
3846
3882
|
|
|
3847
3883
|
export type UserRoleEnum = typeof UserRoleEnum[keyof typeof UserRoleEnum];
|
|
3848
3884
|
|
|
3885
|
+
/**
|
|
3886
|
+
* Count of bookings
|
|
3887
|
+
* @export
|
|
3888
|
+
* @interface UserCount
|
|
3889
|
+
*/
|
|
3890
|
+
export interface UserCount {
|
|
3891
|
+
/**
|
|
3892
|
+
*
|
|
3893
|
+
* @type {number}
|
|
3894
|
+
* @memberof UserCount
|
|
3895
|
+
*/
|
|
3896
|
+
'bookings'?: number;
|
|
3897
|
+
}
|
|
3849
3898
|
/**
|
|
3850
3899
|
*
|
|
3851
3900
|
* @export
|
|
@@ -3948,6 +3997,18 @@ export interface UserDetail {
|
|
|
3948
3997
|
* @memberof UserDetail
|
|
3949
3998
|
*/
|
|
3950
3999
|
'role': UserDetailRoleEnum;
|
|
4000
|
+
/**
|
|
4001
|
+
* Branch details where user works
|
|
4002
|
+
* @type {Branch}
|
|
4003
|
+
* @memberof UserDetail
|
|
4004
|
+
*/
|
|
4005
|
+
'working_at'?: Branch;
|
|
4006
|
+
/**
|
|
4007
|
+
*
|
|
4008
|
+
* @type {UserCount}
|
|
4009
|
+
* @memberof UserDetail
|
|
4010
|
+
*/
|
|
4011
|
+
'_count'?: UserCount;
|
|
3951
4012
|
/**
|
|
3952
4013
|
* Date when user was blocked
|
|
3953
4014
|
* @type {string}
|
|
@@ -3984,12 +4045,6 @@ export interface UserDetail {
|
|
|
3984
4045
|
* @memberof UserDetail
|
|
3985
4046
|
*/
|
|
3986
4047
|
'branchId'?: string;
|
|
3987
|
-
/**
|
|
3988
|
-
* Branch details where user works
|
|
3989
|
-
* @type {Branch}
|
|
3990
|
-
* @memberof UserDetail
|
|
3991
|
-
*/
|
|
3992
|
-
'working_at'?: Branch;
|
|
3993
4048
|
/**
|
|
3994
4049
|
* User bookings history
|
|
3995
4050
|
* @type {Array<Booking>}
|