@ahomevilla-hotel/node-sdk 1.0.17 → 1.0.18

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 +1784 -163
  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
@@ -732,21 +1223,52 @@ export interface CreateUserDto {
732
1223
  /**
733
1224
  *
734
1225
  * @export
735
- * @interface FilterAmenityDto
1226
+ * @interface DetailTranslationContent
736
1227
  */
737
- export interface FilterAmenityDto {
1228
+ export interface DetailTranslationContent {
738
1229
  /**
739
1230
  *
740
1231
  * @type {string}
741
- * @memberof FilterAmenityDto
1232
+ * @memberof DetailTranslationContent
742
1233
  */
743
- 'types'?: FilterAmenityDtoTypesEnum;
1234
+ 'content': string;
744
1235
  /**
745
1236
  *
746
- * @type {string}
747
- * @memberof FilterAmenityDto
1237
+ * @type {number}
1238
+ * @memberof DetailTranslationContent
748
1239
  */
749
- 'search'?: string;
1240
+ 'fuzzy': number;
1241
+ /**
1242
+ *
1243
+ * @type {number}
1244
+ * @memberof DetailTranslationContent
1245
+ */
1246
+ 'proofread': number;
1247
+ /**
1248
+ *
1249
+ * @type {string}
1250
+ * @memberof DetailTranslationContent
1251
+ */
1252
+ 'updated': string;
1253
+ }
1254
+ /**
1255
+ *
1256
+ * @export
1257
+ * @interface FilterAmenityDto
1258
+ */
1259
+ export interface FilterAmenityDto {
1260
+ /**
1261
+ *
1262
+ * @type {string}
1263
+ * @memberof FilterAmenityDto
1264
+ */
1265
+ 'types'?: FilterAmenityDtoTypesEnum;
1266
+ /**
1267
+ *
1268
+ * @type {string}
1269
+ * @memberof FilterAmenityDto
1270
+ */
1271
+ 'search'?: string;
750
1272
  }
751
1273
 
752
1274
  export const FilterAmenityDtoTypesEnum = {
@@ -757,6 +1279,117 @@ export const FilterAmenityDtoTypesEnum = {
757
1279
 
758
1280
  export type FilterAmenityDtoTypesEnum = typeof FilterAmenityDtoTypesEnum[keyof typeof FilterAmenityDtoTypesEnum];
759
1281
 
1282
+ /**
1283
+ *
1284
+ * @export
1285
+ * @interface FilterBookingsDto
1286
+ */
1287
+ export interface FilterBookingsDto {
1288
+ /**
1289
+ * Filter by booking status
1290
+ * @type {Array<string>}
1291
+ * @memberof FilterBookingsDto
1292
+ */
1293
+ 'status'?: Array<FilterBookingsDtoStatusEnum>;
1294
+ /**
1295
+ * Filter by booking type
1296
+ * @type {string}
1297
+ * @memberof FilterBookingsDto
1298
+ */
1299
+ 'type'?: FilterBookingsDtoTypeEnum;
1300
+ /**
1301
+ * Search by keyword
1302
+ * @type {string}
1303
+ * @memberof FilterBookingsDto
1304
+ */
1305
+ 'keyword'?: string;
1306
+ /**
1307
+ * Filter by branch
1308
+ * @type {string}
1309
+ * @memberof FilterBookingsDto
1310
+ */
1311
+ 'branchId'?: string;
1312
+ /**
1313
+ * Filter by user
1314
+ * @type {string}
1315
+ * @memberof FilterBookingsDto
1316
+ */
1317
+ 'userId'?: string;
1318
+ /**
1319
+ * Filter by room detail
1320
+ * @type {string}
1321
+ * @memberof FilterBookingsDto
1322
+ */
1323
+ 'detailId'?: string;
1324
+ /**
1325
+ * Filter by room
1326
+ * @type {string}
1327
+ * @memberof FilterBookingsDto
1328
+ */
1329
+ 'roomId'?: string;
1330
+ /**
1331
+ * Filter by start date
1332
+ * @type {string}
1333
+ * @memberof FilterBookingsDto
1334
+ */
1335
+ 'start_date'?: string;
1336
+ /**
1337
+ * Filter by end date
1338
+ * @type {string}
1339
+ * @memberof FilterBookingsDto
1340
+ */
1341
+ 'end_date'?: string;
1342
+ /**
1343
+ * Filter by payment status
1344
+ * @type {string}
1345
+ * @memberof FilterBookingsDto
1346
+ */
1347
+ 'payment_status'?: FilterBookingsDtoPaymentStatusEnum;
1348
+ /**
1349
+ * Filter by payment method
1350
+ * @type {string}
1351
+ * @memberof FilterBookingsDto
1352
+ */
1353
+ 'payment_method'?: FilterBookingsDtoPaymentMethodEnum;
1354
+ }
1355
+
1356
+ export const FilterBookingsDtoStatusEnum = {
1357
+ Pending: 'PENDING',
1358
+ WaitingForCheckIn: 'WAITING_FOR_CHECK_IN',
1359
+ CheckedIn: 'CHECKED_IN',
1360
+ Cancelled: 'CANCELLED',
1361
+ Completed: 'COMPLETED',
1362
+ Refunded: 'REFUNDED',
1363
+ Rejected: 'REJECTED'
1364
+ } as const;
1365
+
1366
+ export type FilterBookingsDtoStatusEnum = typeof FilterBookingsDtoStatusEnum[keyof typeof FilterBookingsDtoStatusEnum];
1367
+ export const FilterBookingsDtoTypeEnum = {
1368
+ Hourly: 'HOURLY',
1369
+ Nightly: 'NIGHTLY',
1370
+ Daily: 'DAILY'
1371
+ } as const;
1372
+
1373
+ export type FilterBookingsDtoTypeEnum = typeof FilterBookingsDtoTypeEnum[keyof typeof FilterBookingsDtoTypeEnum];
1374
+ export const FilterBookingsDtoPaymentStatusEnum = {
1375
+ Unpaid: 'UNPAID',
1376
+ Paid: 'PAID',
1377
+ Failed: 'FAILED',
1378
+ Refunded: 'REFUNDED'
1379
+ } as const;
1380
+
1381
+ export type FilterBookingsDtoPaymentStatusEnum = typeof FilterBookingsDtoPaymentStatusEnum[keyof typeof FilterBookingsDtoPaymentStatusEnum];
1382
+ export const FilterBookingsDtoPaymentMethodEnum = {
1383
+ Cash: 'CASH',
1384
+ Banking: 'BANKING',
1385
+ Zalopay: 'ZALOPAY',
1386
+ Momo: 'MOMO',
1387
+ VnPay: 'VN_PAY',
1388
+ VietQr: 'VIET_QR'
1389
+ } as const;
1390
+
1391
+ export type FilterBookingsDtoPaymentMethodEnum = typeof FilterBookingsDtoPaymentMethodEnum[keyof typeof FilterBookingsDtoPaymentMethodEnum];
1392
+
760
1393
  /**
761
1394
  *
762
1395
  * @export
@@ -841,6 +1474,32 @@ export const FilterHotelRoomDtoStatusEnum = {
841
1474
 
842
1475
  export type FilterHotelRoomDtoStatusEnum = typeof FilterHotelRoomDtoStatusEnum[keyof typeof FilterHotelRoomDtoStatusEnum];
843
1476
 
1477
+ /**
1478
+ *
1479
+ * @export
1480
+ * @interface FilterMyBookingsDto
1481
+ */
1482
+ export interface FilterMyBookingsDto {
1483
+ /**
1484
+ * Filter by booking status
1485
+ * @type {Array<string>}
1486
+ * @memberof FilterMyBookingsDto
1487
+ */
1488
+ 'status'?: Array<FilterMyBookingsDtoStatusEnum>;
1489
+ }
1490
+
1491
+ export const FilterMyBookingsDtoStatusEnum = {
1492
+ Pending: 'PENDING',
1493
+ WaitingForCheckIn: 'WAITING_FOR_CHECK_IN',
1494
+ CheckedIn: 'CHECKED_IN',
1495
+ Cancelled: 'CANCELLED',
1496
+ Completed: 'COMPLETED',
1497
+ Refunded: 'REFUNDED',
1498
+ Rejected: 'REJECTED'
1499
+ } as const;
1500
+
1501
+ export type FilterMyBookingsDtoStatusEnum = typeof FilterMyBookingsDtoStatusEnum[keyof typeof FilterMyBookingsDtoStatusEnum];
1502
+
844
1503
  /**
845
1504
  *
846
1505
  * @export
@@ -972,6 +1631,59 @@ export const FilterUserDtoRolesEnum = {
972
1631
 
973
1632
  export type FilterUserDtoRolesEnum = typeof FilterUserDtoRolesEnum[keyof typeof FilterUserDtoRolesEnum];
974
1633
 
1634
+ /**
1635
+ *
1636
+ * @export
1637
+ * @interface GetTranslationsRequestDto
1638
+ */
1639
+ export interface GetTranslationsRequestDto {
1640
+ /**
1641
+ * Language code to fetch translations for
1642
+ * @type {string}
1643
+ * @memberof GetTranslationsRequestDto
1644
+ */
1645
+ 'language': string;
1646
+ }
1647
+ /**
1648
+ *
1649
+ * @export
1650
+ * @interface GuestDetail
1651
+ */
1652
+ export interface GuestDetail {
1653
+ /**
1654
+ * Guest identification number
1655
+ * @type {string}
1656
+ * @memberof GuestDetail
1657
+ */
1658
+ 'identification_number': string;
1659
+ /**
1660
+ * Guest identification card type
1661
+ * @type {string}
1662
+ * @memberof GuestDetail
1663
+ */
1664
+ 'identification_card': GuestDetailIdentificationCardEnum;
1665
+ /**
1666
+ * Front image of the guest identification card
1667
+ * @type {Image}
1668
+ * @memberof GuestDetail
1669
+ */
1670
+ 'front_image': Image;
1671
+ /**
1672
+ * Back image of the guest identification card
1673
+ * @type {Image}
1674
+ * @memberof GuestDetail
1675
+ */
1676
+ 'back_image': Image;
1677
+ }
1678
+
1679
+ export const GuestDetailIdentificationCardEnum = {
1680
+ Cccd: 'CCCD',
1681
+ Cmnd: 'CMND',
1682
+ Cmt: 'CMT'
1683
+ } as const;
1684
+
1685
+ export type GuestDetailIdentificationCardEnum = typeof GuestDetailIdentificationCardEnum[keyof typeof GuestDetailIdentificationCardEnum];
1686
+
975
1687
  /**
976
1688
  *
977
1689
  * @export
@@ -1119,6 +1831,38 @@ export interface InitiateForgotPasswordEmailDto {
1119
1831
  */
1120
1832
  'email': string;
1121
1833
  }
1834
+ /**
1835
+ *
1836
+ * @export
1837
+ * @interface ListTranslationResponseDto
1838
+ */
1839
+ export interface ListTranslationResponseDto {
1840
+ /**
1841
+ *
1842
+ * @type {ResponseStatus}
1843
+ * @memberof ListTranslationResponseDto
1844
+ */
1845
+ 'response': ResponseStatus;
1846
+ /**
1847
+ *
1848
+ * @type {ListTranslationResult}
1849
+ * @memberof ListTranslationResponseDto
1850
+ */
1851
+ 'result': ListTranslationResult;
1852
+ }
1853
+ /**
1854
+ *
1855
+ * @export
1856
+ * @interface ListTranslationResult
1857
+ */
1858
+ export interface ListTranslationResult {
1859
+ /**
1860
+ *
1861
+ * @type {Array<Term>}
1862
+ * @memberof ListTranslationResult
1863
+ */
1864
+ 'terms': Array<Term>;
1865
+ }
1122
1866
  /**
1123
1867
  *
1124
1868
  * @export
@@ -1319,6 +2063,37 @@ export interface QueryAmenityDto {
1319
2063
  */
1320
2064
  'sort'?: string;
1321
2065
  }
2066
+ /**
2067
+ *
2068
+ * @export
2069
+ * @interface QueryBookingsDto
2070
+ */
2071
+ export interface QueryBookingsDto {
2072
+ /**
2073
+ *
2074
+ * @type {number}
2075
+ * @memberof QueryBookingsDto
2076
+ */
2077
+ 'page'?: number;
2078
+ /**
2079
+ *
2080
+ * @type {number}
2081
+ * @memberof QueryBookingsDto
2082
+ */
2083
+ 'pageSize'?: number;
2084
+ /**
2085
+ * JSON string of FilterBookingsDto
2086
+ * @type {string}
2087
+ * @memberof QueryBookingsDto
2088
+ */
2089
+ 'filters'?: string;
2090
+ /**
2091
+ * JSON string of SortBookingsDto[]
2092
+ * @type {string}
2093
+ * @memberof QueryBookingsDto
2094
+ */
2095
+ 'sort'?: string;
2096
+ }
1322
2097
  /**
1323
2098
  *
1324
2099
  * @export
@@ -1381,6 +2156,31 @@ export interface QueryHotelRoomDto {
1381
2156
  */
1382
2157
  'sort'?: string;
1383
2158
  }
2159
+ /**
2160
+ *
2161
+ * @export
2162
+ * @interface QueryMyBookingsDto
2163
+ */
2164
+ export interface QueryMyBookingsDto {
2165
+ /**
2166
+ *
2167
+ * @type {number}
2168
+ * @memberof QueryMyBookingsDto
2169
+ */
2170
+ 'page'?: number;
2171
+ /**
2172
+ *
2173
+ * @type {number}
2174
+ * @memberof QueryMyBookingsDto
2175
+ */
2176
+ 'pageSize'?: number;
2177
+ /**
2178
+ * Filter my bookings
2179
+ * @type {FilterMyBookingsDto}
2180
+ * @memberof QueryMyBookingsDto
2181
+ */
2182
+ 'filters'?: FilterMyBookingsDto;
2183
+ }
1384
2184
  /**
1385
2185
  *
1386
2186
  * @export
@@ -1603,6 +2403,31 @@ export interface ResetPasswordWithOTPEmailDto {
1603
2403
  */
1604
2404
  'newPassword': string;
1605
2405
  }
2406
+ /**
2407
+ *
2408
+ * @export
2409
+ * @interface ResponseStatus
2410
+ */
2411
+ export interface ResponseStatus {
2412
+ /**
2413
+ *
2414
+ * @type {string}
2415
+ * @memberof ResponseStatus
2416
+ */
2417
+ 'status': string;
2418
+ /**
2419
+ *
2420
+ * @type {string}
2421
+ * @memberof ResponseStatus
2422
+ */
2423
+ 'code': string;
2424
+ /**
2425
+ *
2426
+ * @type {string}
2427
+ * @memberof ResponseStatus
2428
+ */
2429
+ 'message': string;
2430
+ }
1606
2431
  /**
1607
2432
  *
1608
2433
  * @export
@@ -1868,6 +2693,33 @@ export const SortAmenityDtoOrderEnum = {
1868
2693
 
1869
2694
  export type SortAmenityDtoOrderEnum = typeof SortAmenityDtoOrderEnum[keyof typeof SortAmenityDtoOrderEnum];
1870
2695
 
2696
+ /**
2697
+ *
2698
+ * @export
2699
+ * @interface SortBookingsDto
2700
+ */
2701
+ export interface SortBookingsDto {
2702
+ /**
2703
+ * Key of Entity to sort
2704
+ * @type {string}
2705
+ * @memberof SortBookingsDto
2706
+ */
2707
+ 'orderBy': string;
2708
+ /**
2709
+ * Order of sorting
2710
+ * @type {string}
2711
+ * @memberof SortBookingsDto
2712
+ */
2713
+ 'order': SortBookingsDtoOrderEnum;
2714
+ }
2715
+
2716
+ export const SortBookingsDtoOrderEnum = {
2717
+ Asc: 'asc',
2718
+ Desc: 'desc'
2719
+ } as const;
2720
+
2721
+ export type SortBookingsDtoOrderEnum = typeof SortBookingsDtoOrderEnum[keyof typeof SortBookingsDtoOrderEnum];
2722
+
1871
2723
  /**
1872
2724
  *
1873
2725
  * @export
@@ -2006,51 +2858,138 @@ export type SortUserDtoOrderEnum = typeof SortUserDtoOrderEnum[keyof typeof Sort
2006
2858
  /**
2007
2859
  *
2008
2860
  * @export
2009
- * @interface UpdateAmenityDto
2861
+ * @interface Term
2010
2862
  */
2011
- export interface UpdateAmenityDto {
2863
+ export interface Term {
2012
2864
  /**
2013
- * The name of the amenity
2865
+ *
2014
2866
  * @type {string}
2015
- * @memberof UpdateAmenityDto
2867
+ * @memberof Term
2016
2868
  */
2017
- 'name'?: string;
2869
+ 'term': string;
2018
2870
  /**
2019
- * URL-friendly version of the name (lowercase, hyphenated)
2871
+ *
2020
2872
  * @type {string}
2021
- * @memberof UpdateAmenityDto
2873
+ * @memberof Term
2022
2874
  */
2023
- 'slug'?: string;
2875
+ 'context': string;
2024
2876
  /**
2025
- * Type of amenity (ROOM, PROPERTY, or SERVICE)
2877
+ *
2026
2878
  * @type {string}
2027
- * @memberof UpdateAmenityDto
2879
+ * @memberof Term
2028
2880
  */
2029
- 'type'?: UpdateAmenityDtoTypeEnum;
2881
+ 'plural'?: string;
2030
2882
  /**
2031
- * Icon image details
2032
- * @type {Image}
2033
- * @memberof UpdateAmenityDto
2883
+ *
2884
+ * @type {string}
2885
+ * @memberof Term
2034
2886
  */
2035
- 'icon'?: Image;
2036
- }
2037
-
2038
- export const UpdateAmenityDtoTypeEnum = {
2039
- Room: 'ROOM',
2040
- Property: 'PROPERTY',
2041
- Service: 'SERVICE'
2042
- } as const;
2043
-
2044
- export type UpdateAmenityDtoTypeEnum = typeof UpdateAmenityDtoTypeEnum[keyof typeof UpdateAmenityDtoTypeEnum];
2045
-
2046
- /**
2047
- *
2048
- * @export
2049
- * @interface UpdateBranchDto
2050
- */
2051
- export interface UpdateBranchDto {
2887
+ 'created'?: string;
2052
2888
  /**
2053
- * ID of the province where this branch is located
2889
+ *
2890
+ * @type {string}
2891
+ * @memberof Term
2892
+ */
2893
+ 'updated'?: string;
2894
+ /**
2895
+ *
2896
+ * @type {string}
2897
+ * @memberof Term
2898
+ */
2899
+ 'reference'?: string;
2900
+ /**
2901
+ *
2902
+ * @type {DetailTranslationContent}
2903
+ * @memberof Term
2904
+ */
2905
+ 'translation': DetailTranslationContent;
2906
+ }
2907
+ /**
2908
+ *
2909
+ * @export
2910
+ * @interface TranslationContent
2911
+ */
2912
+ export interface TranslationContent {
2913
+ /**
2914
+ *
2915
+ * @type {string}
2916
+ * @memberof TranslationContent
2917
+ */
2918
+ 'content': string;
2919
+ }
2920
+ /**
2921
+ *
2922
+ * @export
2923
+ * @interface TranslationData
2924
+ */
2925
+ export interface TranslationData {
2926
+ /**
2927
+ * The term to translate
2928
+ * @type {string}
2929
+ * @memberof TranslationData
2930
+ */
2931
+ 'term': string;
2932
+ /**
2933
+ *
2934
+ * @type {TranslationContent}
2935
+ * @memberof TranslationData
2936
+ */
2937
+ 'translation': TranslationContent;
2938
+ /**
2939
+ * Optional context for the translation
2940
+ * @type {string}
2941
+ * @memberof TranslationData
2942
+ */
2943
+ 'context'?: string;
2944
+ }
2945
+ /**
2946
+ *
2947
+ * @export
2948
+ * @interface UpdateAmenityDto
2949
+ */
2950
+ export interface UpdateAmenityDto {
2951
+ /**
2952
+ * The name of the amenity
2953
+ * @type {string}
2954
+ * @memberof UpdateAmenityDto
2955
+ */
2956
+ 'name'?: string;
2957
+ /**
2958
+ * URL-friendly version of the name (lowercase, hyphenated)
2959
+ * @type {string}
2960
+ * @memberof UpdateAmenityDto
2961
+ */
2962
+ 'slug'?: string;
2963
+ /**
2964
+ * Type of amenity (ROOM, PROPERTY, or SERVICE)
2965
+ * @type {string}
2966
+ * @memberof UpdateAmenityDto
2967
+ */
2968
+ 'type'?: UpdateAmenityDtoTypeEnum;
2969
+ /**
2970
+ * Icon image details
2971
+ * @type {Image}
2972
+ * @memberof UpdateAmenityDto
2973
+ */
2974
+ 'icon'?: Image;
2975
+ }
2976
+
2977
+ export const UpdateAmenityDtoTypeEnum = {
2978
+ Room: 'ROOM',
2979
+ Property: 'PROPERTY',
2980
+ Service: 'SERVICE'
2981
+ } as const;
2982
+
2983
+ export type UpdateAmenityDtoTypeEnum = typeof UpdateAmenityDtoTypeEnum[keyof typeof UpdateAmenityDtoTypeEnum];
2984
+
2985
+ /**
2986
+ *
2987
+ * @export
2988
+ * @interface UpdateBranchDto
2989
+ */
2990
+ export interface UpdateBranchDto {
2991
+ /**
2992
+ * ID of the province where this branch is located
2054
2993
  * @type {string}
2055
2994
  * @memberof UpdateBranchDto
2056
2995
  */
@@ -3980,172 +4919,673 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
3980
4919
  /**
3981
4920
  * AuthApi - object-oriented interface
3982
4921
  * @export
3983
- * @class AuthApi
4922
+ * @class AuthApi
4923
+ * @extends {BaseAPI}
4924
+ */
4925
+ export class AuthApi extends BaseAPI {
4926
+ /**
4927
+ *
4928
+ * @summary Change user password
4929
+ * @param {ChangePasswordDto} changePasswordDto
4930
+ * @param {*} [options] Override http request option.
4931
+ * @throws {RequiredError}
4932
+ * @memberof AuthApi
4933
+ */
4934
+ public authControllerChangePassword(changePasswordDto: ChangePasswordDto, options?: RawAxiosRequestConfig) {
4935
+ return AuthApiFp(this.configuration).authControllerChangePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
4936
+ }
4937
+
4938
+ /**
4939
+ * Retrieve all active sessions for the current user
4940
+ * @summary Get active sessions
4941
+ * @param {*} [options] Override http request option.
4942
+ * @throws {RequiredError}
4943
+ * @memberof AuthApi
4944
+ */
4945
+ public authControllerGetActiveSessions(options?: RawAxiosRequestConfig) {
4946
+ return AuthApiFp(this.configuration).authControllerGetActiveSessions(options).then((request) => request(this.axios, this.basePath));
4947
+ }
4948
+
4949
+ /**
4950
+ *
4951
+ * @summary Get current user profile
4952
+ * @param {*} [options] Override http request option.
4953
+ * @throws {RequiredError}
4954
+ * @memberof AuthApi
4955
+ */
4956
+ public authControllerGetProfile(options?: RawAxiosRequestConfig) {
4957
+ return AuthApiFp(this.configuration).authControllerGetProfile(options).then((request) => request(this.axios, this.basePath));
4958
+ }
4959
+
4960
+ /**
4961
+ * Get analytics data for user sessions. Requires ADMIN role.
4962
+ * @summary Get session analytics
4963
+ * @param {string} userId
4964
+ * @param {*} [options] Override http request option.
4965
+ * @throws {RequiredError}
4966
+ * @memberof AuthApi
4967
+ */
4968
+ public authControllerGetSessionAnalytics(userId: string, options?: RawAxiosRequestConfig) {
4969
+ return AuthApiFp(this.configuration).authControllerGetSessionAnalytics(userId, options).then((request) => request(this.axios, this.basePath));
4970
+ }
4971
+
4972
+ /**
4973
+ * Get suspicious activities for a specific user. Requires ADMIN role.
4974
+ * @summary Get suspicious activities
4975
+ * @param {string} userId
4976
+ * @param {*} [options] Override http request option.
4977
+ * @throws {RequiredError}
4978
+ * @memberof AuthApi
4979
+ */
4980
+ public authControllerGetSuspiciousActivities(userId: string, options?: RawAxiosRequestConfig) {
4981
+ return AuthApiFp(this.configuration).authControllerGetSuspiciousActivities(userId, options).then((request) => request(this.axios, this.basePath));
4982
+ }
4983
+
4984
+ /**
4985
+ *
4986
+ * @summary Initiate forgot password process
4987
+ * @param {InitiateForgotPasswordEmailDto} initiateForgotPasswordEmailDto
4988
+ * @param {*} [options] Override http request option.
4989
+ * @throws {RequiredError}
4990
+ * @memberof AuthApi
4991
+ */
4992
+ public authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto: InitiateForgotPasswordEmailDto, options?: RawAxiosRequestConfig) {
4993
+ return AuthApiFp(this.configuration).authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto, options).then((request) => request(this.axios, this.basePath));
4994
+ }
4995
+
4996
+ /**
4997
+ *
4998
+ * @param {string} userAgent
4999
+ * @param {LoginDto} loginDto
5000
+ * @param {*} [options] Override http request option.
5001
+ * @throws {RequiredError}
5002
+ * @memberof AuthApi
5003
+ */
5004
+ public authControllerLogin(userAgent: string, loginDto: LoginDto, options?: RawAxiosRequestConfig) {
5005
+ return AuthApiFp(this.configuration).authControllerLogin(userAgent, loginDto, options).then((request) => request(this.axios, this.basePath));
5006
+ }
5007
+
5008
+ /**
5009
+ * Revoke the current refresh token, effectively logging out the user
5010
+ * @summary Logout user
5011
+ * @param {*} [options] Override http request option.
5012
+ * @throws {RequiredError}
5013
+ * @memberof AuthApi
5014
+ */
5015
+ public authControllerLogout(options?: RawAxiosRequestConfig) {
5016
+ return AuthApiFp(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
5017
+ }
5018
+
5019
+ /**
5020
+ * Exchange a valid refresh token for a new access token and refresh token pair
5021
+ * @summary Refresh access token
5022
+ * @param {RefreshTokenDto} refreshTokenDto
5023
+ * @param {*} [options] Override http request option.
5024
+ * @throws {RequiredError}
5025
+ * @memberof AuthApi
5026
+ */
5027
+ public authControllerRefreshTokens(refreshTokenDto: RefreshTokenDto, options?: RawAxiosRequestConfig) {
5028
+ return AuthApiFp(this.configuration).authControllerRefreshTokens(refreshTokenDto, options).then((request) => request(this.axios, this.basePath));
5029
+ }
5030
+
5031
+ /**
5032
+ *
5033
+ * @param {RegisterDto} registerDto
5034
+ * @param {*} [options] Override http request option.
5035
+ * @throws {RequiredError}
5036
+ * @memberof AuthApi
5037
+ */
5038
+ public authControllerRegister(registerDto: RegisterDto, options?: RawAxiosRequestConfig) {
5039
+ return AuthApiFp(this.configuration).authControllerRegister(registerDto, options).then((request) => request(this.axios, this.basePath));
5040
+ }
5041
+
5042
+ /**
5043
+ *
5044
+ * @summary Reset password using OTP
5045
+ * @param {ResetPasswordWithOTPEmailDto} resetPasswordWithOTPEmailDto
5046
+ * @param {*} [options] Override http request option.
5047
+ * @throws {RequiredError}
5048
+ * @memberof AuthApi
5049
+ */
5050
+ public authControllerResetPasswordWithOTP(resetPasswordWithOTPEmailDto: ResetPasswordWithOTPEmailDto, options?: RawAxiosRequestConfig) {
5051
+ return AuthApiFp(this.configuration).authControllerResetPasswordWithOTP(resetPasswordWithOTPEmailDto, options).then((request) => request(this.axios, this.basePath));
5052
+ }
5053
+
5054
+ /**
5055
+ * Revoke a specific session by its ID
5056
+ * @summary Revoke specific session
5057
+ * @param {string} sessionId
5058
+ * @param {*} [options] Override http request option.
5059
+ * @throws {RequiredError}
5060
+ * @memberof AuthApi
5061
+ */
5062
+ public authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig) {
5063
+ return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
5064
+ }
5065
+
5066
+ /**
5067
+ *
5068
+ * @summary Update user profile
5069
+ * @param {UpdateProfileDto} updateProfileDto
5070
+ * @param {*} [options] Override http request option.
5071
+ * @throws {RequiredError}
5072
+ * @memberof AuthApi
5073
+ */
5074
+ public authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig) {
5075
+ return AuthApiFp(this.configuration).authControllerUpdateProfile(updateProfileDto, options).then((request) => request(this.axios, this.basePath));
5076
+ }
5077
+
5078
+ /**
5079
+ *
5080
+ * @summary Verify email with OTP code
5081
+ * @param {VerifyEmailDto} verifyEmailDto
5082
+ * @param {*} [options] Override http request option.
5083
+ * @throws {RequiredError}
5084
+ * @memberof AuthApi
5085
+ */
5086
+ public authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig) {
5087
+ return AuthApiFp(this.configuration).authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
5088
+ }
5089
+ }
5090
+
5091
+
5092
+
5093
+ /**
5094
+ * BookingApi - axios parameter creator
5095
+ * @export
5096
+ */
5097
+ export const BookingApiAxiosParamCreator = function (configuration?: Configuration) {
5098
+ return {
5099
+ /**
5100
+ *
5101
+ * @summary Create a new booking directly at the hotel
5102
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
5103
+ * @param {*} [options] Override http request option.
5104
+ * @throws {RequiredError}
5105
+ */
5106
+ bookingControllerCreateBookingDirectly: async (createBookingAtHotelDto: CreateBookingAtHotelDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5107
+ // verify required parameter 'createBookingAtHotelDto' is not null or undefined
5108
+ assertParamExists('bookingControllerCreateBookingDirectly', 'createBookingAtHotelDto', createBookingAtHotelDto)
5109
+ const localVarPath = `/api/booking/directly`;
5110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5112
+ let baseOptions;
5113
+ if (configuration) {
5114
+ baseOptions = configuration.baseOptions;
5115
+ }
5116
+
5117
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5118
+ const localVarHeaderParameter = {} as any;
5119
+ const localVarQueryParameter = {} as any;
5120
+
5121
+
5122
+
5123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5124
+
5125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5128
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingAtHotelDto, localVarRequestOptions, configuration)
5129
+
5130
+ return {
5131
+ url: toPathString(localVarUrlObj),
5132
+ options: localVarRequestOptions,
5133
+ };
5134
+ },
5135
+ /**
5136
+ *
5137
+ * @summary Create a new booking online
5138
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
5139
+ * @param {*} [options] Override http request option.
5140
+ * @throws {RequiredError}
5141
+ */
5142
+ bookingControllerCreateBookingOnline: async (createBookingOnlineDto: CreateBookingOnlineDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5143
+ // verify required parameter 'createBookingOnlineDto' is not null or undefined
5144
+ assertParamExists('bookingControllerCreateBookingOnline', 'createBookingOnlineDto', createBookingOnlineDto)
5145
+ const localVarPath = `/api/booking`;
5146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5148
+ let baseOptions;
5149
+ if (configuration) {
5150
+ baseOptions = configuration.baseOptions;
5151
+ }
5152
+
5153
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5154
+ const localVarHeaderParameter = {} as any;
5155
+ const localVarQueryParameter = {} as any;
5156
+
5157
+
5158
+
5159
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5160
+
5161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5163
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5164
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingOnlineDto, localVarRequestOptions, configuration)
5165
+
5166
+ return {
5167
+ url: toPathString(localVarUrlObj),
5168
+ options: localVarRequestOptions,
5169
+ };
5170
+ },
5171
+ /**
5172
+ *
5173
+ * @summary Get booking details
5174
+ * @param {string} bookingId
5175
+ * @param {*} [options] Override http request option.
5176
+ * @throws {RequiredError}
5177
+ */
5178
+ bookingControllerFindById: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5179
+ // verify required parameter 'bookingId' is not null or undefined
5180
+ assertParamExists('bookingControllerFindById', 'bookingId', bookingId)
5181
+ const localVarPath = `/api/booking/{bookingId}`
5182
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
5183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5184
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5185
+ let baseOptions;
5186
+ if (configuration) {
5187
+ baseOptions = configuration.baseOptions;
5188
+ }
5189
+
5190
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5191
+ const localVarHeaderParameter = {} as any;
5192
+ const localVarQueryParameter = {} as any;
5193
+
5194
+
5195
+
5196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5198
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5199
+
5200
+ return {
5201
+ url: toPathString(localVarUrlObj),
5202
+ options: localVarRequestOptions,
5203
+ };
5204
+ },
5205
+ /**
5206
+ *
5207
+ * @summary Get all bookings with pagination and filters
5208
+ * @param {number} [page]
5209
+ * @param {number} [pageSize]
5210
+ * @param {string} [filters] JSON string of FilterBookingsDto
5211
+ * @param {string} [sort] JSON string of SortBookingsDto[]
5212
+ * @param {*} [options] Override http request option.
5213
+ * @throws {RequiredError}
5214
+ */
5215
+ bookingControllerGetBookings: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5216
+ const localVarPath = `/api/booking`;
5217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5218
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5219
+ let baseOptions;
5220
+ if (configuration) {
5221
+ baseOptions = configuration.baseOptions;
5222
+ }
5223
+
5224
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5225
+ const localVarHeaderParameter = {} as any;
5226
+ const localVarQueryParameter = {} as any;
5227
+
5228
+ if (page !== undefined) {
5229
+ localVarQueryParameter['page'] = page;
5230
+ }
5231
+
5232
+ if (pageSize !== undefined) {
5233
+ localVarQueryParameter['pageSize'] = pageSize;
5234
+ }
5235
+
5236
+ if (filters !== undefined) {
5237
+ localVarQueryParameter['filters'] = filters;
5238
+ }
5239
+
5240
+ if (sort !== undefined) {
5241
+ localVarQueryParameter['sort'] = sort;
5242
+ }
5243
+
5244
+
5245
+
5246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5248
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5249
+
5250
+ return {
5251
+ url: toPathString(localVarUrlObj),
5252
+ options: localVarRequestOptions,
5253
+ };
5254
+ },
5255
+ /**
5256
+ *
5257
+ * @summary Get all my bookings with pagination and filters
5258
+ * @param {number} [page]
5259
+ * @param {number} [pageSize]
5260
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
5261
+ * @param {*} [options] Override http request option.
5262
+ * @throws {RequiredError}
5263
+ */
5264
+ bookingControllerGetMyBookings: async (page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5265
+ const localVarPath = `/api/booking/my-bookings`;
5266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5268
+ let baseOptions;
5269
+ if (configuration) {
5270
+ baseOptions = configuration.baseOptions;
5271
+ }
5272
+
5273
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5274
+ const localVarHeaderParameter = {} as any;
5275
+ const localVarQueryParameter = {} as any;
5276
+
5277
+ if (page !== undefined) {
5278
+ localVarQueryParameter['page'] = page;
5279
+ }
5280
+
5281
+ if (pageSize !== undefined) {
5282
+ localVarQueryParameter['pageSize'] = pageSize;
5283
+ }
5284
+
5285
+ if (filters !== undefined) {
5286
+ for (const [key, value] of Object.entries(filters)) {
5287
+ localVarQueryParameter[key] = value;
5288
+ }
5289
+ }
5290
+
5291
+
5292
+
5293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5296
+
5297
+ return {
5298
+ url: toPathString(localVarUrlObj),
5299
+ options: localVarRequestOptions,
5300
+ };
5301
+ },
5302
+ /**
5303
+ *
5304
+ * @summary Update booking status
5305
+ * @param {string} bookingId
5306
+ * @param {*} [options] Override http request option.
5307
+ * @throws {RequiredError}
5308
+ */
5309
+ bookingControllerUpdateBookingStatus: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5310
+ // verify required parameter 'bookingId' is not null or undefined
5311
+ assertParamExists('bookingControllerUpdateBookingStatus', 'bookingId', bookingId)
5312
+ const localVarPath = `/api/booking/update-status/{bookingId}`
5313
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
5314
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5315
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5316
+ let baseOptions;
5317
+ if (configuration) {
5318
+ baseOptions = configuration.baseOptions;
5319
+ }
5320
+
5321
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5322
+ const localVarHeaderParameter = {} as any;
5323
+ const localVarQueryParameter = {} as any;
5324
+
5325
+
5326
+
5327
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5328
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5329
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5330
+
5331
+ return {
5332
+ url: toPathString(localVarUrlObj),
5333
+ options: localVarRequestOptions,
5334
+ };
5335
+ },
5336
+ }
5337
+ };
5338
+
5339
+ /**
5340
+ * BookingApi - functional programming interface
5341
+ * @export
5342
+ */
5343
+ export const BookingApiFp = function(configuration?: Configuration) {
5344
+ const localVarAxiosParamCreator = BookingApiAxiosParamCreator(configuration)
5345
+ return {
5346
+ /**
5347
+ *
5348
+ * @summary Create a new booking directly at the hotel
5349
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
5350
+ * @param {*} [options] Override http request option.
5351
+ * @throws {RequiredError}
5352
+ */
5353
+ async bookingControllerCreateBookingDirectly(createBookingAtHotelDto: CreateBookingAtHotelDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCreateBookingDirectly(createBookingAtHotelDto, options);
5355
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5356
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCreateBookingDirectly']?.[localVarOperationServerIndex]?.url;
5357
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5358
+ },
5359
+ /**
5360
+ *
5361
+ * @summary Create a new booking online
5362
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
5363
+ * @param {*} [options] Override http request option.
5364
+ * @throws {RequiredError}
5365
+ */
5366
+ async bookingControllerCreateBookingOnline(createBookingOnlineDto: CreateBookingOnlineDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCreateBookingOnline(createBookingOnlineDto, options);
5368
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5369
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCreateBookingOnline']?.[localVarOperationServerIndex]?.url;
5370
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5371
+ },
5372
+ /**
5373
+ *
5374
+ * @summary Get booking details
5375
+ * @param {string} bookingId
5376
+ * @param {*} [options] Override http request option.
5377
+ * @throws {RequiredError}
5378
+ */
5379
+ async bookingControllerFindById(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerFindById(bookingId, options);
5381
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5382
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerFindById']?.[localVarOperationServerIndex]?.url;
5383
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5384
+ },
5385
+ /**
5386
+ *
5387
+ * @summary Get all bookings with pagination and filters
5388
+ * @param {number} [page]
5389
+ * @param {number} [pageSize]
5390
+ * @param {string} [filters] JSON string of FilterBookingsDto
5391
+ * @param {string} [sort] JSON string of SortBookingsDto[]
5392
+ * @param {*} [options] Override http request option.
5393
+ * @throws {RequiredError}
5394
+ */
5395
+ async bookingControllerGetBookings(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPaginationResultDto>> {
5396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerGetBookings(page, pageSize, filters, sort, options);
5397
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5398
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerGetBookings']?.[localVarOperationServerIndex]?.url;
5399
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5400
+ },
5401
+ /**
5402
+ *
5403
+ * @summary Get all my bookings with pagination and filters
5404
+ * @param {number} [page]
5405
+ * @param {number} [pageSize]
5406
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
5407
+ * @param {*} [options] Override http request option.
5408
+ * @throws {RequiredError}
5409
+ */
5410
+ async bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPaginationResultDto>> {
5411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerGetMyBookings(page, pageSize, filters, options);
5412
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5413
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerGetMyBookings']?.[localVarOperationServerIndex]?.url;
5414
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5415
+ },
5416
+ /**
5417
+ *
5418
+ * @summary Update booking status
5419
+ * @param {string} bookingId
5420
+ * @param {*} [options] Override http request option.
5421
+ * @throws {RequiredError}
5422
+ */
5423
+ async bookingControllerUpdateBookingStatus(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Booking>> {
5424
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerUpdateBookingStatus(bookingId, options);
5425
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5426
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerUpdateBookingStatus']?.[localVarOperationServerIndex]?.url;
5427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5428
+ },
5429
+ }
5430
+ };
5431
+
5432
+ /**
5433
+ * BookingApi - factory interface
5434
+ * @export
5435
+ */
5436
+ export const BookingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5437
+ const localVarFp = BookingApiFp(configuration)
5438
+ return {
5439
+ /**
5440
+ *
5441
+ * @summary Create a new booking directly at the hotel
5442
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
5443
+ * @param {*} [options] Override http request option.
5444
+ * @throws {RequiredError}
5445
+ */
5446
+ bookingControllerCreateBookingDirectly(createBookingAtHotelDto: CreateBookingAtHotelDto, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5447
+ return localVarFp.bookingControllerCreateBookingDirectly(createBookingAtHotelDto, options).then((request) => request(axios, basePath));
5448
+ },
5449
+ /**
5450
+ *
5451
+ * @summary Create a new booking online
5452
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
5453
+ * @param {*} [options] Override http request option.
5454
+ * @throws {RequiredError}
5455
+ */
5456
+ bookingControllerCreateBookingOnline(createBookingOnlineDto: CreateBookingOnlineDto, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5457
+ return localVarFp.bookingControllerCreateBookingOnline(createBookingOnlineDto, options).then((request) => request(axios, basePath));
5458
+ },
5459
+ /**
5460
+ *
5461
+ * @summary Get booking details
5462
+ * @param {string} bookingId
5463
+ * @param {*} [options] Override http request option.
5464
+ * @throws {RequiredError}
5465
+ */
5466
+ bookingControllerFindById(bookingId: string, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5467
+ return localVarFp.bookingControllerFindById(bookingId, options).then((request) => request(axios, basePath));
5468
+ },
5469
+ /**
5470
+ *
5471
+ * @summary Get all bookings with pagination and filters
5472
+ * @param {number} [page]
5473
+ * @param {number} [pageSize]
5474
+ * @param {string} [filters] JSON string of FilterBookingsDto
5475
+ * @param {string} [sort] JSON string of SortBookingsDto[]
5476
+ * @param {*} [options] Override http request option.
5477
+ * @throws {RequiredError}
5478
+ */
5479
+ bookingControllerGetBookings(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPaginationResultDto> {
5480
+ return localVarFp.bookingControllerGetBookings(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
5481
+ },
5482
+ /**
5483
+ *
5484
+ * @summary Get all my bookings with pagination and filters
5485
+ * @param {number} [page]
5486
+ * @param {number} [pageSize]
5487
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
5488
+ * @param {*} [options] Override http request option.
5489
+ * @throws {RequiredError}
5490
+ */
5491
+ bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPaginationResultDto> {
5492
+ return localVarFp.bookingControllerGetMyBookings(page, pageSize, filters, options).then((request) => request(axios, basePath));
5493
+ },
5494
+ /**
5495
+ *
5496
+ * @summary Update booking status
5497
+ * @param {string} bookingId
5498
+ * @param {*} [options] Override http request option.
5499
+ * @throws {RequiredError}
5500
+ */
5501
+ bookingControllerUpdateBookingStatus(bookingId: string, options?: RawAxiosRequestConfig): AxiosPromise<Booking> {
5502
+ return localVarFp.bookingControllerUpdateBookingStatus(bookingId, options).then((request) => request(axios, basePath));
5503
+ },
5504
+ };
5505
+ };
5506
+
5507
+ /**
5508
+ * BookingApi - object-oriented interface
5509
+ * @export
5510
+ * @class BookingApi
3984
5511
  * @extends {BaseAPI}
3985
5512
  */
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
-
5513
+ export class BookingApi extends BaseAPI {
4045
5514
  /**
4046
5515
  *
4047
- * @summary Initiate forgot password process
4048
- * @param {InitiateForgotPasswordEmailDto} initiateForgotPasswordEmailDto
5516
+ * @summary Create a new booking directly at the hotel
5517
+ * @param {CreateBookingAtHotelDto} createBookingAtHotelDto
4049
5518
  * @param {*} [options] Override http request option.
4050
5519
  * @throws {RequiredError}
4051
- * @memberof AuthApi
5520
+ * @memberof BookingApi
4052
5521
  */
4053
- public authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto: InitiateForgotPasswordEmailDto, options?: RawAxiosRequestConfig) {
4054
- return AuthApiFp(this.configuration).authControllerInitiateForgotPassword(initiateForgotPasswordEmailDto, options).then((request) => request(this.axios, this.basePath));
5522
+ public bookingControllerCreateBookingDirectly(createBookingAtHotelDto: CreateBookingAtHotelDto, options?: RawAxiosRequestConfig) {
5523
+ return BookingApiFp(this.configuration).bookingControllerCreateBookingDirectly(createBookingAtHotelDto, options).then((request) => request(this.axios, this.basePath));
4055
5524
  }
4056
5525
 
4057
5526
  /**
4058
5527
  *
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
5528
+ * @summary Create a new booking online
5529
+ * @param {CreateBookingOnlineDto} createBookingOnlineDto
4084
5530
  * @param {*} [options] Override http request option.
4085
5531
  * @throws {RequiredError}
4086
- * @memberof AuthApi
5532
+ * @memberof BookingApi
4087
5533
  */
4088
- public authControllerRefreshTokens(refreshTokenDto: RefreshTokenDto, options?: RawAxiosRequestConfig) {
4089
- return AuthApiFp(this.configuration).authControllerRefreshTokens(refreshTokenDto, options).then((request) => request(this.axios, this.basePath));
5534
+ public bookingControllerCreateBookingOnline(createBookingOnlineDto: CreateBookingOnlineDto, options?: RawAxiosRequestConfig) {
5535
+ return BookingApiFp(this.configuration).bookingControllerCreateBookingOnline(createBookingOnlineDto, options).then((request) => request(this.axios, this.basePath));
4090
5536
  }
4091
5537
 
4092
5538
  /**
4093
5539
  *
4094
- * @param {RegisterDto} registerDto
5540
+ * @summary Get booking details
5541
+ * @param {string} bookingId
4095
5542
  * @param {*} [options] Override http request option.
4096
5543
  * @throws {RequiredError}
4097
- * @memberof AuthApi
5544
+ * @memberof BookingApi
4098
5545
  */
4099
- public authControllerRegister(registerDto: RegisterDto, options?: RawAxiosRequestConfig) {
4100
- return AuthApiFp(this.configuration).authControllerRegister(registerDto, options).then((request) => request(this.axios, this.basePath));
5546
+ public bookingControllerFindById(bookingId: string, options?: RawAxiosRequestConfig) {
5547
+ return BookingApiFp(this.configuration).bookingControllerFindById(bookingId, options).then((request) => request(this.axios, this.basePath));
4101
5548
  }
4102
5549
 
4103
5550
  /**
4104
5551
  *
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
5552
+ * @summary Get all bookings with pagination and filters
5553
+ * @param {number} [page]
5554
+ * @param {number} [pageSize]
5555
+ * @param {string} [filters] JSON string of FilterBookingsDto
5556
+ * @param {string} [sort] JSON string of SortBookingsDto[]
4119
5557
  * @param {*} [options] Override http request option.
4120
5558
  * @throws {RequiredError}
4121
- * @memberof AuthApi
5559
+ * @memberof BookingApi
4122
5560
  */
4123
- public authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig) {
4124
- return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
5561
+ public bookingControllerGetBookings(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
5562
+ return BookingApiFp(this.configuration).bookingControllerGetBookings(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
4125
5563
  }
4126
5564
 
4127
5565
  /**
4128
5566
  *
4129
- * @summary Update user profile
4130
- * @param {UpdateProfileDto} updateProfileDto
5567
+ * @summary Get all my bookings with pagination and filters
5568
+ * @param {number} [page]
5569
+ * @param {number} [pageSize]
5570
+ * @param {FilterMyBookingsDto} [filters] Filter my bookings
4131
5571
  * @param {*} [options] Override http request option.
4132
5572
  * @throws {RequiredError}
4133
- * @memberof AuthApi
5573
+ * @memberof BookingApi
4134
5574
  */
4135
- public authControllerUpdateProfile(updateProfileDto: UpdateProfileDto, options?: RawAxiosRequestConfig) {
4136
- return AuthApiFp(this.configuration).authControllerUpdateProfile(updateProfileDto, options).then((request) => request(this.axios, this.basePath));
5575
+ public bookingControllerGetMyBookings(page?: number, pageSize?: number, filters?: FilterMyBookingsDto, options?: RawAxiosRequestConfig) {
5576
+ return BookingApiFp(this.configuration).bookingControllerGetMyBookings(page, pageSize, filters, options).then((request) => request(this.axios, this.basePath));
4137
5577
  }
4138
5578
 
4139
5579
  /**
4140
5580
  *
4141
- * @summary Verify email with OTP code
4142
- * @param {VerifyEmailDto} verifyEmailDto
5581
+ * @summary Update booking status
5582
+ * @param {string} bookingId
4143
5583
  * @param {*} [options] Override http request option.
4144
5584
  * @throws {RequiredError}
4145
- * @memberof AuthApi
5585
+ * @memberof BookingApi
4146
5586
  */
4147
- public authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig) {
4148
- return AuthApiFp(this.configuration).authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
5587
+ public bookingControllerUpdateBookingStatus(bookingId: string, options?: RawAxiosRequestConfig) {
5588
+ return BookingApiFp(this.configuration).bookingControllerUpdateBookingStatus(bookingId, options).then((request) => request(this.axios, this.basePath));
4149
5589
  }
4150
5590
  }
4151
5591
 
@@ -5208,6 +6648,187 @@ export class ImagesApi extends BaseAPI {
5208
6648
 
5209
6649
 
5210
6650
 
6651
+ /**
6652
+ * POEditorApi - axios parameter creator
6653
+ * @export
6654
+ */
6655
+ export const POEditorApiAxiosParamCreator = function (configuration?: Configuration) {
6656
+ return {
6657
+ /**
6658
+ *
6659
+ * @summary Add translations to POEditor project
6660
+ * @param {AddTranslationDto} addTranslationDto
6661
+ * @param {*} [options] Override http request option.
6662
+ * @throws {RequiredError}
6663
+ */
6664
+ poeditorControllerAddTranslation: async (addTranslationDto: AddTranslationDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6665
+ // verify required parameter 'addTranslationDto' is not null or undefined
6666
+ assertParamExists('poeditorControllerAddTranslation', 'addTranslationDto', addTranslationDto)
6667
+ const localVarPath = `/api/poeditor/translations`;
6668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6670
+ let baseOptions;
6671
+ if (configuration) {
6672
+ baseOptions = configuration.baseOptions;
6673
+ }
6674
+
6675
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6676
+ const localVarHeaderParameter = {} as any;
6677
+ const localVarQueryParameter = {} as any;
6678
+
6679
+
6680
+
6681
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6682
+
6683
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6685
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6686
+ localVarRequestOptions.data = serializeDataIfNeeded(addTranslationDto, localVarRequestOptions, configuration)
6687
+
6688
+ return {
6689
+ url: toPathString(localVarUrlObj),
6690
+ options: localVarRequestOptions,
6691
+ };
6692
+ },
6693
+ /**
6694
+ *
6695
+ * @summary Get translations from POEditor project
6696
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6697
+ * @param {*} [options] Override http request option.
6698
+ * @throws {RequiredError}
6699
+ */
6700
+ poeditorControllerGetTranslations: async (getTranslationsRequestDto: GetTranslationsRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6701
+ // verify required parameter 'getTranslationsRequestDto' is not null or undefined
6702
+ assertParamExists('poeditorControllerGetTranslations', 'getTranslationsRequestDto', getTranslationsRequestDto)
6703
+ const localVarPath = `/api/poeditor/translations-list`;
6704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6706
+ let baseOptions;
6707
+ if (configuration) {
6708
+ baseOptions = configuration.baseOptions;
6709
+ }
6710
+
6711
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6712
+ const localVarHeaderParameter = {} as any;
6713
+ const localVarQueryParameter = {} as any;
6714
+
6715
+
6716
+
6717
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6718
+
6719
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6720
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6721
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6722
+ localVarRequestOptions.data = serializeDataIfNeeded(getTranslationsRequestDto, localVarRequestOptions, configuration)
6723
+
6724
+ return {
6725
+ url: toPathString(localVarUrlObj),
6726
+ options: localVarRequestOptions,
6727
+ };
6728
+ },
6729
+ }
6730
+ };
6731
+
6732
+ /**
6733
+ * POEditorApi - functional programming interface
6734
+ * @export
6735
+ */
6736
+ export const POEditorApiFp = function(configuration?: Configuration) {
6737
+ const localVarAxiosParamCreator = POEditorApiAxiosParamCreator(configuration)
6738
+ return {
6739
+ /**
6740
+ *
6741
+ * @summary Add translations to POEditor project
6742
+ * @param {AddTranslationDto} addTranslationDto
6743
+ * @param {*} [options] Override http request option.
6744
+ * @throws {RequiredError}
6745
+ */
6746
+ async poeditorControllerAddTranslation(addTranslationDto: AddTranslationDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.poeditorControllerAddTranslation(addTranslationDto, options);
6748
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6749
+ const localVarOperationServerBasePath = operationServerMap['POEditorApi.poeditorControllerAddTranslation']?.[localVarOperationServerIndex]?.url;
6750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6751
+ },
6752
+ /**
6753
+ *
6754
+ * @summary Get translations from POEditor project
6755
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6756
+ * @param {*} [options] Override http request option.
6757
+ * @throws {RequiredError}
6758
+ */
6759
+ async poeditorControllerGetTranslations(getTranslationsRequestDto: GetTranslationsRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTranslationResponseDto>> {
6760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.poeditorControllerGetTranslations(getTranslationsRequestDto, options);
6761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6762
+ const localVarOperationServerBasePath = operationServerMap['POEditorApi.poeditorControllerGetTranslations']?.[localVarOperationServerIndex]?.url;
6763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6764
+ },
6765
+ }
6766
+ };
6767
+
6768
+ /**
6769
+ * POEditorApi - factory interface
6770
+ * @export
6771
+ */
6772
+ export const POEditorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6773
+ const localVarFp = POEditorApiFp(configuration)
6774
+ return {
6775
+ /**
6776
+ *
6777
+ * @summary Add translations to POEditor project
6778
+ * @param {AddTranslationDto} addTranslationDto
6779
+ * @param {*} [options] Override http request option.
6780
+ * @throws {RequiredError}
6781
+ */
6782
+ poeditorControllerAddTranslation(addTranslationDto: AddTranslationDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6783
+ return localVarFp.poeditorControllerAddTranslation(addTranslationDto, options).then((request) => request(axios, basePath));
6784
+ },
6785
+ /**
6786
+ *
6787
+ * @summary Get translations from POEditor project
6788
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6789
+ * @param {*} [options] Override http request option.
6790
+ * @throws {RequiredError}
6791
+ */
6792
+ poeditorControllerGetTranslations(getTranslationsRequestDto: GetTranslationsRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ListTranslationResponseDto> {
6793
+ return localVarFp.poeditorControllerGetTranslations(getTranslationsRequestDto, options).then((request) => request(axios, basePath));
6794
+ },
6795
+ };
6796
+ };
6797
+
6798
+ /**
6799
+ * POEditorApi - object-oriented interface
6800
+ * @export
6801
+ * @class POEditorApi
6802
+ * @extends {BaseAPI}
6803
+ */
6804
+ export class POEditorApi extends BaseAPI {
6805
+ /**
6806
+ *
6807
+ * @summary Add translations to POEditor project
6808
+ * @param {AddTranslationDto} addTranslationDto
6809
+ * @param {*} [options] Override http request option.
6810
+ * @throws {RequiredError}
6811
+ * @memberof POEditorApi
6812
+ */
6813
+ public poeditorControllerAddTranslation(addTranslationDto: AddTranslationDto, options?: RawAxiosRequestConfig) {
6814
+ return POEditorApiFp(this.configuration).poeditorControllerAddTranslation(addTranslationDto, options).then((request) => request(this.axios, this.basePath));
6815
+ }
6816
+
6817
+ /**
6818
+ *
6819
+ * @summary Get translations from POEditor project
6820
+ * @param {GetTranslationsRequestDto} getTranslationsRequestDto
6821
+ * @param {*} [options] Override http request option.
6822
+ * @throws {RequiredError}
6823
+ * @memberof POEditorApi
6824
+ */
6825
+ public poeditorControllerGetTranslations(getTranslationsRequestDto: GetTranslationsRequestDto, options?: RawAxiosRequestConfig) {
6826
+ return POEditorApiFp(this.configuration).poeditorControllerGetTranslations(getTranslationsRequestDto, options).then((request) => request(this.axios, this.basePath));
6827
+ }
6828
+ }
6829
+
6830
+
6831
+
5211
6832
  /**
5212
6833
  * ProvincesApi - axios parameter creator
5213
6834
  * @export