@ahomevilla-hotel/node-sdk 1.0.17 → 1.0.19

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 +2307 -177
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface AddTranslationDto
30
+ */
31
+ export interface AddTranslationDto {
32
+ /**
33
+ * The language code for the translations
34
+ * @type {string}
35
+ * @memberof AddTranslationDto
36
+ */
37
+ 'language': string;
38
+ /**
39
+ * Array of translations to add
40
+ * @type {Array<TranslationData>}
41
+ * @memberof AddTranslationDto
42
+ */
43
+ 'data': Array<TranslationData>;
44
+ }
26
45
  /**
27
46
  *
28
47
  * @export
@@ -112,6 +131,268 @@ export const AmenityTypeEnum = {
112
131
 
113
132
  export type AmenityTypeEnum = typeof AmenityTypeEnum[keyof typeof AmenityTypeEnum];
114
133
 
134
+ /**
135
+ *
136
+ * @export
137
+ * @interface Booking
138
+ */
139
+ export interface Booking {
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof Booking
144
+ */
145
+ 'id': string;
146
+ /**
147
+ * Soft delete flag
148
+ * @type {boolean}
149
+ * @memberof Booking
150
+ */
151
+ 'isDeleted': boolean;
152
+ /**
153
+ * Soft delete timestamp
154
+ * @type {string}
155
+ * @memberof Booking
156
+ */
157
+ 'deletedAt': string | null;
158
+ /**
159
+ *
160
+ * @type {string}
161
+ * @memberof Booking
162
+ */
163
+ 'createdAt': string;
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof Booking
168
+ */
169
+ 'updatedAt': string;
170
+ /**
171
+ * Booking code
172
+ * @type {string}
173
+ * @memberof Booking
174
+ */
175
+ 'code': string;
176
+ /**
177
+ * Type of booking
178
+ * @type {string}
179
+ * @memberof Booking
180
+ */
181
+ 'type': BookingTypeEnum;
182
+ /**
183
+ * Type of booking
184
+ * @type {string}
185
+ * @memberof Booking
186
+ */
187
+ 'create_type': BookingCreateTypeEnum;
188
+ /**
189
+ * ID of the room being booked
190
+ * @type {string}
191
+ * @memberof Booking
192
+ */
193
+ 'roomId': string;
194
+ /**
195
+ * Room being booked
196
+ * @type {HotelRoom}
197
+ * @memberof Booking
198
+ */
199
+ 'room': HotelRoom;
200
+ /**
201
+ * ID of the user making the booking
202
+ * @type {string}
203
+ * @memberof Booking
204
+ */
205
+ 'userId': string;
206
+ /**
207
+ * User making the booking
208
+ * @type {User}
209
+ * @memberof Booking
210
+ */
211
+ 'user': User;
212
+ /**
213
+ * Booking start date
214
+ * @type {string}
215
+ * @memberof Booking
216
+ */
217
+ 'start_date': string;
218
+ /**
219
+ * Booking end date
220
+ * @type {string}
221
+ * @memberof Booking
222
+ */
223
+ 'end_date': string;
224
+ /**
225
+ * Booking start time
226
+ * @type {string}
227
+ * @memberof Booking
228
+ */
229
+ 'start_time': string;
230
+ /**
231
+ * Booking end time
232
+ * @type {string}
233
+ * @memberof Booking
234
+ */
235
+ 'end_time': string;
236
+ /**
237
+ * Number of adults
238
+ * @type {string}
239
+ * @memberof Booking
240
+ */
241
+ 'total_amount': string;
242
+ /**
243
+ * Booking status
244
+ * @type {string}
245
+ * @memberof Booking
246
+ */
247
+ 'status': BookingStatusEnum;
248
+ /**
249
+ * Reason for canceling the booking
250
+ * @type {string}
251
+ * @memberof Booking
252
+ */
253
+ 'cancel_reason': string;
254
+ /**
255
+ * Payment method
256
+ * @type {string}
257
+ * @memberof Booking
258
+ */
259
+ 'payment_method': BookingPaymentMethodEnum;
260
+ /**
261
+ * Number of guests
262
+ * @type {number}
263
+ * @memberof Booking
264
+ */
265
+ 'number_of_guests': number;
266
+ /**
267
+ * Number of adults
268
+ * @type {number}
269
+ * @memberof Booking
270
+ */
271
+ 'adults': number;
272
+ /**
273
+ * Number of children
274
+ * @type {number}
275
+ * @memberof Booking
276
+ */
277
+ 'children': number;
278
+ /**
279
+ * Number of infants
280
+ * @type {number}
281
+ * @memberof Booking
282
+ */
283
+ 'infants': number;
284
+ /**
285
+ * Special requirements
286
+ * @type {string}
287
+ * @memberof Booking
288
+ */
289
+ 'special_requests': string;
290
+ /**
291
+ * Check in time
292
+ * @type {string}
293
+ * @memberof Booking
294
+ */
295
+ 'check_in_time': string;
296
+ /**
297
+ * Check out time
298
+ * @type {string}
299
+ * @memberof Booking
300
+ */
301
+ 'check_out_time': string;
302
+ /**
303
+ * Payment status
304
+ * @type {string}
305
+ * @memberof Booking
306
+ */
307
+ 'payment_status': BookingPaymentStatusEnum;
308
+ /**
309
+ * Payment details
310
+ * @type {object}
311
+ * @memberof Booking
312
+ */
313
+ 'payment_details': object;
314
+ /**
315
+ * Guest details
316
+ * @type {GuestDetail}
317
+ * @memberof Booking
318
+ */
319
+ 'guest_details': GuestDetail;
320
+ /**
321
+ * Promotion code
322
+ * @type {string}
323
+ * @memberof Booking
324
+ */
325
+ 'promotion_code': string;
326
+ /**
327
+ * Is business trip
328
+ * @type {boolean}
329
+ * @memberof Booking
330
+ */
331
+ 'is_business_trip': boolean;
332
+ }
333
+
334
+ export const BookingTypeEnum = {
335
+ Hourly: 'HOURLY',
336
+ Nightly: 'NIGHTLY',
337
+ Daily: 'DAILY'
338
+ } as const;
339
+
340
+ export type BookingTypeEnum = typeof BookingTypeEnum[keyof typeof BookingTypeEnum];
341
+ export const BookingCreateTypeEnum = {
342
+ OnlineBooking: 'ONLINE_BOOKING',
343
+ AtHotel: 'AT_HOTEL'
344
+ } as const;
345
+
346
+ export type BookingCreateTypeEnum = typeof BookingCreateTypeEnum[keyof typeof BookingCreateTypeEnum];
347
+ export const BookingStatusEnum = {
348
+ Pending: 'PENDING',
349
+ WaitingForCheckIn: 'WAITING_FOR_CHECK_IN',
350
+ CheckedIn: 'CHECKED_IN',
351
+ Cancelled: 'CANCELLED',
352
+ Completed: 'COMPLETED',
353
+ Refunded: 'REFUNDED',
354
+ Rejected: 'REJECTED'
355
+ } as const;
356
+
357
+ export type BookingStatusEnum = typeof BookingStatusEnum[keyof typeof BookingStatusEnum];
358
+ export const BookingPaymentMethodEnum = {
359
+ Cash: 'CASH',
360
+ Banking: 'BANKING',
361
+ Zalopay: 'ZALOPAY',
362
+ Momo: 'MOMO',
363
+ VnPay: 'VN_PAY',
364
+ VietQr: 'VIET_QR'
365
+ } as const;
366
+
367
+ export type BookingPaymentMethodEnum = typeof BookingPaymentMethodEnum[keyof typeof BookingPaymentMethodEnum];
368
+ export const BookingPaymentStatusEnum = {
369
+ Unpaid: 'UNPAID',
370
+ Paid: 'PAID',
371
+ Failed: 'FAILED',
372
+ Refunded: 'REFUNDED'
373
+ } as const;
374
+
375
+ export type BookingPaymentStatusEnum = typeof BookingPaymentStatusEnum[keyof typeof BookingPaymentStatusEnum];
376
+
377
+ /**
378
+ *
379
+ * @export
380
+ * @interface BookingsPaginationResultDto
381
+ */
382
+ export interface BookingsPaginationResultDto {
383
+ /**
384
+ *
385
+ * @type {Array<Booking>}
386
+ * @memberof BookingsPaginationResultDto
387
+ */
388
+ 'data': Array<Booking>;
389
+ /**
390
+ *
391
+ * @type {UsersPaginationResultDtoMeta}
392
+ * @memberof BookingsPaginationResultDto
393
+ */
394
+ 'meta': UsersPaginationResultDtoMeta;
395
+ }
115
396
  /**
116
397
  *
117
398
  * @export
@@ -439,6 +720,216 @@ export const CreateAmenityDtoTypeEnum = {
439
720
 
440
721
  export type CreateAmenityDtoTypeEnum = typeof CreateAmenityDtoTypeEnum[keyof typeof CreateAmenityDtoTypeEnum];
441
722
 
723
+ /**
724
+ *
725
+ * @export
726
+ * @interface CreateBookingAtHotelDto
727
+ */
728
+ export interface CreateBookingAtHotelDto {
729
+ /**
730
+ * Booking type
731
+ * @type {string}
732
+ * @memberof CreateBookingAtHotelDto
733
+ */
734
+ 'type': CreateBookingAtHotelDtoTypeEnum;
735
+ /**
736
+ * Start date of the booking
737
+ * @type {string}
738
+ * @memberof CreateBookingAtHotelDto
739
+ */
740
+ 'start_date': string;
741
+ /**
742
+ * End date of the booking
743
+ * @type {string}
744
+ * @memberof CreateBookingAtHotelDto
745
+ */
746
+ 'end_date': string;
747
+ /**
748
+ * Start time of the booking
749
+ * @type {string}
750
+ * @memberof CreateBookingAtHotelDto
751
+ */
752
+ 'start_time': string;
753
+ /**
754
+ * End time of the booking
755
+ * @type {string}
756
+ * @memberof CreateBookingAtHotelDto
757
+ */
758
+ 'end_time': string;
759
+ /**
760
+ * Number of guests
761
+ * @type {number}
762
+ * @memberof CreateBookingAtHotelDto
763
+ */
764
+ 'number_of_guests': number;
765
+ /**
766
+ * Number of adults
767
+ * @type {number}
768
+ * @memberof CreateBookingAtHotelDto
769
+ */
770
+ 'adults': number;
771
+ /**
772
+ * Number of children
773
+ * @type {number}
774
+ * @memberof CreateBookingAtHotelDto
775
+ */
776
+ 'children': number;
777
+ /**
778
+ * Number of infants
779
+ * @type {number}
780
+ * @memberof CreateBookingAtHotelDto
781
+ */
782
+ 'infants': number;
783
+ /**
784
+ * Special requirements
785
+ * @type {string}
786
+ * @memberof CreateBookingAtHotelDto
787
+ */
788
+ 'special_requests'?: string;
789
+ /**
790
+ * Guest details
791
+ * @type {GuestDetail}
792
+ * @memberof CreateBookingAtHotelDto
793
+ */
794
+ 'guest_details'?: GuestDetail;
795
+ /**
796
+ * ID of the room being booked
797
+ * @type {string}
798
+ * @memberof CreateBookingAtHotelDto
799
+ */
800
+ 'roomId': string;
801
+ /**
802
+ * Check in time
803
+ * @type {string}
804
+ * @memberof CreateBookingAtHotelDto
805
+ */
806
+ 'check_in_time': string;
807
+ }
808
+
809
+ export const CreateBookingAtHotelDtoTypeEnum = {
810
+ Hourly: 'HOURLY',
811
+ Nightly: 'NIGHTLY',
812
+ Daily: 'DAILY'
813
+ } as const;
814
+
815
+ export type CreateBookingAtHotelDtoTypeEnum = typeof CreateBookingAtHotelDtoTypeEnum[keyof typeof CreateBookingAtHotelDtoTypeEnum];
816
+
817
+ /**
818
+ *
819
+ * @export
820
+ * @interface CreateBookingOnlineDto
821
+ */
822
+ export interface CreateBookingOnlineDto {
823
+ /**
824
+ * Booking type
825
+ * @type {string}
826
+ * @memberof CreateBookingOnlineDto
827
+ */
828
+ 'type': CreateBookingOnlineDtoTypeEnum;
829
+ /**
830
+ * Start date of the booking
831
+ * @type {string}
832
+ * @memberof CreateBookingOnlineDto
833
+ */
834
+ 'start_date': string;
835
+ /**
836
+ * End date of the booking
837
+ * @type {string}
838
+ * @memberof CreateBookingOnlineDto
839
+ */
840
+ 'end_date': string;
841
+ /**
842
+ * Start time of the booking
843
+ * @type {string}
844
+ * @memberof CreateBookingOnlineDto
845
+ */
846
+ 'start_time': string;
847
+ /**
848
+ * End time of the booking
849
+ * @type {string}
850
+ * @memberof CreateBookingOnlineDto
851
+ */
852
+ 'end_time': string;
853
+ /**
854
+ * Number of guests
855
+ * @type {number}
856
+ * @memberof CreateBookingOnlineDto
857
+ */
858
+ 'number_of_guests': number;
859
+ /**
860
+ * Number of adults
861
+ * @type {number}
862
+ * @memberof CreateBookingOnlineDto
863
+ */
864
+ 'adults': number;
865
+ /**
866
+ * Number of children
867
+ * @type {number}
868
+ * @memberof CreateBookingOnlineDto
869
+ */
870
+ 'children': number;
871
+ /**
872
+ * Number of infants
873
+ * @type {number}
874
+ * @memberof CreateBookingOnlineDto
875
+ */
876
+ 'infants': number;
877
+ /**
878
+ * Special requirements
879
+ * @type {string}
880
+ * @memberof CreateBookingOnlineDto
881
+ */
882
+ 'special_requests'?: string;
883
+ /**
884
+ * Guest details
885
+ * @type {GuestDetail}
886
+ * @memberof CreateBookingOnlineDto
887
+ */
888
+ 'guest_details'?: GuestDetail;
889
+ /**
890
+ * ID of the room detail being booked
891
+ * @type {string}
892
+ * @memberof CreateBookingOnlineDto
893
+ */
894
+ 'detailId': string;
895
+ /**
896
+ * Promotion code
897
+ * @type {string}
898
+ * @memberof CreateBookingOnlineDto
899
+ */
900
+ 'promotion_code'?: string;
901
+ /**
902
+ * Payment method
903
+ * @type {string}
904
+ * @memberof CreateBookingOnlineDto
905
+ */
906
+ 'payment_method'?: CreateBookingOnlineDtoPaymentMethodEnum;
907
+ /**
908
+ * Is this booking a business trip?
909
+ * @type {boolean}
910
+ * @memberof CreateBookingOnlineDto
911
+ */
912
+ 'is_business_trip'?: boolean;
913
+ }
914
+
915
+ export const CreateBookingOnlineDtoTypeEnum = {
916
+ Hourly: 'HOURLY',
917
+ Nightly: 'NIGHTLY',
918
+ Daily: 'DAILY'
919
+ } as const;
920
+
921
+ export type CreateBookingOnlineDtoTypeEnum = typeof CreateBookingOnlineDtoTypeEnum[keyof typeof CreateBookingOnlineDtoTypeEnum];
922
+ export const CreateBookingOnlineDtoPaymentMethodEnum = {
923
+ Cash: 'CASH',
924
+ Banking: 'BANKING',
925
+ Zalopay: 'ZALOPAY',
926
+ Momo: 'MOMO',
927
+ VnPay: 'VN_PAY',
928
+ VietQr: 'VIET_QR'
929
+ } as const;
930
+
931
+ export type CreateBookingOnlineDtoPaymentMethodEnum = typeof CreateBookingOnlineDtoPaymentMethodEnum[keyof typeof CreateBookingOnlineDtoPaymentMethodEnum];
932
+
442
933
  /**
443
934
  *
444
935
  * @export
@@ -650,12 +1141,6 @@ export interface CreateRoomDetailDto {
650
1141
  * @memberof CreateRoomDetailDto
651
1142
  */
652
1143
  '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
1144
  /**
660
1145
  * Hotel Room\'s base price per night
661
1146
  * @type {string}
@@ -663,23 +1148,11 @@ export interface CreateRoomDetailDto {
663
1148
  */
664
1149
  'base_price_per_night': string;
665
1150
  /**
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
1151
+ * Hotel Room\'s base price per day
673
1152
  * @type {string}
674
1153
  * @memberof CreateRoomDetailDto
675
1154
  */
676
1155
  '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;
683
1156
  }
684
1157
 
685
1158
  export const CreateRoomDetailDtoRoomTypeEnum = {
@@ -698,6 +1171,61 @@ export const CreateRoomDetailDtoBedTypeEnum = {
698
1171
 
699
1172
  export type CreateRoomDetailDtoBedTypeEnum = typeof CreateRoomDetailDtoBedTypeEnum[keyof typeof CreateRoomDetailDtoBedTypeEnum];
700
1173
 
1174
+ /**
1175
+ *
1176
+ * @export
1177
+ * @interface CreateRoomPriceHistoryDto
1178
+ */
1179
+ export interface CreateRoomPriceHistoryDto {
1180
+ /**
1181
+ * Day that the price is applied
1182
+ * @type {string}
1183
+ * @memberof CreateRoomPriceHistoryDto
1184
+ */
1185
+ 'name': string;
1186
+ /**
1187
+ * Description of the price history
1188
+ * @type {string}
1189
+ * @memberof CreateRoomPriceHistoryDto
1190
+ */
1191
+ 'description'?: string;
1192
+ /**
1193
+ * ID of the room detail
1194
+ * @type {string}
1195
+ * @memberof CreateRoomPriceHistoryDto
1196
+ */
1197
+ 'roomDetailId': string;
1198
+ /**
1199
+ * Hotel Room\'s base price per hour
1200
+ * @type {string}
1201
+ * @memberof CreateRoomPriceHistoryDto
1202
+ */
1203
+ 'price_per_hour'?: string;
1204
+ /**
1205
+ * Hotel Room\'s base price per day
1206
+ * @type {string}
1207
+ * @memberof CreateRoomPriceHistoryDto
1208
+ */
1209
+ 'price_per_day'?: string;
1210
+ /**
1211
+ * Hotel Room\'s base price per night
1212
+ * @type {string}
1213
+ * @memberof CreateRoomPriceHistoryDto
1214
+ */
1215
+ 'price_per_night'?: string;
1216
+ /**
1217
+ * Effective from date
1218
+ * @type {string}
1219
+ * @memberof CreateRoomPriceHistoryDto
1220
+ */
1221
+ 'effective_from': string;
1222
+ /**
1223
+ * Effective to date
1224
+ * @type {string}
1225
+ * @memberof CreateRoomPriceHistoryDto
1226
+ */
1227
+ 'effective_to'?: string;
1228
+ }
701
1229
  /**
702
1230
  *
703
1231
  * @export
@@ -729,6 +1257,37 @@ export interface CreateUserDto {
729
1257
  */
730
1258
  'name': string;
731
1259
  }
1260
+ /**
1261
+ *
1262
+ * @export
1263
+ * @interface DetailTranslationContent
1264
+ */
1265
+ export interface DetailTranslationContent {
1266
+ /**
1267
+ *
1268
+ * @type {string}
1269
+ * @memberof DetailTranslationContent
1270
+ */
1271
+ 'content': string;
1272
+ /**
1273
+ *
1274
+ * @type {number}
1275
+ * @memberof DetailTranslationContent
1276
+ */
1277
+ 'fuzzy': number;
1278
+ /**
1279
+ *
1280
+ * @type {number}
1281
+ * @memberof DetailTranslationContent
1282
+ */
1283
+ 'proofread': number;
1284
+ /**
1285
+ *
1286
+ * @type {string}
1287
+ * @memberof DetailTranslationContent
1288
+ */
1289
+ 'updated': string;
1290
+ }
732
1291
  /**
733
1292
  *
734
1293
  * @export
@@ -737,10 +1296,10 @@ export interface CreateUserDto {
737
1296
  export interface FilterAmenityDto {
738
1297
  /**
739
1298
  *
740
- * @type {string}
1299
+ * @type {Array<string>}
741
1300
  * @memberof FilterAmenityDto
742
1301
  */
743
- 'types'?: FilterAmenityDtoTypesEnum;
1302
+ 'types'?: Array<FilterAmenityDtoTypesEnum>;
744
1303
  /**
745
1304
  *
746
1305
  * @type {string}
@@ -757,6 +1316,117 @@ export const FilterAmenityDtoTypesEnum = {
757
1316
 
758
1317
  export type FilterAmenityDtoTypesEnum = typeof FilterAmenityDtoTypesEnum[keyof typeof FilterAmenityDtoTypesEnum];
759
1318
 
1319
+ /**
1320
+ *
1321
+ * @export
1322
+ * @interface FilterBookingsDto
1323
+ */
1324
+ export interface FilterBookingsDto {
1325
+ /**
1326
+ * Filter by booking status
1327
+ * @type {Array<string>}
1328
+ * @memberof FilterBookingsDto
1329
+ */
1330
+ 'status'?: Array<FilterBookingsDtoStatusEnum>;
1331
+ /**
1332
+ * Filter by booking type
1333
+ * @type {string}
1334
+ * @memberof FilterBookingsDto
1335
+ */
1336
+ 'type'?: FilterBookingsDtoTypeEnum;
1337
+ /**
1338
+ * Search by keyword
1339
+ * @type {string}
1340
+ * @memberof FilterBookingsDto
1341
+ */
1342
+ 'keyword'?: string;
1343
+ /**
1344
+ * Filter by branch
1345
+ * @type {string}
1346
+ * @memberof FilterBookingsDto
1347
+ */
1348
+ 'branchId'?: string;
1349
+ /**
1350
+ * Filter by user
1351
+ * @type {string}
1352
+ * @memberof FilterBookingsDto
1353
+ */
1354
+ 'userId'?: string;
1355
+ /**
1356
+ * Filter by room detail
1357
+ * @type {string}
1358
+ * @memberof FilterBookingsDto
1359
+ */
1360
+ 'detailId'?: string;
1361
+ /**
1362
+ * Filter by room
1363
+ * @type {string}
1364
+ * @memberof FilterBookingsDto
1365
+ */
1366
+ 'roomId'?: string;
1367
+ /**
1368
+ * Filter by start date
1369
+ * @type {string}
1370
+ * @memberof FilterBookingsDto
1371
+ */
1372
+ 'start_date'?: string;
1373
+ /**
1374
+ * Filter by end date
1375
+ * @type {string}
1376
+ * @memberof FilterBookingsDto
1377
+ */
1378
+ 'end_date'?: string;
1379
+ /**
1380
+ * Filter by payment status
1381
+ * @type {string}
1382
+ * @memberof FilterBookingsDto
1383
+ */
1384
+ 'payment_status'?: FilterBookingsDtoPaymentStatusEnum;
1385
+ /**
1386
+ * Filter by payment method
1387
+ * @type {string}
1388
+ * @memberof FilterBookingsDto
1389
+ */
1390
+ 'payment_method'?: FilterBookingsDtoPaymentMethodEnum;
1391
+ }
1392
+
1393
+ export const FilterBookingsDtoStatusEnum = {
1394
+ Pending: 'PENDING',
1395
+ WaitingForCheckIn: 'WAITING_FOR_CHECK_IN',
1396
+ CheckedIn: 'CHECKED_IN',
1397
+ Cancelled: 'CANCELLED',
1398
+ Completed: 'COMPLETED',
1399
+ Refunded: 'REFUNDED',
1400
+ Rejected: 'REJECTED'
1401
+ } as const;
1402
+
1403
+ export type FilterBookingsDtoStatusEnum = typeof FilterBookingsDtoStatusEnum[keyof typeof FilterBookingsDtoStatusEnum];
1404
+ export const FilterBookingsDtoTypeEnum = {
1405
+ Hourly: 'HOURLY',
1406
+ Nightly: 'NIGHTLY',
1407
+ Daily: 'DAILY'
1408
+ } as const;
1409
+
1410
+ export type FilterBookingsDtoTypeEnum = typeof FilterBookingsDtoTypeEnum[keyof typeof FilterBookingsDtoTypeEnum];
1411
+ export const FilterBookingsDtoPaymentStatusEnum = {
1412
+ Unpaid: 'UNPAID',
1413
+ Paid: 'PAID',
1414
+ Failed: 'FAILED',
1415
+ Refunded: 'REFUNDED'
1416
+ } as const;
1417
+
1418
+ export type FilterBookingsDtoPaymentStatusEnum = typeof FilterBookingsDtoPaymentStatusEnum[keyof typeof FilterBookingsDtoPaymentStatusEnum];
1419
+ export const FilterBookingsDtoPaymentMethodEnum = {
1420
+ Cash: 'CASH',
1421
+ Banking: 'BANKING',
1422
+ Zalopay: 'ZALOPAY',
1423
+ Momo: 'MOMO',
1424
+ VnPay: 'VN_PAY',
1425
+ VietQr: 'VIET_QR'
1426
+ } as const;
1427
+
1428
+ export type FilterBookingsDtoPaymentMethodEnum = typeof FilterBookingsDtoPaymentMethodEnum[keyof typeof FilterBookingsDtoPaymentMethodEnum];
1429
+
760
1430
  /**
761
1431
  *
762
1432
  * @export
@@ -841,6 +1511,32 @@ export const FilterHotelRoomDtoStatusEnum = {
841
1511
 
842
1512
  export type FilterHotelRoomDtoStatusEnum = typeof FilterHotelRoomDtoStatusEnum[keyof typeof FilterHotelRoomDtoStatusEnum];
843
1513
 
1514
+ /**
1515
+ *
1516
+ * @export
1517
+ * @interface FilterMyBookingsDto
1518
+ */
1519
+ export interface FilterMyBookingsDto {
1520
+ /**
1521
+ * Filter by booking status
1522
+ * @type {Array<string>}
1523
+ * @memberof FilterMyBookingsDto
1524
+ */
1525
+ 'status'?: Array<FilterMyBookingsDtoStatusEnum>;
1526
+ }
1527
+
1528
+ export const FilterMyBookingsDtoStatusEnum = {
1529
+ Pending: 'PENDING',
1530
+ WaitingForCheckIn: 'WAITING_FOR_CHECK_IN',
1531
+ CheckedIn: 'CHECKED_IN',
1532
+ Cancelled: 'CANCELLED',
1533
+ Completed: 'COMPLETED',
1534
+ Refunded: 'REFUNDED',
1535
+ Rejected: 'REJECTED'
1536
+ } as const;
1537
+
1538
+ export type FilterMyBookingsDtoStatusEnum = typeof FilterMyBookingsDtoStatusEnum[keyof typeof FilterMyBookingsDtoStatusEnum];
1539
+
844
1540
  /**
845
1541
  *
846
1542
  * @export
@@ -972,6 +1668,59 @@ export const FilterUserDtoRolesEnum = {
972
1668
 
973
1669
  export type FilterUserDtoRolesEnum = typeof FilterUserDtoRolesEnum[keyof typeof FilterUserDtoRolesEnum];
974
1670
 
1671
+ /**
1672
+ *
1673
+ * @export
1674
+ * @interface GetTranslationsRequestDto
1675
+ */
1676
+ export interface GetTranslationsRequestDto {
1677
+ /**
1678
+ * Language code to fetch translations for
1679
+ * @type {string}
1680
+ * @memberof GetTranslationsRequestDto
1681
+ */
1682
+ 'language'?: string;
1683
+ }
1684
+ /**
1685
+ *
1686
+ * @export
1687
+ * @interface GuestDetail
1688
+ */
1689
+ export interface GuestDetail {
1690
+ /**
1691
+ * Guest identification number
1692
+ * @type {string}
1693
+ * @memberof GuestDetail
1694
+ */
1695
+ 'identification_number': string;
1696
+ /**
1697
+ * Guest identification card type
1698
+ * @type {string}
1699
+ * @memberof GuestDetail
1700
+ */
1701
+ 'identification_card': GuestDetailIdentificationCardEnum;
1702
+ /**
1703
+ * Front image of the guest identification card
1704
+ * @type {Image}
1705
+ * @memberof GuestDetail
1706
+ */
1707
+ 'front_image': Image;
1708
+ /**
1709
+ * Back image of the guest identification card
1710
+ * @type {Image}
1711
+ * @memberof GuestDetail
1712
+ */
1713
+ 'back_image': Image;
1714
+ }
1715
+
1716
+ export const GuestDetailIdentificationCardEnum = {
1717
+ Cccd: 'CCCD',
1718
+ Cmnd: 'CMND',
1719
+ Cmt: 'CMT'
1720
+ } as const;
1721
+
1722
+ export type GuestDetailIdentificationCardEnum = typeof GuestDetailIdentificationCardEnum[keyof typeof GuestDetailIdentificationCardEnum];
1723
+
975
1724
  /**
976
1725
  *
977
1726
  * @export
@@ -1119,6 +1868,38 @@ export interface InitiateForgotPasswordEmailDto {
1119
1868
  */
1120
1869
  'email': string;
1121
1870
  }
1871
+ /**
1872
+ *
1873
+ * @export
1874
+ * @interface ListTranslationResponseDto
1875
+ */
1876
+ export interface ListTranslationResponseDto {
1877
+ /**
1878
+ *
1879
+ * @type {ResponseStatus}
1880
+ * @memberof ListTranslationResponseDto
1881
+ */
1882
+ 'response': ResponseStatus;
1883
+ /**
1884
+ *
1885
+ * @type {ListTranslationResult}
1886
+ * @memberof ListTranslationResponseDto
1887
+ */
1888
+ 'result': ListTranslationResult;
1889
+ }
1890
+ /**
1891
+ *
1892
+ * @export
1893
+ * @interface ListTranslationResult
1894
+ */
1895
+ export interface ListTranslationResult {
1896
+ /**
1897
+ *
1898
+ * @type {Array<Term>}
1899
+ * @memberof ListTranslationResult
1900
+ */
1901
+ 'terms': Array<Term>;
1902
+ }
1122
1903
  /**
1123
1904
  *
1124
1905
  * @export
@@ -1319,6 +2100,37 @@ export interface QueryAmenityDto {
1319
2100
  */
1320
2101
  'sort'?: string;
1321
2102
  }
2103
+ /**
2104
+ *
2105
+ * @export
2106
+ * @interface QueryBookingsDto
2107
+ */
2108
+ export interface QueryBookingsDto {
2109
+ /**
2110
+ *
2111
+ * @type {number}
2112
+ * @memberof QueryBookingsDto
2113
+ */
2114
+ 'page'?: number;
2115
+ /**
2116
+ *
2117
+ * @type {number}
2118
+ * @memberof QueryBookingsDto
2119
+ */
2120
+ 'pageSize'?: number;
2121
+ /**
2122
+ * JSON string of FilterBookingsDto
2123
+ * @type {string}
2124
+ * @memberof QueryBookingsDto
2125
+ */
2126
+ 'filters'?: string;
2127
+ /**
2128
+ * JSON string of SortBookingsDto[]
2129
+ * @type {string}
2130
+ * @memberof QueryBookingsDto
2131
+ */
2132
+ 'sort'?: string;
2133
+ }
1322
2134
  /**
1323
2135
  *
1324
2136
  * @export
@@ -1381,6 +2193,31 @@ export interface QueryHotelRoomDto {
1381
2193
  */
1382
2194
  'sort'?: string;
1383
2195
  }
2196
+ /**
2197
+ *
2198
+ * @export
2199
+ * @interface QueryMyBookingsDto
2200
+ */
2201
+ export interface QueryMyBookingsDto {
2202
+ /**
2203
+ *
2204
+ * @type {number}
2205
+ * @memberof QueryMyBookingsDto
2206
+ */
2207
+ 'page'?: number;
2208
+ /**
2209
+ *
2210
+ * @type {number}
2211
+ * @memberof QueryMyBookingsDto
2212
+ */
2213
+ 'pageSize'?: number;
2214
+ /**
2215
+ * Filter my bookings
2216
+ * @type {FilterMyBookingsDto}
2217
+ * @memberof QueryMyBookingsDto
2218
+ */
2219
+ 'filters'?: FilterMyBookingsDto;
2220
+ }
1384
2221
  /**
1385
2222
  *
1386
2223
  * @export
@@ -1603,6 +2440,31 @@ export interface ResetPasswordWithOTPEmailDto {
1603
2440
  */
1604
2441
  'newPassword': string;
1605
2442
  }
2443
+ /**
2444
+ *
2445
+ * @export
2446
+ * @interface ResponseStatus
2447
+ */
2448
+ export interface ResponseStatus {
2449
+ /**
2450
+ *
2451
+ * @type {string}
2452
+ * @memberof ResponseStatus
2453
+ */
2454
+ 'status': string;
2455
+ /**
2456
+ *
2457
+ * @type {string}
2458
+ * @memberof ResponseStatus
2459
+ */
2460
+ 'code': string;
2461
+ /**
2462
+ *
2463
+ * @type {string}
2464
+ * @memberof ResponseStatus
2465
+ */
2466
+ 'message': string;
2467
+ }
1606
2468
  /**
1607
2469
  *
1608
2470
  * @export
@@ -1831,22 +2693,119 @@ export interface RoomDetailPaginationResultDto {
1831
2693
  /**
1832
2694
  *
1833
2695
  * @export
1834
- * @interface SessionResponseDto
2696
+ * @interface RoomPriceHistory
1835
2697
  */
1836
- export interface SessionResponseDto {
2698
+ export interface RoomPriceHistory {
1837
2699
  /**
1838
- * List of active user sessions
1839
- * @type {Array<string>}
1840
- * @memberof SessionResponseDto
2700
+ *
2701
+ * @type {string}
2702
+ * @memberof RoomPriceHistory
1841
2703
  */
1842
- 'sessions': Array<string>;
1843
- }
1844
- /**
1845
- *
1846
- * @export
1847
- * @interface SortAmenityDto
1848
- */
1849
- export interface SortAmenityDto {
2704
+ 'id': string;
2705
+ /**
2706
+ * Soft delete flag
2707
+ * @type {boolean}
2708
+ * @memberof RoomPriceHistory
2709
+ */
2710
+ 'isDeleted': boolean;
2711
+ /**
2712
+ * Soft delete timestamp
2713
+ * @type {string}
2714
+ * @memberof RoomPriceHistory
2715
+ */
2716
+ 'deletedAt': string | null;
2717
+ /**
2718
+ *
2719
+ * @type {string}
2720
+ * @memberof RoomPriceHistory
2721
+ */
2722
+ 'createdAt': string;
2723
+ /**
2724
+ *
2725
+ * @type {string}
2726
+ * @memberof RoomPriceHistory
2727
+ */
2728
+ 'updatedAt': string;
2729
+ /**
2730
+ * Name of the price history
2731
+ * @type {string}
2732
+ * @memberof RoomPriceHistory
2733
+ */
2734
+ 'name': string;
2735
+ /**
2736
+ * Description of the price history
2737
+ * @type {string}
2738
+ * @memberof RoomPriceHistory
2739
+ */
2740
+ 'description': string;
2741
+ /**
2742
+ * ID of the room detail this price history belongs to
2743
+ * @type {string}
2744
+ * @memberof RoomPriceHistory
2745
+ */
2746
+ 'roomDetailId': string;
2747
+ /**
2748
+ * The associated room detail
2749
+ * @type {RoomDetail}
2750
+ * @memberof RoomPriceHistory
2751
+ */
2752
+ 'roomDetail'?: RoomDetail;
2753
+ /**
2754
+ * Price per hour for the room
2755
+ * @type {string}
2756
+ * @memberof RoomPriceHistory
2757
+ */
2758
+ 'price_per_hour': string;
2759
+ /**
2760
+ * Price per night for the room
2761
+ * @type {string}
2762
+ * @memberof RoomPriceHistory
2763
+ */
2764
+ 'price_per_night': string;
2765
+ /**
2766
+ * Price per day for the room
2767
+ * @type {string}
2768
+ * @memberof RoomPriceHistory
2769
+ */
2770
+ 'price_per_day': string;
2771
+ /**
2772
+ * Start date when this price becomes effective
2773
+ * @type {string}
2774
+ * @memberof RoomPriceHistory
2775
+ */
2776
+ 'effective_from': string;
2777
+ /**
2778
+ * End date when this price expires
2779
+ * @type {string}
2780
+ * @memberof RoomPriceHistory
2781
+ */
2782
+ 'effective_to': string;
2783
+ /**
2784
+ * Whether this price is currently being applied
2785
+ * @type {boolean}
2786
+ * @memberof RoomPriceHistory
2787
+ */
2788
+ 'is_applied': boolean;
2789
+ }
2790
+ /**
2791
+ *
2792
+ * @export
2793
+ * @interface SessionResponseDto
2794
+ */
2795
+ export interface SessionResponseDto {
2796
+ /**
2797
+ * List of active user sessions
2798
+ * @type {Array<string>}
2799
+ * @memberof SessionResponseDto
2800
+ */
2801
+ 'sessions': Array<string>;
2802
+ }
2803
+ /**
2804
+ *
2805
+ * @export
2806
+ * @interface SortAmenityDto
2807
+ */
2808
+ export interface SortAmenityDto {
1850
2809
  /**
1851
2810
  * Key of Entity to sort
1852
2811
  * @type {string}
@@ -1868,6 +2827,33 @@ export const SortAmenityDtoOrderEnum = {
1868
2827
 
1869
2828
  export type SortAmenityDtoOrderEnum = typeof SortAmenityDtoOrderEnum[keyof typeof SortAmenityDtoOrderEnum];
1870
2829
 
2830
+ /**
2831
+ *
2832
+ * @export
2833
+ * @interface SortBookingsDto
2834
+ */
2835
+ export interface SortBookingsDto {
2836
+ /**
2837
+ * Key of Entity to sort
2838
+ * @type {string}
2839
+ * @memberof SortBookingsDto
2840
+ */
2841
+ 'orderBy': string;
2842
+ /**
2843
+ * Order of sorting
2844
+ * @type {string}
2845
+ * @memberof SortBookingsDto
2846
+ */
2847
+ 'order': SortBookingsDtoOrderEnum;
2848
+ }
2849
+
2850
+ export const SortBookingsDtoOrderEnum = {
2851
+ Asc: 'asc',
2852
+ Desc: 'desc'
2853
+ } as const;
2854
+
2855
+ export type SortBookingsDtoOrderEnum = typeof SortBookingsDtoOrderEnum[keyof typeof SortBookingsDtoOrderEnum];
2856
+
1871
2857
  /**
1872
2858
  *
1873
2859
  * @export
@@ -2003,6 +2989,93 @@ export const SortUserDtoOrderEnum = {
2003
2989
 
2004
2990
  export type SortUserDtoOrderEnum = typeof SortUserDtoOrderEnum[keyof typeof SortUserDtoOrderEnum];
2005
2991
 
2992
+ /**
2993
+ *
2994
+ * @export
2995
+ * @interface Term
2996
+ */
2997
+ export interface Term {
2998
+ /**
2999
+ *
3000
+ * @type {string}
3001
+ * @memberof Term
3002
+ */
3003
+ 'term': string;
3004
+ /**
3005
+ *
3006
+ * @type {string}
3007
+ * @memberof Term
3008
+ */
3009
+ 'context': string;
3010
+ /**
3011
+ *
3012
+ * @type {string}
3013
+ * @memberof Term
3014
+ */
3015
+ 'plural'?: string;
3016
+ /**
3017
+ *
3018
+ * @type {string}
3019
+ * @memberof Term
3020
+ */
3021
+ 'created'?: string;
3022
+ /**
3023
+ *
3024
+ * @type {string}
3025
+ * @memberof Term
3026
+ */
3027
+ 'updated'?: string;
3028
+ /**
3029
+ *
3030
+ * @type {string}
3031
+ * @memberof Term
3032
+ */
3033
+ 'reference'?: string;
3034
+ /**
3035
+ *
3036
+ * @type {DetailTranslationContent}
3037
+ * @memberof Term
3038
+ */
3039
+ 'translation': DetailTranslationContent;
3040
+ }
3041
+ /**
3042
+ *
3043
+ * @export
3044
+ * @interface TranslationContent
3045
+ */
3046
+ export interface TranslationContent {
3047
+ /**
3048
+ *
3049
+ * @type {string}
3050
+ * @memberof TranslationContent
3051
+ */
3052
+ 'content': string;
3053
+ }
3054
+ /**
3055
+ *
3056
+ * @export
3057
+ * @interface TranslationData
3058
+ */
3059
+ export interface TranslationData {
3060
+ /**
3061
+ * The term to translate
3062
+ * @type {string}
3063
+ * @memberof TranslationData
3064
+ */
3065
+ 'term': string;
3066
+ /**
3067
+ *
3068
+ * @type {TranslationContent}
3069
+ * @memberof TranslationData
3070
+ */
3071
+ 'translation': TranslationContent;
3072
+ /**
3073
+ * Optional context for the translation
3074
+ * @type {string}
3075
+ * @memberof TranslationData
3076
+ */
3077
+ 'context'?: string;
3078
+ }
2006
3079
  /**
2007
3080
  *
2008
3081
  * @export
@@ -2318,29 +3391,29 @@ export interface UpdateRoomDetailDto {
2318
3391
  */
2319
3392
  'base_price_per_hour'?: string;
2320
3393
  /**
2321
- * Hotel Room\'s special price per hour
3394
+ * Hotel Room\'s base price per night
2322
3395
  * @type {string}
2323
3396
  * @memberof UpdateRoomDetailDto
2324
3397
  */
2325
- 'special_price_per_hour'?: string;
3398
+ 'base_price_per_night'?: string;
2326
3399
  /**
2327
- * Hotel Room\'s base price per night
3400
+ * Hotel Room\'s base price per day
2328
3401
  * @type {string}
2329
3402
  * @memberof UpdateRoomDetailDto
2330
3403
  */
2331
- 'base_price_per_night'?: string;
3404
+ 'base_price_per_day'?: string;
2332
3405
  /**
2333
- * Hotel Room\'s special price per night
3406
+ * Hotel Room\'s special price per hour
2334
3407
  * @type {string}
2335
3408
  * @memberof UpdateRoomDetailDto
2336
3409
  */
2337
- 'special_price_per_night'?: string;
3410
+ 'special_price_per_hour'?: string;
2338
3411
  /**
2339
- * Hotel Room\'s base price per day
3412
+ * Hotel Room\'s special price per night
2340
3413
  * @type {string}
2341
3414
  * @memberof UpdateRoomDetailDto
2342
3415
  */
2343
- 'base_price_per_day'?: string;
3416
+ 'special_price_per_night'?: string;
2344
3417
  /**
2345
3418
  * Hotel Room\'s special price per day
2346
3419
  * @type {string}
@@ -2365,6 +3438,55 @@ export const UpdateRoomDetailDtoBedTypeEnum = {
2365
3438
 
2366
3439
  export type UpdateRoomDetailDtoBedTypeEnum = typeof UpdateRoomDetailDtoBedTypeEnum[keyof typeof UpdateRoomDetailDtoBedTypeEnum];
2367
3440
 
3441
+ /**
3442
+ *
3443
+ * @export
3444
+ * @interface UpdateRoomPriceHistoryDto
3445
+ */
3446
+ export interface UpdateRoomPriceHistoryDto {
3447
+ /**
3448
+ * Day that the price is applied
3449
+ * @type {string}
3450
+ * @memberof UpdateRoomPriceHistoryDto
3451
+ */
3452
+ 'name'?: string;
3453
+ /**
3454
+ * Description of the price history
3455
+ * @type {string}
3456
+ * @memberof UpdateRoomPriceHistoryDto
3457
+ */
3458
+ 'description'?: string;
3459
+ /**
3460
+ * Hotel Room\'s base price per hour
3461
+ * @type {string}
3462
+ * @memberof UpdateRoomPriceHistoryDto
3463
+ */
3464
+ 'price_per_hour'?: string;
3465
+ /**
3466
+ * Hotel Room\'s base price per day
3467
+ * @type {string}
3468
+ * @memberof UpdateRoomPriceHistoryDto
3469
+ */
3470
+ 'price_per_day'?: string;
3471
+ /**
3472
+ * Hotel Room\'s base price per night
3473
+ * @type {string}
3474
+ * @memberof UpdateRoomPriceHistoryDto
3475
+ */
3476
+ 'price_per_night'?: string;
3477
+ /**
3478
+ * Effective from date
3479
+ * @type {string}
3480
+ * @memberof UpdateRoomPriceHistoryDto
3481
+ */
3482
+ 'effective_from'?: string;
3483
+ /**
3484
+ * Effective to date
3485
+ * @type {string}
3486
+ * @memberof UpdateRoomPriceHistoryDto
3487
+ */
3488
+ 'effective_to'?: string;
3489
+ }
2368
3490
  /**
2369
3491
  *
2370
3492
  * @export
@@ -3971,181 +5093,682 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
3971
5093
  * @param {*} [options] Override http request option.
3972
5094
  * @throws {RequiredError}
3973
5095
  */
3974
- authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3975
- return localVarFp.authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(axios, basePath));
5096
+ authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5097
+ return localVarFp.authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(axios, basePath));
5098
+ },
5099
+ };
5100
+ };
5101
+
5102
+ /**
5103
+ * AuthApi - object-oriented interface
5104
+ * @export
5105
+ * @class AuthApi
5106
+ * @extends {BaseAPI}
5107
+ */
5108
+ export class AuthApi extends BaseAPI {
5109
+ /**
5110
+ *
5111
+ * @summary Change user password
5112
+ * @param {ChangePasswordDto} changePasswordDto
5113
+ * @param {*} [options] Override http request option.
5114
+ * @throws {RequiredError}
5115
+ * @memberof AuthApi
5116
+ */
5117
+ public authControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig) {
5118
+ return AuthApiFp(this.configuration).authControllerChangePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
5119
+ }
5120
+
5121
+ /**
5122
+ * Retrieve all active sessions for the current user
5123
+ * @summary Get active sessions
5124
+ * @param {*} [options] Override http request option.
5125
+ * @throws {RequiredError}
5126
+ * @memberof AuthApi
5127
+ */
5128
+ public authControllerGetActiveSessions(options?: RawAxiosRequestConfig) {
5129
+ return AuthApiFp(this.configuration).authControllerGetActiveSessions(options).then((request) => request(this.axios, this.basePath));
5130
+ }
5131
+
5132
+ /**
5133
+ *
5134
+ * @summary Get current user profile
5135
+ * @param {*} [options] Override http request option.
5136
+ * @throws {RequiredError}
5137
+ * @memberof AuthApi
5138
+ */
5139
+ public authControllerGetProfile(options?: RawAxiosRequestConfig) {
5140
+ return AuthApiFp(this.configuration).authControllerGetProfile(options).then((request) => request(this.axios, this.basePath));
5141
+ }
5142
+
5143
+ /**
5144
+ * Get analytics data for user sessions. Requires ADMIN role.
5145
+ * @summary Get session analytics
5146
+ * @param {string} userId
5147
+ * @param {*} [options] Override http request option.
5148
+ * @throws {RequiredError}
5149
+ * @memberof AuthApi
5150
+ */
5151
+ public authControllerGetSessionAnalytics(userId: string, options?: RawAxiosRequestConfig) {
5152
+ return AuthApiFp(this.configuration).authControllerGetSessionAnalytics(userId, options).then((request) => request(this.axios, this.basePath));
5153
+ }
5154
+
5155
+ /**
5156
+ * Get suspicious activities for a specific user. Requires ADMIN role.
5157
+ * @summary Get suspicious activities
5158
+ * @param {string} userId
5159
+ * @param {*} [options] Override http request option.
5160
+ * @throws {RequiredError}
5161
+ * @memberof AuthApi
5162
+ */
5163
+ public authControllerGetSuspiciousActivities(userId: string, options?: RawAxiosRequestConfig) {
5164
+ return AuthApiFp(this.configuration).authControllerGetSuspiciousActivities(userId, options).then((request) => request(this.axios, this.basePath));
5165
+ }
5166
+
5167
+ /**
5168
+ *
5169
+ * @summary Initiate forgot password process
5170
+ * @param {InitiateForgotPasswordEmailDto} initiateForgotPasswordEmailDto
5171
+ * @param {*} [options] Override http request option.
5172
+ * @throws {RequiredError}
5173
+ * @memberof AuthApi
5174
+ */
5175
+ public authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto: InitiateForgotPasswordEmailDto, options?: RawAxiosRequestConfig) {
5176
+ return AuthApiFp(this.configuration).authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto, options).then((request) => request(this.axios, this.basePath));
5177
+ }
5178
+
5179
+ /**
5180
+ *
5181
+ * @param {string} userAgent
5182
+ * @param {LoginDto} loginDto
5183
+ * @param {*} [options] Override http request option.
5184
+ * @throws {RequiredError}
5185
+ * @memberof AuthApi
5186
+ */
5187
+ public authControllerLogin(userAgent: string, loginDto: LoginDto, options?: RawAxiosRequestConfig) {
5188
+ return AuthApiFp(this.configuration).authControllerLogin(userAgent, loginDto, options).then((request) => request(this.axios, this.basePath));
5189
+ }
5190
+
5191
+ /**
5192
+ * Revoke the current refresh token, effectively logging out the user
5193
+ * @summary Logout user
5194
+ * @param {*} [options] Override http request option.
5195
+ * @throws {RequiredError}
5196
+ * @memberof AuthApi
5197
+ */
5198
+ public authControllerLogout(options?: RawAxiosRequestConfig) {
5199
+ return AuthApiFp(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
5200
+ }
5201
+
5202
+ /**
5203
+ * Exchange a valid refresh token for a new access token and refresh token pair
5204
+ * @summary Refresh access token
5205
+ * @param {RefreshTokenDto} refreshTokenDto
5206
+ * @param {*} [options] Override http request option.
5207
+ * @throws {RequiredError}
5208
+ * @memberof AuthApi
5209
+ */
5210
+ public authControllerRefreshTokens(refreshTokenDto: RefreshTokenDto, options?: RawAxiosRequestConfig) {
5211
+ return AuthApiFp(this.configuration).authControllerRefreshTokens(refreshTokenDto, options).then((request) => request(this.axios, this.basePath));
5212
+ }
5213
+
5214
+ /**
5215
+ *
5216
+ * @param {RegisterDto} registerDto
5217
+ * @param {*} [options] Override http request option.
5218
+ * @throws {RequiredError}
5219
+ * @memberof AuthApi
5220
+ */
5221
+ public authControllerRegister(registerDto: RegisterDto, options?: RawAxiosRequestConfig) {
5222
+ return AuthApiFp(this.configuration).authControllerRegister(registerDto, options).then((request) => request(this.axios, this.basePath));
5223
+ }
5224
+
5225
+ /**
5226
+ *
5227
+ * @summary Reset password using OTP
5228
+ * @param {ResetPasswordWithOTPEmailDto} resetPasswordWithOTPEmailDto
5229
+ * @param {*} [options] Override http request option.
5230
+ * @throws {RequiredError}
5231
+ * @memberof AuthApi
5232
+ */
5233
+ public authControllerResetPasswordWithOTP(resetPasswordWithOTPEmailDto: ResetPasswordWithOTPEmailDto, options?: RawAxiosRequestConfig) {
5234
+ return AuthApiFp(this.configuration).authControllerResetPasswordWithOTP(resetPasswordWithOTPEmailDto, options).then((request) => request(this.axios, this.basePath));
5235
+ }
5236
+
5237
+ /**
5238
+ * Revoke a specific session by its ID
5239
+ * @summary Revoke specific session
5240
+ * @param {string} sessionId
5241
+ * @param {*} [options] Override http request option.
5242
+ * @throws {RequiredError}
5243
+ * @memberof AuthApi
5244
+ */
5245
+ public authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig) {
5246
+ return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
5247
+ }
5248
+
5249
+ /**
5250
+ *
5251
+ * @summary Update user profile
5252
+ * @param {UpdateProfileDto} updateProfileDto
5253
+ * @param {*} [options] Override http request option.
5254
+ * @throws {RequiredError}
5255
+ * @memberof AuthApi
5256
+ */
5257
+ public authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig) {
5258
+ return AuthApiFp(this.configuration).authControllerUpdateProfile(updateProfileDto, options).then((request) => request(this.axios, this.basePath));
5259
+ }
5260
+
5261
+ /**
5262
+ *
5263
+ * @summary Verify email with OTP code
5264
+ * @param {VerifyEmailDto} verifyEmailDto
5265
+ * @param {*} [options] Override http request option.
5266
+ * @throws {RequiredError}
5267
+ * @memberof AuthApi
5268
+ */
5269
+ public authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig) {
5270
+ return AuthApiFp(this.configuration).authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
5271
+ }
5272
+ }
5273
+
5274
+
5275
+
5276
+ /**
5277
+ * BookingApi - axios parameter creator
5278
+ * @export
5279
+ */
5280
+ export const BookingApiAxiosParamCreator = function (configuration?: Configuration) {
5281
+ return {
5282
+ /**
5283
+ *
5284
+ * @summary Create a new booking directly at the hotel
5285
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
5286
+ * @param {*} [options] Override http request option.
5287
+ * @throws {RequiredError}
5288
+ */
5289
+ bookingControllerCreateBookingDirectly: async (createBookingAtHotelDto: CreateBookingAtHotelDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5290
+ // verify required parameter 'createBookingAtHotelDto' is not null or undefined
5291
+ assertParamExists('bookingControllerCreateBookingDirectly', 'createBookingAtHotelDto', createBookingAtHotelDto)
5292
+ const localVarPath = `/api/booking/directly`;
5293
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5294
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5295
+ let baseOptions;
5296
+ if (configuration) {
5297
+ baseOptions = configuration.baseOptions;
5298
+ }
5299
+
5300
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5301
+ const localVarHeaderParameter = {} as any;
5302
+ const localVarQueryParameter = {} as any;
5303
+
5304
+
5305
+
5306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5307
+
5308
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5310
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5311
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingAtHotelDto, localVarRequestOptions, configuration)
5312
+
5313
+ return {
5314
+ url: toPathString(localVarUrlObj),
5315
+ options: localVarRequestOptions,
5316
+ };
5317
+ },
5318
+ /**
5319
+ *
5320
+ * @summary Create a new booking online
5321
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
5322
+ * @param {*} [options] Override http request option.
5323
+ * @throws {RequiredError}
5324
+ */
5325
+ bookingControllerCreateBookingOnline: async (createBookingOnlineDto: CreateBookingOnlineDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5326
+ // verify required parameter 'createBookingOnlineDto' is not null or undefined
5327
+ assertParamExists('bookingControllerCreateBookingOnline', 'createBookingOnlineDto', createBookingOnlineDto)
5328
+ const localVarPath = `/api/booking`;
5329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5330
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5331
+ let baseOptions;
5332
+ if (configuration) {
5333
+ baseOptions = configuration.baseOptions;
5334
+ }
5335
+
5336
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5337
+ const localVarHeaderParameter = {} as any;
5338
+ const localVarQueryParameter = {} as any;
5339
+
5340
+
5341
+
5342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5343
+
5344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5346
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5347
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingOnlineDto, localVarRequestOptions, configuration)
5348
+
5349
+ return {
5350
+ url: toPathString(localVarUrlObj),
5351
+ options: localVarRequestOptions,
5352
+ };
5353
+ },
5354
+ /**
5355
+ *
5356
+ * @summary Get booking details
5357
+ * @param {string} bookingId
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ */
5361
+ bookingControllerFindById: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5362
+ // verify required parameter 'bookingId' is not null or undefined
5363
+ assertParamExists('bookingControllerFindById', 'bookingId', bookingId)
5364
+ const localVarPath = `/api/booking/{bookingId}`
5365
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
5366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5367
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5368
+ let baseOptions;
5369
+ if (configuration) {
5370
+ baseOptions = configuration.baseOptions;
5371
+ }
5372
+
5373
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5374
+ const localVarHeaderParameter = {} as any;
5375
+ const localVarQueryParameter = {} as any;
5376
+
5377
+
5378
+
5379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5381
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5382
+
5383
+ return {
5384
+ url: toPathString(localVarUrlObj),
5385
+ options: localVarRequestOptions,
5386
+ };
5387
+ },
5388
+ /**
5389
+ *
5390
+ * @summary Get all bookings with pagination and filters
5391
+ * @param {number} [page]
5392
+ * @param {number} [pageSize]
5393
+ * @param {string} [filters] JSON string of FilterBookingsDto
5394
+ * @param {string} [sort] JSON string of SortBookingsDto[]
5395
+ * @param {*} [options] Override http request option.
5396
+ * @throws {RequiredError}
5397
+ */
5398
+ bookingControllerGetBookings: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5399
+ const localVarPath = `/api/booking`;
5400
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5401
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5402
+ let baseOptions;
5403
+ if (configuration) {
5404
+ baseOptions = configuration.baseOptions;
5405
+ }
5406
+
5407
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5408
+ const localVarHeaderParameter = {} as any;
5409
+ const localVarQueryParameter = {} as any;
5410
+
5411
+ if (page !== undefined) {
5412
+ localVarQueryParameter['page'] = page;
5413
+ }
5414
+
5415
+ if (pageSize !== undefined) {
5416
+ localVarQueryParameter['pageSize'] = pageSize;
5417
+ }
5418
+
5419
+ if (filters !== undefined) {
5420
+ localVarQueryParameter['filters'] = filters;
5421
+ }
5422
+
5423
+ if (sort !== undefined) {
5424
+ localVarQueryParameter['sort'] = sort;
5425
+ }
5426
+
5427
+
5428
+
5429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5431
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5432
+
5433
+ return {
5434
+ url: toPathString(localVarUrlObj),
5435
+ options: localVarRequestOptions,
5436
+ };
5437
+ },
5438
+ /**
5439
+ *
5440
+ * @summary Get all my bookings with pagination and filters
5441
+ * @param {number} [page]
5442
+ * @param {number} [pageSize]
5443
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
5444
+ * @param {*} [options] Override http request option.
5445
+ * @throws {RequiredError}
5446
+ */
5447
+ bookingControllerGetMyBookings: async (page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5448
+ const localVarPath = `/api/booking/my-bookings`;
5449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5451
+ let baseOptions;
5452
+ if (configuration) {
5453
+ baseOptions = configuration.baseOptions;
5454
+ }
5455
+
5456
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5457
+ const localVarHeaderParameter = {} as any;
5458
+ const localVarQueryParameter = {} as any;
5459
+
5460
+ if (page !== undefined) {
5461
+ localVarQueryParameter['page'] = page;
5462
+ }
5463
+
5464
+ if (pageSize !== undefined) {
5465
+ localVarQueryParameter['pageSize'] = pageSize;
5466
+ }
5467
+
5468
+ if (filters !== undefined) {
5469
+ for (const [key, value] of Object.entries(filters)) {
5470
+ localVarQueryParameter[key] = value;
5471
+ }
5472
+ }
5473
+
5474
+
5475
+
5476
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5478
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5479
+
5480
+ return {
5481
+ url: toPathString(localVarUrlObj),
5482
+ options: localVarRequestOptions,
5483
+ };
5484
+ },
5485
+ /**
5486
+ *
5487
+ * @summary Update booking status
5488
+ * @param {string} bookingId
5489
+ * @param {*} [options] Override http request option.
5490
+ * @throws {RequiredError}
5491
+ */
5492
+ bookingControllerUpdateBookingStatus: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5493
+ // verify required parameter 'bookingId' is not null or undefined
5494
+ assertParamExists('bookingControllerUpdateBookingStatus', 'bookingId', bookingId)
5495
+ const localVarPath = `/api/booking/update-status/{bookingId}`
5496
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
5497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5499
+ let baseOptions;
5500
+ if (configuration) {
5501
+ baseOptions = configuration.baseOptions;
5502
+ }
5503
+
5504
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5505
+ const localVarHeaderParameter = {} as any;
5506
+ const localVarQueryParameter = {} as any;
5507
+
5508
+
5509
+
5510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5512
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5513
+
5514
+ return {
5515
+ url: toPathString(localVarUrlObj),
5516
+ options: localVarRequestOptions,
5517
+ };
5518
+ },
5519
+ }
5520
+ };
5521
+
5522
+ /**
5523
+ * BookingApi - functional programming interface
5524
+ * @export
5525
+ */
5526
+ export const BookingApiFp = function(configuration?: Configuration) {
5527
+ const localVarAxiosParamCreator = BookingApiAxiosParamCreator(configuration)
5528
+ return {
5529
+ /**
5530
+ *
5531
+ * @summary Create a new booking directly at the hotel
5532
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
5533
+ * @param {*} [options] Override http request option.
5534
+ * @throws {RequiredError}
5535
+ */
5536
+ async bookingControllerCreateBookingDirectly(createBookingAtHotelDto: CreateBookingAtHotelDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5537
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCreateBookingDirectly(createBookingAtHotelDto, options);
5538
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5539
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCreateBookingDirectly']?.[localVarOperationServerIndex]?.url;
5540
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5541
+ },
5542
+ /**
5543
+ *
5544
+ * @summary Create a new booking online
5545
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
5546
+ * @param {*} [options] Override http request option.
5547
+ * @throws {RequiredError}
5548
+ */
5549
+ async bookingControllerCreateBookingOnline(createBookingOnlineDto: CreateBookingOnlineDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCreateBookingOnline(createBookingOnlineDto, options);
5551
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5552
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCreateBookingOnline']?.[localVarOperationServerIndex]?.url;
5553
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5554
+ },
5555
+ /**
5556
+ *
5557
+ * @summary Get booking details
5558
+ * @param {string} bookingId
5559
+ * @param {*} [options] Override http request option.
5560
+ * @throws {RequiredError}
5561
+ */
5562
+ async bookingControllerFindById(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerFindById(bookingId, options);
5564
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5565
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerFindById']?.[localVarOperationServerIndex]?.url;
5566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5567
+ },
5568
+ /**
5569
+ *
5570
+ * @summary Get all bookings with pagination and filters
5571
+ * @param {number} [page]
5572
+ * @param {number} [pageSize]
5573
+ * @param {string} [filters] JSON string of FilterBookingsDto
5574
+ * @param {string} [sort] JSON string of SortBookingsDto[]
5575
+ * @param {*} [options] Override http request option.
5576
+ * @throws {RequiredError}
5577
+ */
5578
+ async bookingControllerGetBookings(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPaginationResultDto>> {
5579
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerGetBookings(page, pageSize, filters, sort, options);
5580
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5581
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerGetBookings']?.[localVarOperationServerIndex]?.url;
5582
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5583
+ },
5584
+ /**
5585
+ *
5586
+ * @summary Get all my bookings with pagination and filters
5587
+ * @param {number} [page]
5588
+ * @param {number} [pageSize]
5589
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
5590
+ * @param {*} [options] Override http request option.
5591
+ * @throws {RequiredError}
5592
+ */
5593
+ async bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPaginationResultDto>> {
5594
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerGetMyBookings(page, pageSize, filters, options);
5595
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5596
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerGetMyBookings']?.[localVarOperationServerIndex]?.url;
5597
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5598
+ },
5599
+ /**
5600
+ *
5601
+ * @summary Update booking status
5602
+ * @param {string} bookingId
5603
+ * @param {*} [options] Override http request option.
5604
+ * @throws {RequiredError}
5605
+ */
5606
+ async bookingControllerUpdateBookingStatus(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5607
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerUpdateBookingStatus(bookingId, options);
5608
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5609
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerUpdateBookingStatus']?.[localVarOperationServerIndex]?.url;
5610
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5611
+ },
5612
+ }
5613
+ };
5614
+
5615
+ /**
5616
+ * BookingApi - factory interface
5617
+ * @export
5618
+ */
5619
+ export const BookingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5620
+ const localVarFp = BookingApiFp(configuration)
5621
+ return {
5622
+ /**
5623
+ *
5624
+ * @summary Create a new booking directly at the hotel
5625
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
5626
+ * @param {*} [options] Override http request option.
5627
+ * @throws {RequiredError}
5628
+ */
5629
+ bookingControllerCreateBookingDirectly(createBookingAtHotelDto: CreateBookingAtHotelDto, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5630
+ return localVarFp.bookingControllerCreateBookingDirectly(createBookingAtHotelDto, options).then((request) => request(axios, basePath));
5631
+ },
5632
+ /**
5633
+ *
5634
+ * @summary Create a new booking online
5635
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
5636
+ * @param {*} [options] Override http request option.
5637
+ * @throws {RequiredError}
5638
+ */
5639
+ bookingControllerCreateBookingOnline(createBookingOnlineDto: CreateBookingOnlineDto, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5640
+ return localVarFp.bookingControllerCreateBookingOnline(createBookingOnlineDto, options).then((request) => request(axios, basePath));
5641
+ },
5642
+ /**
5643
+ *
5644
+ * @summary Get booking details
5645
+ * @param {string} bookingId
5646
+ * @param {*} [options] Override http request option.
5647
+ * @throws {RequiredError}
5648
+ */
5649
+ bookingControllerFindById(bookingId: string, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5650
+ return localVarFp.bookingControllerFindById(bookingId, options).then((request) => request(axios, basePath));
5651
+ },
5652
+ /**
5653
+ *
5654
+ * @summary Get all bookings with pagination and filters
5655
+ * @param {number} [page]
5656
+ * @param {number} [pageSize]
5657
+ * @param {string} [filters] JSON string of FilterBookingsDto
5658
+ * @param {string} [sort] JSON string of SortBookingsDto[]
5659
+ * @param {*} [options] Override http request option.
5660
+ * @throws {RequiredError}
5661
+ */
5662
+ bookingControllerGetBookings(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPaginationResultDto> {
5663
+ return localVarFp.bookingControllerGetBookings(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
5664
+ },
5665
+ /**
5666
+ *
5667
+ * @summary Get all my bookings with pagination and filters
5668
+ * @param {number} [page]
5669
+ * @param {number} [pageSize]
5670
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
5671
+ * @param {*} [options] Override http request option.
5672
+ * @throws {RequiredError}
5673
+ */
5674
+ bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPaginationResultDto> {
5675
+ return localVarFp.bookingControllerGetMyBookings(page, pageSize, filters, options).then((request) => request(axios, basePath));
5676
+ },
5677
+ /**
5678
+ *
5679
+ * @summary Update booking status
5680
+ * @param {string} bookingId
5681
+ * @param {*} [options] Override http request option.
5682
+ * @throws {RequiredError}
5683
+ */
5684
+ bookingControllerUpdateBookingStatus(bookingId: string, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5685
+ return localVarFp.bookingControllerUpdateBookingStatus(bookingId, options).then((request) => request(axios, basePath));
3976
5686
  },
3977
5687
  };
3978
5688
  };
3979
5689
 
3980
5690
  /**
3981
- * AuthApi - object-oriented interface
5691
+ * BookingApi - object-oriented interface
3982
5692
  * @export
3983
- * @class AuthApi
5693
+ * @class BookingApi
3984
5694
  * @extends {BaseAPI}
3985
5695
  */
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
-
3999
- /**
4000
- * Retrieve all active sessions for the current user
4001
- * @summary Get active sessions
4002
- * @param {*} [options] Override http request option.
4003
- * @throws {RequiredError}
4004
- * @memberof AuthApi
4005
- */
4006
- public authControllerGetActiveSessions(options?: RawAxiosRequestConfig) {
4007
- return AuthApiFp(this.configuration).authControllerGetActiveSessions(options).then((request) => request(this.axios, this.basePath));
4008
- }
4009
-
4010
- /**
4011
- *
4012
- * @summary Get current user profile
4013
- * @param {*} [options] Override http request option.
4014
- * @throws {RequiredError}
4015
- * @memberof AuthApi
4016
- */
4017
- public authControllerGetProfile(options?: RawAxiosRequestConfig) {
4018
- return AuthApiFp(this.configuration).authControllerGetProfile(options).then((request) => request(this.axios, this.basePath));
4019
- }
4020
-
4021
- /**
4022
- * Get analytics data for user sessions. Requires ADMIN role.
4023
- * @summary Get session analytics
4024
- * @param {string} userId
4025
- * @param {*} [options] Override http request option.
4026
- * @throws {RequiredError}
4027
- * @memberof AuthApi
4028
- */
4029
- public authControllerGetSessionAnalytics(userId: string, options?: RawAxiosRequestConfig) {
4030
- return AuthApiFp(this.configuration).authControllerGetSessionAnalytics(userId, options).then((request) => request(this.axios, this.basePath));
4031
- }
4032
-
4033
- /**
4034
- * Get suspicious activities for a specific user. Requires ADMIN role.
4035
- * @summary Get suspicious activities
4036
- * @param {string} userId
4037
- * @param {*} [options] Override http request option.
4038
- * @throws {RequiredError}
4039
- * @memberof AuthApi
4040
- */
4041
- public authControllerGetSuspiciousActivities(userId: string, options?: RawAxiosRequestConfig) {
4042
- return AuthApiFp(this.configuration).authControllerGetSuspiciousActivities(userId, options).then((request) => request(this.axios, this.basePath));
4043
- }
4044
-
5696
+ export class BookingApi extends BaseAPI {
4045
5697
  /**
4046
5698
  *
4047
- * @summary Initiate forgot password process
4048
- * @param {InitiateForgotPasswordEmailDto} initiateForgotPasswordEmailDto
5699
+ * @summary Create a new booking directly at the hotel
5700
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
4049
5701
  * @param {*} [options] Override http request option.
4050
5702
  * @throws {RequiredError}
4051
- * @memberof AuthApi
5703
+ * @memberof BookingApi
4052
5704
  */
4053
- public authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto: InitiateForgotPasswordEmailDto, options?: RawAxiosRequestConfig) {
4054
- return AuthApiFp(this.configuration).authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto, options).then((request) => request(this.axios, this.basePath));
5705
+ public bookingControllerCreateBookingDirectly(createBookingAtHotelDto: CreateBookingAtHotelDto, options?: RawAxiosRequestConfig) {
5706
+ return BookingApiFp(this.configuration).bookingControllerCreateBookingDirectly(createBookingAtHotelDto, options).then((request) => request(this.axios, this.basePath));
4055
5707
  }
4056
5708
 
4057
5709
  /**
4058
5710
  *
4059
- * @param {string} userAgent
4060
- * @param {LoginDto} loginDto
4061
- * @param {*} [options] Override http request option.
4062
- * @throws {RequiredError}
4063
- * @memberof AuthApi
4064
- */
4065
- public authControllerLogin(userAgent: string, loginDto: LoginDto, options?: RawAxiosRequestConfig) {
4066
- return AuthApiFp(this.configuration).authControllerLogin(userAgent, loginDto, options).then((request) => request(this.axios, this.basePath));
4067
- }
4068
-
4069
- /**
4070
- * Revoke the current refresh token, effectively logging out the user
4071
- * @summary Logout user
4072
- * @param {*} [options] Override http request option.
4073
- * @throws {RequiredError}
4074
- * @memberof AuthApi
4075
- */
4076
- public authControllerLogout(options?: RawAxiosRequestConfig) {
4077
- return AuthApiFp(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
4078
- }
4079
-
4080
- /**
4081
- * Exchange a valid refresh token for a new access token and refresh token pair
4082
- * @summary Refresh access token
4083
- * @param {RefreshTokenDto} refreshTokenDto
5711
+ * @summary Create a new booking online
5712
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
4084
5713
  * @param {*} [options] Override http request option.
4085
5714
  * @throws {RequiredError}
4086
- * @memberof AuthApi
5715
+ * @memberof BookingApi
4087
5716
  */
4088
- public authControllerRefreshTokens(refreshTokenDto: RefreshTokenDto, options?: RawAxiosRequestConfig) {
4089
- return AuthApiFp(this.configuration).authControllerRefreshTokens(refreshTokenDto, options).then((request) => request(this.axios, this.basePath));
5717
+ public bookingControllerCreateBookingOnline(createBookingOnlineDto: CreateBookingOnlineDto, options?: RawAxiosRequestConfig) {
5718
+ return BookingApiFp(this.configuration).bookingControllerCreateBookingOnline(createBookingOnlineDto, options).then((request) => request(this.axios, this.basePath));
4090
5719
  }
4091
5720
 
4092
5721
  /**
4093
5722
  *
4094
- * @param {RegisterDto} registerDto
5723
+ * @summary Get booking details
5724
+ * @param {string} bookingId
4095
5725
  * @param {*} [options] Override http request option.
4096
5726
  * @throws {RequiredError}
4097
- * @memberof AuthApi
5727
+ * @memberof BookingApi
4098
5728
  */
4099
- public authControllerRegister(registerDto: RegisterDto, options?: RawAxiosRequestConfig) {
4100
- return AuthApiFp(this.configuration).authControllerRegister(registerDto, options).then((request) => request(this.axios, this.basePath));
5729
+ public bookingControllerFindById(bookingId: string, options?: RawAxiosRequestConfig) {
5730
+ return BookingApiFp(this.configuration).bookingControllerFindById(bookingId, options).then((request) => request(this.axios, this.basePath));
4101
5731
  }
4102
5732
 
4103
5733
  /**
4104
5734
  *
4105
- * @summary Reset password using OTP
4106
- * @param {ResetPasswordWithOTPEmailDto} resetPasswordWithOTPEmailDto
4107
- * @param {*} [options] Override http request option.
4108
- * @throws {RequiredError}
4109
- * @memberof AuthApi
4110
- */
4111
- public authControllerResetPasswordWithOTP(resetPasswordWithOTPEmailDto: ResetPasswordWithOTPEmailDto, options?: RawAxiosRequestConfig) {
4112
- return AuthApiFp(this.configuration).authControllerResetPasswordWithOTP(resetPasswordWithOTPEmailDto, options).then((request) => request(this.axios, this.basePath));
4113
- }
4114
-
4115
- /**
4116
- * Revoke a specific session by its ID
4117
- * @summary Revoke specific session
4118
- * @param {string} sessionId
5735
+ * @summary Get all bookings with pagination and filters
5736
+ * @param {number} [page]
5737
+ * @param {number} [pageSize]
5738
+ * @param {string} [filters] JSON string of FilterBookingsDto
5739
+ * @param {string} [sort] JSON string of SortBookingsDto[]
4119
5740
  * @param {*} [options] Override http request option.
4120
5741
  * @throws {RequiredError}
4121
- * @memberof AuthApi
5742
+ * @memberof BookingApi
4122
5743
  */
4123
- public authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig) {
4124
- return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
5744
+ public bookingControllerGetBookings(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
5745
+ return BookingApiFp(this.configuration).bookingControllerGetBookings(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
4125
5746
  }
4126
5747
 
4127
5748
  /**
4128
5749
  *
4129
- * @summary Update user profile
4130
- * @param {UpdateProfileDto} updateProfileDto
5750
+ * @summary Get all my bookings with pagination and filters
5751
+ * @param {number} [page]
5752
+ * @param {number} [pageSize]
5753
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
4131
5754
  * @param {*} [options] Override http request option.
4132
5755
  * @throws {RequiredError}
4133
- * @memberof AuthApi
5756
+ * @memberof BookingApi
4134
5757
  */
4135
- public authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig) {
4136
- return AuthApiFp(this.configuration).authControllerUpdateProfile(updateProfileDto, options).then((request) => request(this.axios, this.basePath));
5758
+ public bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig) {
5759
+ return BookingApiFp(this.configuration).bookingControllerGetMyBookings(page, pageSize, filters, options).then((request) => request(this.axios, this.basePath));
4137
5760
  }
4138
5761
 
4139
5762
  /**
4140
5763
  *
4141
- * @summary Verify email with OTP code
4142
- * @param {VerifyEmailDto} verifyEmailDto
5764
+ * @summary Update booking status
5765
+ * @param {string} bookingId
4143
5766
  * @param {*} [options] Override http request option.
4144
5767
  * @throws {RequiredError}
4145
- * @memberof AuthApi
5768
+ * @memberof BookingApi
4146
5769
  */
4147
- public authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig) {
4148
- return AuthApiFp(this.configuration).authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
5770
+ public bookingControllerUpdateBookingStatus(bookingId: string, options?: RawAxiosRequestConfig) {
5771
+ return BookingApiFp(this.configuration).bookingControllerUpdateBookingStatus(bookingId, options).then((request) => request(this.axios, this.basePath));
4149
5772
  }
4150
5773
  }
4151
5774
 
@@ -5185,24 +6808,205 @@ export class ImagesApi extends BaseAPI {
5185
6808
 
5186
6809
  /**
5187
6810
  *
5188
- * @summary Upload amenity icon
6811
+ * @summary Upload amenity icon
6812
+ * @param {*} [options] Override http request option.
6813
+ * @throws {RequiredError}
6814
+ * @memberof ImagesApi
6815
+ */
6816
+ public imagesControllerUploadIcon(options?: RawAxiosRequestConfig) {
6817
+ return ImagesApiFp(this.configuration).imagesControllerUploadIcon(options).then((request) => request(this.axios, this.basePath));
6818
+ }
6819
+
6820
+ /**
6821
+ *
6822
+ * @summary Upload multiple image
6823
+ * @param {*} [options] Override http request option.
6824
+ * @throws {RequiredError}
6825
+ * @memberof ImagesApi
6826
+ */
6827
+ public imagesControllerUploadImages(options?: RawAxiosRequestConfig) {
6828
+ return ImagesApiFp(this.configuration).imagesControllerUploadImages(options).then((request) => request(this.axios, this.basePath));
6829
+ }
6830
+ }
6831
+
6832
+
6833
+
6834
+ /**
6835
+ * POEditorApi - axios parameter creator
6836
+ * @export
6837
+ */
6838
+ export const POEditorApiAxiosParamCreator = function (configuration?: Configuration) {
6839
+ return {
6840
+ /**
6841
+ *
6842
+ * @summary Add translations to POEditor project
6843
+ * @param {AddTranslationDto} addTranslationDto
6844
+ * @param {*} [options] Override http request option.
6845
+ * @throws {RequiredError}
6846
+ */
6847
+ poeditorControllerAddTranslation: async (addTranslationDto: AddTranslationDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6848
+ // verify required parameter 'addTranslationDto' is not null or undefined
6849
+ assertParamExists('poeditorControllerAddTranslation', 'addTranslationDto', addTranslationDto)
6850
+ const localVarPath = `/api/poeditor/translations`;
6851
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6852
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6853
+ let baseOptions;
6854
+ if (configuration) {
6855
+ baseOptions = configuration.baseOptions;
6856
+ }
6857
+
6858
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6859
+ const localVarHeaderParameter = {} as any;
6860
+ const localVarQueryParameter = {} as any;
6861
+
6862
+
6863
+
6864
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6865
+
6866
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6867
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6868
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6869
+ localVarRequestOptions.data = serializeDataIfNeeded(addTranslationDto, localVarRequestOptions, configuration)
6870
+
6871
+ return {
6872
+ url: toPathString(localVarUrlObj),
6873
+ options: localVarRequestOptions,
6874
+ };
6875
+ },
6876
+ /**
6877
+ *
6878
+ * @summary Get translations from POEditor project
6879
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6880
+ * @param {*} [options] Override http request option.
6881
+ * @throws {RequiredError}
6882
+ */
6883
+ poeditorControllerGetTranslations: async (getTranslationsRequestDto: GetTranslationsRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6884
+ // verify required parameter 'getTranslationsRequestDto' is not null or undefined
6885
+ assertParamExists('poeditorControllerGetTranslations', 'getTranslationsRequestDto', getTranslationsRequestDto)
6886
+ const localVarPath = `/api/poeditor/translations-list`;
6887
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6888
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6889
+ let baseOptions;
6890
+ if (configuration) {
6891
+ baseOptions = configuration.baseOptions;
6892
+ }
6893
+
6894
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6895
+ const localVarHeaderParameter = {} as any;
6896
+ const localVarQueryParameter = {} as any;
6897
+
6898
+
6899
+
6900
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6901
+
6902
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6903
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6904
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6905
+ localVarRequestOptions.data = serializeDataIfNeeded(getTranslationsRequestDto, localVarRequestOptions, configuration)
6906
+
6907
+ return {
6908
+ url: toPathString(localVarUrlObj),
6909
+ options: localVarRequestOptions,
6910
+ };
6911
+ },
6912
+ }
6913
+ };
6914
+
6915
+ /**
6916
+ * POEditorApi - functional programming interface
6917
+ * @export
6918
+ */
6919
+ export const POEditorApiFp = function(configuration?: Configuration) {
6920
+ const localVarAxiosParamCreator = POEditorApiAxiosParamCreator(configuration)
6921
+ return {
6922
+ /**
6923
+ *
6924
+ * @summary Add translations to POEditor project
6925
+ * @param {AddTranslationDto} addTranslationDto
6926
+ * @param {*} [options] Override http request option.
6927
+ * @throws {RequiredError}
6928
+ */
6929
+ async poeditorControllerAddTranslation(addTranslationDto: AddTranslationDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6930
+ const localVarAxiosArgs = await localVarAxiosParamCreator.poeditorControllerAddTranslation(addTranslationDto, options);
6931
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6932
+ const localVarOperationServerBasePath = operationServerMap['POEditorApi.poeditorControllerAddTranslation']?.[localVarOperationServerIndex]?.url;
6933
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6934
+ },
6935
+ /**
6936
+ *
6937
+ * @summary Get translations from POEditor project
6938
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6939
+ * @param {*} [options] Override http request option.
6940
+ * @throws {RequiredError}
6941
+ */
6942
+ async poeditorControllerGetTranslations(getTranslationsRequestDto: GetTranslationsRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTranslationResponseDto>> {
6943
+ const localVarAxiosArgs = await localVarAxiosParamCreator.poeditorControllerGetTranslations(getTranslationsRequestDto, options);
6944
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6945
+ const localVarOperationServerBasePath = operationServerMap['POEditorApi.poeditorControllerGetTranslations']?.[localVarOperationServerIndex]?.url;
6946
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6947
+ },
6948
+ }
6949
+ };
6950
+
6951
+ /**
6952
+ * POEditorApi - factory interface
6953
+ * @export
6954
+ */
6955
+ export const POEditorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6956
+ const localVarFp = POEditorApiFp(configuration)
6957
+ return {
6958
+ /**
6959
+ *
6960
+ * @summary Add translations to POEditor project
6961
+ * @param {AddTranslationDto} addTranslationDto
6962
+ * @param {*} [options] Override http request option.
6963
+ * @throws {RequiredError}
6964
+ */
6965
+ poeditorControllerAddTranslation(addTranslationDto: AddTranslationDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6966
+ return localVarFp.poeditorControllerAddTranslation(addTranslationDto, options).then((request) => request(axios, basePath));
6967
+ },
6968
+ /**
6969
+ *
6970
+ * @summary Get translations from POEditor project
6971
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6972
+ * @param {*} [options] Override http request option.
6973
+ * @throws {RequiredError}
6974
+ */
6975
+ poeditorControllerGetTranslations(getTranslationsRequestDto: GetTranslationsRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ListTranslationResponseDto> {
6976
+ return localVarFp.poeditorControllerGetTranslations(getTranslationsRequestDto, options).then((request) => request(axios, basePath));
6977
+ },
6978
+ };
6979
+ };
6980
+
6981
+ /**
6982
+ * POEditorApi - object-oriented interface
6983
+ * @export
6984
+ * @class POEditorApi
6985
+ * @extends {BaseAPI}
6986
+ */
6987
+ export class POEditorApi extends BaseAPI {
6988
+ /**
6989
+ *
6990
+ * @summary Add translations to POEditor project
6991
+ * @param {AddTranslationDto} addTranslationDto
5189
6992
  * @param {*} [options] Override http request option.
5190
6993
  * @throws {RequiredError}
5191
- * @memberof ImagesApi
6994
+ * @memberof POEditorApi
5192
6995
  */
5193
- public imagesControllerUploadIcon(options?: RawAxiosRequestConfig) {
5194
- return ImagesApiFp(this.configuration).imagesControllerUploadIcon(options).then((request) => request(this.axios, this.basePath));
6996
+ public poeditorControllerAddTranslation(addTranslationDto: AddTranslationDto, options?: RawAxiosRequestConfig) {
6997
+ return POEditorApiFp(this.configuration).poeditorControllerAddTranslation(addTranslationDto, options).then((request) => request(this.axios, this.basePath));
5195
6998
  }
5196
6999
 
5197
7000
  /**
5198
7001
  *
5199
- * @summary Upload multiple image
7002
+ * @summary Get translations from POEditor project
7003
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
5200
7004
  * @param {*} [options] Override http request option.
5201
7005
  * @throws {RequiredError}
5202
- * @memberof ImagesApi
7006
+ * @memberof POEditorApi
5203
7007
  */
5204
- public imagesControllerUploadImages(options?: RawAxiosRequestConfig) {
5205
- return ImagesApiFp(this.configuration).imagesControllerUploadImages(options).then((request) => request(this.axios, this.basePath));
7008
+ public poeditorControllerGetTranslations(getTranslationsRequestDto: GetTranslationsRequestDto, options?: RawAxiosRequestConfig) {
7009
+ return POEditorApiFp(this.configuration).poeditorControllerGetTranslations(getTranslationsRequestDto, options).then((request) => request(this.axios, this.basePath));
5206
7010
  }
5207
7011
  }
5208
7012
 
@@ -6404,6 +8208,332 @@ export class RoomDetailsApi extends BaseAPI {
6404
8208
 
6405
8209
 
6406
8210
 
8211
+ /**
8212
+ * RoomPriceHistoriesApi - axios parameter creator
8213
+ * @export
8214
+ */
8215
+ export const RoomPriceHistoriesApiAxiosParamCreator = function (configuration?: Configuration) {
8216
+ return {
8217
+ /**
8218
+ *
8219
+ * @summary Create a new room price history
8220
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8221
+ * @param {*} [options] Override http request option.
8222
+ * @throws {RequiredError}
8223
+ */
8224
+ roomPriceHistoryControllerCreate: async (createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8225
+ // verify required parameter 'createRoomPriceHistoryDto' is not null or undefined
8226
+ assertParamExists('roomPriceHistoryControllerCreate', 'createRoomPriceHistoryDto', createRoomPriceHistoryDto)
8227
+ const localVarPath = `/api/room-price-histories`;
8228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8230
+ let baseOptions;
8231
+ if (configuration) {
8232
+ baseOptions = configuration.baseOptions;
8233
+ }
8234
+
8235
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8236
+ const localVarHeaderParameter = {} as any;
8237
+ const localVarQueryParameter = {} as any;
8238
+
8239
+
8240
+
8241
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8242
+
8243
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8245
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8246
+ localVarRequestOptions.data = serializeDataIfNeeded(createRoomPriceHistoryDto, localVarRequestOptions, configuration)
8247
+
8248
+ return {
8249
+ url: toPathString(localVarUrlObj),
8250
+ options: localVarRequestOptions,
8251
+ };
8252
+ },
8253
+ /**
8254
+ *
8255
+ * @summary Get all price histories for a specific room detail
8256
+ * @param {string} roomDetailId
8257
+ * @param {*} [options] Override http request option.
8258
+ * @throws {RequiredError}
8259
+ */
8260
+ roomPriceHistoryControllerFindManyByRoomDetail: async (roomDetailId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8261
+ // verify required parameter 'roomDetailId' is not null or undefined
8262
+ assertParamExists('roomPriceHistoryControllerFindManyByRoomDetail', 'roomDetailId', roomDetailId)
8263
+ const localVarPath = `/api/room-price-histories/room-detail/{roomDetailId}`
8264
+ .replace(`{${"roomDetailId"}}`, encodeURIComponent(String(roomDetailId)));
8265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8266
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8267
+ let baseOptions;
8268
+ if (configuration) {
8269
+ baseOptions = configuration.baseOptions;
8270
+ }
8271
+
8272
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8273
+ const localVarHeaderParameter = {} as any;
8274
+ const localVarQueryParameter = {} as any;
8275
+
8276
+
8277
+
8278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8280
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8281
+
8282
+ return {
8283
+ url: toPathString(localVarUrlObj),
8284
+ options: localVarRequestOptions,
8285
+ };
8286
+ },
8287
+ /**
8288
+ *
8289
+ * @summary Delete a room price history
8290
+ * @param {string} id
8291
+ * @param {*} [options] Override http request option.
8292
+ * @throws {RequiredError}
8293
+ */
8294
+ roomPriceHistoryControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8295
+ // verify required parameter 'id' is not null or undefined
8296
+ assertParamExists('roomPriceHistoryControllerRemove', 'id', id)
8297
+ const localVarPath = `/api/room-price-histories/{id}`
8298
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8299
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8300
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8301
+ let baseOptions;
8302
+ if (configuration) {
8303
+ baseOptions = configuration.baseOptions;
8304
+ }
8305
+
8306
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8307
+ const localVarHeaderParameter = {} as any;
8308
+ const localVarQueryParameter = {} as any;
8309
+
8310
+
8311
+
8312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8315
+
8316
+ return {
8317
+ url: toPathString(localVarUrlObj),
8318
+ options: localVarRequestOptions,
8319
+ };
8320
+ },
8321
+ /**
8322
+ *
8323
+ * @summary Update a room price history
8324
+ * @param {string} id
8325
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8326
+ * @param {*} [options] Override http request option.
8327
+ * @throws {RequiredError}
8328
+ */
8329
+ roomPriceHistoryControllerUpdate: async (id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8330
+ // verify required parameter 'id' is not null or undefined
8331
+ assertParamExists('roomPriceHistoryControllerUpdate', 'id', id)
8332
+ // verify required parameter 'updateRoomPriceHistoryDto' is not null or undefined
8333
+ assertParamExists('roomPriceHistoryControllerUpdate', 'updateRoomPriceHistoryDto', updateRoomPriceHistoryDto)
8334
+ const localVarPath = `/api/room-price-histories/{id}`
8335
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8337
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8338
+ let baseOptions;
8339
+ if (configuration) {
8340
+ baseOptions = configuration.baseOptions;
8341
+ }
8342
+
8343
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8344
+ const localVarHeaderParameter = {} as any;
8345
+ const localVarQueryParameter = {} as any;
8346
+
8347
+
8348
+
8349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8350
+
8351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8353
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8354
+ localVarRequestOptions.data = serializeDataIfNeeded(updateRoomPriceHistoryDto, localVarRequestOptions, configuration)
8355
+
8356
+ return {
8357
+ url: toPathString(localVarUrlObj),
8358
+ options: localVarRequestOptions,
8359
+ };
8360
+ },
8361
+ }
8362
+ };
8363
+
8364
+ /**
8365
+ * RoomPriceHistoriesApi - functional programming interface
8366
+ * @export
8367
+ */
8368
+ export const RoomPriceHistoriesApiFp = function(configuration?: Configuration) {
8369
+ const localVarAxiosParamCreator = RoomPriceHistoriesApiAxiosParamCreator(configuration)
8370
+ return {
8371
+ /**
8372
+ *
8373
+ * @summary Create a new room price history
8374
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8375
+ * @param {*} [options] Override http request option.
8376
+ * @throws {RequiredError}
8377
+ */
8378
+ async roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomPriceHistory>> {
8379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options);
8380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8381
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerCreate']?.[localVarOperationServerIndex]?.url;
8382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8383
+ },
8384
+ /**
8385
+ *
8386
+ * @summary Get all price histories for a specific room detail
8387
+ * @param {string} roomDetailId
8388
+ * @param {*} [options] Override http request option.
8389
+ * @throws {RequiredError}
8390
+ */
8391
+ async roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RoomPriceHistory>>> {
8392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options);
8393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8394
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerFindManyByRoomDetail']?.[localVarOperationServerIndex]?.url;
8395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8396
+ },
8397
+ /**
8398
+ *
8399
+ * @summary Delete a room price history
8400
+ * @param {string} id
8401
+ * @param {*} [options] Override http request option.
8402
+ * @throws {RequiredError}
8403
+ */
8404
+ async roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerRemove(id, options);
8406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8407
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerRemove']?.[localVarOperationServerIndex]?.url;
8408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8409
+ },
8410
+ /**
8411
+ *
8412
+ * @summary Update a room price history
8413
+ * @param {string} id
8414
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8415
+ * @param {*} [options] Override http request option.
8416
+ * @throws {RequiredError}
8417
+ */
8418
+ async roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomPriceHistory>> {
8419
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options);
8420
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8421
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerUpdate']?.[localVarOperationServerIndex]?.url;
8422
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8423
+ },
8424
+ }
8425
+ };
8426
+
8427
+ /**
8428
+ * RoomPriceHistoriesApi - factory interface
8429
+ * @export
8430
+ */
8431
+ export const RoomPriceHistoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8432
+ const localVarFp = RoomPriceHistoriesApiFp(configuration)
8433
+ return {
8434
+ /**
8435
+ *
8436
+ * @summary Create a new room price history
8437
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8438
+ * @param {*} [options] Override http request option.
8439
+ * @throws {RequiredError}
8440
+ */
8441
+ roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomPriceHistory> {
8442
+ return localVarFp.roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options).then((request) => request(axios, basePath));
8443
+ },
8444
+ /**
8445
+ *
8446
+ * @summary Get all price histories for a specific room detail
8447
+ * @param {string} roomDetailId
8448
+ * @param {*} [options] Override http request option.
8449
+ * @throws {RequiredError}
8450
+ */
8451
+ roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<RoomPriceHistory>> {
8452
+ return localVarFp.roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options).then((request) => request(axios, basePath));
8453
+ },
8454
+ /**
8455
+ *
8456
+ * @summary Delete a room price history
8457
+ * @param {string} id
8458
+ * @param {*} [options] Override http request option.
8459
+ * @throws {RequiredError}
8460
+ */
8461
+ roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
8462
+ return localVarFp.roomPriceHistoryControllerRemove(id, options).then((request) => request(axios, basePath));
8463
+ },
8464
+ /**
8465
+ *
8466
+ * @summary Update a room price history
8467
+ * @param {string} id
8468
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8469
+ * @param {*} [options] Override http request option.
8470
+ * @throws {RequiredError}
8471
+ */
8472
+ roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomPriceHistory> {
8473
+ return localVarFp.roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options).then((request) => request(axios, basePath));
8474
+ },
8475
+ };
8476
+ };
8477
+
8478
+ /**
8479
+ * RoomPriceHistoriesApi - object-oriented interface
8480
+ * @export
8481
+ * @class RoomPriceHistoriesApi
8482
+ * @extends {BaseAPI}
8483
+ */
8484
+ export class RoomPriceHistoriesApi extends BaseAPI {
8485
+ /**
8486
+ *
8487
+ * @summary Create a new room price history
8488
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8489
+ * @param {*} [options] Override http request option.
8490
+ * @throws {RequiredError}
8491
+ * @memberof RoomPriceHistoriesApi
8492
+ */
8493
+ public roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig) {
8494
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options).then((request) => request(this.axios, this.basePath));
8495
+ }
8496
+
8497
+ /**
8498
+ *
8499
+ * @summary Get all price histories for a specific room detail
8500
+ * @param {string} roomDetailId
8501
+ * @param {*} [options] Override http request option.
8502
+ * @throws {RequiredError}
8503
+ * @memberof RoomPriceHistoriesApi
8504
+ */
8505
+ public roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig) {
8506
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options).then((request) => request(this.axios, this.basePath));
8507
+ }
8508
+
8509
+ /**
8510
+ *
8511
+ * @summary Delete a room price history
8512
+ * @param {string} id
8513
+ * @param {*} [options] Override http request option.
8514
+ * @throws {RequiredError}
8515
+ * @memberof RoomPriceHistoriesApi
8516
+ */
8517
+ public roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig) {
8518
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
8519
+ }
8520
+
8521
+ /**
8522
+ *
8523
+ * @summary Update a room price history
8524
+ * @param {string} id
8525
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8526
+ * @param {*} [options] Override http request option.
8527
+ * @throws {RequiredError}
8528
+ * @memberof RoomPriceHistoriesApi
8529
+ */
8530
+ public roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig) {
8531
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options).then((request) => request(this.axios, this.basePath));
8532
+ }
8533
+ }
8534
+
8535
+
8536
+
6407
8537
  /**
6408
8538
  * RoomsApi - axios parameter creator
6409
8539
  * @export