@opexa/portal-sdk 0.0.73 → 0.0.75

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/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, 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, ReferralCodeReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendAuthenticationCodeReturn, 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, 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;
@@ -24,10 +24,6 @@ export declare class Sdk {
24
24
  signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
25
25
  signIn(input: MobileNumberSignInInput): Promise<MobileNumberSignInReturn>;
26
26
  signIn(input: MayaSignInInput): Promise<MayaSignInReturn>;
27
- /**
28
- * @deprecated use `sendVerificationCode__next`
29
- */
30
- sendAuthenticationCode(mobileNumber: string): Promise<SendAuthenticationCodeReturn>;
31
27
  authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
32
28
  signOut(): Promise<void>;
33
29
  watchSession(input: WatchSessionInput): () => void;
@@ -47,6 +43,9 @@ export declare class Sdk {
47
43
  resetPassword(input: ResetPasswordInput): Promise<ResetPasswordReturn>;
48
44
  verifyMobileNumber(verificationCode: string): Promise<VerifyMobileNumberReturn>;
49
45
  profileCompletion(): Promise<ProfileCompletionReturn>;
46
+ /**
47
+ * @deprecated use `sendVerificationCode__next`
48
+ */
50
49
  sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
51
50
  sendVerificationCode__next(mobileNumber: string): Promise<SendVerificationCodeReturn__Next>;
52
51
  wallet(): Promise<WalletReturn>;
@@ -67,40 +66,11 @@ export declare class Sdk {
67
66
  bonus(): Promise<BonusReturn>;
68
67
  cashbackBonuses(): Promise<CashbackBonusReturn>;
69
68
  claimCashbackBonus(id: string): Promise<ClaimCashbackBonusReturn>;
70
- /** @deprecated use `game__next` */
71
- game(id: string): Promise<{
72
- ok: false;
73
- data?: never;
74
- error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError">;
75
- } | {
76
- ok: true;
77
- data: import('./types').Game__Next | null;
78
- error?: never;
79
- }>;
80
- game__next(id: string): Promise<GameReturn__Next>;
81
- /** @deprecated use `games__next` */
69
+ game(id: string): Promise<GameReturn>;
82
70
  games(input?: GamesInput): Promise<GamesReturn>;
83
- games__next(input?: GamesInput): Promise<GamesReturn__Next>;
84
- /** @deprecated use `games__next` */
85
- games__legacy(input?: GamesInput): Promise<GamesReturn>;
86
- /** @deprecated use `games__next` */
87
- gamesByName(input?: GamesByNameInput): Promise<GamesByNameReturn>;
88
- /** @deprecated use `games__next` */
89
- gamesByName__legacy(input?: GamesByNameInput): Promise<GamesByNameReturn>;
90
- /** @deprecated use `gameSession__next` */
91
71
  gameSession(id: string): Promise<GameSessionReturn>;
92
- /** @deprecated use `gameSession__next` */
93
- gameSession__legacy(id: string): Promise<GameSessionReturn>;
94
- gameSession__next(id: string): Promise<GameSessionReturn>;
95
72
  createGameSession(input: CreateGameSessionInput): Promise<CreateGameSessionReturn>;
96
- /** @deprecated use `createGameSession__next` */
97
- createGameSession__legacy(input: CreateGameSessionInput): Promise<CreateGameSessionReturn>;
98
- createGameSession__next(input: CreateGameSessionInput): Promise<CreateGameSessionReturn>;
99
- /** @deprecated use `endGameSession__next` */
100
73
  endGameSession(id: string): Promise<EndGameSessionReturn>;
101
- /** @deprecated use `endGameSession__next` */
102
- endGameSession__legacy(id: string): Promise<EndGameSessionReturn__Legacy>;
103
- endGameSession__next(id: string): Promise<EndGameSessionReturn__Legacy>;
104
74
  file(id: string): Promise<FileReturn>;
105
75
  uploadImageFile(input: UploadImageFileInput): Promise<UploadImageFileReturn>;
106
76
  pointsWallet(): Promise<PointsWalletReturn>;
@@ -9,7 +9,7 @@ export declare class Transformer {
9
9
  get transform(): {
10
10
  site: (data: Internal.Site) => External.Site;
11
11
  platform: (data: Internal.Platform) => External.Platform;
12
- account: (data: Internal.MemberAccount & Internal.Member) => External.Account;
12
+ account: (data: Internal.MemberAccount) => External.Account;
13
13
  wallet: (data: Internal.Wallet) => External.Wallet;
14
14
  verificationDetails: (data: Internal.MemberVerification) => External.VerificationDetails;
15
15
  profileCompletion: (data: Internal.ProfileCompletion) => External.ProfileCompletion;
@@ -20,9 +20,7 @@ export declare class Transformer {
20
20
  betRecord: (data: Internal.BetRecord) => External.BetRecord;
21
21
  latestBetRecord: (data: Internal.LatestBetRecord) => External.LatestBetRecord;
22
22
  transactionRecord: (data: Internal.TransactionRecord) => External.TransactionRecord;
23
- /** @deprecated */
24
23
  game: (data: Internal.Game) => External.Game;
25
- game__next: (data: Internal.Game__Next) => External.Game__Next;
26
24
  gameSession: (data: Internal.GameSession) => External.GameSession;
27
25
  promo: (data: Internal.Promo) => External.Promo;
28
26
  cashback: (data: Internal.Cashback) => External.Cashback;
@@ -33,6 +31,7 @@ export declare class Transformer {
33
31
  pointsWalletTransaction: (data: Internal.PointsWalletTransaction) => External.PointsWalletTransaction;
34
32
  activityRecord: (data: Internal.ActivityRecord) => External.ActivityRecord;
35
33
  referrals: (data: Internal.Referral) => External.Referral;
34
+ referralComission: (data: Internal.ReferralCommission) => External.ReferralCommission;
36
35
  };
37
36
  private site;
38
37
  private platform;
@@ -47,11 +46,7 @@ export declare class Transformer {
47
46
  private betRecord;
48
47
  private latestBetRecord;
49
48
  private transactionRecord;
50
- /**
51
- * @deprecated
52
- */
53
49
  private game;
54
- private game__next;
55
50
  private gameSession;
56
51
  private promo;
57
52
  private cashback;
@@ -62,5 +57,6 @@ export declare class Transformer {
62
57
  private pointsWalletTransaction;
63
58
  private activityRecord;
64
59
  private referrals;
60
+ private referralComission;
65
61
  }
66
62
  export {};
@@ -28,7 +28,7 @@ export interface NameAndPasswordSignInInput {
28
28
  export interface MobileNumberSignInInput {
29
29
  type: 'MOBILE_NUMBER';
30
30
  mobileNumber: string;
31
- authenticationCode: string;
31
+ verificationCode: string;
32
32
  }
33
33
  export interface MayaSignInInput {
34
34
  type: 'MAYA';
@@ -52,7 +52,6 @@ export interface SecurityQuestionAuthenticateInput extends Internal.SecurityQues
52
52
  export type AuthenticateInput = SecurityQuestionAuthenticateInput;
53
53
  export type AuthenticateError = UnionAlias<Internal.AuthenticateError>;
54
54
  export type AuthenticateReturn = OperationResult<AuthenticateError>;
55
- export type SendAuthenticationCodeReturn = OperationResult;
56
55
  export interface Session {
57
56
  id: string;
58
57
  dateTimeCreated: Date;
@@ -107,10 +106,6 @@ export interface Account {
107
106
  mobileNumberVerificationRequired: boolean;
108
107
  transactionPassword: boolean;
109
108
  secretAnswerSubmitted: boolean;
110
- /**
111
- * @deprecated use `sdk.activityRecords` and pass `LOGIN` to `filter.type`
112
- */
113
- dateTimeLastActive?: Date;
114
109
  dateTimeCreated: Date;
115
110
  dateTimeLastUpdated: Date;
116
111
  }
@@ -256,38 +251,19 @@ export type PointsWalletTransactionsReturn = OperationResult<never, PaginatedQue
256
251
  export type GameTag = UnionAlias<Internal.GameTag>;
257
252
  export type GameType = UnionAlias<Internal.GameType>;
258
253
  export type GameProvider = UnionAlias<Internal.GameProvider>;
259
- /** @deprecated use `Games__Next` */
260
254
  export interface Game {
261
255
  id: string;
262
256
  name: string;
263
257
  type: GameType;
264
- images: string[];
265
- provider: GameProvider;
266
- }
267
- export interface Game__Next {
268
- id: string;
269
- name: string;
270
- type: GameType;
258
+ tags: GameTag[];
271
259
  images: string[];
272
260
  provider: GameProvider;
273
261
  reference: string;
274
- /** @deprecated use `reference` instead */
275
- externalId: string;
276
- tags: GameTag[];
277
262
  }
278
263
  export interface GamesInput extends Internal.GamesQueryVariables {
279
264
  }
280
- /** @deprecated use `GamesReturn__Next` */
281
265
  export type GamesReturn = OperationResult<never, PaginatedQueryResult<'games', Game>>;
282
- export type GamesReturn__Next = OperationResult<never, PaginatedQueryResult<'games', Game__Next>>;
283
- /** @deprecated */
284
- export interface GamesByNameInput extends Internal.GamesByNameQueryVariables {
285
- }
286
- /** @deprecated */
287
- export type GamesByNameReturn = OperationResult<never, Game[]>;
288
- /** @deprecated use `GameReturn__Next` */
289
266
  export type GameReturn = OperationResult<never, Game | null>;
290
- export type GameReturn__Next = OperationResult<never, Game__Next | null>;
291
267
  export type GameSessionStatus = UnionAlias<Internal.GameSessionStatus>;
292
268
  export type GameSession = {
293
269
  id: string;
@@ -312,8 +288,6 @@ export type CreateGameSessionReturn = OperationResult<CreateGameSessionError, {
312
288
  id: string;
313
289
  }>;
314
290
  export type EndGameSessionReturn = OperationResult;
315
- export type EndGameSessionError__Legacy = UnionAlias<Internal.EndGameSessionError__Legacy>;
316
- export type EndGameSessionReturn__Legacy = OperationResult<EndGameSessionError__Legacy>;
317
291
  export type AnnouncementType = UnionAlias<Internal.AnnouncementType>;
318
292
  export type AnnouncementStatus = UnionAlias<Internal.AnnouncementStatus>;
319
293
  export interface Announcement {
@@ -757,4 +731,18 @@ export interface Referral {
757
731
  export interface ReferralsInput extends Internal.ReferralsQueryVariables {
758
732
  }
759
733
  export type ReferralsReturn = OperationResult<never, PaginatedQueryResult<'referrals', Referral>>;
734
+ export interface ReferralCommission {
735
+ id: string;
736
+ commission: number;
737
+ referralCode: String;
738
+ referralsCount: number;
739
+ level1Commission: number;
740
+ level2Commission: number;
741
+ level3Commission: number;
742
+ level1ReferralsCount: number;
743
+ level2ReferralsCount: number;
744
+ level3ReferralsCount: number;
745
+ dateTimeCreated: Date;
746
+ dateTimeLastUpdated: Date;
747
+ }
760
748
  export {};
@@ -1,5 +1,5 @@
1
1
  import { OperationResult } from '../utils/types';
2
- import { AuthenticateError, AuthenticateInput, AuthenticateMutation, CreateSessionError, CreateSessionInput, CreateSessionMutation, RefreshSessionError, RefreshSessionMutation } from './types';
2
+ import { AuthenticateError, AuthenticateInput, AuthenticateMutation, CreateSessionError, CreateSessionInput, CreateSessionMutation, RefreshSessionError, RefreshSessionMutation, SendVerificationCodeInput } from './types';
3
3
 
4
4
  export interface AuthServiceConfig {
5
5
  url: string;
@@ -15,9 +15,5 @@ export declare class AuthService {
15
15
  refreshSession(refreshToken: string): Promise<OperationResult<RefreshSessionError, RefreshSessionMutation>>;
16
16
  destroySession(accessToken: string): Promise<OperationResult>;
17
17
  verifySession(accessToken: string): Promise<boolean>;
18
- /**
19
- * @deprecated use `sendOtp`
20
- */
21
- sendVerificationCode(mobileNumber: string): Promise<OperationResult>;
22
- sendVerificationCode__next(mobileNumber: string): Promise<OperationResult>;
18
+ sendVerificationCode(input: SendVerificationCodeInput): Promise<OperationResult>;
23
19
  }
@@ -1,5 +1,5 @@
1
1
  import { OperationResult } from '../utils/types';
2
- import { Game__Next, GamesQueryVariables, PaginatedQueryResult, Site } from './types';
2
+ import { Game, GamesQueryVariables, PaginatedQueryResult, Site } from './types';
3
3
 
4
4
  export interface CmsPortalServiceConfig {
5
5
  url: string;
@@ -12,7 +12,7 @@ export declare class CmsPortalService {
12
12
  private platformId;
13
13
  constructor(config: CmsPortalServiceConfig);
14
14
  self(): Promise<OperationResult<never, Site>>;
15
- games(variables?: GamesQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Game__Next>>>;
16
- game(id: string): Promise<OperationResult<never, Game__Next | null | undefined>>;
15
+ games(variables?: GamesQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Game>>>;
16
+ game(id: string): Promise<OperationResult<never, Game | null | undefined>>;
17
17
  private getJson;
18
18
  }
@@ -1,22 +1,11 @@
1
1
  import { GraphQLClient } from '../utils/graphql-client';
2
2
  import { OperationResult } from '../utils/types';
3
- import { CreateGameSessionError, CreateGameSessionMutationVariables, EndGameSessionError__Legacy, EndGameSessionMutationVariables, Game, GamesByNameQueryVariables, GameSession__Legacy, GameSessionQueryVariables, GamesQueryVariables, PaginatedQueryResult } from './types';
3
+ import { CreateGameSessionError, CreateGameSessionMutationVariables, EndGameSessionMutationVariables, GameSession, GameSessionQueryVariables } from './types';
4
4
 
5
5
  export declare class GameService {
6
6
  private client;
7
7
  constructor(client: GraphQLClient);
8
- /** @deprecated */
9
- games(variables?: GamesQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Game>>>;
10
- /** @deprecated */
11
- gamesByName(variables?: GamesByNameQueryVariables): Promise<{
12
- ok: false;
13
- data?: never;
14
- error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError">;
15
- } | {
16
- ok: true;
17
- data: Game[];
18
- }>;
19
- gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never, GameSession__Legacy | null | undefined>>;
8
+ gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never, GameSession | null | undefined>>;
20
9
  createGameSession(variables: CreateGameSessionMutationVariables): Promise<OperationResult<CreateGameSessionError>>;
21
- endGameSession(variables: EndGameSessionMutationVariables): Promise<OperationResult<EndGameSessionError__Legacy>>;
10
+ endGameSession(variables: EndGameSessionMutationVariables): Promise<OperationResult>;
22
11
  }
@@ -5,14 +5,15 @@ 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
7
  export declare const POINTS_WALLET_TRANSACTIONS_QUERY: string;
8
- /** @deprecated */
9
- export declare const GAMES_QUERY: string;
10
- /** @deprecated */
11
- export declare const GAMES_BY_NAME_QUERY: string;
12
- export declare const GAME_SESSION_QUERY: string;
8
+ export declare const GAME_SESSION_QUERY: {
9
+ current: string;
10
+ legacy: string;
11
+ };
13
12
  export declare const CREATE_GAME_SESSION_MUTATION: string;
14
- export declare const END_GAME_SESSION_MUTATION: string;
15
- export declare const END_GAME_SESSION_MUTATION__LEGACY: string;
13
+ export declare const END_GAME_SESSION_MUTATION: {
14
+ current: string;
15
+ legacy: string;
16
+ };
16
17
  export declare const ANNOUNCEMENTS_QUERY: string;
17
18
  export declare const WITHDRAWAL_RECORDS_QUERY: string;
18
19
  export declare const CREATE_GCASH_WITHDRAWAL_MUTATION: 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, Member, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, Referral, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
3
+ import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, Referral, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
4
4
 
5
5
  export declare class ReportService {
6
6
  private client;
@@ -10,7 +10,6 @@ export declare class ReportService {
10
10
  withdrawalRecords(variables?: WithdrawalRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<WithdrawalRecord>>>;
11
11
  depositRecords(variables?: DepositRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<DepositRecord>>>;
12
12
  depositsCount(): Promise<OperationResult<never, number>>;
13
- member(): Promise<OperationResult<never, Member>>;
14
13
  pointsWalletTransactions(variables?: PointsWalletTransactionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<PointsWalletTransaction>>>;
15
14
  activityRecords(variables?: ActivityRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<ActivityRecord>>>;
16
15
  referrals(variables?: ReferralsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Referral>>>;
@@ -115,20 +115,15 @@ export interface AnnouncementsQueryVariables {
115
115
  };
116
116
  }
117
117
  export type GameType = 'SLOTS' | 'SPORTS' | 'FISHING' | 'BINGO' | 'LIVE' | 'GAMES' | 'TABLE' | 'SPECIALTY';
118
- export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'MEGABALL' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO'
119
- /** @deprecated */
120
- | 'PRAGMATICPLAY' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'EVOLUTIONNETENT' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING' | 'KINGMAKER' | 'KINGMIDAS' | 'YELLOWBAT';
118
+ export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'MEGABALL' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'EVOLUTIONNETENT' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING' | 'KINGMAKER' | 'KINGMIDAS' | 'YELLOWBAT';
121
119
  export type GameStatus = 'ACTIVE' | 'INACTIVE';
122
- /** @deprecated */
120
+ export type GameTag = 'HOT' | 'hot' | 'NEW' | 'new' | 'TOP' | 'top' | 'POPULAR' | 'popular' | (string & {});
123
121
  export interface Game {
124
122
  id: string;
123
+ game: string;
125
124
  name: string;
126
125
  type: GameType;
127
126
  provider: GameProvider;
128
- }
129
- export type GameTag = 'HOT' | 'hot' | 'NEW' | 'new' | 'TOP' | 'top' | 'POPULAR' | 'popular' | (string & {});
130
- export interface Game__Next extends Game {
131
- game: string;
132
127
  tags?: GameTag[];
133
128
  rank: Decimal;
134
129
  site: string;
@@ -138,15 +133,12 @@ export interface Game__Next extends Game {
138
133
  platform: string;
139
134
  reference: string;
140
135
  customImage?: string;
141
- /** @deprecated use `reference` instead */
142
- externalId: string;
143
136
  dateTimeCreated: DateString;
144
137
  dateTimeLastUpdated: DateString;
145
138
  }
146
139
  export interface GameQueryVariables {
147
140
  id: string;
148
141
  }
149
- /** @deprecated */
150
142
  export interface GameQuery {
151
143
  node?: Game | null;
152
144
  }
@@ -160,37 +152,34 @@ export interface GamesQueryVariables {
160
152
  provider?: EnumFilterField<GameProvider>;
161
153
  };
162
154
  }
163
- /** @deprecated */
164
- export interface GamesQuery extends PaginatedQuery<'games', Game> {
165
- }
166
- /** @deprecated */
167
- export interface GamesByNameQueryVariables {
168
- first?: number;
169
- search: string;
170
- filter?: GamesQueryVariables['filter'];
171
- }
172
- /** @deprecated */
173
- export interface GamesByNameQuery {
174
- gamesByName: Game[];
175
- }
176
- export interface GamesQuery__Next {
177
- data: Game__Next[];
155
+ export interface GamesQuery {
156
+ data: Game[];
178
157
  next?: string | null;
179
158
  totalCount?: number | null;
180
159
  }
181
- export interface GameQuery__Next {
182
- data?: Game__Next | null;
160
+ export interface GameQuery {
161
+ data?: Game | null;
183
162
  }
184
163
  export type GameSessionStatus = 'PENDING' | 'STARTING' | 'READY' | 'ENDED' | 'CANCELLED';
185
- export interface GameSession {
164
+ export type GameSession<Legacy extends boolean = false> = [Legacy] extends [true] ? {
186
165
  id: string;
166
+ game: {
167
+ id: string;
168
+ };
187
169
  status: GameSessionStatus;
188
170
  launchUrl?: string | null;
189
171
  dateTimeCreated: DateString;
190
172
  dateTimeLastUpdated: DateString;
191
- }
192
- export interface GameSessionQuery {
193
- node?: GameSession | null;
173
+ } : {
174
+ id: string;
175
+ game: string;
176
+ status: GameSessionStatus;
177
+ launchUrl?: string | null;
178
+ dateTimeCreated: DateString;
179
+ dateTimeLastUpdated: DateString;
180
+ };
181
+ export interface GameSessionQuery<Legacy extends boolean = false> {
182
+ node?: GameSession<Legacy> | null;
194
183
  }
195
184
  export interface GameSessionQueryVariables {
196
185
  id: string;
@@ -207,33 +196,19 @@ export interface CreateGameSessionMutationVariables {
207
196
  game: string;
208
197
  };
209
198
  }
210
- export interface EndGameSessionMutation {
199
+ export type EndGameSessionError = 'GameSessionDoesNotExistError' | 'GameSessionAlreadyClosedError' | 'GameProviderError';
200
+ export type EndGameSessionMutation<Legacy extends boolean = false> = [Legacy] extends [true] ? {
201
+ endGameSession?: null | {
202
+ __typename: EndGameSessionError;
203
+ };
204
+ } : {
211
205
  endGameSession: boolean;
212
- }
206
+ };
213
207
  export interface EndGameSessionMutationVariables {
214
208
  input: {
215
209
  id: string;
216
210
  };
217
211
  }
218
- export interface GameSession__Legacy {
219
- id: string;
220
- game: {
221
- id: string;
222
- };
223
- status: GameSessionStatus;
224
- launchUrl?: string | null;
225
- dateTimeCreated: DateString;
226
- dateTimeLastUpdated: DateString;
227
- }
228
- export interface GameSessionQuery__Legacy {
229
- node?: GameSession__Legacy | null;
230
- }
231
- export type EndGameSessionError__Legacy = 'GameSessionDoesNotExistError' | 'GameSessionAlreadyClosedError' | 'GameProviderError';
232
- export interface EndGameSessionMutation__Legacy {
233
- endGameSession?: null | {
234
- __typename: EndGameSessionError__Legacy;
235
- };
236
- }
237
212
  export type BetRecordStatus = 'STARTED' | 'SETTLED' | 'CANCELLED';
238
213
  export interface BetRecordMetadata {
239
214
  odds?: string | null;
@@ -622,12 +597,6 @@ export interface PointsWalletTransactionsQueryVariables {
622
597
  export interface PointsWalletTransactionsQuery {
623
598
  member: PaginatedQuery<'pointsWalletTransactions', PointsWalletTransaction>;
624
599
  }
625
- export interface Member {
626
- dateTimeLastActive?: DateString | null;
627
- }
628
- export interface MemberQuery {
629
- member: Member;
630
- }
631
600
  export type MemberAccountStatus = 'ACTIVE' | 'DISABLED' | 'BLACKLISTED';
632
601
  export type MemberAccountVerificationStatus = 'UNVERIFIED' | 'PENDING' | 'VERIFIED';
633
602
  export type MemberVerificationStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'VERIFIED' | 'UNVERIFIED';
@@ -889,19 +858,19 @@ export type CreateSessionInput = {
889
858
  name: string;
890
859
  password: string;
891
860
  mobileNumber?: never;
892
- authenticationCode?: never;
861
+ verificationCode?: never;
893
862
  sessionId?: never;
894
863
  } | {
895
864
  name?: never;
896
865
  password?: never;
897
866
  mobileNumber: string;
898
- authenticationCode: string;
867
+ verificationCode: string;
899
868
  sessionId?: never;
900
869
  } | {
901
870
  name?: never;
902
871
  password?: never;
903
872
  mobileNumber?: never;
904
- authenticationCode?: never;
873
+ verificationCode?: never;
905
874
  sessionId: string;
906
875
  };
907
876
  export type Authenticator = {
@@ -952,6 +921,10 @@ export interface MayaSessionQueryVariables {
952
921
  export interface ValidateMayaSessionMutation {
953
922
  validateMayaSession: boolean;
954
923
  }
924
+ export interface SendVerificationCodeInput {
925
+ channel: 'SMS' | 'EMAIL';
926
+ recipient: string;
927
+ }
955
928
  export interface TextField {
956
929
  id: string;
957
930
  type: 'text';
@@ -1090,3 +1063,17 @@ export interface ReferralsQueryVariables {
1090
1063
  downline?: ObjectIdFilterField;
1091
1064
  };
1092
1065
  }
1066
+ export interface ReferralCommission {
1067
+ id: string;
1068
+ commission: Decimal;
1069
+ referralCode: String;
1070
+ referralsCount: number;
1071
+ level1Commission: Decimal;
1072
+ level2Commission: Decimal;
1073
+ level3Commission: Decimal;
1074
+ level1ReferralsCount: number;
1075
+ level2ReferralsCount: number;
1076
+ level3ReferralsCount: number;
1077
+ dateTimeCreated: DateString;
1078
+ dateTimeLastUpdated: DateString;
1079
+ }
@@ -1,6 +1,6 @@
1
1
  import { OperationError } from '../utils/types';
2
- import { AuthenticateError, ClaimCashbackBonusError, CreateDepositError, CreateGameSessionError, CreateMemberVerificationError, CreateSessionError, CreateWithdrawalError, EndGameSessionError__Legacy, PointsToCashConversionError, RefreshSessionError, RegisterMayaMemberAccountError, RegisterMemberAccountError, ResetPasswordError, SendVerificationCodeError, UpdateMemberAccountError, UpdateMemberVerificationError, UpdateReferralCodeError, UploadPrivateImageFileError, VerifyMobileNumberError } from './types';
2
+ import { AuthenticateError, ClaimCashbackBonusError, CreateDepositError, CreateGameSessionError, CreateMemberVerificationError, CreateSessionError, CreateWithdrawalError, EndGameSessionError, PointsToCashConversionError, RefreshSessionError, RegisterMayaMemberAccountError, RegisterMemberAccountError, ResetPasswordError, SendVerificationCodeError, UpdateMemberAccountError, UpdateMemberVerificationError, UpdateReferralCodeError, UploadPrivateImageFileError, VerifyMobileNumberError } from './types';
3
3
 
4
- type E = ClaimCashbackBonusError | CreateDepositError | UploadPrivateImageFileError | CreateGameSessionError | EndGameSessionError__Legacy | RegisterMemberAccountError | RegisterMayaMemberAccountError | UpdateMemberAccountError | ResetPasswordError | SendVerificationCodeError | VerifyMobileNumberError | CreateMemberVerificationError | UpdateMemberVerificationError | PointsToCashConversionError | CreateWithdrawalError | CreateSessionError | RefreshSessionError | AuthenticateError | UpdateReferralCodeError;
4
+ type E = ClaimCashbackBonusError | CreateDepositError | UploadPrivateImageFileError | CreateGameSessionError | EndGameSessionError | RegisterMemberAccountError | RegisterMayaMemberAccountError | UpdateMemberAccountError | ResetPasswordError | SendVerificationCodeError | VerifyMobileNumberError | CreateMemberVerificationError | UpdateMemberVerificationError | PointsToCashConversionError | CreateWithdrawalError | CreateSessionError | RefreshSessionError | AuthenticateError | UpdateReferralCodeError;
5
5
  export declare function createOperationError<T extends E>(code: T): OperationError<T>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { GraphQLClient } from '../utils/graphql-client';
2
2
  import { OperationResult } from '../utils/types';
3
- import { AvailablePromosQueryVariables, Bonus, Cashback, CashbackBonus, ClaimCashbackBonusError, ClaimCashbackBonusMutationVariables, CreateBankWithdrawalMutationVariables, CreateDepositError, CreateGCashDepositMutationVariables, CreateGCashWithdrawalMutationVariables, CreateGameSessionError, CreateGameSessionMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaDepositMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError, Deposit, DepositQueryVariables, EndGameSessionMutationVariables, Game, GameSession, GameSessionQueryVariables, GamesByNameQueryVariables, GamesQueryVariables, MayaSession, MayaSessionQueryVariables, PaginatedQueryResult, PointsToCashConversionError, PointsToCashConversionMutationVariables, PointsWallet, Promo, Wallet } from './types';
3
+ import { AvailablePromosQueryVariables, Bonus, Cashback, CashbackBonus, ClaimCashbackBonusError, ClaimCashbackBonusMutationVariables, CreateBankWithdrawalMutationVariables, CreateDepositError, CreateGCashDepositMutationVariables, CreateGCashWithdrawalMutationVariables, CreateGameSessionError, CreateGameSessionMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaDepositMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError, Deposit, DepositQueryVariables, EndGameSessionMutationVariables, GameSession, GameSessionQueryVariables, MayaSession, MayaSessionQueryVariables, PointsToCashConversionError, PointsToCashConversionMutationVariables, PointsWallet, Promo, Wallet } from './types';
4
4
 
5
5
  export declare class WalletService {
6
6
  private client;
@@ -24,17 +24,6 @@ export declare class WalletService {
24
24
  pointsWallet(): Promise<OperationResult<never, PointsWallet | null | undefined>>;
25
25
  pointsToCashConversion(variables: PointsToCashConversionMutationVariables): Promise<OperationResult<PointsToCashConversionError>>;
26
26
  mayaSession(variables: MayaSessionQueryVariables): Promise<OperationResult<never, MayaSession | null | undefined>>;
27
- /** @deprecated */
28
- games(variables?: GamesQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Game>>>;
29
- /** @deprecated */
30
- gamesByName(variables?: GamesByNameQueryVariables): Promise<{
31
- ok: false;
32
- data?: never;
33
- error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError">;
34
- } | {
35
- ok: true;
36
- data: Game[];
37
- }>;
38
27
  gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never, GameSession | null | undefined>>;
39
28
  createGameSession(variables: CreateGameSessionMutationVariables): Promise<OperationResult<CreateGameSessionError>>;
40
29
  endGameSession(variables: EndGameSessionMutationVariables): Promise<OperationResult>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.73",
4
+ "version": "0.0.75",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",