@ahomevilla-hotel/node-sdk 2025.12.2-2.63347 → 2025.12.2-5.162723
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/README.md +2 -0
- package/dist/esm/models/email-health-response-dto.d.ts +38 -0
- package/dist/esm/models/email-health-response-dto.js +22 -0
- package/dist/esm/models/filter-room-detail-dto.d.ts +6 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/room-detail.d.ts +13 -0
- package/dist/esm/services/email-api.d.ts +30 -0
- package/dist/esm/services/email-api.js +59 -0
- package/dist/models/email-health-response-dto.d.ts +38 -0
- package/dist/models/email-health-response-dto.js +25 -0
- package/dist/models/filter-room-detail-dto.d.ts +6 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/room-detail.d.ts +13 -0
- package/dist/services/email-api.d.ts +30 -0
- package/dist/services/email-api.js +59 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ Class | Method | HTTP request | Description
|
|
|
92
92
|
*BranchesApi* | [**branchControllerRemove**](docs/BranchesApi.md#branchcontrollerremove) | **DELETE** /api/branches/{id} | Delete a branch
|
|
93
93
|
*BranchesApi* | [**branchControllerRestore**](docs/BranchesApi.md#branchcontrollerrestore) | **POST** /api/branches/{id}/restore | Restore a soft-deleted branch
|
|
94
94
|
*BranchesApi* | [**branchControllerUpdate**](docs/BranchesApi.md#branchcontrollerupdate) | **PATCH** /api/branches/{id} | Update a branch
|
|
95
|
+
*EmailApi* | [**emailControllerCheckHealth**](docs/EmailApi.md#emailcontrollercheckhealth) | **GET** /api/email/health | Check email service health status
|
|
95
96
|
*EmailApi* | [**emailControllerSendVerificationEmail**](docs/EmailApi.md#emailcontrollersendverificationemail) | **POST** /api/email/send-verification | Send verification email
|
|
96
97
|
*ImagesApi* | [**imagesControllerGetImageByPublicId**](docs/ImagesApi.md#imagescontrollergetimagebypublicid) | **GET** /api/images/{publicId} | Get image by public id
|
|
97
98
|
*ImagesApi* | [**imagesControllerUploadIcon**](docs/ImagesApi.md#imagescontrolleruploadicon) | **POST** /api/images/icon | Upload amenity icon
|
|
@@ -186,6 +187,7 @@ Class | Method | HTTP request | Description
|
|
|
186
187
|
- [CreateUserDto](docs/CreateUserDto.md)
|
|
187
188
|
- [DeleteUserDto](docs/DeleteUserDto.md)
|
|
188
189
|
- [DetailTranslationContent](docs/DetailTranslationContent.md)
|
|
190
|
+
- [EmailHealthResponseDto](docs/EmailHealthResponseDto.md)
|
|
189
191
|
- [ExposedEnumsDto](docs/ExposedEnumsDto.md)
|
|
190
192
|
- [FilterAmenityDto](docs/FilterAmenityDto.md)
|
|
191
193
|
- [FilterBookingsDto](docs/FilterBookingsDto.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AHomeVilla documentation
|
|
3
|
+
* This is AHomeVilla\'s APIs description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailHealthResponseDto
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailHealthResponseDto {
|
|
18
|
+
/**
|
|
19
|
+
* Health status of the email service
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailHealthResponseDto
|
|
22
|
+
*/
|
|
23
|
+
'status': EmailHealthResponseDtoStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Whether SMTP connection is active
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof EmailHealthResponseDto
|
|
28
|
+
*/
|
|
29
|
+
'smtp': boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
* @enum {string}
|
|
34
|
+
*/
|
|
35
|
+
export declare enum EmailHealthResponseDtoStatusEnum {
|
|
36
|
+
Healthy = "healthy",
|
|
37
|
+
Unhealthy = "unhealthy"
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* AHomeVilla documentation
|
|
5
|
+
* This is AHomeVilla\'s APIs description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
export var EmailHealthResponseDtoStatusEnum;
|
|
19
|
+
(function (EmailHealthResponseDtoStatusEnum) {
|
|
20
|
+
EmailHealthResponseDtoStatusEnum["Healthy"] = "healthy";
|
|
21
|
+
EmailHealthResponseDtoStatusEnum["Unhealthy"] = "unhealthy";
|
|
22
|
+
})(EmailHealthResponseDtoStatusEnum || (EmailHealthResponseDtoStatusEnum = {}));
|
|
@@ -129,6 +129,12 @@ export interface FilterRoomDetailDto {
|
|
|
129
129
|
* @memberof FilterRoomDetailDto
|
|
130
130
|
*/
|
|
131
131
|
'children'?: number;
|
|
132
|
+
/**
|
|
133
|
+
* When true (default), excludes room details with no available rooms. Set to false to include all room details (useful for branch detail screen where unavailable rooms are shown as disabled).
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof FilterRoomDetailDto
|
|
136
|
+
*/
|
|
137
|
+
'excludeFullyBooked'?: boolean;
|
|
132
138
|
}
|
|
133
139
|
/**
|
|
134
140
|
* @export
|
|
@@ -34,6 +34,7 @@ export * from './create-room-promotion-dto';
|
|
|
34
34
|
export * from './create-user-dto';
|
|
35
35
|
export * from './delete-user-dto';
|
|
36
36
|
export * from './detail-translation-content';
|
|
37
|
+
export * from './email-health-response-dto';
|
|
37
38
|
export * from './exposed-enums-dto';
|
|
38
39
|
export * from './filter-amenity-dto';
|
|
39
40
|
export * from './filter-bookings-dto';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -34,6 +34,7 @@ export * from './create-room-promotion-dto';
|
|
|
34
34
|
export * from './create-user-dto';
|
|
35
35
|
export * from './delete-user-dto';
|
|
36
36
|
export * from './detail-translation-content';
|
|
37
|
+
export * from './email-health-response-dto';
|
|
37
38
|
export * from './exposed-enums-dto';
|
|
38
39
|
export * from './filter-amenity-dto';
|
|
39
40
|
export * from './filter-bookings-dto';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Amenity } from './amenity';
|
|
13
|
+
import type { Branch } from './branch';
|
|
13
14
|
import type { Image } from './image';
|
|
14
15
|
import type { RoomPriceHistory } from './room-price-history';
|
|
15
16
|
import type { RoomPriceHistoryTranslationsInner } from './room-price-history-translations-inner';
|
|
@@ -67,6 +68,12 @@ export interface RoomDetail {
|
|
|
67
68
|
* @memberof RoomDetail
|
|
68
69
|
*/
|
|
69
70
|
'branchId': string;
|
|
71
|
+
/**
|
|
72
|
+
* Branch where this room is located
|
|
73
|
+
* @type {Branch}
|
|
74
|
+
* @memberof RoomDetail
|
|
75
|
+
*/
|
|
76
|
+
'branch': Branch;
|
|
70
77
|
/**
|
|
71
78
|
* Hotel Room\'s thumbnail image
|
|
72
79
|
* @type {Image}
|
|
@@ -181,6 +188,12 @@ export interface RoomDetail {
|
|
|
181
188
|
* @memberof RoomDetail
|
|
182
189
|
*/
|
|
183
190
|
'roomPriceHistories'?: Array<RoomPriceHistory>;
|
|
191
|
+
/**
|
|
192
|
+
* Number of rooms available for the requested time slot (only present when filtering by date/time)
|
|
193
|
+
* @type {number}
|
|
194
|
+
* @memberof RoomDetail
|
|
195
|
+
*/
|
|
196
|
+
'availableRoomsCount'?: number;
|
|
184
197
|
}
|
|
185
198
|
/**
|
|
186
199
|
* @export
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { EmailHealthResponseDto } from '../models';
|
|
15
16
|
import type { ResponseWithMessage } from '../models';
|
|
16
17
|
import type { VerificationEmailDto } from '../models';
|
|
17
18
|
/**
|
|
@@ -19,6 +20,13 @@ import type { VerificationEmailDto } from '../models';
|
|
|
19
20
|
* @export
|
|
20
21
|
*/
|
|
21
22
|
export declare const EmailApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Check email service health status
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
emailControllerCheckHealth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
32
|
* @summary Send verification email
|
|
@@ -33,6 +41,13 @@ export declare const EmailApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
33
41
|
* @export
|
|
34
42
|
*/
|
|
35
43
|
export declare const EmailApiFp: (configuration?: Configuration) => {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Check email service health status
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
emailControllerCheckHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailHealthResponseDto>>;
|
|
36
51
|
/**
|
|
37
52
|
*
|
|
38
53
|
* @summary Send verification email
|
|
@@ -47,6 +62,13 @@ export declare const EmailApiFp: (configuration?: Configuration) => {
|
|
|
47
62
|
* @export
|
|
48
63
|
*/
|
|
49
64
|
export declare const EmailApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Check email service health status
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
emailControllerCheckHealth(options?: RawAxiosRequestConfig): AxiosPromise<EmailHealthResponseDto>;
|
|
50
72
|
/**
|
|
51
73
|
*
|
|
52
74
|
* @summary Send verification email
|
|
@@ -76,6 +98,14 @@ export interface EmailApiEmailControllerSendVerificationEmailRequest {
|
|
|
76
98
|
* @extends {BaseAPI}
|
|
77
99
|
*/
|
|
78
100
|
export declare class EmailApi extends BaseAPI {
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @summary Check email service health status
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
* @memberof EmailApi
|
|
107
|
+
*/
|
|
108
|
+
emailControllerCheckHealth(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EmailHealthResponseDto, any, {}>>;
|
|
79
109
|
/**
|
|
80
110
|
*
|
|
81
111
|
* @summary Send verification email
|
|
@@ -32,6 +32,31 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
*/
|
|
33
33
|
export const EmailApiAxiosParamCreator = function (configuration) {
|
|
34
34
|
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Check email service health status
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
emailControllerCheckHealth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
42
|
+
const localVarPath = `/api/email/health`;
|
|
43
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
+
let baseOptions;
|
|
46
|
+
if (configuration) {
|
|
47
|
+
baseOptions = configuration.baseOptions;
|
|
48
|
+
}
|
|
49
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
50
|
+
const localVarHeaderParameter = {};
|
|
51
|
+
const localVarQueryParameter = {};
|
|
52
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
55
|
+
return {
|
|
56
|
+
url: toPathString(localVarUrlObj),
|
|
57
|
+
options: localVarRequestOptions,
|
|
58
|
+
};
|
|
59
|
+
}),
|
|
35
60
|
/**
|
|
36
61
|
*
|
|
37
62
|
* @summary Send verification email
|
|
@@ -71,6 +96,21 @@ export const EmailApiAxiosParamCreator = function (configuration) {
|
|
|
71
96
|
export const EmailApiFp = function (configuration) {
|
|
72
97
|
const localVarAxiosParamCreator = EmailApiAxiosParamCreator(configuration);
|
|
73
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @summary Check email service health status
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
emailControllerCheckHealth(options) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
var _a, _b, _c;
|
|
108
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.emailControllerCheckHealth(options);
|
|
109
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
110
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EmailApi.emailControllerCheckHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
111
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
112
|
+
});
|
|
113
|
+
},
|
|
74
114
|
/**
|
|
75
115
|
*
|
|
76
116
|
* @summary Send verification email
|
|
@@ -96,6 +136,15 @@ export const EmailApiFp = function (configuration) {
|
|
|
96
136
|
export const EmailApiFactory = function (configuration, basePath, axios) {
|
|
97
137
|
const localVarFp = EmailApiFp(configuration);
|
|
98
138
|
return {
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary Check email service health status
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
emailControllerCheckHealth(options) {
|
|
146
|
+
return localVarFp.emailControllerCheckHealth(options).then((request) => request(axios, basePath));
|
|
147
|
+
},
|
|
99
148
|
/**
|
|
100
149
|
*
|
|
101
150
|
* @summary Send verification email
|
|
@@ -115,6 +164,16 @@ export const EmailApiFactory = function (configuration, basePath, axios) {
|
|
|
115
164
|
* @extends {BaseAPI}
|
|
116
165
|
*/
|
|
117
166
|
export class EmailApi extends BaseAPI {
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @summary Check email service health status
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
* @memberof EmailApi
|
|
173
|
+
*/
|
|
174
|
+
emailControllerCheckHealth(options) {
|
|
175
|
+
return EmailApiFp(this.configuration).emailControllerCheckHealth(options).then((request) => request(this.axios, this.basePath));
|
|
176
|
+
}
|
|
118
177
|
/**
|
|
119
178
|
*
|
|
120
179
|
* @summary Send verification email
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AHomeVilla documentation
|
|
3
|
+
* This is AHomeVilla\'s APIs description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailHealthResponseDto
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailHealthResponseDto {
|
|
18
|
+
/**
|
|
19
|
+
* Health status of the email service
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailHealthResponseDto
|
|
22
|
+
*/
|
|
23
|
+
'status': EmailHealthResponseDtoStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Whether SMTP connection is active
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof EmailHealthResponseDto
|
|
28
|
+
*/
|
|
29
|
+
'smtp': boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
* @enum {string}
|
|
34
|
+
*/
|
|
35
|
+
export declare enum EmailHealthResponseDtoStatusEnum {
|
|
36
|
+
Healthy = "healthy",
|
|
37
|
+
Unhealthy = "unhealthy"
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* AHomeVilla documentation
|
|
6
|
+
* This is AHomeVilla\'s APIs description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EmailHealthResponseDtoStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var EmailHealthResponseDtoStatusEnum;
|
|
22
|
+
(function (EmailHealthResponseDtoStatusEnum) {
|
|
23
|
+
EmailHealthResponseDtoStatusEnum["Healthy"] = "healthy";
|
|
24
|
+
EmailHealthResponseDtoStatusEnum["Unhealthy"] = "unhealthy";
|
|
25
|
+
})(EmailHealthResponseDtoStatusEnum || (exports.EmailHealthResponseDtoStatusEnum = EmailHealthResponseDtoStatusEnum = {}));
|
|
@@ -129,6 +129,12 @@ export interface FilterRoomDetailDto {
|
|
|
129
129
|
* @memberof FilterRoomDetailDto
|
|
130
130
|
*/
|
|
131
131
|
'children'?: number;
|
|
132
|
+
/**
|
|
133
|
+
* When true (default), excludes room details with no available rooms. Set to false to include all room details (useful for branch detail screen where unavailable rooms are shown as disabled).
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof FilterRoomDetailDto
|
|
136
|
+
*/
|
|
137
|
+
'excludeFullyBooked'?: boolean;
|
|
132
138
|
}
|
|
133
139
|
/**
|
|
134
140
|
* @export
|
package/dist/models/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './create-room-promotion-dto';
|
|
|
34
34
|
export * from './create-user-dto';
|
|
35
35
|
export * from './delete-user-dto';
|
|
36
36
|
export * from './detail-translation-content';
|
|
37
|
+
export * from './email-health-response-dto';
|
|
37
38
|
export * from './exposed-enums-dto';
|
|
38
39
|
export * from './filter-amenity-dto';
|
|
39
40
|
export * from './filter-bookings-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __exportStar(require("./create-room-promotion-dto"), exports);
|
|
|
50
50
|
__exportStar(require("./create-user-dto"), exports);
|
|
51
51
|
__exportStar(require("./delete-user-dto"), exports);
|
|
52
52
|
__exportStar(require("./detail-translation-content"), exports);
|
|
53
|
+
__exportStar(require("./email-health-response-dto"), exports);
|
|
53
54
|
__exportStar(require("./exposed-enums-dto"), exports);
|
|
54
55
|
__exportStar(require("./filter-amenity-dto"), exports);
|
|
55
56
|
__exportStar(require("./filter-bookings-dto"), exports);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Amenity } from './amenity';
|
|
13
|
+
import type { Branch } from './branch';
|
|
13
14
|
import type { Image } from './image';
|
|
14
15
|
import type { RoomPriceHistory } from './room-price-history';
|
|
15
16
|
import type { RoomPriceHistoryTranslationsInner } from './room-price-history-translations-inner';
|
|
@@ -67,6 +68,12 @@ export interface RoomDetail {
|
|
|
67
68
|
* @memberof RoomDetail
|
|
68
69
|
*/
|
|
69
70
|
'branchId': string;
|
|
71
|
+
/**
|
|
72
|
+
* Branch where this room is located
|
|
73
|
+
* @type {Branch}
|
|
74
|
+
* @memberof RoomDetail
|
|
75
|
+
*/
|
|
76
|
+
'branch': Branch;
|
|
70
77
|
/**
|
|
71
78
|
* Hotel Room\'s thumbnail image
|
|
72
79
|
* @type {Image}
|
|
@@ -181,6 +188,12 @@ export interface RoomDetail {
|
|
|
181
188
|
* @memberof RoomDetail
|
|
182
189
|
*/
|
|
183
190
|
'roomPriceHistories'?: Array<RoomPriceHistory>;
|
|
191
|
+
/**
|
|
192
|
+
* Number of rooms available for the requested time slot (only present when filtering by date/time)
|
|
193
|
+
* @type {number}
|
|
194
|
+
* @memberof RoomDetail
|
|
195
|
+
*/
|
|
196
|
+
'availableRoomsCount'?: number;
|
|
184
197
|
}
|
|
185
198
|
/**
|
|
186
199
|
* @export
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { EmailHealthResponseDto } from '../models';
|
|
15
16
|
import type { ResponseWithMessage } from '../models';
|
|
16
17
|
import type { VerificationEmailDto } from '../models';
|
|
17
18
|
/**
|
|
@@ -19,6 +20,13 @@ import type { VerificationEmailDto } from '../models';
|
|
|
19
20
|
* @export
|
|
20
21
|
*/
|
|
21
22
|
export declare const EmailApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Check email service health status
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
emailControllerCheckHealth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
32
|
* @summary Send verification email
|
|
@@ -33,6 +41,13 @@ export declare const EmailApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
33
41
|
* @export
|
|
34
42
|
*/
|
|
35
43
|
export declare const EmailApiFp: (configuration?: Configuration) => {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Check email service health status
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
emailControllerCheckHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailHealthResponseDto>>;
|
|
36
51
|
/**
|
|
37
52
|
*
|
|
38
53
|
* @summary Send verification email
|
|
@@ -47,6 +62,13 @@ export declare const EmailApiFp: (configuration?: Configuration) => {
|
|
|
47
62
|
* @export
|
|
48
63
|
*/
|
|
49
64
|
export declare const EmailApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Check email service health status
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
emailControllerCheckHealth(options?: RawAxiosRequestConfig): AxiosPromise<EmailHealthResponseDto>;
|
|
50
72
|
/**
|
|
51
73
|
*
|
|
52
74
|
* @summary Send verification email
|
|
@@ -76,6 +98,14 @@ export interface EmailApiEmailControllerSendVerificationEmailRequest {
|
|
|
76
98
|
* @extends {BaseAPI}
|
|
77
99
|
*/
|
|
78
100
|
export declare class EmailApi extends BaseAPI {
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @summary Check email service health status
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
* @memberof EmailApi
|
|
107
|
+
*/
|
|
108
|
+
emailControllerCheckHealth(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EmailHealthResponseDto, any, {}>>;
|
|
79
109
|
/**
|
|
80
110
|
*
|
|
81
111
|
* @summary Send verification email
|
|
@@ -35,6 +35,31 @@ const base_1 = require("../base");
|
|
|
35
35
|
*/
|
|
36
36
|
const EmailApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Check email service health status
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
emailControllerCheckHealth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
45
|
+
const localVarPath = `/api/email/health`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
return {
|
|
59
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
38
63
|
/**
|
|
39
64
|
*
|
|
40
65
|
* @summary Send verification email
|
|
@@ -75,6 +100,21 @@ exports.EmailApiAxiosParamCreator = EmailApiAxiosParamCreator;
|
|
|
75
100
|
const EmailApiFp = function (configuration) {
|
|
76
101
|
const localVarAxiosParamCreator = (0, exports.EmailApiAxiosParamCreator)(configuration);
|
|
77
102
|
return {
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Check email service health status
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
emailControllerCheckHealth(options) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
var _a, _b, _c;
|
|
112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.emailControllerCheckHealth(options);
|
|
113
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
114
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailApi.emailControllerCheckHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
115
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
116
|
+
});
|
|
117
|
+
},
|
|
78
118
|
/**
|
|
79
119
|
*
|
|
80
120
|
* @summary Send verification email
|
|
@@ -101,6 +141,15 @@ exports.EmailApiFp = EmailApiFp;
|
|
|
101
141
|
const EmailApiFactory = function (configuration, basePath, axios) {
|
|
102
142
|
const localVarFp = (0, exports.EmailApiFp)(configuration);
|
|
103
143
|
return {
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @summary Check email service health status
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
emailControllerCheckHealth(options) {
|
|
151
|
+
return localVarFp.emailControllerCheckHealth(options).then((request) => request(axios, basePath));
|
|
152
|
+
},
|
|
104
153
|
/**
|
|
105
154
|
*
|
|
106
155
|
* @summary Send verification email
|
|
@@ -121,6 +170,16 @@ exports.EmailApiFactory = EmailApiFactory;
|
|
|
121
170
|
* @extends {BaseAPI}
|
|
122
171
|
*/
|
|
123
172
|
class EmailApi extends base_1.BaseAPI {
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Check email service health status
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
* @memberof EmailApi
|
|
179
|
+
*/
|
|
180
|
+
emailControllerCheckHealth(options) {
|
|
181
|
+
return (0, exports.EmailApiFp)(this.configuration).emailControllerCheckHealth(options).then((request) => request(this.axios, this.basePath));
|
|
182
|
+
}
|
|
124
183
|
/**
|
|
125
184
|
*
|
|
126
185
|
* @summary Send verification email
|