@rasadov/lumoar-sdk 1.2.2 → 1.2.3

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 CHANGED
@@ -7477,8 +7477,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
7477
7477
  resendOtpByEmailV1UserResendOtpEmailPost: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7478
7478
  // verify required parameter 'email' is not null or undefined
7479
7479
  assertParamExists('resendOtpByEmailV1UserResendOtpEmailPost', 'email', email)
7480
- const localVarPath = `/v1/user/resend-otp/{email}`
7481
- .replace(`{${"email"}}`, encodeURIComponent(String(email)));
7480
+ const localVarPath = `/v1/user/resend-otp/email`;
7482
7481
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7483
7482
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7484
7483
  let baseOptions;
@@ -7490,6 +7489,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
7490
7489
  const localVarHeaderParameter = {} as any;
7491
7490
  const localVarQueryParameter = {} as any;
7492
7491
 
7492
+ if (email !== undefined) {
7493
+ localVarQueryParameter['email'] = email;
7494
+ }
7495
+
7493
7496
 
7494
7497
 
7495
7498
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7509,8 +7512,8 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
7509
7512
  * @param {*} [options] Override http request option.
7510
7513
  * @throws {RequiredError}
7511
7514
  */
7512
- resendOtpV1UserResendOtpPost: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7513
- const localVarPath = `/v1/user/resend-otp`;
7515
+ resendOtpV1UserResendOtpPasswordPost: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7516
+ const localVarPath = `/v1/user/resend-otp/password`;
7514
7517
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7515
7518
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7516
7519
  let baseOptions;
@@ -7782,10 +7785,10 @@ export const UserApiFp = function(configuration?: Configuration) {
7782
7785
  * @param {*} [options] Override http request option.
7783
7786
  * @throws {RequiredError}
7784
7787
  */
7785
- async resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7786
- const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(authorization, sessionId, options);
7788
+ async resendOtpV1UserResendOtpPasswordPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options);
7787
7790
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7788
- const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']?.[localVarOperationServerIndex]?.url;
7791
+ const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpV1UserResendOtpPasswordPost']?.[localVarOperationServerIndex]?.url;
7789
7792
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7790
7793
  },
7791
7794
  /**
@@ -7923,8 +7926,8 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7923
7926
  * @param {*} [options] Override http request option.
7924
7927
  * @throws {RequiredError}
7925
7928
  */
7926
- resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7927
- return localVarFp.resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(axios, basePath));
7929
+ resendOtpV1UserResendOtpPasswordPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7930
+ return localVarFp.resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options).then((request) => request(axios, basePath));
7928
7931
  },
7929
7932
  /**
7930
7933
  *
@@ -8062,8 +8065,8 @@ export class UserApi extends BaseAPI {
8062
8065
  * @throws {RequiredError}
8063
8066
  * @memberof UserApi
8064
8067
  */
8065
- public resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
8066
- return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
8068
+ public resendOtpV1UserResendOtpPasswordPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
8069
+ return UserApiFp(this.configuration).resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
8067
8070
  }
8068
8071
 
8069
8072
  /**
package/dist/api.d.ts CHANGED
@@ -4881,7 +4881,7 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
4881
4881
  * @param {*} [options] Override http request option.
4882
4882
  * @throws {RequiredError}
4883
4883
  */
4884
- resendOtpV1UserResendOtpPost: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4884
+ resendOtpV1UserResendOtpPasswordPost: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4885
4885
  /**
4886
4886
  *
4887
4887
  * @summary Reset Password
@@ -4981,7 +4981,7 @@ export declare const UserApiFp: (configuration?: Configuration) => {
4981
4981
  * @param {*} [options] Override http request option.
4982
4982
  * @throws {RequiredError}
4983
4983
  */
4984
- resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
4984
+ resendOtpV1UserResendOtpPasswordPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
4985
4985
  /**
4986
4986
  *
4987
4987
  * @summary Reset Password
@@ -5081,7 +5081,7 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
5081
5081
  * @param {*} [options] Override http request option.
5082
5082
  * @throws {RequiredError}
5083
5083
  */
5084
- resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
5084
+ resendOtpV1UserResendOtpPasswordPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
5085
5085
  /**
5086
5086
  *
5087
5087
  * @summary Reset Password
@@ -5190,7 +5190,7 @@ export declare class UserApi extends BaseAPI {
5190
5190
  * @throws {RequiredError}
5191
5191
  * @memberof UserApi
5192
5192
  */
5193
- resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
5193
+ resendOtpV1UserResendOtpPasswordPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
5194
5194
  /**
5195
5195
  *
5196
5196
  * @summary Reset Password
package/dist/api.js CHANGED
@@ -4971,8 +4971,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
4971
4971
  resendOtpByEmailV1UserResendOtpEmailPost: (email_1, ...args_1) => __awaiter(this, [email_1, ...args_1], void 0, function* (email, options = {}) {
4972
4972
  // verify required parameter 'email' is not null or undefined
4973
4973
  assertParamExists('resendOtpByEmailV1UserResendOtpEmailPost', 'email', email);
4974
- const localVarPath = `/v1/user/resend-otp/{email}`
4975
- .replace(`{${"email"}}`, encodeURIComponent(String(email)));
4974
+ const localVarPath = `/v1/user/resend-otp/email`;
4976
4975
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4977
4976
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4978
4977
  let baseOptions;
@@ -4982,6 +4981,9 @@ export const UserApiAxiosParamCreator = function (configuration) {
4982
4981
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4983
4982
  const localVarHeaderParameter = {};
4984
4983
  const localVarQueryParameter = {};
4984
+ if (email !== undefined) {
4985
+ localVarQueryParameter['email'] = email;
4986
+ }
4985
4987
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4986
4988
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4987
4989
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4998,8 +5000,8 @@ export const UserApiAxiosParamCreator = function (configuration) {
4998
5000
  * @param {*} [options] Override http request option.
4999
5001
  * @throws {RequiredError}
5000
5002
  */
5001
- resendOtpV1UserResendOtpPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
5002
- const localVarPath = `/v1/user/resend-otp`;
5003
+ resendOtpV1UserResendOtpPasswordPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
5004
+ const localVarPath = `/v1/user/resend-otp/password`;
5003
5005
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5004
5006
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5005
5007
  let baseOptions;
@@ -5260,12 +5262,12 @@ export const UserApiFp = function (configuration) {
5260
5262
  * @param {*} [options] Override http request option.
5261
5263
  * @throws {RequiredError}
5262
5264
  */
5263
- resendOtpV1UserResendOtpPost(authorization, sessionId, options) {
5265
+ resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options) {
5264
5266
  return __awaiter(this, void 0, void 0, function* () {
5265
5267
  var _a, _b, _c;
5266
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(authorization, sessionId, options);
5268
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options);
5267
5269
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5268
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5270
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpV1UserResendOtpPasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5269
5271
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5270
5272
  });
5271
5273
  },
@@ -5415,8 +5417,8 @@ export const UserApiFactory = function (configuration, basePath, axios) {
5415
5417
  * @param {*} [options] Override http request option.
5416
5418
  * @throws {RequiredError}
5417
5419
  */
5418
- resendOtpV1UserResendOtpPost(authorization, sessionId, options) {
5419
- return localVarFp.resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(axios, basePath));
5420
+ resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options) {
5421
+ return localVarFp.resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options).then((request) => request(axios, basePath));
5420
5422
  },
5421
5423
  /**
5422
5424
  *
@@ -5547,8 +5549,8 @@ export class UserApi extends BaseAPI {
5547
5549
  * @throws {RequiredError}
5548
5550
  * @memberof UserApi
5549
5551
  */
5550
- resendOtpV1UserResendOtpPost(authorization, sessionId, options) {
5551
- return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5552
+ resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options) {
5553
+ return UserApiFp(this.configuration).resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5552
5554
  }
5553
5555
  /**
5554
5556
  *
package/docs/UserApi.md CHANGED
@@ -9,8 +9,8 @@ All URIs are relative to *http://localhost*
9
9
  |[**forgotPasswordV1UserForgotPasswordPost**](#forgotpasswordv1userforgotpasswordpost) | **POST** /v1/user/forgot-password | Forgot Password|
10
10
  |[**getUserDashV1UserMeDashGet**](#getuserdashv1usermedashget) | **GET** /v1/user/me/dash | Get User Dash|
11
11
  |[**getUserV1UserMeGet**](#getuserv1usermeget) | **GET** /v1/user/me | Get User|
12
- |[**resendOtpByEmailV1UserResendOtpEmailPost**](#resendotpbyemailv1userresendotpemailpost) | **POST** /v1/user/resend-otp/{email} | Resend Otp By Email|
13
- |[**resendOtpV1UserResendOtpPost**](#resendotpv1userresendotppost) | **POST** /v1/user/resend-otp | Resend Otp|
12
+ |[**resendOtpByEmailV1UserResendOtpEmailPost**](#resendotpbyemailv1userresendotpemailpost) | **POST** /v1/user/resend-otp/email | Resend Otp By Email|
13
+ |[**resendOtpV1UserResendOtpPasswordPost**](#resendotpv1userresendotppasswordpost) | **POST** /v1/user/resend-otp/password | Resend Otp|
14
14
  |[**resetPasswordV1UserResetPasswordPost**](#resetpasswordv1userresetpasswordpost) | **POST** /v1/user/reset-password | Reset Password|
15
15
  |[**sendVerificationEmailV1UserSendVerificationEmailPost**](#sendverificationemailv1usersendverificationemailpost) | **POST** /v1/user/send-verification-email | Send Verification Email|
16
16
  |[**updateUserV1UserUpdatePatch**](#updateuserv1userupdatepatch) | **PATCH** /v1/user/update | Update User|
@@ -327,8 +327,8 @@ No authorization required
327
327
 
328
328
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
329
329
 
330
- # **resendOtpV1UserResendOtpPost**
331
- > Details resendOtpV1UserResendOtpPost()
330
+ # **resendOtpV1UserResendOtpPasswordPost**
331
+ > Details resendOtpV1UserResendOtpPasswordPost()
332
332
 
333
333
 
334
334
  ### Example
@@ -345,7 +345,7 @@ const apiInstance = new UserApi(configuration);
345
345
  let authorization: string; // (optional) (default to undefined)
346
346
  let sessionId: string; // (optional) (default to undefined)
347
347
 
348
- const { status, data } = await apiInstance.resendOtpV1UserResendOtpPost(
348
+ const { status, data } = await apiInstance.resendOtpV1UserResendOtpPasswordPost(
349
349
  authorization,
350
350
  sessionId
351
351
  );
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "openapi-generator-cli": "^1.0.0"
5
5
  },
6
6
  "name": "@rasadov/lumoar-sdk",
7
- "version": "1.2.2",
7
+ "version": "1.2.3",
8
8
  "description": "Lumoar API SDK",
9
9
  "main": "dist/index.js",
10
10
  "directories": {