@ahomevilla-hotel/node-sdk 1.1.1 → 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 +90 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3783,6 +3783,25 @@ export interface VerifyEmailDto {
|
|
|
3783
3783
|
*/
|
|
3784
3784
|
'code': string;
|
|
3785
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
|
+
}
|
|
3786
3805
|
|
|
3787
3806
|
/**
|
|
3788
3807
|
* AmenitiesApi - axios parameter creator
|
|
@@ -9275,6 +9294,42 @@ export const VerificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
9275
9294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9276
9295
|
localVarRequestOptions.data = serializeDataIfNeeded(verifyCodeDto, localVarRequestOptions, configuration)
|
|
9277
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
|
+
|
|
9278
9333
|
return {
|
|
9279
9334
|
url: toPathString(localVarUrlObj),
|
|
9280
9335
|
options: localVarRequestOptions,
|
|
@@ -9303,6 +9358,19 @@ export const VerificationApiFp = function(configuration?: Configuration) {
|
|
|
9303
9358
|
const localVarOperationServerBasePath = operationServerMap['VerificationApi.verificationControllerVerifyCode']?.[localVarOperationServerIndex]?.url;
|
|
9304
9359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9305
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
|
+
},
|
|
9306
9374
|
}
|
|
9307
9375
|
};
|
|
9308
9376
|
|
|
@@ -9323,6 +9391,16 @@ export const VerificationApiFactory = function (configuration?: Configuration, b
|
|
|
9323
9391
|
verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponseDto> {
|
|
9324
9392
|
return localVarFp.verificationControllerVerifyCode(verifyCodeDto, options).then((request) => request(axios, basePath));
|
|
9325
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
|
+
},
|
|
9326
9404
|
};
|
|
9327
9405
|
};
|
|
9328
9406
|
|
|
@@ -9344,6 +9422,18 @@ export class VerificationApi extends BaseAPI {
|
|
|
9344
9422
|
public verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig) {
|
|
9345
9423
|
return VerificationApiFp(this.configuration).verificationControllerVerifyCode(verifyCodeDto, options).then((request) => request(this.axios, this.basePath));
|
|
9346
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
|
+
}
|
|
9347
9437
|
}
|
|
9348
9438
|
|
|
9349
9439
|
|