@opexa/portal-sdk 0.0.75 → 0.0.77
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 +94 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +172 -115
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +5 -1
- package/dist/sdk/transformer.d.ts +4 -4
- package/dist/sdk/types.d.ts +5 -2
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/report.service.d.ts +2 -1
- package/dist/services/types.d.ts +13 -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, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, 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';
|
|
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, ReferralCommissionsInput, ReferralCommissionsReturn, 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;
|
|
@@ -32,6 +32,9 @@ export declare class Sdk {
|
|
|
32
32
|
site(): Promise<SiteReturn>;
|
|
33
33
|
platform(): Promise<PlatformReturn>;
|
|
34
34
|
account(): Promise<AccountReturn>;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use `createAccount__next`
|
|
37
|
+
*/
|
|
35
38
|
createAccount(input: CreateAccountInput): Promise<CreateAccountReturn>;
|
|
36
39
|
createAccount__next(input: CreateAccountInput__Next): Promise<CreateAccountReturn>;
|
|
37
40
|
registerMayaAccount(input: RegisterMayaAccountInput): Promise<RegisterMayaAccountReturn>;
|
|
@@ -80,5 +83,6 @@ export declare class Sdk {
|
|
|
80
83
|
referralCode(): Promise<ReferralCodeReturn>;
|
|
81
84
|
updateReferralCode(input: UpdateReferralCodeInput): Promise<UpdateReferralCodeReturn>;
|
|
82
85
|
referrals(input?: ReferralsInput): Promise<ReferralsReturn>;
|
|
86
|
+
referralCommissions(input?: ReferralCommissionsInput): Promise<ReferralCommissionsReturn>;
|
|
83
87
|
}
|
|
84
88
|
export default Sdk;
|
|
@@ -30,8 +30,8 @@ export declare class Transformer {
|
|
|
30
30
|
pointsWallet: (data: Internal.PointsWallet) => External.PointsWallet;
|
|
31
31
|
pointsWalletTransaction: (data: Internal.PointsWalletTransaction) => External.PointsWalletTransaction;
|
|
32
32
|
activityRecord: (data: Internal.ActivityRecord) => External.ActivityRecord;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
referral: (data: Internal.Referral) => External.Referral;
|
|
34
|
+
referralCommission: (data: Internal.ReferralCommission) => External.ReferralCommission;
|
|
35
35
|
};
|
|
36
36
|
private site;
|
|
37
37
|
private platform;
|
|
@@ -56,7 +56,7 @@ export declare class Transformer {
|
|
|
56
56
|
private pointsWallet;
|
|
57
57
|
private pointsWalletTransaction;
|
|
58
58
|
private activityRecord;
|
|
59
|
-
private
|
|
60
|
-
private
|
|
59
|
+
private referral;
|
|
60
|
+
private referralCommission;
|
|
61
61
|
}
|
|
62
62
|
export {};
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -714,12 +714,12 @@ export type ReferralCodeReturn = OperationResult<never, string | null>;
|
|
|
714
714
|
export interface Referral {
|
|
715
715
|
id: string;
|
|
716
716
|
upline: {
|
|
717
|
-
id:
|
|
717
|
+
id: string;
|
|
718
718
|
name: string;
|
|
719
719
|
realName: string;
|
|
720
720
|
};
|
|
721
721
|
downline: {
|
|
722
|
-
id:
|
|
722
|
+
id: string;
|
|
723
723
|
name: string;
|
|
724
724
|
realName: string;
|
|
725
725
|
};
|
|
@@ -745,4 +745,7 @@ export interface ReferralCommission {
|
|
|
745
745
|
dateTimeCreated: Date;
|
|
746
746
|
dateTimeLastUpdated: Date;
|
|
747
747
|
}
|
|
748
|
+
export interface ReferralCommissionsInput extends Internal.ReferralCommissionsQueryVariables {
|
|
749
|
+
}
|
|
750
|
+
export type ReferralCommissionsReturn = OperationResult<never, PaginatedQueryResult<'referralCommissions', ReferralCommission>>;
|
|
748
751
|
export {};
|
|
@@ -63,3 +63,4 @@ export declare const ACTIVITY_RECORDS_QUERY: string;
|
|
|
63
63
|
export declare const REFERRAL_CODE_QUERY: string;
|
|
64
64
|
export declare const UPDATE_REFERRAL_CODE_MUTATION: string;
|
|
65
65
|
export declare const REFERRALS_QUERY: string;
|
|
66
|
+
export declare const REFERRAL_COMMISSIONS_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, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
|
|
3
|
+
import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, Referral, ReferralCommission, ReferralCommissionsQueryVariables, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
|
|
4
4
|
|
|
5
5
|
export declare class ReportService {
|
|
6
6
|
private client;
|
|
@@ -13,4 +13,5 @@ export declare class ReportService {
|
|
|
13
13
|
pointsWalletTransactions(variables?: PointsWalletTransactionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<PointsWalletTransaction>>>;
|
|
14
14
|
activityRecords(variables?: ActivityRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<ActivityRecord>>>;
|
|
15
15
|
referrals(variables?: ReferralsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Referral>>>;
|
|
16
|
+
referralCommissions(variables?: ReferralCommissionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<ReferralCommission>>>;
|
|
16
17
|
}
|
package/dist/services/types.d.ts
CHANGED
|
@@ -1037,12 +1037,12 @@ export interface UpdateReferralCodeMutation {
|
|
|
1037
1037
|
export interface Referral {
|
|
1038
1038
|
id: string;
|
|
1039
1039
|
upline: {
|
|
1040
|
-
id:
|
|
1040
|
+
id: string;
|
|
1041
1041
|
name: string;
|
|
1042
1042
|
realName: string;
|
|
1043
1043
|
};
|
|
1044
1044
|
downline: {
|
|
1045
|
-
id:
|
|
1045
|
+
id: string;
|
|
1046
1046
|
name: string;
|
|
1047
1047
|
realName: string;
|
|
1048
1048
|
};
|
|
@@ -1077,3 +1077,14 @@ export interface ReferralCommission {
|
|
|
1077
1077
|
dateTimeCreated: DateString;
|
|
1078
1078
|
dateTimeLastUpdated: DateString;
|
|
1079
1079
|
}
|
|
1080
|
+
export interface ReferralCommissionsQuery {
|
|
1081
|
+
member: PaginatedQuery<'referralCommissions', ReferralCommission>;
|
|
1082
|
+
}
|
|
1083
|
+
export interface ReferralCommissionsQueryVariables {
|
|
1084
|
+
first?: number;
|
|
1085
|
+
after?: string;
|
|
1086
|
+
filter?: {
|
|
1087
|
+
id?: ObjectIdFilterField;
|
|
1088
|
+
dateTimeCreated?: DateFilterField;
|
|
1089
|
+
};
|
|
1090
|
+
}
|