@opexa/portal-sdk 0.0.57 → 0.0.59

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,17 +1,13 @@
1
+ import { GraphQLClientFetchOptions } from '../utils/graphql-client';
1
2
  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, GameSessionReturn, GamesByNameInput, GamesByNameReturn, GamesInput, GamesReturn, GamesReturn__Next, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PlatformReturn, PointsToCashConversionReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, ReferralCodeReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeReturn, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateReferralCodeInput, UpdateReferralCodeReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UploadImageFileInput, UploadImageFileReturn, ValidateMayaSessionReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
2
3
 
3
4
  export interface SdkConfig {
4
- readonly site: string;
5
- readonly sitePlatform: string;
6
- readonly platform: string;
7
- /**
8
- * @default 'development'
9
- */
10
- readonly environment?: 'production' | 'development';
11
- /**
12
- * @default false
13
- */
14
- readonly logs?: boolean;
5
+ site: string;
6
+ sitePlatform: string;
7
+ platform: string;
8
+ environment?: 'production' | 'development';
9
+ logs?: boolean;
10
+ graphql?: GraphQLClientFetchOptions;
15
11
  }
16
12
  export declare class Sdk {
17
13
  private cmsPortalService;
@@ -202,6 +202,10 @@ export interface CreateAccountInput {
202
202
  * - _format_: `url`
203
203
  */
204
204
  domain?: string;
205
+ /**
206
+ * @deprecated use `referralCode`
207
+ */
208
+ btag?: string;
205
209
  /**
206
210
  * @validation
207
211
  * - _min_: `4`
@@ -210,6 +214,12 @@ export interface CreateAccountInput {
210
214
  */
211
215
  verificationCode?: string;
212
216
  reCAPTCHAResponse?: string;
217
+ /**
218
+ * @validation
219
+ * - _min_: `4`
220
+ * - _max_: `12`
221
+ * - _pattern_: `/^[A-Z0-9]+$/`
222
+ */
213
223
  referralCode?: string;
214
224
  }
215
225
  export type CreateAccountError = UnionAlias<Internal.RegisterMemberAccountError>;
@@ -683,10 +683,14 @@ export interface RegisterMemberAccountMutationVariables {
683
683
  mobileNumber: string;
684
684
  birthDay: string;
685
685
  domain?: string;
686
+ /**
687
+ * @deprecated use `referralCode` instead
688
+ */
686
689
  btag?: string;
687
690
  };
688
691
  verificationCode?: string;
689
692
  reCAPTCHAResponse?: string;
693
+ referralCode?: string;
690
694
  }
691
695
  export interface RegisterMayaMemberAccountMutationVariables {
692
696
  input: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.57",
4
+ "version": "0.0.59",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",