@ahomevilla-hotel/node-sdk 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +864 -14
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,64 @@ 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 Amenity
|
|
30
|
+
*/
|
|
31
|
+
export interface Amenity {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Amenity
|
|
36
|
+
*/
|
|
37
|
+
'id': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Amenity
|
|
42
|
+
*/
|
|
43
|
+
'createdAt': string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Amenity
|
|
48
|
+
*/
|
|
49
|
+
'updatedAt': string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Amenity
|
|
54
|
+
*/
|
|
55
|
+
'name': string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Amenity
|
|
60
|
+
*/
|
|
61
|
+
'slug': string;
|
|
62
|
+
/**
|
|
63
|
+
* Icon image for the amenity
|
|
64
|
+
* @type {Image}
|
|
65
|
+
* @memberof Amenity
|
|
66
|
+
*/
|
|
67
|
+
'icon': Image | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Amenity
|
|
72
|
+
*/
|
|
73
|
+
'type': AmenityTypeEnum;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const AmenityTypeEnum = {
|
|
77
|
+
Room: 'ROOM',
|
|
78
|
+
Property: 'PROPERTY',
|
|
79
|
+
Service: 'SERVICE'
|
|
80
|
+
} as const;
|
|
81
|
+
|
|
82
|
+
export type AmenityTypeEnum = typeof AmenityTypeEnum[keyof typeof AmenityTypeEnum];
|
|
83
|
+
|
|
26
84
|
/**
|
|
27
85
|
*
|
|
28
86
|
* @export
|
|
@@ -110,10 +168,10 @@ export interface Branch {
|
|
|
110
168
|
export interface BranchesPaginationResultDto {
|
|
111
169
|
/**
|
|
112
170
|
*
|
|
113
|
-
* @type {Array<
|
|
171
|
+
* @type {Array<Branch>}
|
|
114
172
|
* @memberof BranchesPaginationResultDto
|
|
115
173
|
*/
|
|
116
|
-
'data': Array<
|
|
174
|
+
'data': Array<Branch>;
|
|
117
175
|
/**
|
|
118
176
|
*
|
|
119
177
|
* @type {UsersPaginationResultDtoMeta}
|
|
@@ -213,6 +271,78 @@ export interface CreateProvinceDto {
|
|
|
213
271
|
*/
|
|
214
272
|
'slug': string;
|
|
215
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @export
|
|
277
|
+
* @interface CreateRoomDetailDto
|
|
278
|
+
*/
|
|
279
|
+
export interface CreateRoomDetailDto {
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
* @type {string}
|
|
283
|
+
* @memberof CreateRoomDetailDto
|
|
284
|
+
*/
|
|
285
|
+
'name': string;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @type {string}
|
|
289
|
+
* @memberof CreateRoomDetailDto
|
|
290
|
+
*/
|
|
291
|
+
'description': string;
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @type {string}
|
|
295
|
+
* @memberof CreateRoomDetailDto
|
|
296
|
+
*/
|
|
297
|
+
'room_type': CreateRoomDetailDtoRoomTypeEnum;
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @type {string}
|
|
301
|
+
* @memberof CreateRoomDetailDto
|
|
302
|
+
*/
|
|
303
|
+
'bed_type': CreateRoomDetailDtoBedTypeEnum;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @type {Array<string>}
|
|
307
|
+
* @memberof CreateRoomDetailDto
|
|
308
|
+
*/
|
|
309
|
+
'amenityIds': Array<string>;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
* @type {number}
|
|
313
|
+
* @memberof CreateRoomDetailDto
|
|
314
|
+
*/
|
|
315
|
+
'max_adults': number;
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @type {number}
|
|
319
|
+
* @memberof CreateRoomDetailDto
|
|
320
|
+
*/
|
|
321
|
+
'max_children': number;
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {number}
|
|
325
|
+
* @memberof CreateRoomDetailDto
|
|
326
|
+
*/
|
|
327
|
+
'quantity': number;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export const CreateRoomDetailDtoRoomTypeEnum = {
|
|
331
|
+
Standard: 'STANDARD',
|
|
332
|
+
Superior: 'SUPERIOR',
|
|
333
|
+
Deluxe: 'DELUXE'
|
|
334
|
+
} as const;
|
|
335
|
+
|
|
336
|
+
export type CreateRoomDetailDtoRoomTypeEnum = typeof CreateRoomDetailDtoRoomTypeEnum[keyof typeof CreateRoomDetailDtoRoomTypeEnum];
|
|
337
|
+
export const CreateRoomDetailDtoBedTypeEnum = {
|
|
338
|
+
Single: 'SINGLE',
|
|
339
|
+
Double: 'DOUBLE',
|
|
340
|
+
Queen: 'QUEEN',
|
|
341
|
+
King: 'KING'
|
|
342
|
+
} as const;
|
|
343
|
+
|
|
344
|
+
export type CreateRoomDetailDtoBedTypeEnum = typeof CreateRoomDetailDtoBedTypeEnum[keyof typeof CreateRoomDetailDtoBedTypeEnum];
|
|
345
|
+
|
|
216
346
|
/**
|
|
217
347
|
*
|
|
218
348
|
* @export
|
|
@@ -244,6 +374,113 @@ export interface CreateUserDto {
|
|
|
244
374
|
*/
|
|
245
375
|
'name': string;
|
|
246
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @export
|
|
380
|
+
* @interface HotelRoom
|
|
381
|
+
*/
|
|
382
|
+
export interface HotelRoom {
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof HotelRoom
|
|
387
|
+
*/
|
|
388
|
+
'id': string;
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof HotelRoom
|
|
393
|
+
*/
|
|
394
|
+
'createdAt': string;
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @type {string}
|
|
398
|
+
* @memberof HotelRoom
|
|
399
|
+
*/
|
|
400
|
+
'updatedAt': string;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @type {string}
|
|
404
|
+
* @memberof HotelRoom
|
|
405
|
+
*/
|
|
406
|
+
'name': string;
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @type {Image}
|
|
410
|
+
* @memberof HotelRoom
|
|
411
|
+
*/
|
|
412
|
+
'thumbnail': Image;
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
* @type {Array<Image>}
|
|
416
|
+
* @memberof HotelRoom
|
|
417
|
+
*/
|
|
418
|
+
'images': Array<Image>;
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @type {string}
|
|
422
|
+
* @memberof HotelRoom
|
|
423
|
+
*/
|
|
424
|
+
'status': HotelRoomStatusEnum;
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof HotelRoom
|
|
429
|
+
*/
|
|
430
|
+
'branchId': string;
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @type {string}
|
|
434
|
+
* @memberof HotelRoom
|
|
435
|
+
*/
|
|
436
|
+
'detailId': string;
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @type {number}
|
|
440
|
+
* @memberof HotelRoom
|
|
441
|
+
*/
|
|
442
|
+
'base_price_per_hour': number;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @type {number}
|
|
446
|
+
* @memberof HotelRoom
|
|
447
|
+
*/
|
|
448
|
+
'special_price_per_hour'?: number;
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @type {number}
|
|
452
|
+
* @memberof HotelRoom
|
|
453
|
+
*/
|
|
454
|
+
'base_price_per_night': number;
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @type {number}
|
|
458
|
+
* @memberof HotelRoom
|
|
459
|
+
*/
|
|
460
|
+
'special_price_per_night'?: number;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {number}
|
|
464
|
+
* @memberof HotelRoom
|
|
465
|
+
*/
|
|
466
|
+
'base_price_per_day': number;
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {number}
|
|
470
|
+
* @memberof HotelRoom
|
|
471
|
+
*/
|
|
472
|
+
'special_price_per_day'?: number;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export const HotelRoomStatusEnum = {
|
|
476
|
+
Available: 'AVAILABLE',
|
|
477
|
+
Booked: 'BOOKED',
|
|
478
|
+
Occupied: 'OCCUPIED',
|
|
479
|
+
Maintenance: 'MAINTENANCE'
|
|
480
|
+
} as const;
|
|
481
|
+
|
|
482
|
+
export type HotelRoomStatusEnum = typeof HotelRoomStatusEnum[keyof typeof HotelRoomStatusEnum];
|
|
483
|
+
|
|
247
484
|
/**
|
|
248
485
|
*
|
|
249
486
|
* @export
|
|
@@ -422,10 +659,10 @@ export interface Province {
|
|
|
422
659
|
export interface ProvincePaginationResultDto {
|
|
423
660
|
/**
|
|
424
661
|
*
|
|
425
|
-
* @type {Array<
|
|
662
|
+
* @type {Array<Province>}
|
|
426
663
|
* @memberof ProvincePaginationResultDto
|
|
427
664
|
*/
|
|
428
|
-
'data': Array<
|
|
665
|
+
'data': Array<Province>;
|
|
429
666
|
/**
|
|
430
667
|
*
|
|
431
668
|
* @type {UsersPaginationResultDtoMeta}
|
|
@@ -516,6 +753,12 @@ export interface RegisterResponseDto {
|
|
|
516
753
|
* @memberof RegisterResponseDto
|
|
517
754
|
*/
|
|
518
755
|
'phone'?: string;
|
|
756
|
+
/**
|
|
757
|
+
* The user\'s ID
|
|
758
|
+
* @type {string}
|
|
759
|
+
* @memberof RegisterResponseDto
|
|
760
|
+
*/
|
|
761
|
+
'id': string;
|
|
519
762
|
/**
|
|
520
763
|
* The type of identifier used for registration
|
|
521
764
|
* @type {string}
|
|
@@ -569,6 +812,121 @@ export interface RevokeSessionResponseDto {
|
|
|
569
812
|
*/
|
|
570
813
|
'message': string;
|
|
571
814
|
}
|
|
815
|
+
/**
|
|
816
|
+
*
|
|
817
|
+
* @export
|
|
818
|
+
* @interface RoomDetail
|
|
819
|
+
*/
|
|
820
|
+
export interface RoomDetail {
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @type {string}
|
|
824
|
+
* @memberof RoomDetail
|
|
825
|
+
*/
|
|
826
|
+
'id': string;
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @type {string}
|
|
830
|
+
* @memberof RoomDetail
|
|
831
|
+
*/
|
|
832
|
+
'createdAt': string;
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @type {string}
|
|
836
|
+
* @memberof RoomDetail
|
|
837
|
+
*/
|
|
838
|
+
'updatedAt': string;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {string}
|
|
842
|
+
* @memberof RoomDetail
|
|
843
|
+
*/
|
|
844
|
+
'name': string;
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @type {string}
|
|
848
|
+
* @memberof RoomDetail
|
|
849
|
+
*/
|
|
850
|
+
'description': string;
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @type {string}
|
|
854
|
+
* @memberof RoomDetail
|
|
855
|
+
*/
|
|
856
|
+
'room_type': RoomDetailRoomTypeEnum;
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @type {string}
|
|
860
|
+
* @memberof RoomDetail
|
|
861
|
+
*/
|
|
862
|
+
'bed_type': RoomDetailBedTypeEnum;
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {Array<Amenity>}
|
|
866
|
+
* @memberof RoomDetail
|
|
867
|
+
*/
|
|
868
|
+
'amenities': Array<Amenity>;
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @type {number}
|
|
872
|
+
* @memberof RoomDetail
|
|
873
|
+
*/
|
|
874
|
+
'max_adults': number;
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {number}
|
|
878
|
+
* @memberof RoomDetail
|
|
879
|
+
*/
|
|
880
|
+
'max_children': number;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @type {number}
|
|
884
|
+
* @memberof RoomDetail
|
|
885
|
+
*/
|
|
886
|
+
'quantity': number;
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @type {Array<HotelRoom>}
|
|
890
|
+
* @memberof RoomDetail
|
|
891
|
+
*/
|
|
892
|
+
'rooms': Array<HotelRoom>;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export const RoomDetailRoomTypeEnum = {
|
|
896
|
+
Standard: 'STANDARD',
|
|
897
|
+
Superior: 'SUPERIOR',
|
|
898
|
+
Deluxe: 'DELUXE'
|
|
899
|
+
} as const;
|
|
900
|
+
|
|
901
|
+
export type RoomDetailRoomTypeEnum = typeof RoomDetailRoomTypeEnum[keyof typeof RoomDetailRoomTypeEnum];
|
|
902
|
+
export const RoomDetailBedTypeEnum = {
|
|
903
|
+
Single: 'SINGLE',
|
|
904
|
+
Double: 'DOUBLE',
|
|
905
|
+
Queen: 'QUEEN',
|
|
906
|
+
King: 'KING'
|
|
907
|
+
} as const;
|
|
908
|
+
|
|
909
|
+
export type RoomDetailBedTypeEnum = typeof RoomDetailBedTypeEnum[keyof typeof RoomDetailBedTypeEnum];
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @export
|
|
914
|
+
* @interface RoomDetailPaginationResultDto
|
|
915
|
+
*/
|
|
916
|
+
export interface RoomDetailPaginationResultDto {
|
|
917
|
+
/**
|
|
918
|
+
*
|
|
919
|
+
* @type {Array<RoomDetail>}
|
|
920
|
+
* @memberof RoomDetailPaginationResultDto
|
|
921
|
+
*/
|
|
922
|
+
'data': Array<RoomDetail>;
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @type {UsersPaginationResultDtoMeta}
|
|
926
|
+
* @memberof RoomDetailPaginationResultDto
|
|
927
|
+
*/
|
|
928
|
+
'meta': UsersPaginationResultDtoMeta;
|
|
929
|
+
}
|
|
572
930
|
/**
|
|
573
931
|
*
|
|
574
932
|
* @export
|
|
@@ -677,33 +1035,105 @@ export interface UpdateProvinceDto {
|
|
|
677
1035
|
/**
|
|
678
1036
|
*
|
|
679
1037
|
* @export
|
|
680
|
-
* @interface
|
|
1038
|
+
* @interface UpdateRoomDetailDto
|
|
681
1039
|
*/
|
|
682
|
-
export interface
|
|
1040
|
+
export interface UpdateRoomDetailDto {
|
|
683
1041
|
/**
|
|
684
1042
|
*
|
|
685
1043
|
* @type {string}
|
|
686
|
-
* @memberof
|
|
1044
|
+
* @memberof UpdateRoomDetailDto
|
|
687
1045
|
*/
|
|
688
|
-
'
|
|
1046
|
+
'name'?: string;
|
|
689
1047
|
/**
|
|
690
1048
|
*
|
|
691
1049
|
* @type {string}
|
|
692
|
-
* @memberof
|
|
1050
|
+
* @memberof UpdateRoomDetailDto
|
|
693
1051
|
*/
|
|
694
|
-
'
|
|
1052
|
+
'description'?: string;
|
|
695
1053
|
/**
|
|
696
1054
|
*
|
|
697
1055
|
* @type {string}
|
|
698
|
-
* @memberof
|
|
1056
|
+
* @memberof UpdateRoomDetailDto
|
|
699
1057
|
*/
|
|
700
|
-
'
|
|
1058
|
+
'room_type'?: UpdateRoomDetailDtoRoomTypeEnum;
|
|
701
1059
|
/**
|
|
702
1060
|
*
|
|
703
1061
|
* @type {string}
|
|
704
|
-
* @memberof
|
|
1062
|
+
* @memberof UpdateRoomDetailDto
|
|
705
1063
|
*/
|
|
706
|
-
'
|
|
1064
|
+
'bed_type'?: UpdateRoomDetailDtoBedTypeEnum;
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @type {Array<string>}
|
|
1068
|
+
* @memberof UpdateRoomDetailDto
|
|
1069
|
+
*/
|
|
1070
|
+
'amenityIds'?: Array<string>;
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @type {number}
|
|
1074
|
+
* @memberof UpdateRoomDetailDto
|
|
1075
|
+
*/
|
|
1076
|
+
'max_adults'?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @type {number}
|
|
1080
|
+
* @memberof UpdateRoomDetailDto
|
|
1081
|
+
*/
|
|
1082
|
+
'max_children'?: number;
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @type {number}
|
|
1086
|
+
* @memberof UpdateRoomDetailDto
|
|
1087
|
+
*/
|
|
1088
|
+
'quantity'?: number;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
export const UpdateRoomDetailDtoRoomTypeEnum = {
|
|
1092
|
+
Standard: 'STANDARD',
|
|
1093
|
+
Superior: 'SUPERIOR',
|
|
1094
|
+
Deluxe: 'DELUXE'
|
|
1095
|
+
} as const;
|
|
1096
|
+
|
|
1097
|
+
export type UpdateRoomDetailDtoRoomTypeEnum = typeof UpdateRoomDetailDtoRoomTypeEnum[keyof typeof UpdateRoomDetailDtoRoomTypeEnum];
|
|
1098
|
+
export const UpdateRoomDetailDtoBedTypeEnum = {
|
|
1099
|
+
Single: 'SINGLE',
|
|
1100
|
+
Double: 'DOUBLE',
|
|
1101
|
+
Queen: 'QUEEN',
|
|
1102
|
+
King: 'KING'
|
|
1103
|
+
} as const;
|
|
1104
|
+
|
|
1105
|
+
export type UpdateRoomDetailDtoBedTypeEnum = typeof UpdateRoomDetailDtoBedTypeEnum[keyof typeof UpdateRoomDetailDtoBedTypeEnum];
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @export
|
|
1110
|
+
* @interface User
|
|
1111
|
+
*/
|
|
1112
|
+
export interface User {
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @type {string}
|
|
1116
|
+
* @memberof User
|
|
1117
|
+
*/
|
|
1118
|
+
'id': string;
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @type {string}
|
|
1122
|
+
* @memberof User
|
|
1123
|
+
*/
|
|
1124
|
+
'createdAt': string;
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @type {string}
|
|
1128
|
+
* @memberof User
|
|
1129
|
+
*/
|
|
1130
|
+
'updatedAt': string;
|
|
1131
|
+
/**
|
|
1132
|
+
*
|
|
1133
|
+
* @type {string}
|
|
1134
|
+
* @memberof User
|
|
1135
|
+
*/
|
|
1136
|
+
'email': string;
|
|
707
1137
|
/**
|
|
708
1138
|
*
|
|
709
1139
|
* @type {string}
|
|
@@ -3568,6 +3998,426 @@ export class ProvincesApi extends BaseAPI {
|
|
|
3568
3998
|
|
|
3569
3999
|
|
|
3570
4000
|
|
|
4001
|
+
/**
|
|
4002
|
+
* RoomDetailsApi - axios parameter creator
|
|
4003
|
+
* @export
|
|
4004
|
+
*/
|
|
4005
|
+
export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4006
|
+
return {
|
|
4007
|
+
/**
|
|
4008
|
+
*
|
|
4009
|
+
* @summary Create a new room detail
|
|
4010
|
+
* @param {CreateRoomDetailDto} createRoomDetailDto
|
|
4011
|
+
* @param {*} [options] Override http request option.
|
|
4012
|
+
* @throws {RequiredError}
|
|
4013
|
+
*/
|
|
4014
|
+
roomDetailControllerCreate: async (createRoomDetailDto: CreateRoomDetailDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4015
|
+
// verify required parameter 'createRoomDetailDto' is not null or undefined
|
|
4016
|
+
assertParamExists('roomDetailControllerCreate', 'createRoomDetailDto', createRoomDetailDto)
|
|
4017
|
+
const localVarPath = `/api/room-details`;
|
|
4018
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4019
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4020
|
+
let baseOptions;
|
|
4021
|
+
if (configuration) {
|
|
4022
|
+
baseOptions = configuration.baseOptions;
|
|
4023
|
+
}
|
|
4024
|
+
|
|
4025
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4026
|
+
const localVarHeaderParameter = {} as any;
|
|
4027
|
+
const localVarQueryParameter = {} as any;
|
|
4028
|
+
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4032
|
+
|
|
4033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4035
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4036
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRoomDetailDto, localVarRequestOptions, configuration)
|
|
4037
|
+
|
|
4038
|
+
return {
|
|
4039
|
+
url: toPathString(localVarUrlObj),
|
|
4040
|
+
options: localVarRequestOptions,
|
|
4041
|
+
};
|
|
4042
|
+
},
|
|
4043
|
+
/**
|
|
4044
|
+
*
|
|
4045
|
+
* @summary Get all room details with pagination and filters
|
|
4046
|
+
* @param {number} [page]
|
|
4047
|
+
* @param {number} [pageSize]
|
|
4048
|
+
* @param {string} [filters] JSON string
|
|
4049
|
+
* @param {string} [sort] JSON string
|
|
4050
|
+
* @param {*} [options] Override http request option.
|
|
4051
|
+
* @throws {RequiredError}
|
|
4052
|
+
*/
|
|
4053
|
+
roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4054
|
+
const localVarPath = `/api/room-details`;
|
|
4055
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4056
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4057
|
+
let baseOptions;
|
|
4058
|
+
if (configuration) {
|
|
4059
|
+
baseOptions = configuration.baseOptions;
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4063
|
+
const localVarHeaderParameter = {} as any;
|
|
4064
|
+
const localVarQueryParameter = {} as any;
|
|
4065
|
+
|
|
4066
|
+
if (page !== undefined) {
|
|
4067
|
+
localVarQueryParameter['page'] = page;
|
|
4068
|
+
}
|
|
4069
|
+
|
|
4070
|
+
if (pageSize !== undefined) {
|
|
4071
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
4072
|
+
}
|
|
4073
|
+
|
|
4074
|
+
if (filters !== undefined) {
|
|
4075
|
+
localVarQueryParameter['filters'] = filters;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
if (sort !== undefined) {
|
|
4079
|
+
localVarQueryParameter['sort'] = sort;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
|
|
4084
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4085
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4086
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4087
|
+
|
|
4088
|
+
return {
|
|
4089
|
+
url: toPathString(localVarUrlObj),
|
|
4090
|
+
options: localVarRequestOptions,
|
|
4091
|
+
};
|
|
4092
|
+
},
|
|
4093
|
+
/**
|
|
4094
|
+
*
|
|
4095
|
+
* @summary Get a room detail by id
|
|
4096
|
+
* @param {string} id
|
|
4097
|
+
* @param {*} [options] Override http request option.
|
|
4098
|
+
* @throws {RequiredError}
|
|
4099
|
+
*/
|
|
4100
|
+
roomDetailControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4101
|
+
// verify required parameter 'id' is not null or undefined
|
|
4102
|
+
assertParamExists('roomDetailControllerFindOne', 'id', id)
|
|
4103
|
+
const localVarPath = `/api/room-details/{id}`
|
|
4104
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4107
|
+
let baseOptions;
|
|
4108
|
+
if (configuration) {
|
|
4109
|
+
baseOptions = configuration.baseOptions;
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4113
|
+
const localVarHeaderParameter = {} as any;
|
|
4114
|
+
const localVarQueryParameter = {} as any;
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
|
|
4118
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4120
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4121
|
+
|
|
4122
|
+
return {
|
|
4123
|
+
url: toPathString(localVarUrlObj),
|
|
4124
|
+
options: localVarRequestOptions,
|
|
4125
|
+
};
|
|
4126
|
+
},
|
|
4127
|
+
/**
|
|
4128
|
+
*
|
|
4129
|
+
* @summary Delete a room detail
|
|
4130
|
+
* @param {string} id
|
|
4131
|
+
* @param {*} [options] Override http request option.
|
|
4132
|
+
* @throws {RequiredError}
|
|
4133
|
+
*/
|
|
4134
|
+
roomDetailControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4135
|
+
// verify required parameter 'id' is not null or undefined
|
|
4136
|
+
assertParamExists('roomDetailControllerRemove', 'id', id)
|
|
4137
|
+
const localVarPath = `/api/room-details/{id}`
|
|
4138
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4141
|
+
let baseOptions;
|
|
4142
|
+
if (configuration) {
|
|
4143
|
+
baseOptions = configuration.baseOptions;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4147
|
+
const localVarHeaderParameter = {} as any;
|
|
4148
|
+
const localVarQueryParameter = {} as any;
|
|
4149
|
+
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4154
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4155
|
+
|
|
4156
|
+
return {
|
|
4157
|
+
url: toPathString(localVarUrlObj),
|
|
4158
|
+
options: localVarRequestOptions,
|
|
4159
|
+
};
|
|
4160
|
+
},
|
|
4161
|
+
/**
|
|
4162
|
+
*
|
|
4163
|
+
* @summary Update a room detail
|
|
4164
|
+
* @param {string} id
|
|
4165
|
+
* @param {UpdateRoomDetailDto} updateRoomDetailDto
|
|
4166
|
+
* @param {*} [options] Override http request option.
|
|
4167
|
+
* @throws {RequiredError}
|
|
4168
|
+
*/
|
|
4169
|
+
roomDetailControllerUpdate: async (id: string, updateRoomDetailDto: UpdateRoomDetailDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4170
|
+
// verify required parameter 'id' is not null or undefined
|
|
4171
|
+
assertParamExists('roomDetailControllerUpdate', 'id', id)
|
|
4172
|
+
// verify required parameter 'updateRoomDetailDto' is not null or undefined
|
|
4173
|
+
assertParamExists('roomDetailControllerUpdate', 'updateRoomDetailDto', updateRoomDetailDto)
|
|
4174
|
+
const localVarPath = `/api/room-details/{id}`
|
|
4175
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4178
|
+
let baseOptions;
|
|
4179
|
+
if (configuration) {
|
|
4180
|
+
baseOptions = configuration.baseOptions;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4184
|
+
const localVarHeaderParameter = {} as any;
|
|
4185
|
+
const localVarQueryParameter = {} as any;
|
|
4186
|
+
|
|
4187
|
+
|
|
4188
|
+
|
|
4189
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4190
|
+
|
|
4191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4194
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRoomDetailDto, localVarRequestOptions, configuration)
|
|
4195
|
+
|
|
4196
|
+
return {
|
|
4197
|
+
url: toPathString(localVarUrlObj),
|
|
4198
|
+
options: localVarRequestOptions,
|
|
4199
|
+
};
|
|
4200
|
+
},
|
|
4201
|
+
}
|
|
4202
|
+
};
|
|
4203
|
+
|
|
4204
|
+
/**
|
|
4205
|
+
* RoomDetailsApi - functional programming interface
|
|
4206
|
+
* @export
|
|
4207
|
+
*/
|
|
4208
|
+
export const RoomDetailsApiFp = function(configuration?: Configuration) {
|
|
4209
|
+
const localVarAxiosParamCreator = RoomDetailsApiAxiosParamCreator(configuration)
|
|
4210
|
+
return {
|
|
4211
|
+
/**
|
|
4212
|
+
*
|
|
4213
|
+
* @summary Create a new room detail
|
|
4214
|
+
* @param {CreateRoomDetailDto} createRoomDetailDto
|
|
4215
|
+
* @param {*} [options] Override http request option.
|
|
4216
|
+
* @throws {RequiredError}
|
|
4217
|
+
*/
|
|
4218
|
+
async roomDetailControllerCreate(createRoomDetailDto: CreateRoomDetailDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetail>> {
|
|
4219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerCreate(createRoomDetailDto, options);
|
|
4220
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4221
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
4222
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4223
|
+
},
|
|
4224
|
+
/**
|
|
4225
|
+
*
|
|
4226
|
+
* @summary Get all room details with pagination and filters
|
|
4227
|
+
* @param {number} [page]
|
|
4228
|
+
* @param {number} [pageSize]
|
|
4229
|
+
* @param {string} [filters] JSON string
|
|
4230
|
+
* @param {string} [sort] JSON string
|
|
4231
|
+
* @param {*} [options] Override http request option.
|
|
4232
|
+
* @throws {RequiredError}
|
|
4233
|
+
*/
|
|
4234
|
+
async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailPaginationResultDto>> {
|
|
4235
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindMany(page, pageSize, filters, sort, options);
|
|
4236
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4237
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindMany']?.[localVarOperationServerIndex]?.url;
|
|
4238
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4239
|
+
},
|
|
4240
|
+
/**
|
|
4241
|
+
*
|
|
4242
|
+
* @summary Get a room detail by id
|
|
4243
|
+
* @param {string} id
|
|
4244
|
+
* @param {*} [options] Override http request option.
|
|
4245
|
+
* @throws {RequiredError}
|
|
4246
|
+
*/
|
|
4247
|
+
async roomDetailControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetail>> {
|
|
4248
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindOne(id, options);
|
|
4249
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4250
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
4251
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4252
|
+
},
|
|
4253
|
+
/**
|
|
4254
|
+
*
|
|
4255
|
+
* @summary Delete a room detail
|
|
4256
|
+
* @param {string} id
|
|
4257
|
+
* @param {*} [options] Override http request option.
|
|
4258
|
+
* @throws {RequiredError}
|
|
4259
|
+
*/
|
|
4260
|
+
async roomDetailControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerRemove(id, options);
|
|
4262
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4263
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
4264
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4265
|
+
},
|
|
4266
|
+
/**
|
|
4267
|
+
*
|
|
4268
|
+
* @summary Update a room detail
|
|
4269
|
+
* @param {string} id
|
|
4270
|
+
* @param {UpdateRoomDetailDto} updateRoomDetailDto
|
|
4271
|
+
* @param {*} [options] Override http request option.
|
|
4272
|
+
* @throws {RequiredError}
|
|
4273
|
+
*/
|
|
4274
|
+
async roomDetailControllerUpdate(id: string, updateRoomDetailDto: UpdateRoomDetailDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetail>> {
|
|
4275
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerUpdate(id, updateRoomDetailDto, options);
|
|
4276
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4277
|
+
const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
4278
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4279
|
+
},
|
|
4280
|
+
}
|
|
4281
|
+
};
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* RoomDetailsApi - factory interface
|
|
4285
|
+
* @export
|
|
4286
|
+
*/
|
|
4287
|
+
export const RoomDetailsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4288
|
+
const localVarFp = RoomDetailsApiFp(configuration)
|
|
4289
|
+
return {
|
|
4290
|
+
/**
|
|
4291
|
+
*
|
|
4292
|
+
* @summary Create a new room detail
|
|
4293
|
+
* @param {CreateRoomDetailDto} createRoomDetailDto
|
|
4294
|
+
* @param {*} [options] Override http request option.
|
|
4295
|
+
* @throws {RequiredError}
|
|
4296
|
+
*/
|
|
4297
|
+
roomDetailControllerCreate(createRoomDetailDto: CreateRoomDetailDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetail> {
|
|
4298
|
+
return localVarFp.roomDetailControllerCreate(createRoomDetailDto, options).then((request) => request(axios, basePath));
|
|
4299
|
+
},
|
|
4300
|
+
/**
|
|
4301
|
+
*
|
|
4302
|
+
* @summary Get all room details with pagination and filters
|
|
4303
|
+
* @param {number} [page]
|
|
4304
|
+
* @param {number} [pageSize]
|
|
4305
|
+
* @param {string} [filters] JSON string
|
|
4306
|
+
* @param {string} [sort] JSON string
|
|
4307
|
+
* @param {*} [options] Override http request option.
|
|
4308
|
+
* @throws {RequiredError}
|
|
4309
|
+
*/
|
|
4310
|
+
roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailPaginationResultDto> {
|
|
4311
|
+
return localVarFp.roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
4312
|
+
},
|
|
4313
|
+
/**
|
|
4314
|
+
*
|
|
4315
|
+
* @summary Get a room detail by id
|
|
4316
|
+
* @param {string} id
|
|
4317
|
+
* @param {*} [options] Override http request option.
|
|
4318
|
+
* @throws {RequiredError}
|
|
4319
|
+
*/
|
|
4320
|
+
roomDetailControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetail> {
|
|
4321
|
+
return localVarFp.roomDetailControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
4322
|
+
},
|
|
4323
|
+
/**
|
|
4324
|
+
*
|
|
4325
|
+
* @summary Delete a room detail
|
|
4326
|
+
* @param {string} id
|
|
4327
|
+
* @param {*} [options] Override http request option.
|
|
4328
|
+
* @throws {RequiredError}
|
|
4329
|
+
*/
|
|
4330
|
+
roomDetailControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4331
|
+
return localVarFp.roomDetailControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
4332
|
+
},
|
|
4333
|
+
/**
|
|
4334
|
+
*
|
|
4335
|
+
* @summary Update a room detail
|
|
4336
|
+
* @param {string} id
|
|
4337
|
+
* @param {UpdateRoomDetailDto} updateRoomDetailDto
|
|
4338
|
+
* @param {*} [options] Override http request option.
|
|
4339
|
+
* @throws {RequiredError}
|
|
4340
|
+
*/
|
|
4341
|
+
roomDetailControllerUpdate(id: string, updateRoomDetailDto: UpdateRoomDetailDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetail> {
|
|
4342
|
+
return localVarFp.roomDetailControllerUpdate(id, updateRoomDetailDto, options).then((request) => request(axios, basePath));
|
|
4343
|
+
},
|
|
4344
|
+
};
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
/**
|
|
4348
|
+
* RoomDetailsApi - object-oriented interface
|
|
4349
|
+
* @export
|
|
4350
|
+
* @class RoomDetailsApi
|
|
4351
|
+
* @extends {BaseAPI}
|
|
4352
|
+
*/
|
|
4353
|
+
export class RoomDetailsApi extends BaseAPI {
|
|
4354
|
+
/**
|
|
4355
|
+
*
|
|
4356
|
+
* @summary Create a new room detail
|
|
4357
|
+
* @param {CreateRoomDetailDto} createRoomDetailDto
|
|
4358
|
+
* @param {*} [options] Override http request option.
|
|
4359
|
+
* @throws {RequiredError}
|
|
4360
|
+
* @memberof RoomDetailsApi
|
|
4361
|
+
*/
|
|
4362
|
+
public roomDetailControllerCreate(createRoomDetailDto: CreateRoomDetailDto, options?: RawAxiosRequestConfig) {
|
|
4363
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerCreate(createRoomDetailDto, options).then((request) => request(this.axios, this.basePath));
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
/**
|
|
4367
|
+
*
|
|
4368
|
+
* @summary Get all room details with pagination and filters
|
|
4369
|
+
* @param {number} [page]
|
|
4370
|
+
* @param {number} [pageSize]
|
|
4371
|
+
* @param {string} [filters] JSON string
|
|
4372
|
+
* @param {string} [sort] JSON string
|
|
4373
|
+
* @param {*} [options] Override http request option.
|
|
4374
|
+
* @throws {RequiredError}
|
|
4375
|
+
* @memberof RoomDetailsApi
|
|
4376
|
+
*/
|
|
4377
|
+
public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
4378
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
4379
|
+
}
|
|
4380
|
+
|
|
4381
|
+
/**
|
|
4382
|
+
*
|
|
4383
|
+
* @summary Get a room detail by id
|
|
4384
|
+
* @param {string} id
|
|
4385
|
+
* @param {*} [options] Override http request option.
|
|
4386
|
+
* @throws {RequiredError}
|
|
4387
|
+
* @memberof RoomDetailsApi
|
|
4388
|
+
*/
|
|
4389
|
+
public roomDetailControllerFindOne(id: string, options?: RawAxiosRequestConfig) {
|
|
4390
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
/**
|
|
4394
|
+
*
|
|
4395
|
+
* @summary Delete a room detail
|
|
4396
|
+
* @param {string} id
|
|
4397
|
+
* @param {*} [options] Override http request option.
|
|
4398
|
+
* @throws {RequiredError}
|
|
4399
|
+
* @memberof RoomDetailsApi
|
|
4400
|
+
*/
|
|
4401
|
+
public roomDetailControllerRemove(id: string, options?: RawAxiosRequestConfig) {
|
|
4402
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
/**
|
|
4406
|
+
*
|
|
4407
|
+
* @summary Update a room detail
|
|
4408
|
+
* @param {string} id
|
|
4409
|
+
* @param {UpdateRoomDetailDto} updateRoomDetailDto
|
|
4410
|
+
* @param {*} [options] Override http request option.
|
|
4411
|
+
* @throws {RequiredError}
|
|
4412
|
+
* @memberof RoomDetailsApi
|
|
4413
|
+
*/
|
|
4414
|
+
public roomDetailControllerUpdate(id: string, updateRoomDetailDto: UpdateRoomDetailDto, options?: RawAxiosRequestConfig) {
|
|
4415
|
+
return RoomDetailsApiFp(this.configuration).roomDetailControllerUpdate(id, updateRoomDetailDto, options).then((request) => request(this.axios, this.basePath));
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
|
|
4420
|
+
|
|
3571
4421
|
/**
|
|
3572
4422
|
* UsersApi - axios parameter creator
|
|
3573
4423
|
* @export
|