@opexa/portal-sdk 0.0.73 → 0.0.74

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/dist/sdk/sdk.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AccountReturn, ActivityRecordsInput, ActivityRecordsReturn, AnnouncementsInput, AnnouncementsReturn, AuthenticateInput, AuthenticateReturn, AvailablePromosReturn, BetRecordsInput, BetRecordsReturn, BonusReturn, CashbackBonusReturn, CashbacksReturn, ClaimCashbackBonusReturn, CreateAccountInput, CreateAccountInput__Next, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, EndGameSessionReturn, EndGameSessionReturn__Legacy, FileReturn, GameReturn__Next, GameSessionReturn, GamesByNameInput, GamesByNameReturn, GamesInput, GamesReturn, GamesReturn__Next, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsToCashConversionReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, ReferralCodeReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendAuthenticationCodeReturn, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateReferralCodeInput, UpdateReferralCodeReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, ValidateMayaSessionReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
1
+ import { AccountReturn, ActivityRecordsInput, ActivityRecordsReturn, AnnouncementsInput, AnnouncementsReturn, AuthenticateInput, AuthenticateReturn, AvailablePromosReturn, BetRecordsInput, BetRecordsReturn, BonusReturn, CashbackBonusReturn, CashbacksReturn, ClaimCashbackBonusReturn, CreateAccountInput, CreateAccountInput__Next, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, EndGameSessionReturn, EndGameSessionReturn__Legacy, FileReturn, GameReturn__Next, GameSessionReturn, GamesByNameInput, GamesByNameReturn, GamesInput, GamesReturn, GamesReturn__Next, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsToCashConversionReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, ReferralCodeReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateReferralCodeInput, UpdateReferralCodeReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, ValidateMayaSessionReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
2
2
 
3
3
  export interface SdkConfig {
4
4
  site: string;
@@ -24,10 +24,6 @@ export declare class Sdk {
24
24
  signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
25
25
  signIn(input: MobileNumberSignInInput): Promise<MobileNumberSignInReturn>;
26
26
  signIn(input: MayaSignInInput): Promise<MayaSignInReturn>;
27
- /**
28
- * @deprecated use `sendVerificationCode__next`
29
- */
30
- sendAuthenticationCode(mobileNumber: string): Promise<SendAuthenticationCodeReturn>;
31
27
  authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
32
28
  signOut(): Promise<void>;
33
29
  watchSession(input: WatchSessionInput): () => void;
@@ -28,7 +28,7 @@ export interface NameAndPasswordSignInInput {
28
28
  export interface MobileNumberSignInInput {
29
29
  type: 'MOBILE_NUMBER';
30
30
  mobileNumber: string;
31
- authenticationCode: string;
31
+ verificationCode: string;
32
32
  }
33
33
  export interface MayaSignInInput {
34
34
  type: 'MAYA';
@@ -52,7 +52,6 @@ export interface SecurityQuestionAuthenticateInput extends Internal.SecurityQues
52
52
  export type AuthenticateInput = SecurityQuestionAuthenticateInput;
53
53
  export type AuthenticateError = UnionAlias<Internal.AuthenticateError>;
54
54
  export type AuthenticateReturn = OperationResult<AuthenticateError>;
55
- export type SendAuthenticationCodeReturn = OperationResult;
56
55
  export interface Session {
57
56
  id: string;
58
57
  dateTimeCreated: Date;
@@ -15,9 +15,5 @@ export declare class AuthService {
15
15
  refreshSession(refreshToken: string): Promise<OperationResult<RefreshSessionError, RefreshSessionMutation>>;
16
16
  destroySession(accessToken: string): Promise<OperationResult>;
17
17
  verifySession(accessToken: string): Promise<boolean>;
18
- /**
19
- * @deprecated use `sendOtp`
20
- */
21
18
  sendVerificationCode(mobileNumber: string): Promise<OperationResult>;
22
- sendVerificationCode__next(mobileNumber: string): Promise<OperationResult>;
23
19
  }
@@ -889,19 +889,19 @@ export type CreateSessionInput = {
889
889
  name: string;
890
890
  password: string;
891
891
  mobileNumber?: never;
892
- authenticationCode?: never;
892
+ verificationCode?: never;
893
893
  sessionId?: never;
894
894
  } | {
895
895
  name?: never;
896
896
  password?: never;
897
897
  mobileNumber: string;
898
- authenticationCode: string;
898
+ verificationCode: string;
899
899
  sessionId?: never;
900
900
  } | {
901
901
  name?: never;
902
902
  password?: never;
903
903
  mobileNumber?: never;
904
- authenticationCode?: never;
904
+ verificationCode?: never;
905
905
  sessionId: string;
906
906
  };
907
907
  export type Authenticator = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.73",
4
+ "version": "0.0.74",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",