@ketab-ir/core 1.9.1 → 1.10.0

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.
@@ -1,10 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
- import { IKtbAuthenticateInput, IKtbCheckUserExistDto, IKtbCheckUserExistInput, IKtbCheckValidationCodeInput, IKtbInpersonRegisterInput, IKtbLogin, IKtbRegister, IKtbRegisterInput, IKtbSendValidationCodeInput, IKtbUserValidatio, IktbGBitValidationInput } from '../../models';
2
+ import { IKtbAuthenticateInput, IKtbCheckUserExistDto, IKtbCheckUserExistInput, IKtbCheckValidationCodeInput, IKtbInpersonRegisterInput, IKtbLogin, IKtbOtpResponeDto, IKtbRegister, IKtbRegisterInput, IKtbSendValidationCodeInput, IKtbUserValidatio, IktbGBitValidationInput } from '../../models';
3
3
  import { IKtbResetPasswordInput } from '../../models/account/ktb-reset-password-input';
4
4
  export declare abstract class IKtbAccountService {
5
5
  abstract resetPasswordBySms(params: IKtbResetPasswordInput): Observable<void>;
6
6
  abstract sendValidationCode(params: IKtbSendValidationCodeInput): Observable<void>;
7
- abstract checkValidationCode(params: IKtbCheckValidationCodeInput): Observable<boolean>;
8
7
  abstract checkUserExist(params: IKtbCheckUserExistInput): Observable<IKtbCheckUserExistDto>;
9
8
  abstract validateUserInfo(params: IktbGBitValidationInput): Observable<IKtbUserValidatio>;
10
9
  abstract Register(params: IKtbRegisterInput): Observable<IKtbRegister>;
@@ -12,4 +11,6 @@ export declare abstract class IKtbAccountService {
12
11
  abstract login(params: IKtbAuthenticateInput): Observable<IKtbLogin>;
13
12
  abstract getLoginUrl(callbackUrl?: string): Observable<string>;
14
13
  abstract complete(token: string): Observable<IKtbLogin>;
14
+ abstract checkValidationCode(params: IKtbCheckValidationCodeInput): Observable<boolean>;
15
+ abstract checkValidationCodeV2(params: IKtbCheckValidationCodeInput): Observable<IKtbOtpResponeDto>;
15
16
  }
@@ -9,3 +9,4 @@ export * from './ktb-register-input';
9
9
  export * from './ktb-change-password-input';
10
10
  export * from './ktb-inperson-register-input';
11
11
  export * from './ktb-check-user-exist-input';
12
+ export * from './ktb-otp-response';
@@ -0,0 +1,5 @@
1
+ export interface IKtbOtpResponeDto {
2
+ error?: string | null;
3
+ isSuccess?: boolean;
4
+ userExist?: boolean;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ketab-ir/core",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=16.0.0",