@opexa/portal-sdk 0.0.146 → 0.0.147
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 +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +283 -242
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -1
- package/dist/sdk/types.d.ts +2 -0
- package/dist/services/cms-portal.service.d.ts +2 -1
- package/dist/services/types.d.ts +15 -1
- 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, AvailableQuestsReturn, BetRecordsInput, BetRecordsReturn, BonusReturn, BonusesReturn, CabinetSignInInput, CabinetSignInReturn, CashbackBonusReturn, CashbacksReturn, ClaimCashbackBonusReturn, ClaimRewardReturn, ClaimSpotBonusReturn, CompleteOnboardingInput, CompleteOnboardingReturn, CreateAccountInput, CreateAccountInput__Next, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, DownlinesByNameInput, DownlinesByNameReturn, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, InstapayBankListReturn, LatestBetRecordsReturn, MarkAllMessagesAsReadReturn, MarkMessageAsReadReturn, MayaSignInInput, MayaSignInReturn, MessagesInput, MessagesReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, OnboardingStatusReturn, PaymentSettingsReturn, PlatformReturn, PlatformReturn__Next, PointsClubSettingsReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromoByCodeReturn, PromosReturn, RecommendedGamesInput, RecommendedGamesReturn, RedeemPointsInput, RedeemPointsReturn, ReferralCodeReturn, ReferralCommissionReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeInput__Next, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SkipOnboardingReturn, SocialsSignInInput, SocialsSignInReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TokenSignInInput, TokenSignInReturn, TransactionRecordsInput, TransactionRecordsReturn, UnreadMessagesCountInput, UnreadMessagesCountReturn, 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, AvailableQuestsReturn, BetRecordsInput, BetRecordsReturn, BonusReturn, BonusesReturn, CabinetSignInInput, CabinetSignInReturn, CashbackBonusReturn, CashbacksReturn, ClaimCashbackBonusReturn, ClaimRewardReturn, ClaimSpotBonusReturn, CompleteOnboardingInput, CompleteOnboardingReturn, CreateAccountInput, CreateAccountInput__Next, CreateAccountReturn, CreateDepositInput, CreateDepositReturn, CreateGameSessionInput, CreateGameSessionReturn, CreateWithdrawalInput, CreateWithdrawalReturn, DeleteAccountReturn, DepositRecordsInput, DepositRecordsReturn, DepositReturn, DepositsCountReturn, DownlinesByNameInput, DownlinesByNameReturn, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesInput__Next, GamesReturn, InstapayBankListReturn, LatestBetRecordsReturn, MarkAllMessagesAsReadReturn, MarkMessageAsReadReturn, MayaSignInInput, MayaSignInReturn, MessagesInput, MessagesReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, OnboardingStatusReturn, PaymentSettingsReturn, PlatformReturn, PlatformReturn__Next, PointsClubSettingsReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromoByCodeReturn, PromosReturn, RecommendedGamesInput, RecommendedGamesReturn, RedeemPointsInput, RedeemPointsReturn, ReferralCodeReturn, ReferralCommissionReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeInput__Next, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SkipOnboardingReturn, SocialsSignInInput, SocialsSignInReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TokenSignInInput, TokenSignInReturn, TransactionRecordsInput, TransactionRecordsReturn, UnreadMessagesCountInput, UnreadMessagesCountReturn, 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;
|
|
@@ -84,6 +84,7 @@ export declare class Sdk {
|
|
|
84
84
|
promoByCode(code: string): Promise<PromoByCodeReturn>;
|
|
85
85
|
game(id: string): Promise<GameReturn>;
|
|
86
86
|
games(input?: GamesInput): Promise<GamesReturn>;
|
|
87
|
+
games__next(input?: GamesInput__Next): Promise<GamesReturn>;
|
|
87
88
|
recommendedGames(input?: RecommendedGamesInput): Promise<RecommendedGamesReturn>;
|
|
88
89
|
gameSession(id: string): Promise<GameSessionReturn>;
|
|
89
90
|
createGameSession(input: CreateGameSessionInput): Promise<CreateGameSessionReturn>;
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -325,6 +325,8 @@ export interface Game {
|
|
|
325
325
|
}
|
|
326
326
|
export interface GamesInput extends Internal.GamesQueryVariables {
|
|
327
327
|
}
|
|
328
|
+
export interface GamesInput__Next extends Internal.GamesQueryVariables__Next {
|
|
329
|
+
}
|
|
328
330
|
export type GamesReturn = OperationResult<never, PaginatedQueryResult<'games', Game>>;
|
|
329
331
|
export type GameReturn = OperationResult<never, Game | null>;
|
|
330
332
|
export interface RecommendedGamesInput {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OperationResult } from '../utils/types';
|
|
2
|
-
import { Game, GamesQueryVariables, PaginatedQueryResult, Site } from './types';
|
|
2
|
+
import { Game, GamesQueryVariables, GamesQueryVariables__Next, PaginatedQueryResult, Site } from './types';
|
|
3
3
|
|
|
4
4
|
export interface CmsPortalServiceConfig {
|
|
5
5
|
url: string;
|
|
@@ -13,6 +13,7 @@ export declare class CmsPortalService {
|
|
|
13
13
|
constructor(config: CmsPortalServiceConfig);
|
|
14
14
|
self(): Promise<OperationResult<never, Site>>;
|
|
15
15
|
games(variables?: GamesQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Game>>>;
|
|
16
|
+
games__next(variables?: GamesQueryVariables__Next): Promise<OperationResult<never, PaginatedQueryResult<Game>>>;
|
|
16
17
|
game(id: string): Promise<OperationResult<never, Game | null | undefined>>;
|
|
17
18
|
private getJson;
|
|
18
19
|
}
|
package/dist/services/types.d.ts
CHANGED
|
@@ -153,7 +153,21 @@ export interface GamesQueryVariables {
|
|
|
153
153
|
reference?: ObjectIdFilterField;
|
|
154
154
|
};
|
|
155
155
|
sort?: SortOrder;
|
|
156
|
-
|
|
156
|
+
}
|
|
157
|
+
export interface GamesQueryVariables__Next {
|
|
158
|
+
after?: string;
|
|
159
|
+
first?: number;
|
|
160
|
+
search?: string;
|
|
161
|
+
filter?: {
|
|
162
|
+
tags?: EnumFilterField<GameTag>;
|
|
163
|
+
type?: EnumFilterField<GameType>;
|
|
164
|
+
provider?: EnumFilterField<GameProvider>;
|
|
165
|
+
reference?: ObjectIdFilterField;
|
|
166
|
+
};
|
|
167
|
+
sort?: {
|
|
168
|
+
order: SortOrder;
|
|
169
|
+
context: 'HOT';
|
|
170
|
+
};
|
|
157
171
|
}
|
|
158
172
|
export interface GamesQuery {
|
|
159
173
|
data: Game[];
|