@opexa/portal-sdk 0.0.29 → 0.0.30

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, 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';
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, 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;
@@ -291,6 +291,7 @@ export declare class Sdk {
291
291
  pointsWallet(): Promise<PointsWalletReturn>;
292
292
  pointsToCashConversion(amount: number): Promise<PointsToCashConversionReturn>;
293
293
  pointsWalletTransactions(input?: PointsWalletTransactionsInput): Promise<PointsWalletTransactionsReturn>;
294
+ activityRecords(input?: ActivityRecordsInput): Promise<ActivityRecordsReturn>;
294
295
  private addAreaCode;
295
296
  }
296
297
  export default Sdk;
@@ -31,6 +31,7 @@ export declare class Transformer {
31
31
  file: (data: Internal.File) => External.File;
32
32
  pointsWallet: (data: Internal.PointsWallet) => External.PointsWallet;
33
33
  pointsWalletTransaction: (data: Internal.PointsWalletTransaction) => External.PointsWalletTransaction;
34
+ activityRecord: (data: Internal.ActivityRecord) => External.ActivityRecord;
34
35
  };
35
36
  private site;
36
37
  private platform;
@@ -55,5 +56,6 @@ export declare class Transformer {
55
56
  private file;
56
57
  private pointsWallet;
57
58
  private pointsWalletTransaction;
59
+ private activityRecord;
58
60
  }
59
61
  export {};
@@ -477,6 +477,7 @@ export interface Announcement {
477
477
  type: AnnouncementType;
478
478
  title: string;
479
479
  status: AnnouncementStatus;
480
+ /** @format html */
480
481
  message: string;
481
482
  activationStartDateTime: Date;
482
483
  activationEndDateTime: Date;
@@ -909,6 +910,7 @@ export interface Promo {
909
910
  status: 'READY';
910
911
  }>;
911
912
  status: PromoStatus;
913
+ /** @format html */
912
914
  description: string;
913
915
  minimumBonusAmount?: number;
914
916
  maximumBonusAmount?: number;
@@ -927,6 +929,7 @@ export interface Cashback {
927
929
  status: 'READY';
928
930
  }>;
929
931
  status: CashbackStatus;
932
+ /** @format html */
930
933
  description: string;
931
934
  activationStartDateTime: Date;
932
935
  activationEndDateTime: Date;
@@ -958,6 +961,17 @@ export interface CashbackBonus {
958
961
  export type CashbackBonusReturn = OperationResult<never, CashbackBonus[]>;
959
962
  export type ClaimCashbackBonusError = UnionAlias<Internal.ClaimCashbackBonusError>;
960
963
  export type ClaimCashbackBonusReturn = OperationResult<ClaimCashbackBonusError>;
964
+ export type ActivityRecordType = UnionAlias<Internal.ActivityRecordType>;
965
+ export interface ActivityRecord {
966
+ id: string;
967
+ type: ActivityRecordType;
968
+ /** @format html */
969
+ details: string;
970
+ dateTimeCreated: Date;
971
+ }
972
+ export interface ActivityRecordsInput extends Internal.ActivityRecordsQueryVariables {
973
+ }
974
+ export type ActivityRecordsReturn = OperationResult<never, PaginatedQueryResult<'activityRecords', ActivityRecord>>;
961
975
  export interface Site {
962
976
  id: string;
963
977
  name: string;
@@ -54,3 +54,4 @@ export declare const PROFILE_COMPLETION_QUERY: string;
54
54
  export declare const SEND_VERIFICATION_CODE_MUTATION: string;
55
55
  export declare const PLATFORM_QUERY: string;
56
56
  export declare const MAYA_SESSION_QUERY: string;
57
+ export declare const ACTIVITY_RECORDS_QUERY: string;
@@ -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, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
3
+ import { ActivityRecord, ActivityRecordsQueryVariables, 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;
@@ -12,4 +12,5 @@ export declare class ReportService {
12
12
  depositsCount(): Promise<OperationResult<never, number>>;
13
13
  member(): Promise<OperationResult<never, Member>>;
14
14
  pointsWalletTransactions(variables?: PointsWalletTransactionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<PointsWalletTransaction>>>;
15
+ activityRecords(variables?: ActivityRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<ActivityRecord>>>;
15
16
  }
@@ -906,3 +906,21 @@ export interface Site {
906
906
  export interface SiteQuery {
907
907
  data: Site;
908
908
  }
909
+ export type ActivityRecordType = 'REGISTRATION' | 'LOGIN' | 'DEPOSIT' | 'WITHDRAWAL' | 'BET' | 'CASHBACK_BONUS' | 'BONUS' | 'FIRST_DEPOSIT';
910
+ export interface ActivityRecord {
911
+ id: string;
912
+ type: ActivityRecordType;
913
+ details: Html;
914
+ dateTimeCreated: DateString;
915
+ }
916
+ export interface ActivityRecordsQuery {
917
+ member: PaginatedQuery<'activityRecords', ActivityRecord>;
918
+ }
919
+ export interface ActivityRecordsQueryVariables {
920
+ first?: number;
921
+ after?: string;
922
+ filter?: {
923
+ type?: EnumFilterField<ActivityRecordType>;
924
+ dateTimeCreated?: DateFilterField;
925
+ };
926
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.29",
4
+ "version": "0.0.30",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",