@ahomevilla-hotel/node-sdk 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +538 -29
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1141,36 +1141,18 @@ export interface CreateRoomDetailDto {
|
|
|
1141
1141
|
* @memberof CreateRoomDetailDto
|
|
1142
1142
|
*/
|
|
1143
1143
|
'base_price_per_hour': string;
|
|
1144
|
-
/**
|
|
1145
|
-
* Hotel Room\'s special price per hour
|
|
1146
|
-
* @type {string}
|
|
1147
|
-
* @memberof CreateRoomDetailDto
|
|
1148
|
-
*/
|
|
1149
|
-
'special_price_per_hour'?: string;
|
|
1150
1144
|
/**
|
|
1151
1145
|
* Hotel Room\'s base price per night
|
|
1152
1146
|
* @type {string}
|
|
1153
1147
|
* @memberof CreateRoomDetailDto
|
|
1154
1148
|
*/
|
|
1155
1149
|
'base_price_per_night': string;
|
|
1156
|
-
/**
|
|
1157
|
-
* Hotel Room\'s special price per night
|
|
1158
|
-
* @type {string}
|
|
1159
|
-
* @memberof CreateRoomDetailDto
|
|
1160
|
-
*/
|
|
1161
|
-
'special_price_per_night'?: string;
|
|
1162
1150
|
/**
|
|
1163
1151
|
* Hotel Room\'s base price per day
|
|
1164
1152
|
* @type {string}
|
|
1165
1153
|
* @memberof CreateRoomDetailDto
|
|
1166
1154
|
*/
|
|
1167
1155
|
'base_price_per_day': string;
|
|
1168
|
-
/**
|
|
1169
|
-
* Hotel Room\'s special price per day
|
|
1170
|
-
* @type {string}
|
|
1171
|
-
* @memberof CreateRoomDetailDto
|
|
1172
|
-
*/
|
|
1173
|
-
'special_price_per_day'?: string;
|
|
1174
1156
|
}
|
|
1175
1157
|
|
|
1176
1158
|
export const CreateRoomDetailDtoRoomTypeEnum = {
|
|
@@ -1189,6 +1171,61 @@ export const CreateRoomDetailDtoBedTypeEnum = {
|
|
|
1189
1171
|
|
|
1190
1172
|
export type CreateRoomDetailDtoBedTypeEnum = typeof CreateRoomDetailDtoBedTypeEnum[keyof typeof CreateRoomDetailDtoBedTypeEnum];
|
|
1191
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @export
|
|
1177
|
+
* @interface CreateRoomPriceHistoryDto
|
|
1178
|
+
*/
|
|
1179
|
+
export interface CreateRoomPriceHistoryDto {
|
|
1180
|
+
/**
|
|
1181
|
+
* Day that the price is applied
|
|
1182
|
+
* @type {string}
|
|
1183
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1184
|
+
*/
|
|
1185
|
+
'name': string;
|
|
1186
|
+
/**
|
|
1187
|
+
* Description of the price history
|
|
1188
|
+
* @type {string}
|
|
1189
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1190
|
+
*/
|
|
1191
|
+
'description'?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* ID of the room detail
|
|
1194
|
+
* @type {string}
|
|
1195
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1196
|
+
*/
|
|
1197
|
+
'roomDetailId': string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Hotel Room\'s base price per hour
|
|
1200
|
+
* @type {string}
|
|
1201
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1202
|
+
*/
|
|
1203
|
+
'price_per_hour'?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Hotel Room\'s base price per day
|
|
1206
|
+
* @type {string}
|
|
1207
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1208
|
+
*/
|
|
1209
|
+
'price_per_day'?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Hotel Room\'s base price per night
|
|
1212
|
+
* @type {string}
|
|
1213
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1214
|
+
*/
|
|
1215
|
+
'price_per_night'?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Effective from date
|
|
1218
|
+
* @type {string}
|
|
1219
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1220
|
+
*/
|
|
1221
|
+
'effective_from': string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Effective to date
|
|
1224
|
+
* @type {string}
|
|
1225
|
+
* @memberof CreateRoomPriceHistoryDto
|
|
1226
|
+
*/
|
|
1227
|
+
'effective_to'?: string;
|
|
1228
|
+
}
|
|
1192
1229
|
/**
|
|
1193
1230
|
*
|
|
1194
1231
|
* @export
|
|
@@ -1259,10 +1296,10 @@ export interface DetailTranslationContent {
|
|
|
1259
1296
|
export interface FilterAmenityDto {
|
|
1260
1297
|
/**
|
|
1261
1298
|
*
|
|
1262
|
-
* @type {string}
|
|
1299
|
+
* @type {Array<string>}
|
|
1263
1300
|
* @memberof FilterAmenityDto
|
|
1264
1301
|
*/
|
|
1265
|
-
'types'?: FilterAmenityDtoTypesEnum
|
|
1302
|
+
'types'?: Array<FilterAmenityDtoTypesEnum>;
|
|
1266
1303
|
/**
|
|
1267
1304
|
*
|
|
1268
1305
|
* @type {string}
|
|
@@ -1642,7 +1679,7 @@ export interface GetTranslationsRequestDto {
|
|
|
1642
1679
|
* @type {string}
|
|
1643
1680
|
* @memberof GetTranslationsRequestDto
|
|
1644
1681
|
*/
|
|
1645
|
-
'language'
|
|
1682
|
+
'language'?: string;
|
|
1646
1683
|
}
|
|
1647
1684
|
/**
|
|
1648
1685
|
*
|
|
@@ -2653,6 +2690,103 @@ export interface RoomDetailPaginationResultDto {
|
|
|
2653
2690
|
*/
|
|
2654
2691
|
'meta': UsersPaginationResultDtoMeta;
|
|
2655
2692
|
}
|
|
2693
|
+
/**
|
|
2694
|
+
*
|
|
2695
|
+
* @export
|
|
2696
|
+
* @interface RoomPriceHistory
|
|
2697
|
+
*/
|
|
2698
|
+
export interface RoomPriceHistory {
|
|
2699
|
+
/**
|
|
2700
|
+
*
|
|
2701
|
+
* @type {string}
|
|
2702
|
+
* @memberof RoomPriceHistory
|
|
2703
|
+
*/
|
|
2704
|
+
'id': string;
|
|
2705
|
+
/**
|
|
2706
|
+
* Soft delete flag
|
|
2707
|
+
* @type {boolean}
|
|
2708
|
+
* @memberof RoomPriceHistory
|
|
2709
|
+
*/
|
|
2710
|
+
'isDeleted': boolean;
|
|
2711
|
+
/**
|
|
2712
|
+
* Soft delete timestamp
|
|
2713
|
+
* @type {string}
|
|
2714
|
+
* @memberof RoomPriceHistory
|
|
2715
|
+
*/
|
|
2716
|
+
'deletedAt': string | null;
|
|
2717
|
+
/**
|
|
2718
|
+
*
|
|
2719
|
+
* @type {string}
|
|
2720
|
+
* @memberof RoomPriceHistory
|
|
2721
|
+
*/
|
|
2722
|
+
'createdAt': string;
|
|
2723
|
+
/**
|
|
2724
|
+
*
|
|
2725
|
+
* @type {string}
|
|
2726
|
+
* @memberof RoomPriceHistory
|
|
2727
|
+
*/
|
|
2728
|
+
'updatedAt': string;
|
|
2729
|
+
/**
|
|
2730
|
+
* Name of the price history
|
|
2731
|
+
* @type {string}
|
|
2732
|
+
* @memberof RoomPriceHistory
|
|
2733
|
+
*/
|
|
2734
|
+
'name': string;
|
|
2735
|
+
/**
|
|
2736
|
+
* Description of the price history
|
|
2737
|
+
* @type {string}
|
|
2738
|
+
* @memberof RoomPriceHistory
|
|
2739
|
+
*/
|
|
2740
|
+
'description': string;
|
|
2741
|
+
/**
|
|
2742
|
+
* ID of the room detail this price history belongs to
|
|
2743
|
+
* @type {string}
|
|
2744
|
+
* @memberof RoomPriceHistory
|
|
2745
|
+
*/
|
|
2746
|
+
'roomDetailId': string;
|
|
2747
|
+
/**
|
|
2748
|
+
* The associated room detail
|
|
2749
|
+
* @type {RoomDetail}
|
|
2750
|
+
* @memberof RoomPriceHistory
|
|
2751
|
+
*/
|
|
2752
|
+
'roomDetail'?: RoomDetail;
|
|
2753
|
+
/**
|
|
2754
|
+
* Price per hour for the room
|
|
2755
|
+
* @type {string}
|
|
2756
|
+
* @memberof RoomPriceHistory
|
|
2757
|
+
*/
|
|
2758
|
+
'price_per_hour': string;
|
|
2759
|
+
/**
|
|
2760
|
+
* Price per night for the room
|
|
2761
|
+
* @type {string}
|
|
2762
|
+
* @memberof RoomPriceHistory
|
|
2763
|
+
*/
|
|
2764
|
+
'price_per_night': string;
|
|
2765
|
+
/**
|
|
2766
|
+
* Price per day for the room
|
|
2767
|
+
* @type {string}
|
|
2768
|
+
* @memberof RoomPriceHistory
|
|
2769
|
+
*/
|
|
2770
|
+
'price_per_day': string;
|
|
2771
|
+
/**
|
|
2772
|
+
* Start date when this price becomes effective
|
|
2773
|
+
* @type {string}
|
|
2774
|
+
* @memberof RoomPriceHistory
|
|
2775
|
+
*/
|
|
2776
|
+
'effective_from': string;
|
|
2777
|
+
/**
|
|
2778
|
+
* End date when this price expires
|
|
2779
|
+
* @type {string}
|
|
2780
|
+
* @memberof RoomPriceHistory
|
|
2781
|
+
*/
|
|
2782
|
+
'effective_to': string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Whether this price is currently being applied
|
|
2785
|
+
* @type {boolean}
|
|
2786
|
+
* @memberof RoomPriceHistory
|
|
2787
|
+
*/
|
|
2788
|
+
'is_applied': boolean;
|
|
2789
|
+
}
|
|
2656
2790
|
/**
|
|
2657
2791
|
*
|
|
2658
2792
|
* @export
|
|
@@ -3257,29 +3391,29 @@ export interface UpdateRoomDetailDto {
|
|
|
3257
3391
|
*/
|
|
3258
3392
|
'base_price_per_hour'?: string;
|
|
3259
3393
|
/**
|
|
3260
|
-
* Hotel Room\'s
|
|
3394
|
+
* Hotel Room\'s base price per night
|
|
3261
3395
|
* @type {string}
|
|
3262
3396
|
* @memberof UpdateRoomDetailDto
|
|
3263
3397
|
*/
|
|
3264
|
-
'
|
|
3398
|
+
'base_price_per_night'?: string;
|
|
3265
3399
|
/**
|
|
3266
|
-
* Hotel Room\'s base price per
|
|
3400
|
+
* Hotel Room\'s base price per day
|
|
3267
3401
|
* @type {string}
|
|
3268
3402
|
* @memberof UpdateRoomDetailDto
|
|
3269
3403
|
*/
|
|
3270
|
-
'
|
|
3404
|
+
'base_price_per_day'?: string;
|
|
3271
3405
|
/**
|
|
3272
|
-
* Hotel Room\'s special price per
|
|
3406
|
+
* Hotel Room\'s special price per hour
|
|
3273
3407
|
* @type {string}
|
|
3274
3408
|
* @memberof UpdateRoomDetailDto
|
|
3275
3409
|
*/
|
|
3276
|
-
'
|
|
3410
|
+
'special_price_per_hour'?: string;
|
|
3277
3411
|
/**
|
|
3278
|
-
* Hotel Room\'s
|
|
3412
|
+
* Hotel Room\'s special price per night
|
|
3279
3413
|
* @type {string}
|
|
3280
3414
|
* @memberof UpdateRoomDetailDto
|
|
3281
3415
|
*/
|
|
3282
|
-
'
|
|
3416
|
+
'special_price_per_night'?: string;
|
|
3283
3417
|
/**
|
|
3284
3418
|
* Hotel Room\'s special price per day
|
|
3285
3419
|
* @type {string}
|
|
@@ -3304,6 +3438,55 @@ export const UpdateRoomDetailDtoBedTypeEnum = {
|
|
|
3304
3438
|
|
|
3305
3439
|
export type UpdateRoomDetailDtoBedTypeEnum = typeof UpdateRoomDetailDtoBedTypeEnum[keyof typeof UpdateRoomDetailDtoBedTypeEnum];
|
|
3306
3440
|
|
|
3441
|
+
/**
|
|
3442
|
+
*
|
|
3443
|
+
* @export
|
|
3444
|
+
* @interface UpdateRoomPriceHistoryDto
|
|
3445
|
+
*/
|
|
3446
|
+
export interface UpdateRoomPriceHistoryDto {
|
|
3447
|
+
/**
|
|
3448
|
+
* Day that the price is applied
|
|
3449
|
+
* @type {string}
|
|
3450
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3451
|
+
*/
|
|
3452
|
+
'name'?: string;
|
|
3453
|
+
/**
|
|
3454
|
+
* Description of the price history
|
|
3455
|
+
* @type {string}
|
|
3456
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3457
|
+
*/
|
|
3458
|
+
'description'?: string;
|
|
3459
|
+
/**
|
|
3460
|
+
* Hotel Room\'s base price per hour
|
|
3461
|
+
* @type {string}
|
|
3462
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3463
|
+
*/
|
|
3464
|
+
'price_per_hour'?: string;
|
|
3465
|
+
/**
|
|
3466
|
+
* Hotel Room\'s base price per day
|
|
3467
|
+
* @type {string}
|
|
3468
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3469
|
+
*/
|
|
3470
|
+
'price_per_day'?: string;
|
|
3471
|
+
/**
|
|
3472
|
+
* Hotel Room\'s base price per night
|
|
3473
|
+
* @type {string}
|
|
3474
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3475
|
+
*/
|
|
3476
|
+
'price_per_night'?: string;
|
|
3477
|
+
/**
|
|
3478
|
+
* Effective from date
|
|
3479
|
+
* @type {string}
|
|
3480
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3481
|
+
*/
|
|
3482
|
+
'effective_from'?: string;
|
|
3483
|
+
/**
|
|
3484
|
+
* Effective to date
|
|
3485
|
+
* @type {string}
|
|
3486
|
+
* @memberof UpdateRoomPriceHistoryDto
|
|
3487
|
+
*/
|
|
3488
|
+
'effective_to'?: string;
|
|
3489
|
+
}
|
|
3307
3490
|
/**
|
|
3308
3491
|
*
|
|
3309
3492
|
* @export
|
|
@@ -8025,6 +8208,332 @@ export class RoomDetailsApi extends BaseAPI {
|
|
|
8025
8208
|
|
|
8026
8209
|
|
|
8027
8210
|
|
|
8211
|
+
/**
|
|
8212
|
+
* RoomPriceHistoriesApi - axios parameter creator
|
|
8213
|
+
* @export
|
|
8214
|
+
*/
|
|
8215
|
+
export const RoomPriceHistoriesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8216
|
+
return {
|
|
8217
|
+
/**
|
|
8218
|
+
*
|
|
8219
|
+
* @summary Create a new room price history
|
|
8220
|
+
* @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
|
|
8221
|
+
* @param {*} [options] Override http request option.
|
|
8222
|
+
* @throws {RequiredError}
|
|
8223
|
+
*/
|
|
8224
|
+
roomPriceHistoryControllerCreate: async (createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8225
|
+
// verify required parameter 'createRoomPriceHistoryDto' is not null or undefined
|
|
8226
|
+
assertParamExists('roomPriceHistoryControllerCreate', 'createRoomPriceHistoryDto', createRoomPriceHistoryDto)
|
|
8227
|
+
const localVarPath = `/api/room-price-histories`;
|
|
8228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8230
|
+
let baseOptions;
|
|
8231
|
+
if (configuration) {
|
|
8232
|
+
baseOptions = configuration.baseOptions;
|
|
8233
|
+
}
|
|
8234
|
+
|
|
8235
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8236
|
+
const localVarHeaderParameter = {} as any;
|
|
8237
|
+
const localVarQueryParameter = {} as any;
|
|
8238
|
+
|
|
8239
|
+
|
|
8240
|
+
|
|
8241
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8242
|
+
|
|
8243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8245
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8246
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRoomPriceHistoryDto, localVarRequestOptions, configuration)
|
|
8247
|
+
|
|
8248
|
+
return {
|
|
8249
|
+
url: toPathString(localVarUrlObj),
|
|
8250
|
+
options: localVarRequestOptions,
|
|
8251
|
+
};
|
|
8252
|
+
},
|
|
8253
|
+
/**
|
|
8254
|
+
*
|
|
8255
|
+
* @summary Get all price histories for a specific room detail
|
|
8256
|
+
* @param {string} roomDetailId
|
|
8257
|
+
* @param {*} [options] Override http request option.
|
|
8258
|
+
* @throws {RequiredError}
|
|
8259
|
+
*/
|
|
8260
|
+
roomPriceHistoryControllerFindManyByRoomDetail: async (roomDetailId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8261
|
+
// verify required parameter 'roomDetailId' is not null or undefined
|
|
8262
|
+
assertParamExists('roomPriceHistoryControllerFindManyByRoomDetail', 'roomDetailId', roomDetailId)
|
|
8263
|
+
const localVarPath = `/api/room-price-histories/room-detail/{roomDetailId}`
|
|
8264
|
+
.replace(`{${"roomDetailId"}}`, encodeURIComponent(String(roomDetailId)));
|
|
8265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8267
|
+
let baseOptions;
|
|
8268
|
+
if (configuration) {
|
|
8269
|
+
baseOptions = configuration.baseOptions;
|
|
8270
|
+
}
|
|
8271
|
+
|
|
8272
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8273
|
+
const localVarHeaderParameter = {} as any;
|
|
8274
|
+
const localVarQueryParameter = {} as any;
|
|
8275
|
+
|
|
8276
|
+
|
|
8277
|
+
|
|
8278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8280
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8281
|
+
|
|
8282
|
+
return {
|
|
8283
|
+
url: toPathString(localVarUrlObj),
|
|
8284
|
+
options: localVarRequestOptions,
|
|
8285
|
+
};
|
|
8286
|
+
},
|
|
8287
|
+
/**
|
|
8288
|
+
*
|
|
8289
|
+
* @summary Delete a room price history
|
|
8290
|
+
* @param {string} id
|
|
8291
|
+
* @param {*} [options] Override http request option.
|
|
8292
|
+
* @throws {RequiredError}
|
|
8293
|
+
*/
|
|
8294
|
+
roomPriceHistoryControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8295
|
+
// verify required parameter 'id' is not null or undefined
|
|
8296
|
+
assertParamExists('roomPriceHistoryControllerRemove', 'id', id)
|
|
8297
|
+
const localVarPath = `/api/room-price-histories/{id}`
|
|
8298
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8301
|
+
let baseOptions;
|
|
8302
|
+
if (configuration) {
|
|
8303
|
+
baseOptions = configuration.baseOptions;
|
|
8304
|
+
}
|
|
8305
|
+
|
|
8306
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8307
|
+
const localVarHeaderParameter = {} as any;
|
|
8308
|
+
const localVarQueryParameter = {} as any;
|
|
8309
|
+
|
|
8310
|
+
|
|
8311
|
+
|
|
8312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8314
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8315
|
+
|
|
8316
|
+
return {
|
|
8317
|
+
url: toPathString(localVarUrlObj),
|
|
8318
|
+
options: localVarRequestOptions,
|
|
8319
|
+
};
|
|
8320
|
+
},
|
|
8321
|
+
/**
|
|
8322
|
+
*
|
|
8323
|
+
* @summary Update a room price history
|
|
8324
|
+
* @param {string} id
|
|
8325
|
+
* @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
|
|
8326
|
+
* @param {*} [options] Override http request option.
|
|
8327
|
+
* @throws {RequiredError}
|
|
8328
|
+
*/
|
|
8329
|
+
roomPriceHistoryControllerUpdate: async (id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8330
|
+
// verify required parameter 'id' is not null or undefined
|
|
8331
|
+
assertParamExists('roomPriceHistoryControllerUpdate', 'id', id)
|
|
8332
|
+
// verify required parameter 'updateRoomPriceHistoryDto' is not null or undefined
|
|
8333
|
+
assertParamExists('roomPriceHistoryControllerUpdate', 'updateRoomPriceHistoryDto', updateRoomPriceHistoryDto)
|
|
8334
|
+
const localVarPath = `/api/room-price-histories/{id}`
|
|
8335
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8337
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8338
|
+
let baseOptions;
|
|
8339
|
+
if (configuration) {
|
|
8340
|
+
baseOptions = configuration.baseOptions;
|
|
8341
|
+
}
|
|
8342
|
+
|
|
8343
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
8344
|
+
const localVarHeaderParameter = {} as any;
|
|
8345
|
+
const localVarQueryParameter = {} as any;
|
|
8346
|
+
|
|
8347
|
+
|
|
8348
|
+
|
|
8349
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8350
|
+
|
|
8351
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8352
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8353
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8354
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRoomPriceHistoryDto, localVarRequestOptions, configuration)
|
|
8355
|
+
|
|
8356
|
+
return {
|
|
8357
|
+
url: toPathString(localVarUrlObj),
|
|
8358
|
+
options: localVarRequestOptions,
|
|
8359
|
+
};
|
|
8360
|
+
},
|
|
8361
|
+
}
|
|
8362
|
+
};
|
|
8363
|
+
|
|
8364
|
+
/**
|
|
8365
|
+
* RoomPriceHistoriesApi - functional programming interface
|
|
8366
|
+
* @export
|
|
8367
|
+
*/
|
|
8368
|
+
export const RoomPriceHistoriesApiFp = function(configuration?: Configuration) {
|
|
8369
|
+
const localVarAxiosParamCreator = RoomPriceHistoriesApiAxiosParamCreator(configuration)
|
|
8370
|
+
return {
|
|
8371
|
+
/**
|
|
8372
|
+
*
|
|
8373
|
+
* @summary Create a new room price history
|
|
8374
|
+
* @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
|
|
8375
|
+
* @param {*} [options] Override http request option.
|
|
8376
|
+
* @throws {RequiredError}
|
|
8377
|
+
*/
|
|
8378
|
+
async roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomPriceHistory>> {
|
|
8379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options);
|
|
8380
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8381
|
+
const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
8382
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8383
|
+
},
|
|
8384
|
+
/**
|
|
8385
|
+
*
|
|
8386
|
+
* @summary Get all price histories for a specific room detail
|
|
8387
|
+
* @param {string} roomDetailId
|
|
8388
|
+
* @param {*} [options] Override http request option.
|
|
8389
|
+
* @throws {RequiredError}
|
|
8390
|
+
*/
|
|
8391
|
+
async roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RoomPriceHistory>>> {
|
|
8392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options);
|
|
8393
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8394
|
+
const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerFindManyByRoomDetail']?.[localVarOperationServerIndex]?.url;
|
|
8395
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8396
|
+
},
|
|
8397
|
+
/**
|
|
8398
|
+
*
|
|
8399
|
+
* @summary Delete a room price history
|
|
8400
|
+
* @param {string} id
|
|
8401
|
+
* @param {*} [options] Override http request option.
|
|
8402
|
+
* @throws {RequiredError}
|
|
8403
|
+
*/
|
|
8404
|
+
async roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerRemove(id, options);
|
|
8406
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8407
|
+
const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
8408
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8409
|
+
},
|
|
8410
|
+
/**
|
|
8411
|
+
*
|
|
8412
|
+
* @summary Update a room price history
|
|
8413
|
+
* @param {string} id
|
|
8414
|
+
* @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
|
|
8415
|
+
* @param {*} [options] Override http request option.
|
|
8416
|
+
* @throws {RequiredError}
|
|
8417
|
+
*/
|
|
8418
|
+
async roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomPriceHistory>> {
|
|
8419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options);
|
|
8420
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8421
|
+
const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
8422
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8423
|
+
},
|
|
8424
|
+
}
|
|
8425
|
+
};
|
|
8426
|
+
|
|
8427
|
+
/**
|
|
8428
|
+
* RoomPriceHistoriesApi - factory interface
|
|
8429
|
+
* @export
|
|
8430
|
+
*/
|
|
8431
|
+
export const RoomPriceHistoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8432
|
+
const localVarFp = RoomPriceHistoriesApiFp(configuration)
|
|
8433
|
+
return {
|
|
8434
|
+
/**
|
|
8435
|
+
*
|
|
8436
|
+
* @summary Create a new room price history
|
|
8437
|
+
* @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
|
|
8438
|
+
* @param {*} [options] Override http request option.
|
|
8439
|
+
* @throws {RequiredError}
|
|
8440
|
+
*/
|
|
8441
|
+
roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomPriceHistory> {
|
|
8442
|
+
return localVarFp.roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options).then((request) => request(axios, basePath));
|
|
8443
|
+
},
|
|
8444
|
+
/**
|
|
8445
|
+
*
|
|
8446
|
+
* @summary Get all price histories for a specific room detail
|
|
8447
|
+
* @param {string} roomDetailId
|
|
8448
|
+
* @param {*} [options] Override http request option.
|
|
8449
|
+
* @throws {RequiredError}
|
|
8450
|
+
*/
|
|
8451
|
+
roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<RoomPriceHistory>> {
|
|
8452
|
+
return localVarFp.roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options).then((request) => request(axios, basePath));
|
|
8453
|
+
},
|
|
8454
|
+
/**
|
|
8455
|
+
*
|
|
8456
|
+
* @summary Delete a room price history
|
|
8457
|
+
* @param {string} id
|
|
8458
|
+
* @param {*} [options] Override http request option.
|
|
8459
|
+
* @throws {RequiredError}
|
|
8460
|
+
*/
|
|
8461
|
+
roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
8462
|
+
return localVarFp.roomPriceHistoryControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
8463
|
+
},
|
|
8464
|
+
/**
|
|
8465
|
+
*
|
|
8466
|
+
* @summary Update a room price history
|
|
8467
|
+
* @param {string} id
|
|
8468
|
+
* @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
|
|
8469
|
+
* @param {*} [options] Override http request option.
|
|
8470
|
+
* @throws {RequiredError}
|
|
8471
|
+
*/
|
|
8472
|
+
roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomPriceHistory> {
|
|
8473
|
+
return localVarFp.roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options).then((request) => request(axios, basePath));
|
|
8474
|
+
},
|
|
8475
|
+
};
|
|
8476
|
+
};
|
|
8477
|
+
|
|
8478
|
+
/**
|
|
8479
|
+
* RoomPriceHistoriesApi - object-oriented interface
|
|
8480
|
+
* @export
|
|
8481
|
+
* @class RoomPriceHistoriesApi
|
|
8482
|
+
* @extends {BaseAPI}
|
|
8483
|
+
*/
|
|
8484
|
+
export class RoomPriceHistoriesApi extends BaseAPI {
|
|
8485
|
+
/**
|
|
8486
|
+
*
|
|
8487
|
+
* @summary Create a new room price history
|
|
8488
|
+
* @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
|
|
8489
|
+
* @param {*} [options] Override http request option.
|
|
8490
|
+
* @throws {RequiredError}
|
|
8491
|
+
* @memberof RoomPriceHistoriesApi
|
|
8492
|
+
*/
|
|
8493
|
+
public roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig) {
|
|
8494
|
+
return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options).then((request) => request(this.axios, this.basePath));
|
|
8495
|
+
}
|
|
8496
|
+
|
|
8497
|
+
/**
|
|
8498
|
+
*
|
|
8499
|
+
* @summary Get all price histories for a specific room detail
|
|
8500
|
+
* @param {string} roomDetailId
|
|
8501
|
+
* @param {*} [options] Override http request option.
|
|
8502
|
+
* @throws {RequiredError}
|
|
8503
|
+
* @memberof RoomPriceHistoriesApi
|
|
8504
|
+
*/
|
|
8505
|
+
public roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig) {
|
|
8506
|
+
return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options).then((request) => request(this.axios, this.basePath));
|
|
8507
|
+
}
|
|
8508
|
+
|
|
8509
|
+
/**
|
|
8510
|
+
*
|
|
8511
|
+
* @summary Delete a room price history
|
|
8512
|
+
* @param {string} id
|
|
8513
|
+
* @param {*} [options] Override http request option.
|
|
8514
|
+
* @throws {RequiredError}
|
|
8515
|
+
* @memberof RoomPriceHistoriesApi
|
|
8516
|
+
*/
|
|
8517
|
+
public roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig) {
|
|
8518
|
+
return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
8519
|
+
}
|
|
8520
|
+
|
|
8521
|
+
/**
|
|
8522
|
+
*
|
|
8523
|
+
* @summary Update a room price history
|
|
8524
|
+
* @param {string} id
|
|
8525
|
+
* @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
|
|
8526
|
+
* @param {*} [options] Override http request option.
|
|
8527
|
+
* @throws {RequiredError}
|
|
8528
|
+
* @memberof RoomPriceHistoriesApi
|
|
8529
|
+
*/
|
|
8530
|
+
public roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig) {
|
|
8531
|
+
return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options).then((request) => request(this.axios, this.basePath));
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8534
|
+
|
|
8535
|
+
|
|
8536
|
+
|
|
8028
8537
|
/**
|
|
8029
8538
|
* RoomsApi - axios parameter creator
|
|
8030
8539
|
* @export
|