@ahomevilla-hotel/node-sdk 1.0.18 → 1.0.20

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 +555 -28
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1136,41 +1136,29 @@ export interface CreateRoomDetailDto {
1136
1136
  */
1137
1137
  'max_children': number;
1138
1138
  /**
1139
- * Hotel Room\'s base price per hour
1140
- * @type {string}
1139
+ * Room area(m2)
1140
+ * @type {number}
1141
1141
  * @memberof CreateRoomDetailDto
1142
1142
  */
1143
- 'base_price_per_hour': string;
1143
+ 'area': number;
1144
1144
  /**
1145
- * Hotel Room\'s special price per hour
1145
+ * Hotel Room\'s base price per hour
1146
1146
  * @type {string}
1147
1147
  * @memberof CreateRoomDetailDto
1148
1148
  */
1149
- 'special_price_per_hour'?: string;
1149
+ 'base_price_per_hour': string;
1150
1150
  /**
1151
1151
  * Hotel Room\'s base price per night
1152
1152
  * @type {string}
1153
1153
  * @memberof CreateRoomDetailDto
1154
1154
  */
1155
1155
  '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
1156
  /**
1163
1157
  * Hotel Room\'s base price per day
1164
1158
  * @type {string}
1165
1159
  * @memberof CreateRoomDetailDto
1166
1160
  */
1167
1161
  '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
1162
  }
1175
1163
 
1176
1164
  export const CreateRoomDetailDtoRoomTypeEnum = {
@@ -1189,6 +1177,61 @@ export const CreateRoomDetailDtoBedTypeEnum = {
1189
1177
 
1190
1178
  export type CreateRoomDetailDtoBedTypeEnum = typeof CreateRoomDetailDtoBedTypeEnum[keyof typeof CreateRoomDetailDtoBedTypeEnum];
1191
1179
 
1180
+ /**
1181
+ *
1182
+ * @export
1183
+ * @interface CreateRoomPriceHistoryDto
1184
+ */
1185
+ export interface CreateRoomPriceHistoryDto {
1186
+ /**
1187
+ * Day that the price is applied
1188
+ * @type {string}
1189
+ * @memberof CreateRoomPriceHistoryDto
1190
+ */
1191
+ 'name': string;
1192
+ /**
1193
+ * Description of the price history
1194
+ * @type {string}
1195
+ * @memberof CreateRoomPriceHistoryDto
1196
+ */
1197
+ 'description'?: string;
1198
+ /**
1199
+ * ID of the room detail
1200
+ * @type {string}
1201
+ * @memberof CreateRoomPriceHistoryDto
1202
+ */
1203
+ 'roomDetailId': string;
1204
+ /**
1205
+ * Hotel Room\'s base price per hour
1206
+ * @type {string}
1207
+ * @memberof CreateRoomPriceHistoryDto
1208
+ */
1209
+ 'price_per_hour'?: string;
1210
+ /**
1211
+ * Hotel Room\'s base price per day
1212
+ * @type {string}
1213
+ * @memberof CreateRoomPriceHistoryDto
1214
+ */
1215
+ 'price_per_day'?: string;
1216
+ /**
1217
+ * Hotel Room\'s base price per night
1218
+ * @type {string}
1219
+ * @memberof CreateRoomPriceHistoryDto
1220
+ */
1221
+ 'price_per_night'?: string;
1222
+ /**
1223
+ * Effective from date
1224
+ * @type {string}
1225
+ * @memberof CreateRoomPriceHistoryDto
1226
+ */
1227
+ 'effective_from': string;
1228
+ /**
1229
+ * Effective to date
1230
+ * @type {string}
1231
+ * @memberof CreateRoomPriceHistoryDto
1232
+ */
1233
+ 'effective_to'?: string;
1234
+ }
1192
1235
  /**
1193
1236
  *
1194
1237
  * @export
@@ -1259,10 +1302,10 @@ export interface DetailTranslationContent {
1259
1302
  export interface FilterAmenityDto {
1260
1303
  /**
1261
1304
  *
1262
- * @type {string}
1305
+ * @type {Array<string>}
1263
1306
  * @memberof FilterAmenityDto
1264
1307
  */
1265
- 'types'?: FilterAmenityDtoTypesEnum;
1308
+ 'types'?: Array<FilterAmenityDtoTypesEnum>;
1266
1309
  /**
1267
1310
  *
1268
1311
  * @type {string}
@@ -1642,7 +1685,7 @@ export interface GetTranslationsRequestDto {
1642
1685
  * @type {string}
1643
1686
  * @memberof GetTranslationsRequestDto
1644
1687
  */
1645
- 'language': string;
1688
+ 'language'?: string;
1646
1689
  }
1647
1690
  /**
1648
1691
  *
@@ -2531,6 +2574,12 @@ export interface RoomDetail {
2531
2574
  * @memberof RoomDetail
2532
2575
  */
2533
2576
  'bed_type': RoomDetailBedTypeEnum;
2577
+ /**
2578
+ * Room area in square meters
2579
+ * @type {number}
2580
+ * @memberof RoomDetail
2581
+ */
2582
+ 'area': number;
2534
2583
  /**
2535
2584
  *
2536
2585
  * @type {Array<Amenity>}
@@ -2653,6 +2702,103 @@ export interface RoomDetailPaginationResultDto {
2653
2702
  */
2654
2703
  'meta': UsersPaginationResultDtoMeta;
2655
2704
  }
2705
+ /**
2706
+ *
2707
+ * @export
2708
+ * @interface RoomPriceHistory
2709
+ */
2710
+ export interface RoomPriceHistory {
2711
+ /**
2712
+ *
2713
+ * @type {string}
2714
+ * @memberof RoomPriceHistory
2715
+ */
2716
+ 'id': string;
2717
+ /**
2718
+ * Soft delete flag
2719
+ * @type {boolean}
2720
+ * @memberof RoomPriceHistory
2721
+ */
2722
+ 'isDeleted': boolean;
2723
+ /**
2724
+ * Soft delete timestamp
2725
+ * @type {string}
2726
+ * @memberof RoomPriceHistory
2727
+ */
2728
+ 'deletedAt': string | null;
2729
+ /**
2730
+ *
2731
+ * @type {string}
2732
+ * @memberof RoomPriceHistory
2733
+ */
2734
+ 'createdAt': string;
2735
+ /**
2736
+ *
2737
+ * @type {string}
2738
+ * @memberof RoomPriceHistory
2739
+ */
2740
+ 'updatedAt': string;
2741
+ /**
2742
+ * Name of the price history
2743
+ * @type {string}
2744
+ * @memberof RoomPriceHistory
2745
+ */
2746
+ 'name': string;
2747
+ /**
2748
+ * Description of the price history
2749
+ * @type {string}
2750
+ * @memberof RoomPriceHistory
2751
+ */
2752
+ 'description': string;
2753
+ /**
2754
+ * ID of the room detail this price history belongs to
2755
+ * @type {string}
2756
+ * @memberof RoomPriceHistory
2757
+ */
2758
+ 'roomDetailId': string;
2759
+ /**
2760
+ * The associated room detail
2761
+ * @type {RoomDetail}
2762
+ * @memberof RoomPriceHistory
2763
+ */
2764
+ 'roomDetail'?: RoomDetail;
2765
+ /**
2766
+ * Price per hour for the room
2767
+ * @type {string}
2768
+ * @memberof RoomPriceHistory
2769
+ */
2770
+ 'price_per_hour': string;
2771
+ /**
2772
+ * Price per night for the room
2773
+ * @type {string}
2774
+ * @memberof RoomPriceHistory
2775
+ */
2776
+ 'price_per_night': string;
2777
+ /**
2778
+ * Price per day for the room
2779
+ * @type {string}
2780
+ * @memberof RoomPriceHistory
2781
+ */
2782
+ 'price_per_day': string;
2783
+ /**
2784
+ * Start date when this price becomes effective
2785
+ * @type {string}
2786
+ * @memberof RoomPriceHistory
2787
+ */
2788
+ 'effective_from': string;
2789
+ /**
2790
+ * End date when this price expires
2791
+ * @type {string}
2792
+ * @memberof RoomPriceHistory
2793
+ */
2794
+ 'effective_to': string;
2795
+ /**
2796
+ * Whether this price is currently being applied
2797
+ * @type {boolean}
2798
+ * @memberof RoomPriceHistory
2799
+ */
2800
+ 'is_applied': boolean;
2801
+ }
2656
2802
  /**
2657
2803
  *
2658
2804
  * @export
@@ -3250,6 +3396,12 @@ export interface UpdateRoomDetailDto {
3250
3396
  * @memberof UpdateRoomDetailDto
3251
3397
  */
3252
3398
  'max_children'?: number;
3399
+ /**
3400
+ * Room area(m2)
3401
+ * @type {number}
3402
+ * @memberof UpdateRoomDetailDto
3403
+ */
3404
+ 'area'?: number;
3253
3405
  /**
3254
3406
  * Hotel Room\'s base price per hour
3255
3407
  * @type {string}
@@ -3257,29 +3409,29 @@ export interface UpdateRoomDetailDto {
3257
3409
  */
3258
3410
  'base_price_per_hour'?: string;
3259
3411
  /**
3260
- * Hotel Room\'s special price per hour
3412
+ * Hotel Room\'s base price per night
3261
3413
  * @type {string}
3262
3414
  * @memberof UpdateRoomDetailDto
3263
3415
  */
3264
- 'special_price_per_hour'?: string;
3416
+ 'base_price_per_night'?: string;
3265
3417
  /**
3266
- * Hotel Room\'s base price per night
3418
+ * Hotel Room\'s base price per day
3267
3419
  * @type {string}
3268
3420
  * @memberof UpdateRoomDetailDto
3269
3421
  */
3270
- 'base_price_per_night'?: string;
3422
+ 'base_price_per_day'?: string;
3271
3423
  /**
3272
- * Hotel Room\'s special price per night
3424
+ * Hotel Room\'s special price per hour
3273
3425
  * @type {string}
3274
3426
  * @memberof UpdateRoomDetailDto
3275
3427
  */
3276
- 'special_price_per_night'?: string;
3428
+ 'special_price_per_hour'?: string;
3277
3429
  /**
3278
- * Hotel Room\'s base price per day
3430
+ * Hotel Room\'s special price per night
3279
3431
  * @type {string}
3280
3432
  * @memberof UpdateRoomDetailDto
3281
3433
  */
3282
- 'base_price_per_day'?: string;
3434
+ 'special_price_per_night'?: string;
3283
3435
  /**
3284
3436
  * Hotel Room\'s special price per day
3285
3437
  * @type {string}
@@ -3304,6 +3456,55 @@ export const UpdateRoomDetailDtoBedTypeEnum = {
3304
3456
 
3305
3457
  export type UpdateRoomDetailDtoBedTypeEnum = typeof UpdateRoomDetailDtoBedTypeEnum[keyof typeof UpdateRoomDetailDtoBedTypeEnum];
3306
3458
 
3459
+ /**
3460
+ *
3461
+ * @export
3462
+ * @interface UpdateRoomPriceHistoryDto
3463
+ */
3464
+ export interface UpdateRoomPriceHistoryDto {
3465
+ /**
3466
+ * Day that the price is applied
3467
+ * @type {string}
3468
+ * @memberof UpdateRoomPriceHistoryDto
3469
+ */
3470
+ 'name'?: string;
3471
+ /**
3472
+ * Description of the price history
3473
+ * @type {string}
3474
+ * @memberof UpdateRoomPriceHistoryDto
3475
+ */
3476
+ 'description'?: string;
3477
+ /**
3478
+ * Hotel Room\'s base price per hour
3479
+ * @type {string}
3480
+ * @memberof UpdateRoomPriceHistoryDto
3481
+ */
3482
+ 'price_per_hour'?: string;
3483
+ /**
3484
+ * Hotel Room\'s base price per day
3485
+ * @type {string}
3486
+ * @memberof UpdateRoomPriceHistoryDto
3487
+ */
3488
+ 'price_per_day'?: string;
3489
+ /**
3490
+ * Hotel Room\'s base price per night
3491
+ * @type {string}
3492
+ * @memberof UpdateRoomPriceHistoryDto
3493
+ */
3494
+ 'price_per_night'?: string;
3495
+ /**
3496
+ * Effective from date
3497
+ * @type {string}
3498
+ * @memberof UpdateRoomPriceHistoryDto
3499
+ */
3500
+ 'effective_from'?: string;
3501
+ /**
3502
+ * Effective to date
3503
+ * @type {string}
3504
+ * @memberof UpdateRoomPriceHistoryDto
3505
+ */
3506
+ 'effective_to'?: string;
3507
+ }
3307
3508
  /**
3308
3509
  *
3309
3510
  * @export
@@ -8025,6 +8226,332 @@ export class RoomDetailsApi extends BaseAPI {
8025
8226
 
8026
8227
 
8027
8228
 
8229
+ /**
8230
+ * RoomPriceHistoriesApi - axios parameter creator
8231
+ * @export
8232
+ */
8233
+ export const RoomPriceHistoriesApiAxiosParamCreator = function (configuration?: Configuration) {
8234
+ return {
8235
+ /**
8236
+ *
8237
+ * @summary Create a new room price history
8238
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8239
+ * @param {*} [options] Override http request option.
8240
+ * @throws {RequiredError}
8241
+ */
8242
+ roomPriceHistoryControllerCreate: async (createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8243
+ // verify required parameter 'createRoomPriceHistoryDto' is not null or undefined
8244
+ assertParamExists('roomPriceHistoryControllerCreate', 'createRoomPriceHistoryDto', createRoomPriceHistoryDto)
8245
+ const localVarPath = `/api/room-price-histories`;
8246
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8247
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8248
+ let baseOptions;
8249
+ if (configuration) {
8250
+ baseOptions = configuration.baseOptions;
8251
+ }
8252
+
8253
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8254
+ const localVarHeaderParameter = {} as any;
8255
+ const localVarQueryParameter = {} as any;
8256
+
8257
+
8258
+
8259
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8260
+
8261
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8262
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8263
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8264
+ localVarRequestOptions.data = serializeDataIfNeeded(createRoomPriceHistoryDto, localVarRequestOptions, configuration)
8265
+
8266
+ return {
8267
+ url: toPathString(localVarUrlObj),
8268
+ options: localVarRequestOptions,
8269
+ };
8270
+ },
8271
+ /**
8272
+ *
8273
+ * @summary Get all price histories for a specific room detail
8274
+ * @param {string} roomDetailId
8275
+ * @param {*} [options] Override http request option.
8276
+ * @throws {RequiredError}
8277
+ */
8278
+ roomPriceHistoryControllerFindManyByRoomDetail: async (roomDetailId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8279
+ // verify required parameter 'roomDetailId' is not null or undefined
8280
+ assertParamExists('roomPriceHistoryControllerFindManyByRoomDetail', 'roomDetailId', roomDetailId)
8281
+ const localVarPath = `/api/room-price-histories/room-detail/{roomDetailId}`
8282
+ .replace(`{${"roomDetailId"}}`, encodeURIComponent(String(roomDetailId)));
8283
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8284
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8285
+ let baseOptions;
8286
+ if (configuration) {
8287
+ baseOptions = configuration.baseOptions;
8288
+ }
8289
+
8290
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8291
+ const localVarHeaderParameter = {} as any;
8292
+ const localVarQueryParameter = {} as any;
8293
+
8294
+
8295
+
8296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8298
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8299
+
8300
+ return {
8301
+ url: toPathString(localVarUrlObj),
8302
+ options: localVarRequestOptions,
8303
+ };
8304
+ },
8305
+ /**
8306
+ *
8307
+ * @summary Delete a room price history
8308
+ * @param {string} id
8309
+ * @param {*} [options] Override http request option.
8310
+ * @throws {RequiredError}
8311
+ */
8312
+ roomPriceHistoryControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8313
+ // verify required parameter 'id' is not null or undefined
8314
+ assertParamExists('roomPriceHistoryControllerRemove', 'id', id)
8315
+ const localVarPath = `/api/room-price-histories/{id}`
8316
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8318
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8319
+ let baseOptions;
8320
+ if (configuration) {
8321
+ baseOptions = configuration.baseOptions;
8322
+ }
8323
+
8324
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8325
+ const localVarHeaderParameter = {} as any;
8326
+ const localVarQueryParameter = {} as any;
8327
+
8328
+
8329
+
8330
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8332
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8333
+
8334
+ return {
8335
+ url: toPathString(localVarUrlObj),
8336
+ options: localVarRequestOptions,
8337
+ };
8338
+ },
8339
+ /**
8340
+ *
8341
+ * @summary Update a room price history
8342
+ * @param {string} id
8343
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8344
+ * @param {*} [options] Override http request option.
8345
+ * @throws {RequiredError}
8346
+ */
8347
+ roomPriceHistoryControllerUpdate: async (id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8348
+ // verify required parameter 'id' is not null or undefined
8349
+ assertParamExists('roomPriceHistoryControllerUpdate', 'id', id)
8350
+ // verify required parameter 'updateRoomPriceHistoryDto' is not null or undefined
8351
+ assertParamExists('roomPriceHistoryControllerUpdate', 'updateRoomPriceHistoryDto', updateRoomPriceHistoryDto)
8352
+ const localVarPath = `/api/room-price-histories/{id}`
8353
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8356
+ let baseOptions;
8357
+ if (configuration) {
8358
+ baseOptions = configuration.baseOptions;
8359
+ }
8360
+
8361
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8362
+ const localVarHeaderParameter = {} as any;
8363
+ const localVarQueryParameter = {} as any;
8364
+
8365
+
8366
+
8367
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8368
+
8369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8371
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8372
+ localVarRequestOptions.data = serializeDataIfNeeded(updateRoomPriceHistoryDto, localVarRequestOptions, configuration)
8373
+
8374
+ return {
8375
+ url: toPathString(localVarUrlObj),
8376
+ options: localVarRequestOptions,
8377
+ };
8378
+ },
8379
+ }
8380
+ };
8381
+
8382
+ /**
8383
+ * RoomPriceHistoriesApi - functional programming interface
8384
+ * @export
8385
+ */
8386
+ export const RoomPriceHistoriesApiFp = function(configuration?: Configuration) {
8387
+ const localVarAxiosParamCreator = RoomPriceHistoriesApiAxiosParamCreator(configuration)
8388
+ return {
8389
+ /**
8390
+ *
8391
+ * @summary Create a new room price history
8392
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8393
+ * @param {*} [options] Override http request option.
8394
+ * @throws {RequiredError}
8395
+ */
8396
+ async roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomPriceHistory>> {
8397
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options);
8398
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8399
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerCreate']?.[localVarOperationServerIndex]?.url;
8400
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8401
+ },
8402
+ /**
8403
+ *
8404
+ * @summary Get all price histories for a specific room detail
8405
+ * @param {string} roomDetailId
8406
+ * @param {*} [options] Override http request option.
8407
+ * @throws {RequiredError}
8408
+ */
8409
+ async roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RoomPriceHistory>>> {
8410
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options);
8411
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8412
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerFindManyByRoomDetail']?.[localVarOperationServerIndex]?.url;
8413
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8414
+ },
8415
+ /**
8416
+ *
8417
+ * @summary Delete a room price history
8418
+ * @param {string} id
8419
+ * @param {*} [options] Override http request option.
8420
+ * @throws {RequiredError}
8421
+ */
8422
+ async roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerRemove(id, options);
8424
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8425
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerRemove']?.[localVarOperationServerIndex]?.url;
8426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8427
+ },
8428
+ /**
8429
+ *
8430
+ * @summary Update a room price history
8431
+ * @param {string} id
8432
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8433
+ * @param {*} [options] Override http request option.
8434
+ * @throws {RequiredError}
8435
+ */
8436
+ async roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomPriceHistory>> {
8437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options);
8438
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8439
+ const localVarOperationServerBasePath = operationServerMap['RoomPriceHistoriesApi.roomPriceHistoryControllerUpdate']?.[localVarOperationServerIndex]?.url;
8440
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8441
+ },
8442
+ }
8443
+ };
8444
+
8445
+ /**
8446
+ * RoomPriceHistoriesApi - factory interface
8447
+ * @export
8448
+ */
8449
+ export const RoomPriceHistoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8450
+ const localVarFp = RoomPriceHistoriesApiFp(configuration)
8451
+ return {
8452
+ /**
8453
+ *
8454
+ * @summary Create a new room price history
8455
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8456
+ * @param {*} [options] Override http request option.
8457
+ * @throws {RequiredError}
8458
+ */
8459
+ roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomPriceHistory> {
8460
+ return localVarFp.roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options).then((request) => request(axios, basePath));
8461
+ },
8462
+ /**
8463
+ *
8464
+ * @summary Get all price histories for a specific room detail
8465
+ * @param {string} roomDetailId
8466
+ * @param {*} [options] Override http request option.
8467
+ * @throws {RequiredError}
8468
+ */
8469
+ roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<RoomPriceHistory>> {
8470
+ return localVarFp.roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options).then((request) => request(axios, basePath));
8471
+ },
8472
+ /**
8473
+ *
8474
+ * @summary Delete a room price history
8475
+ * @param {string} id
8476
+ * @param {*} [options] Override http request option.
8477
+ * @throws {RequiredError}
8478
+ */
8479
+ roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
8480
+ return localVarFp.roomPriceHistoryControllerRemove(id, options).then((request) => request(axios, basePath));
8481
+ },
8482
+ /**
8483
+ *
8484
+ * @summary Update a room price history
8485
+ * @param {string} id
8486
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8487
+ * @param {*} [options] Override http request option.
8488
+ * @throws {RequiredError}
8489
+ */
8490
+ roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig): AxiosPromise<RoomPriceHistory> {
8491
+ return localVarFp.roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options).then((request) => request(axios, basePath));
8492
+ },
8493
+ };
8494
+ };
8495
+
8496
+ /**
8497
+ * RoomPriceHistoriesApi - object-oriented interface
8498
+ * @export
8499
+ * @class RoomPriceHistoriesApi
8500
+ * @extends {BaseAPI}
8501
+ */
8502
+ export class RoomPriceHistoriesApi extends BaseAPI {
8503
+ /**
8504
+ *
8505
+ * @summary Create a new room price history
8506
+ * @param {CreateRoomPriceHistoryDto} createRoomPriceHistoryDto
8507
+ * @param {*} [options] Override http request option.
8508
+ * @throws {RequiredError}
8509
+ * @memberof RoomPriceHistoriesApi
8510
+ */
8511
+ public roomPriceHistoryControllerCreate(createRoomPriceHistoryDto: CreateRoomPriceHistoryDto, options?: RawAxiosRequestConfig) {
8512
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerCreate(createRoomPriceHistoryDto, options).then((request) => request(this.axios, this.basePath));
8513
+ }
8514
+
8515
+ /**
8516
+ *
8517
+ * @summary Get all price histories for a specific room detail
8518
+ * @param {string} roomDetailId
8519
+ * @param {*} [options] Override http request option.
8520
+ * @throws {RequiredError}
8521
+ * @memberof RoomPriceHistoriesApi
8522
+ */
8523
+ public roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId: string, options?: RawAxiosRequestConfig) {
8524
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerFindManyByRoomDetail(roomDetailId, options).then((request) => request(this.axios, this.basePath));
8525
+ }
8526
+
8527
+ /**
8528
+ *
8529
+ * @summary Delete a room price history
8530
+ * @param {string} id
8531
+ * @param {*} [options] Override http request option.
8532
+ * @throws {RequiredError}
8533
+ * @memberof RoomPriceHistoriesApi
8534
+ */
8535
+ public roomPriceHistoryControllerRemove(id: string, options?: RawAxiosRequestConfig) {
8536
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
8537
+ }
8538
+
8539
+ /**
8540
+ *
8541
+ * @summary Update a room price history
8542
+ * @param {string} id
8543
+ * @param {UpdateRoomPriceHistoryDto} updateRoomPriceHistoryDto
8544
+ * @param {*} [options] Override http request option.
8545
+ * @throws {RequiredError}
8546
+ * @memberof RoomPriceHistoriesApi
8547
+ */
8548
+ public roomPriceHistoryControllerUpdate(id: string, updateRoomPriceHistoryDto: UpdateRoomPriceHistoryDto, options?: RawAxiosRequestConfig) {
8549
+ return RoomPriceHistoriesApiFp(this.configuration).roomPriceHistoryControllerUpdate(id, updateRoomPriceHistoryDto, options).then((request) => request(this.axios, this.basePath));
8550
+ }
8551
+ }
8552
+
8553
+
8554
+
8028
8555
  /**
8029
8556
  * RoomsApi - axios parameter creator
8030
8557
  * @export
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.18",
13
+ "version": "1.0.20",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"