@ahomevilla-hotel/node-sdk 1.0.20 → 1.1.2
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 +96 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2646,6 +2646,12 @@ export interface RoomDetail {
|
|
|
2646
2646
|
* @memberof RoomDetail
|
|
2647
2647
|
*/
|
|
2648
2648
|
'flat_rooms': Array<HotelRoom>;
|
|
2649
|
+
/**
|
|
2650
|
+
* Price history of this room
|
|
2651
|
+
* @type {Array<RoomPriceHistory>}
|
|
2652
|
+
* @memberof RoomDetail
|
|
2653
|
+
*/
|
|
2654
|
+
'roomPriceHistories'?: Array<RoomPriceHistory>;
|
|
2649
2655
|
}
|
|
2650
2656
|
|
|
2651
2657
|
export const RoomDetailRoomTypeEnum = {
|
|
@@ -3777,6 +3783,25 @@ export interface VerifyEmailDto {
|
|
|
3777
3783
|
*/
|
|
3778
3784
|
'code': string;
|
|
3779
3785
|
}
|
|
3786
|
+
/**
|
|
3787
|
+
*
|
|
3788
|
+
* @export
|
|
3789
|
+
* @interface VerifyEmailOTP
|
|
3790
|
+
*/
|
|
3791
|
+
export interface VerifyEmailOTP {
|
|
3792
|
+
/**
|
|
3793
|
+
* Email
|
|
3794
|
+
* @type {string}
|
|
3795
|
+
* @memberof VerifyEmailOTP
|
|
3796
|
+
*/
|
|
3797
|
+
'email': string;
|
|
3798
|
+
/**
|
|
3799
|
+
* Verification code
|
|
3800
|
+
* @type {string}
|
|
3801
|
+
* @memberof VerifyEmailOTP
|
|
3802
|
+
*/
|
|
3803
|
+
'code': string;
|
|
3804
|
+
}
|
|
3780
3805
|
|
|
3781
3806
|
/**
|
|
3782
3807
|
* AmenitiesApi - axios parameter creator
|
|
@@ -9269,6 +9294,42 @@ export const VerificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
9269
9294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9270
9295
|
localVarRequestOptions.data = serializeDataIfNeeded(verifyCodeDto, localVarRequestOptions, configuration)
|
|
9271
9296
|
|
|
9297
|
+
return {
|
|
9298
|
+
url: toPathString(localVarUrlObj),
|
|
9299
|
+
options: localVarRequestOptions,
|
|
9300
|
+
};
|
|
9301
|
+
},
|
|
9302
|
+
/**
|
|
9303
|
+
*
|
|
9304
|
+
* @summary Verify an email OTP
|
|
9305
|
+
* @param {VerifyEmailOTP} verifyEmailOTP
|
|
9306
|
+
* @param {*} [options] Override http request option.
|
|
9307
|
+
* @throws {RequiredError}
|
|
9308
|
+
*/
|
|
9309
|
+
verificationControllerVerifyEmailOTP: async (verifyEmailOTP: VerifyEmailOTP, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9310
|
+
// verify required parameter 'verifyEmailOTP' is not null or undefined
|
|
9311
|
+
assertParamExists('verificationControllerVerifyEmailOTP', 'verifyEmailOTP', verifyEmailOTP)
|
|
9312
|
+
const localVarPath = `/api/verification/verify-email-otp`;
|
|
9313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9315
|
+
let baseOptions;
|
|
9316
|
+
if (configuration) {
|
|
9317
|
+
baseOptions = configuration.baseOptions;
|
|
9318
|
+
}
|
|
9319
|
+
|
|
9320
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9321
|
+
const localVarHeaderParameter = {} as any;
|
|
9322
|
+
const localVarQueryParameter = {} as any;
|
|
9323
|
+
|
|
9324
|
+
|
|
9325
|
+
|
|
9326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9327
|
+
|
|
9328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9331
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailOTP, localVarRequestOptions, configuration)
|
|
9332
|
+
|
|
9272
9333
|
return {
|
|
9273
9334
|
url: toPathString(localVarUrlObj),
|
|
9274
9335
|
options: localVarRequestOptions,
|
|
@@ -9297,6 +9358,19 @@ export const VerificationApiFp = function(configuration?: Configuration) {
|
|
|
9297
9358
|
const localVarOperationServerBasePath = operationServerMap['VerificationApi.verificationControllerVerifyCode']?.[localVarOperationServerIndex]?.url;
|
|
9298
9359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9299
9360
|
},
|
|
9361
|
+
/**
|
|
9362
|
+
*
|
|
9363
|
+
* @summary Verify an email OTP
|
|
9364
|
+
* @param {VerifyEmailOTP} verifyEmailOTP
|
|
9365
|
+
* @param {*} [options] Override http request option.
|
|
9366
|
+
* @throws {RequiredError}
|
|
9367
|
+
*/
|
|
9368
|
+
async verificationControllerVerifyEmailOTP(verifyEmailOTP: VerifyEmailOTP, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCodeResponseDto>> {
|
|
9369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verificationControllerVerifyEmailOTP(verifyEmailOTP, options);
|
|
9370
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9371
|
+
const localVarOperationServerBasePath = operationServerMap['VerificationApi.verificationControllerVerifyEmailOTP']?.[localVarOperationServerIndex]?.url;
|
|
9372
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9373
|
+
},
|
|
9300
9374
|
}
|
|
9301
9375
|
};
|
|
9302
9376
|
|
|
@@ -9317,6 +9391,16 @@ export const VerificationApiFactory = function (configuration?: Configuration, b
|
|
|
9317
9391
|
verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponseDto> {
|
|
9318
9392
|
return localVarFp.verificationControllerVerifyCode(verifyCodeDto, options).then((request) => request(axios, basePath));
|
|
9319
9393
|
},
|
|
9394
|
+
/**
|
|
9395
|
+
*
|
|
9396
|
+
* @summary Verify an email OTP
|
|
9397
|
+
* @param {VerifyEmailOTP} verifyEmailOTP
|
|
9398
|
+
* @param {*} [options] Override http request option.
|
|
9399
|
+
* @throws {RequiredError}
|
|
9400
|
+
*/
|
|
9401
|
+
verificationControllerVerifyEmailOTP(verifyEmailOTP: VerifyEmailOTP, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponseDto> {
|
|
9402
|
+
return localVarFp.verificationControllerVerifyEmailOTP(verifyEmailOTP, options).then((request) => request(axios, basePath));
|
|
9403
|
+
},
|
|
9320
9404
|
};
|
|
9321
9405
|
};
|
|
9322
9406
|
|
|
@@ -9338,6 +9422,18 @@ export class VerificationApi extends BaseAPI {
|
|
|
9338
9422
|
public verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig) {
|
|
9339
9423
|
return VerificationApiFp(this.configuration).verificationControllerVerifyCode(verifyCodeDto, options).then((request) => request(this.axios, this.basePath));
|
|
9340
9424
|
}
|
|
9425
|
+
|
|
9426
|
+
/**
|
|
9427
|
+
*
|
|
9428
|
+
* @summary Verify an email OTP
|
|
9429
|
+
* @param {VerifyEmailOTP} verifyEmailOTP
|
|
9430
|
+
* @param {*} [options] Override http request option.
|
|
9431
|
+
* @throws {RequiredError}
|
|
9432
|
+
* @memberof VerificationApi
|
|
9433
|
+
*/
|
|
9434
|
+
public verificationControllerVerifyEmailOTP(verifyEmailOTP: VerifyEmailOTP, options?: RawAxiosRequestConfig) {
|
|
9435
|
+
return VerificationApiFp(this.configuration).verificationControllerVerifyEmailOTP(verifyEmailOTP, options).then((request) => request(this.axios, this.basePath));
|
|
9436
|
+
}
|
|
9341
9437
|
}
|
|
9342
9438
|
|
|
9343
9439
|
|