@opexa/portal-sdk 0.0.28 → 0.0.30
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 +96 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +321 -205
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +3 -1
- package/dist/sdk/transformer.d.ts +4 -0
- package/dist/sdk/types.d.ts +25 -0
- package/dist/services/queries.d.ts +2 -0
- package/dist/services/report.service.d.ts +3 -1
- package/dist/services/types.d.ts +36 -0
- package/package.json +1 -1
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountReturn, AnnouncementsInput, AnnouncementsReturn, AuthenticateInput, AuthenticateReturn, AvailablePromosReturn, BetRecordsInput, BetRecordsReturn, BonusReturn, CashbackBonusReturn, CashbacksReturn, ClaimCashbackBonusReturn, CreateAccountInput, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, EndGameSessionReturn, EndGameSessionReturn__Legacy, FileReturn, GameReturn__Next, GamesByNameInput, GamesByNameReturn, GameSessionReturn, GamesInput, GamesReturn, GamesReturn__Next, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsToCashConversionReturn, PointsWalletReturn, ProfileCompletionReturn, PromosReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, 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, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, EndGameSessionReturn, EndGameSessionReturn__Legacy, FileReturn, GameReturn__Next, GamesByNameInput, GamesByNameReturn, GameSessionReturn, GamesInput, GamesReturn, GamesReturn__Next, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsToCashConversionReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
|
|
2
2
|
|
|
3
3
|
export interface SdkConfig {
|
|
4
4
|
site: string;
|
|
@@ -290,6 +290,8 @@ export declare class Sdk {
|
|
|
290
290
|
uploadImageFile(input: UploadImageFileInput): Promise<UploadImageFileReturn>;
|
|
291
291
|
pointsWallet(): Promise<PointsWalletReturn>;
|
|
292
292
|
pointsToCashConversion(amount: number): Promise<PointsToCashConversionReturn>;
|
|
293
|
+
pointsWalletTransactions(input?: PointsWalletTransactionsInput): Promise<PointsWalletTransactionsReturn>;
|
|
294
|
+
activityRecords(input?: ActivityRecordsInput): Promise<ActivityRecordsReturn>;
|
|
293
295
|
private addAreaCode;
|
|
294
296
|
}
|
|
295
297
|
export default Sdk;
|
|
@@ -30,6 +30,8 @@ export declare class Transformer {
|
|
|
30
30
|
cashbackBonus: (data: Internal.CashbackBonus) => External.CashbackBonus;
|
|
31
31
|
file: (data: Internal.File) => External.File;
|
|
32
32
|
pointsWallet: (data: Internal.PointsWallet) => External.PointsWallet;
|
|
33
|
+
pointsWalletTransaction: (data: Internal.PointsWalletTransaction) => External.PointsWalletTransaction;
|
|
34
|
+
activityRecord: (data: Internal.ActivityRecord) => External.ActivityRecord;
|
|
33
35
|
};
|
|
34
36
|
private site;
|
|
35
37
|
private platform;
|
|
@@ -53,5 +55,7 @@ export declare class Transformer {
|
|
|
53
55
|
private cashbackBonus;
|
|
54
56
|
private file;
|
|
55
57
|
private pointsWallet;
|
|
58
|
+
private pointsWalletTransaction;
|
|
59
|
+
private activityRecord;
|
|
56
60
|
}
|
|
57
61
|
export {};
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -396,6 +396,17 @@ export interface PointsWallet {
|
|
|
396
396
|
export type PointsWalletReturn = OperationResult<never, PointsWallet | null>;
|
|
397
397
|
export type PointsToCashConversionError = UnionAlias<Internal.PointsToCashConversionError>;
|
|
398
398
|
export type PointsToCashConversionReturn = OperationResult<PointsToCashConversionError>;
|
|
399
|
+
export type PointsWalletTransactionType = UnionAlias<Internal.PointsWalletTransactionType>;
|
|
400
|
+
export interface PointsWalletTransaction {
|
|
401
|
+
id: string;
|
|
402
|
+
type: PointsWalletTransactionType;
|
|
403
|
+
amount: number;
|
|
404
|
+
balance: number;
|
|
405
|
+
dateTimeCreated: Date;
|
|
406
|
+
}
|
|
407
|
+
export interface PointsWalletTransactionsInput extends Internal.PointsWalletTransactionsQueryVariables {
|
|
408
|
+
}
|
|
409
|
+
export type PointsWalletTransactionsReturn = OperationResult<never, PaginatedQueryResult<'pointsWalletTransactions', PointsWalletTransaction>>;
|
|
399
410
|
export type GameType = UnionAlias<Internal.GameType>;
|
|
400
411
|
export type GameProvider = UnionAlias<Internal.GameProvider>;
|
|
401
412
|
/** @deprecated use `Games__Next` */
|
|
@@ -466,6 +477,7 @@ export interface Announcement {
|
|
|
466
477
|
type: AnnouncementType;
|
|
467
478
|
title: string;
|
|
468
479
|
status: AnnouncementStatus;
|
|
480
|
+
/** @format html */
|
|
469
481
|
message: string;
|
|
470
482
|
activationStartDateTime: Date;
|
|
471
483
|
activationEndDateTime: Date;
|
|
@@ -898,6 +910,7 @@ export interface Promo {
|
|
|
898
910
|
status: 'READY';
|
|
899
911
|
}>;
|
|
900
912
|
status: PromoStatus;
|
|
913
|
+
/** @format html */
|
|
901
914
|
description: string;
|
|
902
915
|
minimumBonusAmount?: number;
|
|
903
916
|
maximumBonusAmount?: number;
|
|
@@ -916,6 +929,7 @@ export interface Cashback {
|
|
|
916
929
|
status: 'READY';
|
|
917
930
|
}>;
|
|
918
931
|
status: CashbackStatus;
|
|
932
|
+
/** @format html */
|
|
919
933
|
description: string;
|
|
920
934
|
activationStartDateTime: Date;
|
|
921
935
|
activationEndDateTime: Date;
|
|
@@ -947,6 +961,17 @@ export interface CashbackBonus {
|
|
|
947
961
|
export type CashbackBonusReturn = OperationResult<never, CashbackBonus[]>;
|
|
948
962
|
export type ClaimCashbackBonusError = UnionAlias<Internal.ClaimCashbackBonusError>;
|
|
949
963
|
export type ClaimCashbackBonusReturn = OperationResult<ClaimCashbackBonusError>;
|
|
964
|
+
export type ActivityRecordType = UnionAlias<Internal.ActivityRecordType>;
|
|
965
|
+
export interface ActivityRecord {
|
|
966
|
+
id: string;
|
|
967
|
+
type: ActivityRecordType;
|
|
968
|
+
/** @format html */
|
|
969
|
+
details: string;
|
|
970
|
+
dateTimeCreated: Date;
|
|
971
|
+
}
|
|
972
|
+
export interface ActivityRecordsInput extends Internal.ActivityRecordsQueryVariables {
|
|
973
|
+
}
|
|
974
|
+
export type ActivityRecordsReturn = OperationResult<never, PaginatedQueryResult<'activityRecords', ActivityRecord>>;
|
|
950
975
|
export interface Site {
|
|
951
976
|
id: string;
|
|
952
977
|
name: string;
|
|
@@ -4,6 +4,7 @@ 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
6
|
export declare const POINTS_TO_CASH_CONVERSION_MUTATION: string;
|
|
7
|
+
export declare const POINTS_WALLET_TRANSACTIONS_QUERY: string;
|
|
7
8
|
/** @deprecated */
|
|
8
9
|
export declare const GAMES_QUERY: string;
|
|
9
10
|
/** @deprecated */
|
|
@@ -53,3 +54,4 @@ export declare const PROFILE_COMPLETION_QUERY: string;
|
|
|
53
54
|
export declare const SEND_VERIFICATION_CODE_MUTATION: string;
|
|
54
55
|
export declare const PLATFORM_QUERY: string;
|
|
55
56
|
export declare const MAYA_SESSION_QUERY: string;
|
|
57
|
+
export declare const ACTIVITY_RECORDS_QUERY: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLClient } from '../utils/graphql-client';
|
|
2
2
|
import { OperationResult } from '../utils/types';
|
|
3
|
-
import { BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, Member, PaginatedQueryResult, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
|
|
3
|
+
import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, Member, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
|
|
4
4
|
|
|
5
5
|
export declare class ReportService {
|
|
6
6
|
private client;
|
|
@@ -11,4 +11,6 @@ export declare class ReportService {
|
|
|
11
11
|
depositRecords(variables?: DepositRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<DepositRecord>>>;
|
|
12
12
|
depositsCount(): Promise<OperationResult<never, number>>;
|
|
13
13
|
member(): Promise<OperationResult<never, Member>>;
|
|
14
|
+
pointsWalletTransactions(variables?: PointsWalletTransactionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<PointsWalletTransaction>>>;
|
|
15
|
+
activityRecords(variables?: ActivityRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<ActivityRecord>>>;
|
|
14
16
|
}
|
package/dist/services/types.d.ts
CHANGED
|
@@ -593,6 +593,24 @@ export interface PointsToCashConversionMutation {
|
|
|
593
593
|
__typename: PointsToCashConversionError;
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
+
export type PointsWalletTransactionType = 'TURNOVER_COMMISSION' | 'POINTS_TO_CASH_CONVERSION';
|
|
597
|
+
export interface PointsWalletTransaction {
|
|
598
|
+
id: string;
|
|
599
|
+
type: PointsWalletTransactionType;
|
|
600
|
+
amount: Decimal;
|
|
601
|
+
balance: Decimal;
|
|
602
|
+
dateTimeCreated: DateString;
|
|
603
|
+
}
|
|
604
|
+
export interface PointsWalletTransactionsQueryVariables {
|
|
605
|
+
first?: number;
|
|
606
|
+
after?: string;
|
|
607
|
+
filter?: {
|
|
608
|
+
type?: EnumFilterField<PointsWalletTransactionType>;
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
export interface PointsWalletTransactionsQuery {
|
|
612
|
+
member: PaginatedQuery<'pointsWalletTransactions', PointsWalletTransaction>;
|
|
613
|
+
}
|
|
596
614
|
export interface Member {
|
|
597
615
|
dateTimeLastActive?: DateString | null;
|
|
598
616
|
}
|
|
@@ -888,3 +906,21 @@ export interface Site {
|
|
|
888
906
|
export interface SiteQuery {
|
|
889
907
|
data: Site;
|
|
890
908
|
}
|
|
909
|
+
export type ActivityRecordType = 'REGISTRATION' | 'LOGIN' | 'DEPOSIT' | 'WITHDRAWAL' | 'BET' | 'CASHBACK_BONUS' | 'BONUS' | 'FIRST_DEPOSIT';
|
|
910
|
+
export interface ActivityRecord {
|
|
911
|
+
id: string;
|
|
912
|
+
type: ActivityRecordType;
|
|
913
|
+
details: Html;
|
|
914
|
+
dateTimeCreated: DateString;
|
|
915
|
+
}
|
|
916
|
+
export interface ActivityRecordsQuery {
|
|
917
|
+
member: PaginatedQuery<'activityRecords', ActivityRecord>;
|
|
918
|
+
}
|
|
919
|
+
export interface ActivityRecordsQueryVariables {
|
|
920
|
+
first?: number;
|
|
921
|
+
after?: string;
|
|
922
|
+
filter?: {
|
|
923
|
+
type?: EnumFilterField<ActivityRecordType>;
|
|
924
|
+
dateTimeCreated?: DateFilterField;
|
|
925
|
+
};
|
|
926
|
+
}
|