@opexa/portal-sdk 0.0.43 → 0.0.45

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.
@@ -518,6 +518,7 @@ export interface BetRecord {
518
518
  game: {
519
519
  name: string;
520
520
  type: GameType;
521
+ images: string[];
521
522
  provider: GameProvider;
522
523
  };
523
524
  status: BetRecordStatus;
@@ -558,6 +559,7 @@ export interface LatestBetRecord {
558
559
  game: {
559
560
  name: string;
560
561
  type: GameType;
562
+ images: string[];
561
563
  provider: GameProvider;
562
564
  };
563
565
  bet: number;
@@ -731,7 +733,24 @@ export interface CreateMayaAppDepositInput {
731
733
  */
732
734
  promo?: string;
733
735
  }
734
- export type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput;
736
+ export interface CreateMayaAppDepositInput__Next {
737
+ /**
738
+ * @example
739
+ * ```ts
740
+ * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
741
+ *
742
+ * const id = ObjectId.generate(ObjectType.Deposit).toString()
743
+ * ```
744
+ */
745
+ id?: string;
746
+ type: 'MAYA_APP [NEXT]';
747
+ amount: number;
748
+ /**
749
+ * @description id of the promo
750
+ */
751
+ promo?: string;
752
+ }
753
+ export type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput | CreateMayaAppDepositInput__Next;
735
754
  export type CreateDepositError = UnionAlias<Internal.CreateDepositError>;
736
755
  export type CreateDepositReturn = OperationResult<CreateDepositError, {
737
756
  id: string;
@@ -886,7 +905,27 @@ export interface CreateMayaAppWithdrawalInput {
886
905
  */
887
906
  transactionPassword: string;
888
907
  }
889
- export type CreateWithdrawalInput = CreateBankWithdrawalInput | CreateGCashWithdrawalInput | CreateMayaWithdrawalInput | CreateMayaAppWithdrawalInput;
908
+ export interface CreateMayaAppWithdrawalInput__Next {
909
+ /**
910
+ * @example
911
+ * ```ts
912
+ * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
913
+ *
914
+ * const id = ObjectId.generate(ObjectType.Withdrawal).toString()
915
+ * ```
916
+ */
917
+ id?: string;
918
+ type: 'MAYA_APP [NEXT]';
919
+ amount: number;
920
+ /**
921
+ * @validation
922
+ * - _min_: `8`
923
+ * - _max_: `30`
924
+ * - _pattern_: `/^[a-z0-9]{8,30}$/`
925
+ */
926
+ transactionPassword: string;
927
+ }
928
+ export type CreateWithdrawalInput = CreateBankWithdrawalInput | CreateGCashWithdrawalInput | CreateMayaWithdrawalInput | CreateMayaAppWithdrawalInput | CreateMayaAppWithdrawalInput__Next;
890
929
  export type CreateWithdrawalError = UnionAlias<Internal.CreateWithdrawalError>;
891
930
  export type CreateWithdrawalReturn = OperationResult<CreateWithdrawalError, {
892
931
  id: string;
@@ -18,12 +18,14 @@ export declare const WITHDRAWAL_RECORDS_QUERY: string;
18
18
  export declare const CREATE_GCASH_WITHDRAWAL_MUTATION: string;
19
19
  export declare const CREATE_MAYA_WITHDRAWAL_MUTATION: string;
20
20
  export declare const CREATE_MAYA_APP_WITHDRAWAL_MUTATION: string;
21
+ export declare const CREATE_MAYA_APP_WITHDRAWAL_MUTATION__NEXT: string;
21
22
  export declare const CREATE_BANK_WITHDRAWAL_MUTATION: string;
22
23
  export declare const REMAINING_DAILY_WITHDRAWALS_COUNT_QUERY: string;
23
24
  export declare const DEPOSIT_RECORDS_QUERY: string;
24
25
  export declare const CREATE_GCASH_DEPOSIT_MUTATION: string;
25
26
  export declare const CREATE_MAYA_DEPOSIT_MUTATION: string;
26
27
  export declare const CREATE_MAYA_APP_DEPOSIT_MUTATION: string;
28
+ export declare const CREATE_MAYA_APP_DEPOSIT_MUTATION__NEXT: string;
27
29
  export declare const DEPOSIT_QUERY: string;
28
30
  export declare const DEPOSITS_COUNT_QUERY: string;
29
31
  export declare const BET_RECORDS_QUERY: string;
@@ -114,7 +114,7 @@ export interface AnnouncementsQueryVariables {
114
114
  activationEndDateTime?: DateFilterField;
115
115
  };
116
116
  }
117
- export type GameType = 'SLOTS' | 'SPORTS' | 'BINGO' | 'FISHING' | 'LIVE' | 'GAMES' | 'TABLE';
117
+ export type GameType = 'SLOTS' | 'SPORTS' | 'FISHING' | 'BINGO' | 'LIVE' | 'GAMES' | 'TABLE' | 'SPECIALTY';
118
118
  export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'BTI' | 'DG' | 'PLAYTECH' | 'E2E' | 'EVOLUTION' | 'EVOLUTION_NETENT' | 'EVOLUTION_REDTIGER' | 'MEGABALL' | 'DARWIN' | 'RTG' | 'DRBINGO' | 'HOLLYWOODTV' | 'CQ9' | 'JDB' | 'HABANERO' | 'PRAGMATICPLAY' | 'SPINIX' | 'JOKER' | 'HACKSAW' | 'EVOLUTIONNETENT' | 'JDBGTF' | 'JDBSPRIBE' | 'MICROGAMING' | 'RELAXGAMING' | 'EVOPLAY' | 'BOOONGO' | 'BGAMING';
119
119
  export type GameStatus = 'ACTIVE' | 'INACTIVE';
120
120
  /** @deprecated */
@@ -124,7 +124,7 @@ export interface Game {
124
124
  type: GameType;
125
125
  provider: GameProvider;
126
126
  }
127
- export type GameTag = 'HOT' | 'POPULAR' | 'NEW' | 'TOP' | (string & {});
127
+ export type GameTag = 'HOT' | 'hot' | 'NEW' | 'new' | 'TOP' | 'top' | 'POPULAR' | 'popular' | (string & {});
128
128
  export interface Game__Next extends Game {
129
129
  game: string;
130
130
  tags?: GameTag[];
@@ -235,6 +235,7 @@ export interface BetRecordMetadata {
235
235
  export interface BetRecord {
236
236
  id: string;
237
237
  game: {
238
+ id: string;
238
239
  name: string;
239
240
  type: GameType;
240
241
  provider: GameProvider;
@@ -280,6 +281,7 @@ export interface LatestBetRecord {
280
281
  name: string;
281
282
  };
282
283
  game: {
284
+ id: string;
283
285
  name: string;
284
286
  type: GameType;
285
287
  provider: GameProvider;
@@ -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, CreateGameSessionError, CreateGameSessionMutationVariables, CreateGCashDepositMutationVariables, CreateGCashWithdrawalMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaDepositMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError, Deposit, DepositQueryVariables, EndGameSessionMutationVariables, Game, GamesByNameQueryVariables, GameSession, GameSessionQueryVariables, 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, Game, GameSession, GameSessionQueryVariables, GamesByNameQueryVariables, GamesQueryVariables, MayaSession, MayaSessionQueryVariables, PaginatedQueryResult, PointsToCashConversionError, PointsToCashConversionMutationVariables, PointsWallet, Promo, Wallet } from './types';
4
4
 
5
5
  export declare class WalletService {
6
6
  private client;
@@ -16,9 +16,11 @@ export declare class WalletService {
16
16
  createGCashDeposit(variables: CreateGCashDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
17
17
  createMayaDeposit(variables: CreateMayaDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
18
18
  createMayaAppDeposit(variables: CreateMayaAppDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
19
+ createMayaAppDeposit__next(variables: CreateMayaAppDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
19
20
  createGCashWithdrawal(variables: CreateGCashWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
20
21
  createMayaWithdrawal(variables: CreateMayaWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
21
22
  createMayaAppWithdrawal(variables: CreateMayaAppWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
23
+ createMayaAppWithdrawal__next(variables: CreateMayaAppWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
22
24
  createBankWithdrawal(variables: CreateBankWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
23
25
  remainingDailyWithdrawalsCount(): Promise<OperationResult<never, number>>;
24
26
  pointsWallet(): Promise<OperationResult<never, PointsWallet | null | undefined>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.43",
4
+ "version": "0.0.45",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",