@rasadov/lumoar-sdk 1.1.6 → 1.1.7
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/.openapi-generator/FILES +5 -0
- package/api.ts +494 -20
- package/dist/api.d.ts +304 -20
- package/dist/api.js +355 -20
- package/docs/ForgotPasswordSchema.md +23 -0
- package/docs/ResendOTPSchema.md +25 -0
- package/docs/ResetPasswordSchema.md +27 -0
- package/docs/SendOTPSchema.md +23 -0
- package/docs/UserApi.md +265 -5
- package/docs/VerifyEmailSchema.md +25 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4588,7 +4588,7 @@ export const ListTasksForUserV1TasksUserGetOrderEnum = {
|
|
|
4588
4588
|
export const UserApiAxiosParamCreator = function (configuration) {
|
|
4589
4589
|
return {
|
|
4590
4590
|
/**
|
|
4591
|
-
*
|
|
4591
|
+
*
|
|
4592
4592
|
* @summary Change Password
|
|
4593
4593
|
* @param {UpdatePassword} updatePassword
|
|
4594
4594
|
* @param {string | null} [sessionId]
|
|
@@ -4619,7 +4619,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4619
4619
|
};
|
|
4620
4620
|
}),
|
|
4621
4621
|
/**
|
|
4622
|
-
*
|
|
4622
|
+
*
|
|
4623
4623
|
* @summary Delete User
|
|
4624
4624
|
* @param {string | null} [sessionId]
|
|
4625
4625
|
* @param {*} [options] Override http request option.
|
|
@@ -4645,7 +4645,37 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4645
4645
|
};
|
|
4646
4646
|
}),
|
|
4647
4647
|
/**
|
|
4648
|
-
*
|
|
4648
|
+
*
|
|
4649
|
+
* @summary Forgot Password
|
|
4650
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
4651
|
+
* @param {*} [options] Override http request option.
|
|
4652
|
+
* @throws {RequiredError}
|
|
4653
|
+
*/
|
|
4654
|
+
forgotPasswordV1UserForgotPasswordPost: (forgotPasswordSchema_1, ...args_1) => __awaiter(this, [forgotPasswordSchema_1, ...args_1], void 0, function* (forgotPasswordSchema, options = {}) {
|
|
4655
|
+
// verify required parameter 'forgotPasswordSchema' is not null or undefined
|
|
4656
|
+
assertParamExists('forgotPasswordV1UserForgotPasswordPost', 'forgotPasswordSchema', forgotPasswordSchema);
|
|
4657
|
+
const localVarPath = `/v1/user/forgot-password`;
|
|
4658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4660
|
+
let baseOptions;
|
|
4661
|
+
if (configuration) {
|
|
4662
|
+
baseOptions = configuration.baseOptions;
|
|
4663
|
+
}
|
|
4664
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4665
|
+
const localVarHeaderParameter = {};
|
|
4666
|
+
const localVarQueryParameter = {};
|
|
4667
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4668
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4670
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4671
|
+
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordSchema, localVarRequestOptions, configuration);
|
|
4672
|
+
return {
|
|
4673
|
+
url: toPathString(localVarUrlObj),
|
|
4674
|
+
options: localVarRequestOptions,
|
|
4675
|
+
};
|
|
4676
|
+
}),
|
|
4677
|
+
/**
|
|
4678
|
+
*
|
|
4649
4679
|
* @summary Get User Dash
|
|
4650
4680
|
* @param {string | null} [sessionId]
|
|
4651
4681
|
* @param {*} [options] Override http request option.
|
|
@@ -4671,7 +4701,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4671
4701
|
};
|
|
4672
4702
|
}),
|
|
4673
4703
|
/**
|
|
4674
|
-
*
|
|
4704
|
+
*
|
|
4675
4705
|
* @summary Get User
|
|
4676
4706
|
* @param {string | null} [sessionId]
|
|
4677
4707
|
* @param {*} [options] Override http request option.
|
|
@@ -4697,7 +4727,97 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4697
4727
|
};
|
|
4698
4728
|
}),
|
|
4699
4729
|
/**
|
|
4700
|
-
*
|
|
4730
|
+
*
|
|
4731
|
+
* @summary Resend Otp
|
|
4732
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
*/
|
|
4736
|
+
resendOtpV1UserResendOtpPost: (resendOTPSchema_1, ...args_1) => __awaiter(this, [resendOTPSchema_1, ...args_1], void 0, function* (resendOTPSchema, options = {}) {
|
|
4737
|
+
// verify required parameter 'resendOTPSchema' is not null or undefined
|
|
4738
|
+
assertParamExists('resendOtpV1UserResendOtpPost', 'resendOTPSchema', resendOTPSchema);
|
|
4739
|
+
const localVarPath = `/v1/user/resend-otp`;
|
|
4740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4741
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4742
|
+
let baseOptions;
|
|
4743
|
+
if (configuration) {
|
|
4744
|
+
baseOptions = configuration.baseOptions;
|
|
4745
|
+
}
|
|
4746
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4747
|
+
const localVarHeaderParameter = {};
|
|
4748
|
+
const localVarQueryParameter = {};
|
|
4749
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4752
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resendOTPSchema, localVarRequestOptions, configuration);
|
|
4754
|
+
return {
|
|
4755
|
+
url: toPathString(localVarUrlObj),
|
|
4756
|
+
options: localVarRequestOptions,
|
|
4757
|
+
};
|
|
4758
|
+
}),
|
|
4759
|
+
/**
|
|
4760
|
+
*
|
|
4761
|
+
* @summary Reset Password
|
|
4762
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
4763
|
+
* @param {*} [options] Override http request option.
|
|
4764
|
+
* @throws {RequiredError}
|
|
4765
|
+
*/
|
|
4766
|
+
resetPasswordV1UserResetPasswordPost: (resetPasswordSchema_1, ...args_1) => __awaiter(this, [resetPasswordSchema_1, ...args_1], void 0, function* (resetPasswordSchema, options = {}) {
|
|
4767
|
+
// verify required parameter 'resetPasswordSchema' is not null or undefined
|
|
4768
|
+
assertParamExists('resetPasswordV1UserResetPasswordPost', 'resetPasswordSchema', resetPasswordSchema);
|
|
4769
|
+
const localVarPath = `/v1/user/reset-password`;
|
|
4770
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4771
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4772
|
+
let baseOptions;
|
|
4773
|
+
if (configuration) {
|
|
4774
|
+
baseOptions = configuration.baseOptions;
|
|
4775
|
+
}
|
|
4776
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4777
|
+
const localVarHeaderParameter = {};
|
|
4778
|
+
const localVarQueryParameter = {};
|
|
4779
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4782
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4783
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordSchema, localVarRequestOptions, configuration);
|
|
4784
|
+
return {
|
|
4785
|
+
url: toPathString(localVarUrlObj),
|
|
4786
|
+
options: localVarRequestOptions,
|
|
4787
|
+
};
|
|
4788
|
+
}),
|
|
4789
|
+
/**
|
|
4790
|
+
*
|
|
4791
|
+
* @summary Send Verification Email
|
|
4792
|
+
* @param {SendOTPSchema} sendOTPSchema
|
|
4793
|
+
* @param {*} [options] Override http request option.
|
|
4794
|
+
* @throws {RequiredError}
|
|
4795
|
+
*/
|
|
4796
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: (sendOTPSchema_1, ...args_1) => __awaiter(this, [sendOTPSchema_1, ...args_1], void 0, function* (sendOTPSchema, options = {}) {
|
|
4797
|
+
// verify required parameter 'sendOTPSchema' is not null or undefined
|
|
4798
|
+
assertParamExists('sendVerificationEmailV1UserSendVerificationEmailPost', 'sendOTPSchema', sendOTPSchema);
|
|
4799
|
+
const localVarPath = `/v1/user/send-verification-email`;
|
|
4800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4801
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4802
|
+
let baseOptions;
|
|
4803
|
+
if (configuration) {
|
|
4804
|
+
baseOptions = configuration.baseOptions;
|
|
4805
|
+
}
|
|
4806
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4807
|
+
const localVarHeaderParameter = {};
|
|
4808
|
+
const localVarQueryParameter = {};
|
|
4809
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4812
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4813
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sendOTPSchema, localVarRequestOptions, configuration);
|
|
4814
|
+
return {
|
|
4815
|
+
url: toPathString(localVarUrlObj),
|
|
4816
|
+
options: localVarRequestOptions,
|
|
4817
|
+
};
|
|
4818
|
+
}),
|
|
4819
|
+
/**
|
|
4820
|
+
*
|
|
4701
4821
|
* @summary Update User
|
|
4702
4822
|
* @param {UserUpdate} userUpdate
|
|
4703
4823
|
* @param {string | null} [sessionId]
|
|
@@ -4727,6 +4847,36 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4727
4847
|
options: localVarRequestOptions,
|
|
4728
4848
|
};
|
|
4729
4849
|
}),
|
|
4850
|
+
/**
|
|
4851
|
+
*
|
|
4852
|
+
* @summary Verify Email
|
|
4853
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4854
|
+
* @param {*} [options] Override http request option.
|
|
4855
|
+
* @throws {RequiredError}
|
|
4856
|
+
*/
|
|
4857
|
+
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema_1, ...args_1) => __awaiter(this, [verifyEmailSchema_1, ...args_1], void 0, function* (verifyEmailSchema, options = {}) {
|
|
4858
|
+
// verify required parameter 'verifyEmailSchema' is not null or undefined
|
|
4859
|
+
assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema);
|
|
4860
|
+
const localVarPath = `/v1/user/verify-email`;
|
|
4861
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4862
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4863
|
+
let baseOptions;
|
|
4864
|
+
if (configuration) {
|
|
4865
|
+
baseOptions = configuration.baseOptions;
|
|
4866
|
+
}
|
|
4867
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4868
|
+
const localVarHeaderParameter = {};
|
|
4869
|
+
const localVarQueryParameter = {};
|
|
4870
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4871
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4873
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4874
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailSchema, localVarRequestOptions, configuration);
|
|
4875
|
+
return {
|
|
4876
|
+
url: toPathString(localVarUrlObj),
|
|
4877
|
+
options: localVarRequestOptions,
|
|
4878
|
+
};
|
|
4879
|
+
}),
|
|
4730
4880
|
};
|
|
4731
4881
|
};
|
|
4732
4882
|
/**
|
|
@@ -4737,7 +4887,7 @@ export const UserApiFp = function (configuration) {
|
|
|
4737
4887
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
4738
4888
|
return {
|
|
4739
4889
|
/**
|
|
4740
|
-
*
|
|
4890
|
+
*
|
|
4741
4891
|
* @summary Change Password
|
|
4742
4892
|
* @param {UpdatePassword} updatePassword
|
|
4743
4893
|
* @param {string | null} [sessionId]
|
|
@@ -4754,7 +4904,7 @@ export const UserApiFp = function (configuration) {
|
|
|
4754
4904
|
});
|
|
4755
4905
|
},
|
|
4756
4906
|
/**
|
|
4757
|
-
*
|
|
4907
|
+
*
|
|
4758
4908
|
* @summary Delete User
|
|
4759
4909
|
* @param {string | null} [sessionId]
|
|
4760
4910
|
* @param {*} [options] Override http request option.
|
|
@@ -4770,7 +4920,23 @@ export const UserApiFp = function (configuration) {
|
|
|
4770
4920
|
});
|
|
4771
4921
|
},
|
|
4772
4922
|
/**
|
|
4773
|
-
*
|
|
4923
|
+
*
|
|
4924
|
+
* @summary Forgot Password
|
|
4925
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
4926
|
+
* @param {*} [options] Override http request option.
|
|
4927
|
+
* @throws {RequiredError}
|
|
4928
|
+
*/
|
|
4929
|
+
forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options) {
|
|
4930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4931
|
+
var _a, _b, _c;
|
|
4932
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options);
|
|
4933
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4934
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.forgotPasswordV1UserForgotPasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4935
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4936
|
+
});
|
|
4937
|
+
},
|
|
4938
|
+
/**
|
|
4939
|
+
*
|
|
4774
4940
|
* @summary Get User Dash
|
|
4775
4941
|
* @param {string | null} [sessionId]
|
|
4776
4942
|
* @param {*} [options] Override http request option.
|
|
@@ -4786,7 +4952,7 @@ export const UserApiFp = function (configuration) {
|
|
|
4786
4952
|
});
|
|
4787
4953
|
},
|
|
4788
4954
|
/**
|
|
4789
|
-
*
|
|
4955
|
+
*
|
|
4790
4956
|
* @summary Get User
|
|
4791
4957
|
* @param {string | null} [sessionId]
|
|
4792
4958
|
* @param {*} [options] Override http request option.
|
|
@@ -4802,7 +4968,55 @@ export const UserApiFp = function (configuration) {
|
|
|
4802
4968
|
});
|
|
4803
4969
|
},
|
|
4804
4970
|
/**
|
|
4805
|
-
*
|
|
4971
|
+
*
|
|
4972
|
+
* @summary Resend Otp
|
|
4973
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
4974
|
+
* @param {*} [options] Override http request option.
|
|
4975
|
+
* @throws {RequiredError}
|
|
4976
|
+
*/
|
|
4977
|
+
resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
|
|
4978
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4979
|
+
var _a, _b, _c;
|
|
4980
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(resendOTPSchema, options);
|
|
4981
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4982
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4983
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4984
|
+
});
|
|
4985
|
+
},
|
|
4986
|
+
/**
|
|
4987
|
+
*
|
|
4988
|
+
* @summary Reset Password
|
|
4989
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
4990
|
+
* @param {*} [options] Override http request option.
|
|
4991
|
+
* @throws {RequiredError}
|
|
4992
|
+
*/
|
|
4993
|
+
resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options) {
|
|
4994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4995
|
+
var _a, _b, _c;
|
|
4996
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options);
|
|
4997
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4998
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resetPasswordV1UserResetPasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4999
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5000
|
+
});
|
|
5001
|
+
},
|
|
5002
|
+
/**
|
|
5003
|
+
*
|
|
5004
|
+
* @summary Send Verification Email
|
|
5005
|
+
* @param {SendOTPSchema} sendOTPSchema
|
|
5006
|
+
* @param {*} [options] Override http request option.
|
|
5007
|
+
* @throws {RequiredError}
|
|
5008
|
+
*/
|
|
5009
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options) {
|
|
5010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5011
|
+
var _a, _b, _c;
|
|
5012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options);
|
|
5013
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5014
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5015
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5016
|
+
});
|
|
5017
|
+
},
|
|
5018
|
+
/**
|
|
5019
|
+
*
|
|
4806
5020
|
* @summary Update User
|
|
4807
5021
|
* @param {UserUpdate} userUpdate
|
|
4808
5022
|
* @param {string | null} [sessionId]
|
|
@@ -4818,6 +5032,22 @@ export const UserApiFp = function (configuration) {
|
|
|
4818
5032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4819
5033
|
});
|
|
4820
5034
|
},
|
|
5035
|
+
/**
|
|
5036
|
+
*
|
|
5037
|
+
* @summary Verify Email
|
|
5038
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5039
|
+
* @param {*} [options] Override http request option.
|
|
5040
|
+
* @throws {RequiredError}
|
|
5041
|
+
*/
|
|
5042
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5043
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5044
|
+
var _a, _b, _c;
|
|
5045
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options);
|
|
5046
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5047
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5048
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5049
|
+
});
|
|
5050
|
+
},
|
|
4821
5051
|
};
|
|
4822
5052
|
};
|
|
4823
5053
|
/**
|
|
@@ -4828,7 +5058,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4828
5058
|
const localVarFp = UserApiFp(configuration);
|
|
4829
5059
|
return {
|
|
4830
5060
|
/**
|
|
4831
|
-
*
|
|
5061
|
+
*
|
|
4832
5062
|
* @summary Change Password
|
|
4833
5063
|
* @param {UpdatePassword} updatePassword
|
|
4834
5064
|
* @param {string | null} [sessionId]
|
|
@@ -4839,7 +5069,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4839
5069
|
return localVarFp.changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(axios, basePath));
|
|
4840
5070
|
},
|
|
4841
5071
|
/**
|
|
4842
|
-
*
|
|
5072
|
+
*
|
|
4843
5073
|
* @summary Delete User
|
|
4844
5074
|
* @param {string | null} [sessionId]
|
|
4845
5075
|
* @param {*} [options] Override http request option.
|
|
@@ -4849,7 +5079,17 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4849
5079
|
return localVarFp.deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(axios, basePath));
|
|
4850
5080
|
},
|
|
4851
5081
|
/**
|
|
4852
|
-
*
|
|
5082
|
+
*
|
|
5083
|
+
* @summary Forgot Password
|
|
5084
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
5085
|
+
* @param {*} [options] Override http request option.
|
|
5086
|
+
* @throws {RequiredError}
|
|
5087
|
+
*/
|
|
5088
|
+
forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options) {
|
|
5089
|
+
return localVarFp.forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options).then((request) => request(axios, basePath));
|
|
5090
|
+
},
|
|
5091
|
+
/**
|
|
5092
|
+
*
|
|
4853
5093
|
* @summary Get User Dash
|
|
4854
5094
|
* @param {string | null} [sessionId]
|
|
4855
5095
|
* @param {*} [options] Override http request option.
|
|
@@ -4859,7 +5099,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4859
5099
|
return localVarFp.getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(axios, basePath));
|
|
4860
5100
|
},
|
|
4861
5101
|
/**
|
|
4862
|
-
*
|
|
5102
|
+
*
|
|
4863
5103
|
* @summary Get User
|
|
4864
5104
|
* @param {string | null} [sessionId]
|
|
4865
5105
|
* @param {*} [options] Override http request option.
|
|
@@ -4869,7 +5109,37 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4869
5109
|
return localVarFp.getUserV1UserMeGet(sessionId, options).then((request) => request(axios, basePath));
|
|
4870
5110
|
},
|
|
4871
5111
|
/**
|
|
4872
|
-
*
|
|
5112
|
+
*
|
|
5113
|
+
* @summary Resend Otp
|
|
5114
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
5115
|
+
* @param {*} [options] Override http request option.
|
|
5116
|
+
* @throws {RequiredError}
|
|
5117
|
+
*/
|
|
5118
|
+
resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
|
|
5119
|
+
return localVarFp.resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(axios, basePath));
|
|
5120
|
+
},
|
|
5121
|
+
/**
|
|
5122
|
+
*
|
|
5123
|
+
* @summary Reset Password
|
|
5124
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
5125
|
+
* @param {*} [options] Override http request option.
|
|
5126
|
+
* @throws {RequiredError}
|
|
5127
|
+
*/
|
|
5128
|
+
resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options) {
|
|
5129
|
+
return localVarFp.resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options).then((request) => request(axios, basePath));
|
|
5130
|
+
},
|
|
5131
|
+
/**
|
|
5132
|
+
*
|
|
5133
|
+
* @summary Send Verification Email
|
|
5134
|
+
* @param {SendOTPSchema} sendOTPSchema
|
|
5135
|
+
* @param {*} [options] Override http request option.
|
|
5136
|
+
* @throws {RequiredError}
|
|
5137
|
+
*/
|
|
5138
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options) {
|
|
5139
|
+
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options).then((request) => request(axios, basePath));
|
|
5140
|
+
},
|
|
5141
|
+
/**
|
|
5142
|
+
*
|
|
4873
5143
|
* @summary Update User
|
|
4874
5144
|
* @param {UserUpdate} userUpdate
|
|
4875
5145
|
* @param {string | null} [sessionId]
|
|
@@ -4879,6 +5149,16 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4879
5149
|
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
4880
5150
|
return localVarFp.updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(axios, basePath));
|
|
4881
5151
|
},
|
|
5152
|
+
/**
|
|
5153
|
+
*
|
|
5154
|
+
* @summary Verify Email
|
|
5155
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5156
|
+
* @param {*} [options] Override http request option.
|
|
5157
|
+
* @throws {RequiredError}
|
|
5158
|
+
*/
|
|
5159
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5160
|
+
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(axios, basePath));
|
|
5161
|
+
},
|
|
4882
5162
|
};
|
|
4883
5163
|
};
|
|
4884
5164
|
/**
|
|
@@ -4889,7 +5169,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4889
5169
|
*/
|
|
4890
5170
|
export class UserApi extends BaseAPI {
|
|
4891
5171
|
/**
|
|
4892
|
-
*
|
|
5172
|
+
*
|
|
4893
5173
|
* @summary Change Password
|
|
4894
5174
|
* @param {UpdatePassword} updatePassword
|
|
4895
5175
|
* @param {string | null} [sessionId]
|
|
@@ -4901,7 +5181,7 @@ export class UserApi extends BaseAPI {
|
|
|
4901
5181
|
return UserApiFp(this.configuration).changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4902
5182
|
}
|
|
4903
5183
|
/**
|
|
4904
|
-
*
|
|
5184
|
+
*
|
|
4905
5185
|
* @summary Delete User
|
|
4906
5186
|
* @param {string | null} [sessionId]
|
|
4907
5187
|
* @param {*} [options] Override http request option.
|
|
@@ -4912,7 +5192,18 @@ export class UserApi extends BaseAPI {
|
|
|
4912
5192
|
return UserApiFp(this.configuration).deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4913
5193
|
}
|
|
4914
5194
|
/**
|
|
4915
|
-
*
|
|
5195
|
+
*
|
|
5196
|
+
* @summary Forgot Password
|
|
5197
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
5198
|
+
* @param {*} [options] Override http request option.
|
|
5199
|
+
* @throws {RequiredError}
|
|
5200
|
+
* @memberof UserApi
|
|
5201
|
+
*/
|
|
5202
|
+
forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options) {
|
|
5203
|
+
return UserApiFp(this.configuration).forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5204
|
+
}
|
|
5205
|
+
/**
|
|
5206
|
+
*
|
|
4916
5207
|
* @summary Get User Dash
|
|
4917
5208
|
* @param {string | null} [sessionId]
|
|
4918
5209
|
* @param {*} [options] Override http request option.
|
|
@@ -4923,7 +5214,7 @@ export class UserApi extends BaseAPI {
|
|
|
4923
5214
|
return UserApiFp(this.configuration).getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4924
5215
|
}
|
|
4925
5216
|
/**
|
|
4926
|
-
*
|
|
5217
|
+
*
|
|
4927
5218
|
* @summary Get User
|
|
4928
5219
|
* @param {string | null} [sessionId]
|
|
4929
5220
|
* @param {*} [options] Override http request option.
|
|
@@ -4934,7 +5225,40 @@ export class UserApi extends BaseAPI {
|
|
|
4934
5225
|
return UserApiFp(this.configuration).getUserV1UserMeGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4935
5226
|
}
|
|
4936
5227
|
/**
|
|
4937
|
-
*
|
|
5228
|
+
*
|
|
5229
|
+
* @summary Resend Otp
|
|
5230
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
5231
|
+
* @param {*} [options] Override http request option.
|
|
5232
|
+
* @throws {RequiredError}
|
|
5233
|
+
* @memberof UserApi
|
|
5234
|
+
*/
|
|
5235
|
+
resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
|
|
5236
|
+
return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5237
|
+
}
|
|
5238
|
+
/**
|
|
5239
|
+
*
|
|
5240
|
+
* @summary Reset Password
|
|
5241
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
5242
|
+
* @param {*} [options] Override http request option.
|
|
5243
|
+
* @throws {RequiredError}
|
|
5244
|
+
* @memberof UserApi
|
|
5245
|
+
*/
|
|
5246
|
+
resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options) {
|
|
5247
|
+
return UserApiFp(this.configuration).resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5248
|
+
}
|
|
5249
|
+
/**
|
|
5250
|
+
*
|
|
5251
|
+
* @summary Send Verification Email
|
|
5252
|
+
* @param {SendOTPSchema} sendOTPSchema
|
|
5253
|
+
* @param {*} [options] Override http request option.
|
|
5254
|
+
* @throws {RequiredError}
|
|
5255
|
+
* @memberof UserApi
|
|
5256
|
+
*/
|
|
5257
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options) {
|
|
5258
|
+
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5259
|
+
}
|
|
5260
|
+
/**
|
|
5261
|
+
*
|
|
4938
5262
|
* @summary Update User
|
|
4939
5263
|
* @param {UserUpdate} userUpdate
|
|
4940
5264
|
* @param {string | null} [sessionId]
|
|
@@ -4945,4 +5269,15 @@ export class UserApi extends BaseAPI {
|
|
|
4945
5269
|
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
4946
5270
|
return UserApiFp(this.configuration).updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4947
5271
|
}
|
|
5272
|
+
/**
|
|
5273
|
+
*
|
|
5274
|
+
* @summary Verify Email
|
|
5275
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5276
|
+
* @param {*} [options] Override http request option.
|
|
5277
|
+
* @throws {RequiredError}
|
|
5278
|
+
* @memberof UserApi
|
|
5279
|
+
*/
|
|
5280
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5281
|
+
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5282
|
+
}
|
|
4948
5283
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ForgotPasswordSchema
|
|
2
|
+
|
|
3
|
+
Schema for forgot password request
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ForgotPasswordSchema } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: ForgotPasswordSchema = {
|
|
18
|
+
email,
|
|
19
|
+
turnstile_token,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ResendOTPSchema
|
|
2
|
+
|
|
3
|
+
Schema for resending OTP
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**otp_type** | **string** | | [default to undefined]
|
|
11
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ResendOTPSchema } from './api';
|
|
17
|
+
|
|
18
|
+
const instance: ResendOTPSchema = {
|
|
19
|
+
email,
|
|
20
|
+
otp_type,
|
|
21
|
+
turnstile_token,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ResetPasswordSchema
|
|
2
|
+
|
|
3
|
+
Schema for password reset
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**otp_code** | **string** | | [default to undefined]
|
|
11
|
+
**new_password** | **string** | | [default to undefined]
|
|
12
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ResetPasswordSchema } from './api';
|
|
18
|
+
|
|
19
|
+
const instance: ResetPasswordSchema = {
|
|
20
|
+
email,
|
|
21
|
+
otp_code,
|
|
22
|
+
new_password,
|
|
23
|
+
turnstile_token,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# SendOTPSchema
|
|
2
|
+
|
|
3
|
+
Schema for sending OTP
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SendOTPSchema } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: SendOTPSchema = {
|
|
18
|
+
email,
|
|
19
|
+
turnstile_token,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|