@opexa/portal-sdk 0.0.79 → 0.0.80
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 +25 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +201 -179
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -1
- package/dist/sdk/types.d.ts +3 -0
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/report.service.d.ts +2 -1
- package/dist/services/types.d.ts +7 -0
- 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, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsToCashConversionReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, 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';
|
|
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, PointsToCashConversionReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, 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;
|
|
@@ -85,5 +85,6 @@ export declare class Sdk {
|
|
|
85
85
|
referrals(input?: ReferralsInput): Promise<ReferralsReturn>;
|
|
86
86
|
referralCommission(): Promise<ReferralCommissionReturn>;
|
|
87
87
|
uplinesByName(input: UplinesByNameInput): Promise<UplinesByNameReturn>;
|
|
88
|
+
downlinesByName(input: DownlinesByNameInput): Promise<DownlinesByNameReturn>;
|
|
88
89
|
}
|
|
89
90
|
export default Sdk;
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -733,7 +733,10 @@ export interface ReferralsInput extends Internal.ReferralsQueryVariables {
|
|
|
733
733
|
export type ReferralsReturn = OperationResult<never, PaginatedQueryResult<'referrals', Referral>>;
|
|
734
734
|
export interface UplinesByNameInput extends Internal.UplinesByNameQueryVariables {
|
|
735
735
|
}
|
|
736
|
+
export interface DownlinesByNameInput extends Internal.DownlinesByNameQueryVariables {
|
|
737
|
+
}
|
|
736
738
|
export type UplinesByNameReturn = OperationResult<never, Referral[]>;
|
|
739
|
+
export type DownlinesByNameReturn = OperationResult<never, Referral[]>;
|
|
737
740
|
export interface ReferralCommission {
|
|
738
741
|
id: string;
|
|
739
742
|
commission: number;
|
|
@@ -65,4 +65,5 @@ export declare const UPDATE_REFERRAL_CODE_MUTATION: string;
|
|
|
65
65
|
export declare const REFERRAL_FRAGMENT: string;
|
|
66
66
|
export declare const REFERRALS_QUERY: string;
|
|
67
67
|
export declare const UPLINES_BY_NAME_QUERY: string;
|
|
68
|
+
export declare const DOWNLINES_BY_NAME_QUERY: string;
|
|
68
69
|
export declare const REFERRAL_COMMISSION_QUERY: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLClient } from '../utils/graphql-client';
|
|
2
2
|
import { OperationResult } from '../utils/types';
|
|
3
|
-
import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, Referral, ReferralCommission, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, UplinesByNameQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
|
|
3
|
+
import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, DownlinesByNameQueryVariables, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, Referral, ReferralCommission, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, UplinesByNameQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
|
|
4
4
|
|
|
5
5
|
export declare class ReportService {
|
|
6
6
|
private client;
|
|
@@ -15,4 +15,5 @@ export declare class ReportService {
|
|
|
15
15
|
referrals(variables?: ReferralsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Referral>>>;
|
|
16
16
|
referralCommission(): Promise<OperationResult<never, ReferralCommission | null | undefined>>;
|
|
17
17
|
uplinesByName(variables: UplinesByNameQueryVariables): Promise<OperationResult<never, Referral[]>>;
|
|
18
|
+
downlinesByName(variables: DownlinesByNameQueryVariables): Promise<OperationResult<never, Referral[]>>;
|
|
18
19
|
}
|
package/dist/services/types.d.ts
CHANGED
|
@@ -1086,6 +1086,13 @@ export interface UplinesByNameQueryVariables {
|
|
|
1086
1086
|
search: string;
|
|
1087
1087
|
first?: number;
|
|
1088
1088
|
}
|
|
1089
|
+
export interface DownlinesByNameQueryVariables {
|
|
1090
|
+
search: string;
|
|
1091
|
+
first?: number;
|
|
1092
|
+
}
|
|
1089
1093
|
export interface UplinesByNameQuery {
|
|
1090
1094
|
uplinesByName: Referral[];
|
|
1091
1095
|
}
|
|
1096
|
+
export interface DownlinesByNameQuery {
|
|
1097
|
+
downlinesByName: Referral[];
|
|
1098
|
+
}
|