@opexa/portal-sdk 0.0.80 → 0.0.81
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/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -50
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -2
- package/dist/sdk/types.d.ts +6 -2
- package/dist/services/queries.d.ts +1 -1
- package/dist/services/types.d.ts +5 -5
- package/dist/services/utils.d.ts +2 -2
- package/dist/services/wallet.service.d.ts +2 -2
- package/package.json +1 -1
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, DownlinesByNameInput, DownlinesByNameReturn, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn,
|
|
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, DownlinesByNameInput, DownlinesByNameReturn, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, RedeemPointsInput, RedeemPointsReturn, ReferralCodeReturn, ReferralCommissionReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateReferralCodeInput, UpdateReferralCodeReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UplinesByNameInput, UplinesByNameReturn, UploadImageFileInput, UploadImageFileReturn, ValidateMayaSessionReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
|
|
2
2
|
|
|
3
3
|
export interface SdkConfig {
|
|
4
4
|
site: string;
|
|
@@ -77,7 +77,7 @@ export declare class Sdk {
|
|
|
77
77
|
file(id: string): Promise<FileReturn>;
|
|
78
78
|
uploadImageFile(input: UploadImageFileInput): Promise<UploadImageFileReturn>;
|
|
79
79
|
pointsWallet(): Promise<PointsWalletReturn>;
|
|
80
|
-
|
|
80
|
+
redeemPoints(input: RedeemPointsInput): Promise<RedeemPointsReturn>;
|
|
81
81
|
pointsWalletTransactions(input?: PointsWalletTransactionsInput): Promise<PointsWalletTransactionsReturn>;
|
|
82
82
|
activityRecords(input?: ActivityRecordsInput): Promise<ActivityRecordsReturn>;
|
|
83
83
|
referralCode(): Promise<ReferralCodeReturn>;
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -235,8 +235,12 @@ export interface PointsWallet {
|
|
|
235
235
|
dateTimeCreated: Date;
|
|
236
236
|
}
|
|
237
237
|
export type PointsWalletReturn = OperationResult<never, PointsWallet | null>;
|
|
238
|
-
export
|
|
239
|
-
|
|
238
|
+
export interface RedeemPointsInput {
|
|
239
|
+
type: 'CASH';
|
|
240
|
+
amount: number;
|
|
241
|
+
}
|
|
242
|
+
export type RedeemPointsError = UnionAlias<Internal.RedeemPointsToCashError>;
|
|
243
|
+
export type RedeemPointsReturn = OperationResult<RedeemPointsError>;
|
|
240
244
|
export type PointsWalletTransactionType = UnionAlias<Internal.PointsWalletTransactionType>;
|
|
241
245
|
export interface PointsWalletTransaction {
|
|
242
246
|
id: string;
|
|
@@ -3,7 +3,7 @@ export declare const FILE_QUERY: string;
|
|
|
3
3
|
export declare const UPLOAD_PRIVATE_IMAGE_FILE_MUTATION: string;
|
|
4
4
|
export declare const WALLET_QUERY: string;
|
|
5
5
|
export declare const POINTS_WALLET_QUERY: string;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const REDEEM_POINTS_TO_CASH_MUTATION: string;
|
|
7
7
|
export declare const POINTS_WALLET_TRANSACTIONS_QUERY: string;
|
|
8
8
|
export declare const GAME_SESSION_QUERY: {
|
|
9
9
|
current: string;
|
package/dist/services/types.d.ts
CHANGED
|
@@ -568,15 +568,15 @@ export interface PointsWallet {
|
|
|
568
568
|
export interface PointsWalletQuery {
|
|
569
569
|
pointsWallet?: PointsWallet | null;
|
|
570
570
|
}
|
|
571
|
-
export interface
|
|
571
|
+
export interface RedeemPointsToCashMutationVariables {
|
|
572
572
|
input: {
|
|
573
573
|
amount: Decimal;
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
-
export type
|
|
577
|
-
export interface
|
|
578
|
-
|
|
579
|
-
__typename:
|
|
576
|
+
export type RedeemPointsToCashError = 'InsufficientPointsError';
|
|
577
|
+
export interface RedeemPointsToCashMutation {
|
|
578
|
+
redeemPointsToCash?: null | {
|
|
579
|
+
__typename: RedeemPointsToCashError;
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
582
|
export type PointsWalletTransactionType = 'TURNOVER_COMMISSION' | 'POINTS_TO_CASH_CONVERSION';
|
package/dist/services/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OperationError } from '../utils/types';
|
|
2
|
-
import { AuthenticateError, ClaimCashbackBonusError, CreateDepositError, CreateGameSessionError, CreateMemberVerificationError, CreateSessionError, CreateWithdrawalError, EndGameSessionError,
|
|
2
|
+
import { AuthenticateError, ClaimCashbackBonusError, CreateDepositError, CreateGameSessionError, CreateMemberVerificationError, CreateSessionError, CreateWithdrawalError, EndGameSessionError, RedeemPointsToCashError, RefreshSessionError, RegisterMayaMemberAccountError, RegisterMemberAccountError, ResetPasswordError, SendVerificationCodeError, UpdateMemberAccountError, UpdateMemberVerificationError, UpdateReferralCodeError, UploadPrivateImageFileError, VerifyMobileNumberError } from './types';
|
|
3
3
|
|
|
4
|
-
type E = ClaimCashbackBonusError | CreateDepositError | UploadPrivateImageFileError | CreateGameSessionError | EndGameSessionError | RegisterMemberAccountError | RegisterMayaMemberAccountError | UpdateMemberAccountError | ResetPasswordError | SendVerificationCodeError | VerifyMobileNumberError | CreateMemberVerificationError | UpdateMemberVerificationError |
|
|
4
|
+
type E = ClaimCashbackBonusError | CreateDepositError | UploadPrivateImageFileError | CreateGameSessionError | EndGameSessionError | RegisterMemberAccountError | RegisterMayaMemberAccountError | UpdateMemberAccountError | ResetPasswordError | SendVerificationCodeError | VerifyMobileNumberError | CreateMemberVerificationError | UpdateMemberVerificationError | RedeemPointsToCashError | CreateWithdrawalError | CreateSessionError | RefreshSessionError | AuthenticateError | UpdateReferralCodeError;
|
|
5
5
|
export declare function createOperationError<T extends E>(code: T): OperationError<T>;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLClient } from '../utils/graphql-client';
|
|
2
2
|
import { OperationResult } from '../utils/types';
|
|
3
|
-
import { AvailablePromosQueryVariables, Bonus, Cashback, CashbackBonus, ClaimCashbackBonusError, ClaimCashbackBonusMutationVariables, CreateBankWithdrawalMutationVariables, CreateDepositError, CreateGCashDepositMutationVariables, CreateGCashWithdrawalMutationVariables, CreateGameSessionError, CreateGameSessionMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaDepositMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError, Deposit, DepositQueryVariables, EndGameSessionMutationVariables, GameSession, GameSessionQueryVariables, MayaSession, MayaSessionQueryVariables,
|
|
3
|
+
import { AvailablePromosQueryVariables, Bonus, Cashback, CashbackBonus, ClaimCashbackBonusError, ClaimCashbackBonusMutationVariables, CreateBankWithdrawalMutationVariables, CreateDepositError, CreateGCashDepositMutationVariables, CreateGCashWithdrawalMutationVariables, CreateGameSessionError, CreateGameSessionMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaDepositMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError, Deposit, DepositQueryVariables, EndGameSessionMutationVariables, GameSession, GameSessionQueryVariables, MayaSession, MayaSessionQueryVariables, PointsWallet, Promo, RedeemPointsToCashError, RedeemPointsToCashMutationVariables, Wallet } from './types';
|
|
4
4
|
|
|
5
5
|
export declare class WalletService {
|
|
6
6
|
private client;
|
|
@@ -22,7 +22,7 @@ export declare class WalletService {
|
|
|
22
22
|
createBankWithdrawal(variables: CreateBankWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
|
|
23
23
|
remainingDailyWithdrawalsCount(): Promise<OperationResult<never, number>>;
|
|
24
24
|
pointsWallet(): Promise<OperationResult<never, PointsWallet | null | undefined>>;
|
|
25
|
-
|
|
25
|
+
redeemPointsToCash(variables: RedeemPointsToCashMutationVariables): Promise<OperationResult<RedeemPointsToCashError>>;
|
|
26
26
|
mayaSession(variables: MayaSessionQueryVariables): Promise<OperationResult<never, MayaSession | null | undefined>>;
|
|
27
27
|
gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never, GameSession | null | undefined>>;
|
|
28
28
|
createGameSession(variables: CreateGameSessionMutationVariables): Promise<OperationResult<CreateGameSessionError>>;
|