@opexa/portal-sdk 0.0.28 → 0.0.29

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, 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, ProfileCompletionReturn, PromosReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
1
+ import { AccountReturn, 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, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
2
2
 
3
3
  export interface SdkConfig {
4
4
  site: string;
@@ -290,6 +290,7 @@ export declare class Sdk {
290
290
  uploadImageFile(input: UploadImageFileInput): Promise<UploadImageFileReturn>;
291
291
  pointsWallet(): Promise<PointsWalletReturn>;
292
292
  pointsToCashConversion(amount: number): Promise<PointsToCashConversionReturn>;
293
+ pointsWalletTransactions(input?: PointsWalletTransactionsInput): Promise<PointsWalletTransactionsReturn>;
293
294
  private addAreaCode;
294
295
  }
295
296
  export default Sdk;
@@ -30,6 +30,7 @@ export declare class Transformer {
30
30
  cashbackBonus: (data: Internal.CashbackBonus) => External.CashbackBonus;
31
31
  file: (data: Internal.File) => External.File;
32
32
  pointsWallet: (data: Internal.PointsWallet) => External.PointsWallet;
33
+ pointsWalletTransaction: (data: Internal.PointsWalletTransaction) => External.PointsWalletTransaction;
33
34
  };
34
35
  private site;
35
36
  private platform;
@@ -53,5 +54,6 @@ export declare class Transformer {
53
54
  private cashbackBonus;
54
55
  private file;
55
56
  private pointsWallet;
57
+ private pointsWalletTransaction;
56
58
  }
57
59
  export {};
@@ -396,6 +396,17 @@ export interface PointsWallet {
396
396
  export type PointsWalletReturn = OperationResult<never, PointsWallet | null>;
397
397
  export type PointsToCashConversionError = UnionAlias<Internal.PointsToCashConversionError>;
398
398
  export type PointsToCashConversionReturn = OperationResult<PointsToCashConversionError>;
399
+ export type PointsWalletTransactionType = UnionAlias<Internal.PointsWalletTransactionType>;
400
+ export interface PointsWalletTransaction {
401
+ id: string;
402
+ type: PointsWalletTransactionType;
403
+ amount: number;
404
+ balance: number;
405
+ dateTimeCreated: Date;
406
+ }
407
+ export interface PointsWalletTransactionsInput extends Internal.PointsWalletTransactionsQueryVariables {
408
+ }
409
+ export type PointsWalletTransactionsReturn = OperationResult<never, PaginatedQueryResult<'pointsWalletTransactions', PointsWalletTransaction>>;
399
410
  export type GameType = UnionAlias<Internal.GameType>;
400
411
  export type GameProvider = UnionAlias<Internal.GameProvider>;
401
412
  /** @deprecated use `Games__Next` */
@@ -4,6 +4,7 @@ export declare const UPLOAD_PRIVATE_IMAGE_FILE_MUTATION: string;
4
4
  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
+ export declare const POINTS_WALLET_TRANSACTIONS_QUERY: string;
7
8
  /** @deprecated */
8
9
  export declare const GAMES_QUERY: string;
9
10
  /** @deprecated */
@@ -1,6 +1,6 @@
1
1
  import { GraphQLClient } from '../utils/graphql-client';
2
2
  import { OperationResult } from '../utils/types';
3
- import { BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, Member, PaginatedQueryResult, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
3
+ import { BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, Member, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
4
4
 
5
5
  export declare class ReportService {
6
6
  private client;
@@ -11,4 +11,5 @@ export declare class ReportService {
11
11
  depositRecords(variables?: DepositRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<DepositRecord>>>;
12
12
  depositsCount(): Promise<OperationResult<never, number>>;
13
13
  member(): Promise<OperationResult<never, Member>>;
14
+ pointsWalletTransactions(variables?: PointsWalletTransactionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<PointsWalletTransaction>>>;
14
15
  }
@@ -593,6 +593,24 @@ export interface PointsToCashConversionMutation {
593
593
  __typename: PointsToCashConversionError;
594
594
  };
595
595
  }
596
+ export type PointsWalletTransactionType = 'TURNOVER_COMMISSION' | 'POINTS_TO_CASH_CONVERSION';
597
+ export interface PointsWalletTransaction {
598
+ id: string;
599
+ type: PointsWalletTransactionType;
600
+ amount: Decimal;
601
+ balance: Decimal;
602
+ dateTimeCreated: DateString;
603
+ }
604
+ export interface PointsWalletTransactionsQueryVariables {
605
+ first?: number;
606
+ after?: string;
607
+ filter?: {
608
+ type?: EnumFilterField<PointsWalletTransactionType>;
609
+ };
610
+ }
611
+ export interface PointsWalletTransactionsQuery {
612
+ member: PaginatedQuery<'pointsWalletTransactions', PointsWalletTransaction>;
613
+ }
596
614
  export interface Member {
597
615
  dateTimeLastActive?: DateString | null;
598
616
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",