@ahomevilla-hotel/node-sdk 1.3.1 → 2025.7.0-5.153956

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/README.md CHANGED
@@ -1 +1,290 @@
1
- # This is [_Our project_](https://github.com/KMA-TTCS-Nhom32) SDK
1
+ ## @ahomevilla-hotel/node-sdk@latest
2
+
3
+ This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @ahomevilla-hotel/node-sdk@latest --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
47
+
48
+ ### Documentation for API Endpoints
49
+
50
+ All URIs are relative to *http://localhost*
51
+
52
+ Class | Method | HTTP request | Description
53
+ ------------ | ------------- | ------------- | -------------
54
+ *AmenitiesApi* | [**amenitiesControllerCreate**](docs/AmenitiesApi.md#amenitiescontrollercreate) | **POST** /api/amenities | Create new amenity
55
+ *AmenitiesApi* | [**amenitiesControllerFindMany**](docs/AmenitiesApi.md#amenitiescontrollerfindmany) | **GET** /api/amenities | Get amenities
56
+ *AmenitiesApi* | [**amenitiesControllerFindOne**](docs/AmenitiesApi.md#amenitiescontrollerfindone) | **GET** /api/amenities/{id} | Get amenity by ID
57
+ *AmenitiesApi* | [**amenitiesControllerRemove**](docs/AmenitiesApi.md#amenitiescontrollerremove) | **DELETE** /api/amenities/{id} | Delete amenity
58
+ *AmenitiesApi* | [**amenitiesControllerUpdate**](docs/AmenitiesApi.md#amenitiescontrollerupdate) | **PUT** /api/amenities/{id} | Update amenity
59
+ *AnalyticsApi* | [**analyticsControllerGetAnalyticsSummary**](docs/AnalyticsApi.md#analyticscontrollergetanalyticssummary) | **GET** /api/analytics/summary | Get analytics summary for a branch
60
+ *AnalyticsApi* | [**analyticsControllerGetOccupancyRate**](docs/AnalyticsApi.md#analyticscontrollergetoccupancyrate) | **GET** /api/analytics/occupancy | Get occupancy rate analytics
61
+ *AnalyticsApi* | [**analyticsControllerGetRevenueAnalytics**](docs/AnalyticsApi.md#analyticscontrollergetrevenueanalytics) | **GET** /api/analytics/revenue | Get revenue analytics
62
+ *AnalyticsApi* | [**analyticsControllerGetRoomPerformance**](docs/AnalyticsApi.md#analyticscontrollergetroomperformance) | **GET** /api/analytics/room-performance | Get room performance analytics
63
+ *AppApi* | [**appControllerGetHello**](docs/AppApi.md#appcontrollergethello) | **GET** / |
64
+ *AuthApi* | [**authControllerChangePassword**](docs/AuthApi.md#authcontrollerchangepassword) | **POST** /api/auth/change-password | Change user password
65
+ *AuthApi* | [**authControllerGetActiveSessions**](docs/AuthApi.md#authcontrollergetactivesessions) | **GET** /api/auth/sessions | Get active sessions
66
+ *AuthApi* | [**authControllerGetProfile**](docs/AuthApi.md#authcontrollergetprofile) | **GET** /api/auth/profile | Get current user profile
67
+ *AuthApi* | [**authControllerGetSessionAnalytics**](docs/AuthApi.md#authcontrollergetsessionanalytics) | **GET** /api/auth/sessions/analytics | Get session analytics
68
+ *AuthApi* | [**authControllerGetSuspiciousActivities**](docs/AuthApi.md#authcontrollergetsuspiciousactivities) | **GET** /api/auth/users/{userId}/suspicious-activities | Get suspicious activities
69
+ *AuthApi* | [**authControllerInitiateForgotPassword**](docs/AuthApi.md#authcontrollerinitiateforgotpassword) | **POST** /api/auth/forgot-password/email/initiate | Initiate forgot password process
70
+ *AuthApi* | [**authControllerLogin**](docs/AuthApi.md#authcontrollerlogin) | **POST** /api/auth/login |
71
+ *AuthApi* | [**authControllerLogout**](docs/AuthApi.md#authcontrollerlogout) | **POST** /api/auth/logout | Logout user
72
+ *AuthApi* | [**authControllerRefreshTokens**](docs/AuthApi.md#authcontrollerrefreshtokens) | **POST** /api/auth/refresh | Refresh access token
73
+ *AuthApi* | [**authControllerRegister**](docs/AuthApi.md#authcontrollerregister) | **POST** /api/auth/register |
74
+ *AuthApi* | [**authControllerResetPasswordWithOTP**](docs/AuthApi.md#authcontrollerresetpasswordwithotp) | **POST** /api/auth/forgot-password/email/reset | Reset password using OTP
75
+ *AuthApi* | [**authControllerRevokeSession**](docs/AuthApi.md#authcontrollerrevokesession) | **POST** /api/auth/sessions/{sessionId}/revoke | Revoke specific session
76
+ *AuthApi* | [**authControllerUpdateProfile**](docs/AuthApi.md#authcontrollerupdateprofile) | **PATCH** /api/auth/profile | Update user profile
77
+ *AuthApi* | [**authControllerVerifyEmail**](docs/AuthApi.md#authcontrollerverifyemail) | **POST** /api/auth/verify-email | Verify email with OTP code
78
+ *BookingApi* | [**bookingControllerCancelBooking**](docs/BookingApi.md#bookingcontrollercancelbooking) | **PATCH** /api/booking/cancel/{bookingId} | Cancel a booking
79
+ *BookingApi* | [**bookingControllerCreateBookingDirectly**](docs/BookingApi.md#bookingcontrollercreatebookingdirectly) | **POST** /api/booking/directly | Create a new booking directly at the hotel
80
+ *BookingApi* | [**bookingControllerCreateBookingOnline**](docs/BookingApi.md#bookingcontrollercreatebookingonline) | **POST** /api/booking | Create a new booking online
81
+ *BookingApi* | [**bookingControllerFindById**](docs/BookingApi.md#bookingcontrollerfindbyid) | **GET** /api/booking/{bookingId} | Get booking details
82
+ *BookingApi* | [**bookingControllerGetBookings**](docs/BookingApi.md#bookingcontrollergetbookings) | **GET** /api/booking | Get all bookings with pagination and filters
83
+ *BookingApi* | [**bookingControllerGetMyBookings**](docs/BookingApi.md#bookingcontrollergetmybookings) | **GET** /api/booking/my-bookings | Get all my bookings with pagination and filters
84
+ *BookingApi* | [**bookingControllerHandlePaymentWebhook**](docs/BookingApi.md#bookingcontrollerhandlepaymentwebhook) | **POST** /api/booking/webhook/payment | Handle payment webhook from PayOS
85
+ *BookingApi* | [**bookingControllerUpdateBookingStatus**](docs/BookingApi.md#bookingcontrollerupdatebookingstatus) | **PATCH** /api/booking/update-status/{bookingId} | Update booking status
86
+ *BranchesApi* | [**branchControllerCreate**](docs/BranchesApi.md#branchcontrollercreate) | **POST** /api/branches | Create a new branch
87
+ *BranchesApi* | [**branchControllerFindDeleted**](docs/BranchesApi.md#branchcontrollerfinddeleted) | **GET** /api/branches/deleted | Get all soft-deleted branches
88
+ *BranchesApi* | [**branchControllerFindMany**](docs/BranchesApi.md#branchcontrollerfindmany) | **GET** /api/branches | Get all branches with pagination and filters
89
+ *BranchesApi* | [**branchControllerFindManyInfinite**](docs/BranchesApi.md#branchcontrollerfindmanyinfinite) | **GET** /api/branches/infinite | Get branches with infinite scroll for client app
90
+ *BranchesApi* | [**branchControllerFindOne**](docs/BranchesApi.md#branchcontrollerfindone) | **GET** /api/branches/{idOrSlug} | Get branch by ID or slug
91
+ *BranchesApi* | [**branchControllerGetLatestBranches**](docs/BranchesApi.md#branchcontrollergetlatestbranches) | **GET** /api/branches/latest | Get latest branches
92
+ *BranchesApi* | [**branchControllerRemove**](docs/BranchesApi.md#branchcontrollerremove) | **DELETE** /api/branches/{id} | Delete a branch
93
+ *BranchesApi* | [**branchControllerRestore**](docs/BranchesApi.md#branchcontrollerrestore) | **POST** /api/branches/{id}/restore | Restore a soft-deleted branch
94
+ *BranchesApi* | [**branchControllerUpdate**](docs/BranchesApi.md#branchcontrollerupdate) | **PATCH** /api/branches/{id} | Update a branch
95
+ *EmailApi* | [**emailControllerSendVerificationEmail**](docs/EmailApi.md#emailcontrollersendverificationemail) | **POST** /api/email/send-verification | Send verification email
96
+ *ImagesApi* | [**imagesControllerGetImageByPublicId**](docs/ImagesApi.md#imagescontrollergetimagebypublicid) | **GET** /api/images/{publicId} | Get image by public id
97
+ *ImagesApi* | [**imagesControllerUploadIcon**](docs/ImagesApi.md#imagescontrolleruploadicon) | **POST** /api/images/icon | Upload amenity icon
98
+ *ImagesApi* | [**imagesControllerUploadImages**](docs/ImagesApi.md#imagescontrolleruploadimages) | **POST** /api/images | Upload multiple image
99
+ *POEditorApi* | [**poeditorControllerAddTranslation**](docs/POEditorApi.md#poeditorcontrolleraddtranslation) | **POST** /api/poeditor/translations | Add translations to POEditor project
100
+ *POEditorApi* | [**poeditorControllerGetTranslations**](docs/POEditorApi.md#poeditorcontrollergettranslations) | **POST** /api/poeditor/translations-list | Get translations from POEditor project
101
+ *PayOSApi* | [**payosControllerCancelPayment**](docs/PayOSApi.md#payoscontrollercancelpayment) | **POST** /api/payos/cancel-payment | Cancel a payment link
102
+ *PayOSApi* | [**payosControllerCreatePaymentRequest**](docs/PayOSApi.md#payoscontrollercreatepaymentrequest) | **POST** /api/payos/payment-request | Create a new payment request
103
+ *PayOSApi* | [**payosControllerGetPaymentStatus**](docs/PayOSApi.md#payoscontrollergetpaymentstatus) | **GET** /api/payos/payment-status/{paymentLinkId} | Get payment status
104
+ *PayOSApi* | [**payosControllerHandleWebhook**](docs/PayOSApi.md#payoscontrollerhandlewebhook) | **POST** /api/payos/webhook | Handle payment confirmation webhook
105
+ *ProvincesApi* | [**provincesControllerCreate**](docs/ProvincesApi.md#provincescontrollercreate) | **POST** /api/provinces | Create a new province
106
+ *ProvincesApi* | [**provincesControllerFindDeleted**](docs/ProvincesApi.md#provincescontrollerfinddeleted) | **GET** /api/provinces/deleted | Get all soft-deleted provinces
107
+ *ProvincesApi* | [**provincesControllerFindMany**](docs/ProvincesApi.md#provincescontrollerfindmany) | **GET** /api/provinces | Get all provinces with pagination and filters
108
+ *ProvincesApi* | [**provincesControllerFindOne**](docs/ProvincesApi.md#provincescontrollerfindone) | **GET** /api/provinces/{id} | Get province by ID
109
+ *ProvincesApi* | [**provincesControllerRemove**](docs/ProvincesApi.md#provincescontrollerremove) | **DELETE** /api/provinces/{id} | Delete a province
110
+ *ProvincesApi* | [**provincesControllerRestore**](docs/ProvincesApi.md#provincescontrollerrestore) | **POST** /api/provinces/{id}/restore | Restore a soft-deleted province
111
+ *ProvincesApi* | [**provincesControllerUpdate**](docs/ProvincesApi.md#provincescontrollerupdate) | **PATCH** /api/provinces/{id} | Update a province
112
+ *RoomDetailsApi* | [**roomDetailControllerCreate**](docs/RoomDetailsApi.md#roomdetailcontrollercreate) | **POST** /api/room-details | Create a new room detail
113
+ *RoomDetailsApi* | [**roomDetailControllerFindDeleted**](docs/RoomDetailsApi.md#roomdetailcontrollerfinddeleted) | **GET** /api/room-details/deleted | Get all soft-deleted room details
114
+ *RoomDetailsApi* | [**roomDetailControllerFindMany**](docs/RoomDetailsApi.md#roomdetailcontrollerfindmany) | **GET** /api/room-details | Get all room details with pagination and filters
115
+ *RoomDetailsApi* | [**roomDetailControllerFindManyInfinite**](docs/RoomDetailsApi.md#roomdetailcontrollerfindmanyinfinite) | **GET** /api/room-details/infinite | Get all room details with infinite pagination and filters
116
+ *RoomDetailsApi* | [**roomDetailControllerFindOne**](docs/RoomDetailsApi.md#roomdetailcontrollerfindone) | **GET** /api/room-details/{id} | Get a room detail by id
117
+ *RoomDetailsApi* | [**roomDetailControllerRemove**](docs/RoomDetailsApi.md#roomdetailcontrollerremove) | **DELETE** /api/room-details/{id} | Soft delete a room detail
118
+ *RoomDetailsApi* | [**roomDetailControllerRestore**](docs/RoomDetailsApi.md#roomdetailcontrollerrestore) | **POST** /api/room-details/{id}/restore | Restore a soft-deleted room detail
119
+ *RoomDetailsApi* | [**roomDetailControllerUpdate**](docs/RoomDetailsApi.md#roomdetailcontrollerupdate) | **PATCH** /api/room-details/{id} | Update a room detail
120
+ *RoomPriceHistoriesApi* | [**roomPriceHistoryControllerCreate**](docs/RoomPriceHistoriesApi.md#roompricehistorycontrollercreate) | **POST** /api/room-price-histories | Create a new room price history
121
+ *RoomPriceHistoriesApi* | [**roomPriceHistoryControllerFindManyByRoomDetail**](docs/RoomPriceHistoriesApi.md#roompricehistorycontrollerfindmanybyroomdetail) | **GET** /api/room-price-histories/room-detail/{roomDetailId} | Get all price histories for a specific room detail
122
+ *RoomPriceHistoriesApi* | [**roomPriceHistoryControllerRemove**](docs/RoomPriceHistoriesApi.md#roompricehistorycontrollerremove) | **DELETE** /api/room-price-histories/{id} | Delete a room price history
123
+ *RoomPriceHistoriesApi* | [**roomPriceHistoryControllerUpdate**](docs/RoomPriceHistoriesApi.md#roompricehistorycontrollerupdate) | **PATCH** /api/room-price-histories/{id} | Update a room price history
124
+ *RoomPromotionsApi* | [**roomPromotionControllerCreate**](docs/RoomPromotionsApi.md#roompromotioncontrollercreate) | **POST** /api/room-promotions | Create a new room promotion
125
+ *RoomPromotionsApi* | [**roomPromotionControllerFindDeleted**](docs/RoomPromotionsApi.md#roompromotioncontrollerfinddeleted) | **GET** /api/room-promotions/deleted | Get all soft-deleted room promotions
126
+ *RoomPromotionsApi* | [**roomPromotionControllerFindMany**](docs/RoomPromotionsApi.md#roompromotioncontrollerfindmany) | **GET** /api/room-promotions | Get all room promotions with pagination and filters
127
+ *RoomPromotionsApi* | [**roomPromotionControllerFindOne**](docs/RoomPromotionsApi.md#roompromotioncontrollerfindone) | **GET** /api/room-promotions/{id} | Get room promotion by ID
128
+ *RoomPromotionsApi* | [**roomPromotionControllerRemove**](docs/RoomPromotionsApi.md#roompromotioncontrollerremove) | **DELETE** /api/room-promotions/{id} | Delete a room promotion
129
+ *RoomPromotionsApi* | [**roomPromotionControllerRestore**](docs/RoomPromotionsApi.md#roompromotioncontrollerrestore) | **POST** /api/room-promotions/{id}/restore | Restore a soft-deleted room promotion
130
+ *RoomPromotionsApi* | [**roomPromotionControllerUpdate**](docs/RoomPromotionsApi.md#roompromotioncontrollerupdate) | **PATCH** /api/room-promotions/{id} | Update a room promotion
131
+ *RoomPromotionsApi* | [**roomPromotionControllerValidatePromotionCode**](docs/RoomPromotionsApi.md#roompromotioncontrollervalidatepromotioncode) | **GET** /api/room-promotions/validate/{code}/room/{roomDetailId} | Validate a promotion code for a specific room
132
+ *RoomsApi* | [**roomControllerCreate**](docs/RoomsApi.md#roomcontrollercreate) | **POST** /api/rooms | Create a new room
133
+ *RoomsApi* | [**roomControllerFindDeleted**](docs/RoomsApi.md#roomcontrollerfinddeleted) | **GET** /api/rooms/deleted | Get all soft-deleted rooms
134
+ *RoomsApi* | [**roomControllerFindMany**](docs/RoomsApi.md#roomcontrollerfindmany) | **GET** /api/rooms | Get all rooms with pagination and filters
135
+ *RoomsApi* | [**roomControllerFindManyByBranchId**](docs/RoomsApi.md#roomcontrollerfindmanybybranchid) | **GET** /api/rooms/in-branch/{branchId} | ADMIN - STAFF Get all rooms by branch ID
136
+ *RoomsApi* | [**roomControllerFindOne**](docs/RoomsApi.md#roomcontrollerfindone) | **GET** /api/rooms/{id} | Get a room by id
137
+ *RoomsApi* | [**roomControllerPermanentDelete**](docs/RoomsApi.md#roomcontrollerpermanentdelete) | **DELETE** /api/rooms/permanent-delete | ADMIN - Delete rooms permanently
138
+ *RoomsApi* | [**roomControllerRemove**](docs/RoomsApi.md#roomcontrollerremove) | **DELETE** /api/rooms/{id} | Soft delete a room
139
+ *RoomsApi* | [**roomControllerRestore**](docs/RoomsApi.md#roomcontrollerrestore) | **POST** /api/rooms/{id}/restore | Restore a soft-deleted room
140
+ *RoomsApi* | [**roomControllerUpdate**](docs/RoomsApi.md#roomcontrollerupdate) | **PATCH** /api/rooms/{id} | Update a room
141
+ *UsersApi* | [**usersControllerAdminGetUserDetail**](docs/UsersApi.md#userscontrolleradmingetuserdetail) | **GET** /api/users/admin/{id} | Get detailed user information (Admin only)
142
+ *UsersApi* | [**usersControllerAdminUpdateUser**](docs/UsersApi.md#userscontrolleradminupdateuser) | **PATCH** /api/users/admin/{id} | Update user information (Admin only)
143
+ *UsersApi* | [**usersControllerBlockUser**](docs/UsersApi.md#userscontrollerblockuser) | **POST** /api/users/block-action/{id} | Block or unblock a user
144
+ *UsersApi* | [**usersControllerDeleteUser**](docs/UsersApi.md#userscontrollerdeleteuser) | **DELETE** /api/users/{id} | Soft delete a user (Admin only)
145
+ *UsersApi* | [**usersControllerGetUsers**](docs/UsersApi.md#userscontrollergetusers) | **GET** /api/users |
146
+ *UsersApi* | [**usersControllerRestoreUser**](docs/UsersApi.md#userscontrollerrestoreuser) | **POST** /api/users/{id}/restore | Restore a deleted user (Admin only)
147
+ *VerificationApi* | [**verificationControllerVerifyCode**](docs/VerificationApi.md#verificationcontrollerverifycode) | **POST** /api/verification/verify | Verify a code
148
+ *VerificationApi* | [**verificationControllerVerifyEmailOTP**](docs/VerificationApi.md#verificationcontrollerverifyemailotp) | **POST** /api/verification/verify-email-otp | Verify an email OTP
149
+
150
+
151
+ ### Documentation For Models
152
+
153
+ - [AddTranslationDto](docs/AddTranslationDto.md)
154
+ - [AdminUpdateUserDto](docs/AdminUpdateUserDto.md)
155
+ - [AmenitiesPaginationResultDto](docs/AmenitiesPaginationResultDto.md)
156
+ - [Amenity](docs/Amenity.md)
157
+ - [AmenityTranslationDto](docs/AmenityTranslationDto.md)
158
+ - [AnalyticsSummaryDto](docs/AnalyticsSummaryDto.md)
159
+ - [BlockActivity](docs/BlockActivity.md)
160
+ - [BlockOrUnblockUserDto](docs/BlockOrUnblockUserDto.md)
161
+ - [Booking](docs/Booking.md)
162
+ - [BookingsPaginationResultDto](docs/BookingsPaginationResultDto.md)
163
+ - [Branch](docs/Branch.md)
164
+ - [BranchDetail](docs/BranchDetail.md)
165
+ - [BranchTranslationDto](docs/BranchTranslationDto.md)
166
+ - [BranchTranslationsInner](docs/BranchTranslationsInner.md)
167
+ - [BranchesInfinitePaginationResultDto](docs/BranchesInfinitePaginationResultDto.md)
168
+ - [BranchesPaginationResultDto](docs/BranchesPaginationResultDto.md)
169
+ - [CancelBookingDto](docs/CancelBookingDto.md)
170
+ - [CancelPaymentRequestDto](docs/CancelPaymentRequestDto.md)
171
+ - [ChangePasswordDto](docs/ChangePasswordDto.md)
172
+ - [ConfirmPaymentWebhookDto](docs/ConfirmPaymentWebhookDto.md)
173
+ - [CreateAmenityDto](docs/CreateAmenityDto.md)
174
+ - [CreateBookingAtHotelDto](docs/CreateBookingAtHotelDto.md)
175
+ - [CreateBookingOnlineDto](docs/CreateBookingOnlineDto.md)
176
+ - [CreateBranchDto](docs/CreateBranchDto.md)
177
+ - [CreateHotelRoomDto](docs/CreateHotelRoomDto.md)
178
+ - [CreatePaymentRequestDto](docs/CreatePaymentRequestDto.md)
179
+ - [CreateProvinceDto](docs/CreateProvinceDto.md)
180
+ - [CreateRoomDetailDto](docs/CreateRoomDetailDto.md)
181
+ - [CreateRoomPriceHistoryDto](docs/CreateRoomPriceHistoryDto.md)
182
+ - [CreateRoomPromotionDto](docs/CreateRoomPromotionDto.md)
183
+ - [CreateUserDto](docs/CreateUserDto.md)
184
+ - [DeleteUserDto](docs/DeleteUserDto.md)
185
+ - [DetailTranslationContent](docs/DetailTranslationContent.md)
186
+ - [FilterAmenityDto](docs/FilterAmenityDto.md)
187
+ - [FilterBookingsDto](docs/FilterBookingsDto.md)
188
+ - [FilterBranchesDto](docs/FilterBranchesDto.md)
189
+ - [FilterHotelRoomDto](docs/FilterHotelRoomDto.md)
190
+ - [FilterMyBookingsDto](docs/FilterMyBookingsDto.md)
191
+ - [FilterProvincesDto](docs/FilterProvincesDto.md)
192
+ - [FilterRoomDetailDto](docs/FilterRoomDetailDto.md)
193
+ - [FilterRoomPromotionDto](docs/FilterRoomPromotionDto.md)
194
+ - [FilterUserDto](docs/FilterUserDto.md)
195
+ - [GetAnalyticsQueryDto](docs/GetAnalyticsQueryDto.md)
196
+ - [GetTranslationsRequestDto](docs/GetTranslationsRequestDto.md)
197
+ - [GuestDetail](docs/GuestDetail.md)
198
+ - [HotelRoom](docs/HotelRoom.md)
199
+ - [HotelRoomPaginationResultDto](docs/HotelRoomPaginationResultDto.md)
200
+ - [HotelRoomTranslationDto](docs/HotelRoomTranslationDto.md)
201
+ - [Image](docs/Image.md)
202
+ - [ImageUploadResponseDto](docs/ImageUploadResponseDto.md)
203
+ - [ImmediateDeleteRoomsDto](docs/ImmediateDeleteRoomsDto.md)
204
+ - [InitiateForgotPasswordEmailDto](docs/InitiateForgotPasswordEmailDto.md)
205
+ - [ListTranslationResponseDto](docs/ListTranslationResponseDto.md)
206
+ - [ListTranslationResult](docs/ListTranslationResult.md)
207
+ - [LoginDto](docs/LoginDto.md)
208
+ - [LoginResponseDto](docs/LoginResponseDto.md)
209
+ - [LogoutResponseDto](docs/LogoutResponseDto.md)
210
+ - [NearBy](docs/NearBy.md)
211
+ - [OccupancyRateResponseDto](docs/OccupancyRateResponseDto.md)
212
+ - [PromotionTranslation](docs/PromotionTranslation.md)
213
+ - [PromotionTranslationDto](docs/PromotionTranslationDto.md)
214
+ - [Province](docs/Province.md)
215
+ - [ProvinceCount](docs/ProvinceCount.md)
216
+ - [ProvincePaginationResultDto](docs/ProvincePaginationResultDto.md)
217
+ - [ProvinceTranslationDto](docs/ProvinceTranslationDto.md)
218
+ - [ProvinceTranslationsInner](docs/ProvinceTranslationsInner.md)
219
+ - [QueryAmenityDto](docs/QueryAmenityDto.md)
220
+ - [QueryBookingsDto](docs/QueryBookingsDto.md)
221
+ - [QueryBranchesDto](docs/QueryBranchesDto.md)
222
+ - [QueryHotelRoomDto](docs/QueryHotelRoomDto.md)
223
+ - [QueryMyBookingsDto](docs/QueryMyBookingsDto.md)
224
+ - [QueryProvincesDto](docs/QueryProvincesDto.md)
225
+ - [QueryRoomDetailDto](docs/QueryRoomDetailDto.md)
226
+ - [QueryRoomPromotionDto](docs/QueryRoomPromotionDto.md)
227
+ - [QueryUsersDto](docs/QueryUsersDto.md)
228
+ - [RefreshTokenDto](docs/RefreshTokenDto.md)
229
+ - [RefreshTokenResponseDto](docs/RefreshTokenResponseDto.md)
230
+ - [RegisterDto](docs/RegisterDto.md)
231
+ - [RegisterResponseDto](docs/RegisterResponseDto.md)
232
+ - [ResetPasswordWithOTPEmailDto](docs/ResetPasswordWithOTPEmailDto.md)
233
+ - [ResponseStatus](docs/ResponseStatus.md)
234
+ - [ResponseWithMessage](docs/ResponseWithMessage.md)
235
+ - [RevenueByRoomTypeDto](docs/RevenueByRoomTypeDto.md)
236
+ - [RevenueTimelineDto](docs/RevenueTimelineDto.md)
237
+ - [RevokeSessionResponseDto](docs/RevokeSessionResponseDto.md)
238
+ - [RoomDetail](docs/RoomDetail.md)
239
+ - [RoomDetailInfinitePaginationResultDto](docs/RoomDetailInfinitePaginationResultDto.md)
240
+ - [RoomDetailPaginationResultDto](docs/RoomDetailPaginationResultDto.md)
241
+ - [RoomDetailTranslationDto](docs/RoomDetailTranslationDto.md)
242
+ - [RoomPerformanceDto](docs/RoomPerformanceDto.md)
243
+ - [RoomPriceHistory](docs/RoomPriceHistory.md)
244
+ - [RoomPriceHistoryTranslationDto](docs/RoomPriceHistoryTranslationDto.md)
245
+ - [RoomPriceHistoryTranslationsInner](docs/RoomPriceHistoryTranslationsInner.md)
246
+ - [RoomPromotion](docs/RoomPromotion.md)
247
+ - [RoomPromotionPaginationResultDto](docs/RoomPromotionPaginationResultDto.md)
248
+ - [SessionResponseDto](docs/SessionResponseDto.md)
249
+ - [SortAmenityDto](docs/SortAmenityDto.md)
250
+ - [SortBookingsDto](docs/SortBookingsDto.md)
251
+ - [SortBranchDto](docs/SortBranchDto.md)
252
+ - [SortHotelRoomDto](docs/SortHotelRoomDto.md)
253
+ - [SortProvinceDto](docs/SortProvinceDto.md)
254
+ - [SortRoomDetailDto](docs/SortRoomDetailDto.md)
255
+ - [SortRoomPromotionDto](docs/SortRoomPromotionDto.md)
256
+ - [SortUserDto](docs/SortUserDto.md)
257
+ - [Term](docs/Term.md)
258
+ - [TranslationContent](docs/TranslationContent.md)
259
+ - [TranslationData](docs/TranslationData.md)
260
+ - [UpdateAmenityDto](docs/UpdateAmenityDto.md)
261
+ - [UpdateBookingStatusDto](docs/UpdateBookingStatusDto.md)
262
+ - [UpdateBranchDto](docs/UpdateBranchDto.md)
263
+ - [UpdateHotelRoomDto](docs/UpdateHotelRoomDto.md)
264
+ - [UpdateProfileDto](docs/UpdateProfileDto.md)
265
+ - [UpdateProvinceDto](docs/UpdateProvinceDto.md)
266
+ - [UpdateRoomDetailDto](docs/UpdateRoomDetailDto.md)
267
+ - [UpdateRoomPriceHistoryDto](docs/UpdateRoomPriceHistoryDto.md)
268
+ - [UpdateRoomPromotionDto](docs/UpdateRoomPromotionDto.md)
269
+ - [User](docs/User.md)
270
+ - [UserCount](docs/UserCount.md)
271
+ - [UserDetail](docs/UserDetail.md)
272
+ - [UsersPaginationResultDto](docs/UsersPaginationResultDto.md)
273
+ - [UsersPaginationResultDtoMeta](docs/UsersPaginationResultDtoMeta.md)
274
+ - [VerificationEmailDto](docs/VerificationEmailDto.md)
275
+ - [VerifyCodeDto](docs/VerifyCodeDto.md)
276
+ - [VerifyCodeResponseDto](docs/VerifyCodeResponseDto.md)
277
+ - [VerifyEmailDto](docs/VerifyEmailDto.md)
278
+ - [VerifyEmailOTP](docs/VerifyEmailOTP.md)
279
+
280
+
281
+ <a id="documentation-for-authorization"></a>
282
+ ## Documentation For Authorization
283
+
284
+
285
+ Authentication schemes defined for the API:
286
+ <a id="bearer"></a>
287
+ ### bearer
288
+
289
+ - **Type**: Bearer authentication (JWT)
290
+
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ahomevilla-hotel/node-sdk",
3
3
  "repository": {
4
4
  "type": "git",
5
- "url": "git+https://github.com/KMA-TTCS-Nhom32/node-sdk.git"
5
+ "url": "git+https://github.com/KMA-TTCS-Nhom32/hotel-server.git"
6
6
  },
7
7
  "keywords": [
8
8
  "axios",
@@ -10,14 +10,14 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.3.1",
13
+ "version": "2025.07.05.153956",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"
17
17
  },
18
- "author": "Son DN",
18
+ "author": "Son DN <sondn@ahomevilla.team>",
19
19
  "license": "UNLICENSED",
20
- "description": "",
20
+ "description": "AHomeVilla Hotel Node.js SDK",
21
21
  "dependencies": {
22
22
  "axios": "^1.7.8"
23
23
  },
@@ -26,5 +26,9 @@
26
26
  },
27
27
  "publishConfig": {
28
28
  "registry": "https://registry.npmjs.org"
29
- }
30
- }
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "README.md"
33
+ ]
34
+ }
@@ -1,8 +0,0 @@
1
- .gitignore
2
- .npmignore
3
- api.ts
4
- base.ts
5
- common.ts
6
- configuration.ts
7
- git_push.sh
8
- index.ts
@@ -1 +0,0 @@
1
- 7.10.0
@@ -1,23 +0,0 @@
1
- # OpenAPI Generator Ignore
2
- # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md