@ahomevilla-hotel/node-sdk 1.1.3 → 1.1.4
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 +111 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1792,7 +1792,19 @@ export interface HotelRoom {
|
|
|
1792
1792
|
* @type {RoomDetail}
|
|
1793
1793
|
* @memberof HotelRoom
|
|
1794
1794
|
*/
|
|
1795
|
-
'detail'
|
|
1795
|
+
'detail'?: RoomDetail;
|
|
1796
|
+
/**
|
|
1797
|
+
* List of bookings
|
|
1798
|
+
* @type {Array<Booking>}
|
|
1799
|
+
* @memberof HotelRoom
|
|
1800
|
+
*/
|
|
1801
|
+
'bookings'?: Array<Booking>;
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @type {HotelRoomCount}
|
|
1805
|
+
* @memberof HotelRoom
|
|
1806
|
+
*/
|
|
1807
|
+
'_count'?: HotelRoomCount;
|
|
1796
1808
|
}
|
|
1797
1809
|
|
|
1798
1810
|
export const HotelRoomStatusEnum = {
|
|
@@ -1804,6 +1816,19 @@ export const HotelRoomStatusEnum = {
|
|
|
1804
1816
|
|
|
1805
1817
|
export type HotelRoomStatusEnum = typeof HotelRoomStatusEnum[keyof typeof HotelRoomStatusEnum];
|
|
1806
1818
|
|
|
1819
|
+
/**
|
|
1820
|
+
* Count of bookings
|
|
1821
|
+
* @export
|
|
1822
|
+
* @interface HotelRoomCount
|
|
1823
|
+
*/
|
|
1824
|
+
export interface HotelRoomCount {
|
|
1825
|
+
/**
|
|
1826
|
+
*
|
|
1827
|
+
* @type {number}
|
|
1828
|
+
* @memberof HotelRoomCount
|
|
1829
|
+
*/
|
|
1830
|
+
'bookings'?: number;
|
|
1831
|
+
}
|
|
1807
1832
|
/**
|
|
1808
1833
|
*
|
|
1809
1834
|
* @export
|
|
@@ -1861,6 +1886,19 @@ export interface ImageUploadResponseDto {
|
|
|
1861
1886
|
*/
|
|
1862
1887
|
'publicId': string;
|
|
1863
1888
|
}
|
|
1889
|
+
/**
|
|
1890
|
+
*
|
|
1891
|
+
* @export
|
|
1892
|
+
* @interface ImmediateDeleteRoomsDto
|
|
1893
|
+
*/
|
|
1894
|
+
export interface ImmediateDeleteRoomsDto {
|
|
1895
|
+
/**
|
|
1896
|
+
* List of room ids to delete
|
|
1897
|
+
* @type {Array<string>}
|
|
1898
|
+
* @memberof ImmediateDeleteRoomsDto
|
|
1899
|
+
*/
|
|
1900
|
+
'ids': Array<string>;
|
|
1901
|
+
}
|
|
1864
1902
|
/**
|
|
1865
1903
|
*
|
|
1866
1904
|
* @export
|
|
@@ -8709,7 +8747,7 @@ export const RoomsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
8709
8747
|
roomControllerFindManyByBranchId: async (branchId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8710
8748
|
// verify required parameter 'branchId' is not null or undefined
|
|
8711
8749
|
assertParamExists('roomControllerFindManyByBranchId', 'branchId', branchId)
|
|
8712
|
-
const localVarPath = `/api/rooms/{branchId}`
|
|
8750
|
+
const localVarPath = `/api/rooms/in-branch/{branchId}`
|
|
8713
8751
|
.replace(`{${"branchId"}}`, encodeURIComponent(String(branchId)));
|
|
8714
8752
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8715
8753
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8767,6 +8805,42 @@ export const RoomsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
8767
8805
|
options: localVarRequestOptions,
|
|
8768
8806
|
};
|
|
8769
8807
|
},
|
|
8808
|
+
/**
|
|
8809
|
+
*
|
|
8810
|
+
* @summary ADMIN - Delete rooms permanently
|
|
8811
|
+
* @param {ImmediateDeleteRoomsDto} immediateDeleteRoomsDto
|
|
8812
|
+
* @param {*} [options] Override http request option.
|
|
8813
|
+
* @throws {RequiredError}
|
|
8814
|
+
*/
|
|
8815
|
+
roomControllerPermanentDelete: async (immediateDeleteRoomsDto: ImmediateDeleteRoomsDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8816
|
+
// verify required parameter 'immediateDeleteRoomsDto' is not null or undefined
|
|
8817
|
+
assertParamExists('roomControllerPermanentDelete', 'immediateDeleteRoomsDto', immediateDeleteRoomsDto)
|
|
8818
|
+
const localVarPath = `/api/rooms/permanent-delete`;
|
|
8819
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8820
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8821
|
+
let baseOptions;
|
|
8822
|
+
if (configuration) {
|
|
8823
|
+
baseOptions = configuration.baseOptions;
|
|
8824
|
+
}
|
|
8825
|
+
|
|
8826
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8827
|
+
const localVarHeaderParameter = {} as any;
|
|
8828
|
+
const localVarQueryParameter = {} as any;
|
|
8829
|
+
|
|
8830
|
+
|
|
8831
|
+
|
|
8832
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8833
|
+
|
|
8834
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8835
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8836
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8837
|
+
localVarRequestOptions.data = serializeDataIfNeeded(immediateDeleteRoomsDto, localVarRequestOptions, configuration)
|
|
8838
|
+
|
|
8839
|
+
return {
|
|
8840
|
+
url: toPathString(localVarUrlObj),
|
|
8841
|
+
options: localVarRequestOptions,
|
|
8842
|
+
};
|
|
8843
|
+
},
|
|
8770
8844
|
/**
|
|
8771
8845
|
*
|
|
8772
8846
|
* @summary Soft delete a room
|
|
@@ -8952,6 +9026,19 @@ export const RoomsApiFp = function(configuration?: Configuration) {
|
|
|
8952
9026
|
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
8953
9027
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8954
9028
|
},
|
|
9029
|
+
/**
|
|
9030
|
+
*
|
|
9031
|
+
* @summary ADMIN - Delete rooms permanently
|
|
9032
|
+
* @param {ImmediateDeleteRoomsDto} immediateDeleteRoomsDto
|
|
9033
|
+
* @param {*} [options] Override http request option.
|
|
9034
|
+
* @throws {RequiredError}
|
|
9035
|
+
*/
|
|
9036
|
+
async roomControllerPermanentDelete(immediateDeleteRoomsDto: ImmediateDeleteRoomsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9037
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerPermanentDelete(immediateDeleteRoomsDto, options);
|
|
9038
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9039
|
+
const localVarOperationServerBasePath = operationServerMap['RoomsApi.roomControllerPermanentDelete']?.[localVarOperationServerIndex]?.url;
|
|
9040
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9041
|
+
},
|
|
8955
9042
|
/**
|
|
8956
9043
|
*
|
|
8957
9044
|
* @summary Soft delete a room
|
|
@@ -9054,6 +9141,16 @@ export const RoomsApiFactory = function (configuration?: Configuration, basePath
|
|
|
9054
9141
|
roomControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<HotelRoom> {
|
|
9055
9142
|
return localVarFp.roomControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
9056
9143
|
},
|
|
9144
|
+
/**
|
|
9145
|
+
*
|
|
9146
|
+
* @summary ADMIN - Delete rooms permanently
|
|
9147
|
+
* @param {ImmediateDeleteRoomsDto} immediateDeleteRoomsDto
|
|
9148
|
+
* @param {*} [options] Override http request option.
|
|
9149
|
+
* @throws {RequiredError}
|
|
9150
|
+
*/
|
|
9151
|
+
roomControllerPermanentDelete(immediateDeleteRoomsDto: ImmediateDeleteRoomsDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9152
|
+
return localVarFp.roomControllerPermanentDelete(immediateDeleteRoomsDto, options).then((request) => request(axios, basePath));
|
|
9153
|
+
},
|
|
9057
9154
|
/**
|
|
9058
9155
|
*
|
|
9059
9156
|
* @summary Soft delete a room
|
|
@@ -9157,6 +9254,18 @@ export class RoomsApi extends BaseAPI {
|
|
|
9157
9254
|
return RoomsApiFp(this.configuration).roomControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
9158
9255
|
}
|
|
9159
9256
|
|
|
9257
|
+
/**
|
|
9258
|
+
*
|
|
9259
|
+
* @summary ADMIN - Delete rooms permanently
|
|
9260
|
+
* @param {ImmediateDeleteRoomsDto} immediateDeleteRoomsDto
|
|
9261
|
+
* @param {*} [options] Override http request option.
|
|
9262
|
+
* @throws {RequiredError}
|
|
9263
|
+
* @memberof RoomsApi
|
|
9264
|
+
*/
|
|
9265
|
+
public roomControllerPermanentDelete(immediateDeleteRoomsDto: ImmediateDeleteRoomsDto, options?: RawAxiosRequestConfig) {
|
|
9266
|
+
return RoomsApiFp(this.configuration).roomControllerPermanentDelete(immediateDeleteRoomsDto, options).then((request) => request(this.axios, this.basePath));
|
|
9267
|
+
}
|
|
9268
|
+
|
|
9160
9269
|
/**
|
|
9161
9270
|
*
|
|
9162
9271
|
* @summary Soft delete a room
|