@opexa/portal-sdk 0.0.40 → 0.0.42
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 +61 -61
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +433 -520
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +11 -15
- package/dist/sdk/transformer.d.ts +3 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/types.d.ts +1 -1
- package/dist/utils/mobile-number.d.ts +11 -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, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, EndGameSessionReturn, EndGameSessionReturn__Legacy, FileReturn, GameReturn__Next, GamesByNameInput, GamesByNameReturn,
|
|
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, GameSessionReturn, GamesByNameInput, GamesByNameReturn, 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
4
|
readonly site: string;
|
|
@@ -14,20 +14,17 @@ export interface SdkConfig {
|
|
|
14
14
|
readonly logs?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export declare class Sdk {
|
|
17
|
-
private
|
|
17
|
+
private cmsPortalService;
|
|
18
|
+
private gameService;
|
|
19
|
+
private fileService;
|
|
20
|
+
private walletService;
|
|
21
|
+
private accountService;
|
|
22
|
+
private reportService;
|
|
23
|
+
private portalService;
|
|
24
|
+
private sessionManager;
|
|
25
|
+
private transformer;
|
|
26
|
+
private logger;
|
|
18
27
|
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();
|
|
31
28
|
private get authMiddleware();
|
|
32
29
|
signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
|
|
33
30
|
signIn(input: MobileNumberSignInInput): Promise<MobileNumberSignInReturn>;
|
|
@@ -303,6 +300,5 @@ export declare class Sdk {
|
|
|
303
300
|
pointsToCashConversion(amount: number): Promise<PointsToCashConversionReturn>;
|
|
304
301
|
pointsWalletTransactions(input?: PointsWalletTransactionsInput): Promise<PointsWalletTransactionsReturn>;
|
|
305
302
|
activityRecords(input?: ActivityRecordsInput): Promise<ActivityRecordsReturn>;
|
|
306
|
-
private addAreaCode;
|
|
307
303
|
}
|
|
308
304
|
export default Sdk;
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export * from './account.service';
|
|
3
3
|
export * from './auth.service';
|
|
4
|
+
export * from './cms-portal.service';
|
|
4
5
|
export * from './file.service';
|
|
6
|
+
export * from './game.service';
|
|
7
|
+
export * from './portal.service';
|
|
5
8
|
export * from './report.service';
|
|
6
9
|
export * from './static.service';
|
|
7
10
|
export * from './wallet.service';
|
package/dist/services/types.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export interface Game {
|
|
|
124
124
|
type: GameType;
|
|
125
125
|
provider: GameProvider;
|
|
126
126
|
}
|
|
127
|
-
export type GameTag = 'HOT' | 'POPULAR' | 'NEW' | (string & {});
|
|
127
|
+
export type GameTag = 'HOT' | 'POPULAR' | 'NEW' | 'TOP' | (string & {});
|
|
128
128
|
export interface Game__Next extends Game {
|
|
129
129
|
game: string;
|
|
130
130
|
tags?: GameTag[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Ensures mobile number has complete area code
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* addAreaCode('9190010001'); // +639190010001
|
|
6
|
+
* addAreaCode('09190010001'); // +639190010001
|
|
7
|
+
* addAreaCode('639190010001'); // +639190010001
|
|
8
|
+
* addAreaCode('+639190010001'); // +639190010001
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare function addAreaCode(mobileNumber: string): string;
|