@ahomevilla-hotel/node-sdk 1.0.4 → 1.0.6

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 +886 -42
  2. 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<object>}
171
+ * @type {Array<Branch>}
114
172
  * @memberof BranchesPaginationResultDto
115
173
  */
116
- 'data': Array<object>;
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<object>}
662
+ * @type {Array<Province>}
426
663
  * @memberof ProvincePaginationResultDto
427
664
  */
428
- 'data': Array<object>;
665
+ 'data': Array<Province>;
429
666
  /**
430
667
  *
431
668
  * @type {UsersPaginationResultDtoMeta}
@@ -575,6 +812,121 @@ export interface RevokeSessionResponseDto {
575
812
  */
576
813
  'message': string;
577
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
+ }
578
930
  /**
579
931
  *
580
932
  * @export
@@ -683,42 +1035,114 @@ export interface UpdateProvinceDto {
683
1035
  /**
684
1036
  *
685
1037
  * @export
686
- * @interface User
1038
+ * @interface UpdateRoomDetailDto
687
1039
  */
688
- export interface User {
1040
+ export interface UpdateRoomDetailDto {
689
1041
  /**
690
1042
  *
691
1043
  * @type {string}
692
- * @memberof User
1044
+ * @memberof UpdateRoomDetailDto
693
1045
  */
694
- 'id': string;
1046
+ 'name'?: string;
695
1047
  /**
696
1048
  *
697
1049
  * @type {string}
698
- * @memberof User
1050
+ * @memberof UpdateRoomDetailDto
699
1051
  */
700
- 'createdAt': string;
1052
+ 'description'?: string;
701
1053
  /**
702
1054
  *
703
1055
  * @type {string}
704
- * @memberof User
1056
+ * @memberof UpdateRoomDetailDto
705
1057
  */
706
- 'updatedAt': string;
1058
+ 'room_type'?: UpdateRoomDetailDtoRoomTypeEnum;
707
1059
  /**
708
1060
  *
709
1061
  * @type {string}
710
- * @memberof User
1062
+ * @memberof UpdateRoomDetailDto
711
1063
  */
712
- 'email': string;
1064
+ 'bed_type'?: UpdateRoomDetailDtoBedTypeEnum;
713
1065
  /**
714
1066
  *
715
- * @type {string}
716
- * @memberof User
1067
+ * @type {Array<string>}
1068
+ * @memberof UpdateRoomDetailDto
717
1069
  */
718
- 'phone': string;
1070
+ 'amenityIds'?: Array<string>;
719
1071
  /**
720
1072
  *
721
- * @type {boolean}
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;
1137
+ /**
1138
+ *
1139
+ * @type {string}
1140
+ * @memberof User
1141
+ */
1142
+ 'phone': string;
1143
+ /**
1144
+ *
1145
+ * @type {boolean}
722
1146
  * @memberof User
723
1147
  */
724
1148
  'verified_email': boolean;
@@ -2411,8 +2835,8 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
2411
2835
  * @summary Get all branches with pagination and filters
2412
2836
  * @param {number} [page]
2413
2837
  * @param {number} [pageSize]
2414
- * @param {string} [filters] JSON string
2415
- * @param {string} [sort] JSON string
2838
+ * @param {string} [filters] JSON string of FilterBranchesDto
2839
+ * @param {string} [sort] JSON string of SortBranchDto[]
2416
2840
  * @param {*} [options] Override http request option.
2417
2841
  * @throws {RequiredError}
2418
2842
  */
@@ -2461,8 +2885,8 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
2461
2885
  * @summary Get branches with infinite scroll for client app
2462
2886
  * @param {number} [page]
2463
2887
  * @param {number} [pageSize]
2464
- * @param {string} [filters] JSON string
2465
- * @param {string} [sort] JSON string
2888
+ * @param {string} [filters] JSON string of FilterBranchesDto
2889
+ * @param {string} [sort] JSON string of SortBranchDto[]
2466
2890
  * @param {*} [options] Override http request option.
2467
2891
  * @throws {RequiredError}
2468
2892
  */
@@ -2642,8 +3066,8 @@ export const BranchesApiFp = function(configuration?: Configuration) {
2642
3066
  * @summary Get all branches with pagination and filters
2643
3067
  * @param {number} [page]
2644
3068
  * @param {number} [pageSize]
2645
- * @param {string} [filters] JSON string
2646
- * @param {string} [sort] JSON string
3069
+ * @param {string} [filters] JSON string of FilterBranchesDto
3070
+ * @param {string} [sort] JSON string of SortBranchDto[]
2647
3071
  * @param {*} [options] Override http request option.
2648
3072
  * @throws {RequiredError}
2649
3073
  */
@@ -2658,8 +3082,8 @@ export const BranchesApiFp = function(configuration?: Configuration) {
2658
3082
  * @summary Get branches with infinite scroll for client app
2659
3083
  * @param {number} [page]
2660
3084
  * @param {number} [pageSize]
2661
- * @param {string} [filters] JSON string
2662
- * @param {string} [sort] JSON string
3085
+ * @param {string} [filters] JSON string of FilterBranchesDto
3086
+ * @param {string} [sort] JSON string of SortBranchDto[]
2663
3087
  * @param {*} [options] Override http request option.
2664
3088
  * @throws {RequiredError}
2665
3089
  */
@@ -2734,8 +3158,8 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
2734
3158
  * @summary Get all branches with pagination and filters
2735
3159
  * @param {number} [page]
2736
3160
  * @param {number} [pageSize]
2737
- * @param {string} [filters] JSON string
2738
- * @param {string} [sort] JSON string
3161
+ * @param {string} [filters] JSON string of FilterBranchesDto
3162
+ * @param {string} [sort] JSON string of SortBranchDto[]
2739
3163
  * @param {*} [options] Override http request option.
2740
3164
  * @throws {RequiredError}
2741
3165
  */
@@ -2747,8 +3171,8 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
2747
3171
  * @summary Get branches with infinite scroll for client app
2748
3172
  * @param {number} [page]
2749
3173
  * @param {number} [pageSize]
2750
- * @param {string} [filters] JSON string
2751
- * @param {string} [sort] JSON string
3174
+ * @param {string} [filters] JSON string of FilterBranchesDto
3175
+ * @param {string} [sort] JSON string of SortBranchDto[]
2752
3176
  * @param {*} [options] Override http request option.
2753
3177
  * @throws {RequiredError}
2754
3178
  */
@@ -2813,8 +3237,8 @@ export class BranchesApi extends BaseAPI {
2813
3237
  * @summary Get all branches with pagination and filters
2814
3238
  * @param {number} [page]
2815
3239
  * @param {number} [pageSize]
2816
- * @param {string} [filters] JSON string
2817
- * @param {string} [sort] JSON string
3240
+ * @param {string} [filters] JSON string of FilterBranchesDto
3241
+ * @param {string} [sort] JSON string of SortBranchDto[]
2818
3242
  * @param {*} [options] Override http request option.
2819
3243
  * @throws {RequiredError}
2820
3244
  * @memberof BranchesApi
@@ -2828,8 +3252,8 @@ export class BranchesApi extends BaseAPI {
2828
3252
  * @summary Get branches with infinite scroll for client app
2829
3253
  * @param {number} [page]
2830
3254
  * @param {number} [pageSize]
2831
- * @param {string} [filters] JSON string
2832
- * @param {string} [sort] JSON string
3255
+ * @param {string} [filters] JSON string of FilterBranchesDto
3256
+ * @param {string} [sort] JSON string of SortBranchDto[]
2833
3257
  * @param {*} [options] Override http request option.
2834
3258
  * @throws {RequiredError}
2835
3259
  * @memberof BranchesApi
@@ -3201,8 +3625,8 @@ export const ProvincesApiAxiosParamCreator = function (configuration?: Configura
3201
3625
  * @summary Get all provinces with pagination and filters
3202
3626
  * @param {number} [page]
3203
3627
  * @param {number} [pageSize]
3204
- * @param {string} [filters] JSON string
3205
- * @param {string} [sort] JSON string
3628
+ * @param {string} [filters] JSON string of FilterProvincesDto
3629
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3206
3630
  * @param {*} [options] Override http request option.
3207
3631
  * @throws {RequiredError}
3208
3632
  */
@@ -3382,8 +3806,8 @@ export const ProvincesApiFp = function(configuration?: Configuration) {
3382
3806
  * @summary Get all provinces with pagination and filters
3383
3807
  * @param {number} [page]
3384
3808
  * @param {number} [pageSize]
3385
- * @param {string} [filters] JSON string
3386
- * @param {string} [sort] JSON string
3809
+ * @param {string} [filters] JSON string of FilterProvincesDto
3810
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3387
3811
  * @param {*} [options] Override http request option.
3388
3812
  * @throws {RequiredError}
3389
3813
  */
@@ -3458,8 +3882,8 @@ export const ProvincesApiFactory = function (configuration?: Configuration, base
3458
3882
  * @summary Get all provinces with pagination and filters
3459
3883
  * @param {number} [page]
3460
3884
  * @param {number} [pageSize]
3461
- * @param {string} [filters] JSON string
3462
- * @param {string} [sort] JSON string
3885
+ * @param {string} [filters] JSON string of FilterProvincesDto
3886
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3463
3887
  * @param {*} [options] Override http request option.
3464
3888
  * @throws {RequiredError}
3465
3889
  */
@@ -3524,8 +3948,8 @@ export class ProvincesApi extends BaseAPI {
3524
3948
  * @summary Get all provinces with pagination and filters
3525
3949
  * @param {number} [page]
3526
3950
  * @param {number} [pageSize]
3527
- * @param {string} [filters] JSON string
3528
- * @param {string} [sort] JSON string
3951
+ * @param {string} [filters] JSON string of FilterProvincesDto
3952
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3529
3953
  * @param {*} [options] Override http request option.
3530
3954
  * @throws {RequiredError}
3531
3955
  * @memberof ProvincesApi
@@ -3574,6 +3998,426 @@ export class ProvincesApi extends BaseAPI {
3574
3998
 
3575
3999
 
3576
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
+
3577
4421
  /**
3578
4422
  * UsersApi - axios parameter creator
3579
4423
  * @export
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.4",
13
+ "version": "1.0.6",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"