@opexa/portal-sdk 0.0.38 → 0.0.40
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 +23 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +357 -285
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +24 -15
- package/dist/sdk/session-manager.d.ts +1 -1
- package/dist/sdk/types.d.ts +2 -0
- package/dist/services/types.d.ts +4 -2
- package/package.json +1 -1
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
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, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, ValidateMayaSessionReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
|
|
2
2
|
|
|
3
3
|
export interface SdkConfig {
|
|
4
|
-
site: string;
|
|
5
|
-
sitePlatform: string;
|
|
6
|
-
platform: string;
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
readonly site: string;
|
|
5
|
+
readonly sitePlatform: string;
|
|
6
|
+
readonly platform: string;
|
|
7
|
+
/**
|
|
8
|
+
* @default 'development'
|
|
9
|
+
*/
|
|
10
|
+
readonly environment?: 'production' | 'development';
|
|
11
|
+
/**
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
readonly logs?: boolean;
|
|
9
15
|
}
|
|
10
16
|
export declare class Sdk {
|
|
11
|
-
private
|
|
12
|
-
private fileService;
|
|
13
|
-
private walletService;
|
|
14
|
-
private reportService;
|
|
15
|
-
private portalService;
|
|
16
|
-
private accountService;
|
|
17
|
-
private cmsPortalService;
|
|
18
|
-
private sessionManager;
|
|
19
|
-
private transformer;
|
|
20
|
-
private logger;
|
|
17
|
+
private _config;
|
|
21
18
|
constructor(config: SdkConfig);
|
|
19
|
+
get config(): Required<SdkConfig>;
|
|
20
|
+
set config(config: Partial<SdkConfig>);
|
|
21
|
+
private get logger();
|
|
22
|
+
private get transformer();
|
|
23
|
+
private get cmsPortalService();
|
|
24
|
+
private get sessionManager();
|
|
25
|
+
private get gameService();
|
|
26
|
+
private get fileService();
|
|
27
|
+
private get walletService();
|
|
28
|
+
private get accountService();
|
|
29
|
+
private get reportService();
|
|
30
|
+
private get portalService();
|
|
22
31
|
private get authMiddleware();
|
|
23
32
|
signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
|
|
24
33
|
signIn(input: MobileNumberSignInInput): Promise<MobileNumberSignInReturn>;
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -430,6 +430,7 @@ export interface PointsWalletTransaction {
|
|
|
430
430
|
export interface PointsWalletTransactionsInput extends Internal.PointsWalletTransactionsQueryVariables {
|
|
431
431
|
}
|
|
432
432
|
export type PointsWalletTransactionsReturn = OperationResult<never, PaginatedQueryResult<'pointsWalletTransactions', PointsWalletTransaction>>;
|
|
433
|
+
export type GameTag = UnionAlias<Internal.GameTag>;
|
|
433
434
|
export type GameType = UnionAlias<Internal.GameType>;
|
|
434
435
|
export type GameProvider = UnionAlias<Internal.GameProvider>;
|
|
435
436
|
/** @deprecated use `Games__Next` */
|
|
@@ -441,6 +442,7 @@ export interface Game {
|
|
|
441
442
|
provider: GameProvider;
|
|
442
443
|
}
|
|
443
444
|
export interface Game__Next extends Game {
|
|
445
|
+
tags: GameTag[];
|
|
444
446
|
externalId: string;
|
|
445
447
|
}
|
|
446
448
|
export interface GamesInput extends Internal.GamesQueryVariables {
|
package/dist/services/types.d.ts
CHANGED
|
@@ -124,9 +124,10 @@ export interface Game {
|
|
|
124
124
|
type: GameType;
|
|
125
125
|
provider: GameProvider;
|
|
126
126
|
}
|
|
127
|
+
export type GameTag = 'HOT' | 'POPULAR' | 'NEW' | (string & {});
|
|
127
128
|
export interface Game__Next extends Game {
|
|
128
129
|
game: string;
|
|
129
|
-
tags
|
|
130
|
+
tags?: GameTag[];
|
|
130
131
|
rank: Decimal;
|
|
131
132
|
site: string;
|
|
132
133
|
cursor: string;
|
|
@@ -148,6 +149,7 @@ export interface GamesQueryVariables {
|
|
|
148
149
|
first?: number;
|
|
149
150
|
search?: string;
|
|
150
151
|
filter?: {
|
|
152
|
+
tags?: EnumFilterField<GameTag>;
|
|
151
153
|
type?: EnumFilterField<GameType>;
|
|
152
154
|
provider?: EnumFilterField<GameProvider>;
|
|
153
155
|
};
|
|
@@ -563,7 +565,7 @@ export interface TransactionRecordsQueryVariables {
|
|
|
563
565
|
dateTimeCreated?: DateFilterField;
|
|
564
566
|
};
|
|
565
567
|
}
|
|
566
|
-
export type Currency = 'PHP' | 'USD';
|
|
568
|
+
export type Currency = 'PHP' | 'USD' | (string & {});
|
|
567
569
|
export interface Wallet {
|
|
568
570
|
id: string;
|
|
569
571
|
balance: Decimal;
|