@opexa/portal-sdk 0.0.89 → 0.0.90

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, DownlinesByNameInput, DownlinesByNameReturn, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PaymentSettingsReturn, PlatformReturn, PlatformReturn__Next, PointsClubSettingsReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, RedeemPointsInput, RedeemPointsReturn, ReferralCodeReturn, ReferralCommissionReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeInput__Next, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateReferralCodeInput, UpdateReferralCodeReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UplinesByNameInput, UplinesByNameReturn, 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, DownlinesByNameInput, DownlinesByNameReturn, EndGameSessionReturn, FileReturn, GameReturn, GameSessionReturn, GamesInput, GamesReturn, LatestBetRecordsReturn, MayaSignInInput, MayaSignInReturn, MobileNumberSignInInput, TokenSignInInput, MobileNumberSignInReturn, NameAndPasswordSignInInput, NameAndPasswordSignInReturn, PaymentSettingsReturn, PlatformReturn, PlatformReturn__Next, PointsClubSettingsReturn, PointsWalletReturn, PointsWalletTransactionsInput, PointsWalletTransactionsReturn, ProfileCompletionReturn, PromosReturn, RedeemPointsInput, RedeemPointsReturn, ReferralCodeReturn, ReferralCommissionReturn, ReferralsInput, ReferralsReturn, RegisterMayaAccountInput, RegisterMayaAccountReturn, RemainingDailyWithdrawalsCountReturn, ResetPasswordInput, ResetPasswordReturn, SendVerificationCodeInput__Next, SendVerificationCodeReturn, SendVerificationCodeReturn__Next, SessionReturn, SiteReturn, SubmitVerificationDetailsInput, SubmitVerificationDetailsReturn, TransactionRecordsInput, TransactionRecordsReturn, UpdateAccountInput, UpdateAccountReturn, UpdateReferralCodeInput, UpdateReferralCodeReturn, UpdateVerificationDetailsInput, UpdateVerificationDetailsReturn, UplinesByNameInput, UplinesByNameReturn, UploadImageFileInput, UploadImageFileReturn, ValidateMayaSessionReturn, VerificationDetailsReturn, VerifyMobileNumberReturn, WalletReturn, WatchSessionInput, WithdrawalRecordsInput, WithdrawalRecordsReturn } from './types';
2
2
 
3
3
  export interface SdkConfig {
4
4
  site: string;
@@ -26,6 +26,7 @@ export declare class Sdk {
26
26
  signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
27
27
  signIn(input: MobileNumberSignInInput): Promise<MobileNumberSignInReturn>;
28
28
  signIn(input: MayaSignInInput): Promise<MayaSignInReturn>;
29
+ signIn(input: TokenSignInInput): Promise<MayaSignInReturn>;
29
30
  authenticate(input: AuthenticateInput): Promise<AuthenticateReturn>;
30
31
  signOut(): Promise<void>;
31
32
  watchSession(input: WatchSessionInput): () => void;
@@ -25,6 +25,10 @@ export interface NameAndPasswordSignInInput {
25
25
  name: string;
26
26
  password: string;
27
27
  }
28
+ export interface TokenSignInInput {
29
+ type: 'TOKEN';
30
+ token: string;
31
+ }
28
32
  export interface MobileNumberSignInInput {
29
33
  type: 'MOBILE_NUMBER';
30
34
  mobileNumber: string;
@@ -36,6 +40,7 @@ export interface MayaSignInInput {
36
40
  }
37
41
  export type MayaSignInReturn = OperationResult<SignInError>;
38
42
  export type MobileNumberSignInReturn = OperationResult<SignInError>;
43
+ export type TokenSignInReport = OperationResult<SignInError>;
39
44
  export type NameAndPasswordSignInReturn = OperationResult<SignInError, {
40
45
  '2FAEnabled': true;
41
46
  authenticator: Authenticator;
@@ -43,9 +48,9 @@ export type NameAndPasswordSignInReturn = OperationResult<SignInError, {
43
48
  '2FAEnabled': false;
44
49
  authenticator?: never;
45
50
  }>;
46
- export type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput;
51
+ export type SignInInput = NameAndPasswordSignInInput | MobileNumberSignInInput | MayaSignInInput | TokenSignInInput;
47
52
  export type SignInError = UnionAlias<Internal.CreateSessionError>;
48
- export type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn;
53
+ export type SignInReturn = NameAndPasswordSignInReturn | MobileNumberSignInReturn | MayaSignInReturn | TokenSignInReport;
49
54
  export type RefreshSessionError = UnionAlias<Internal.RefreshSessionError>;
50
55
  export interface SecurityQuestionAuthenticateInput extends Internal.SecurityQuestionAuthenticateInput {
51
56
  }
@@ -896,18 +896,28 @@ export type CreateSessionInput = {
896
896
  mobileNumber?: never;
897
897
  verificationCode?: never;
898
898
  sessionId?: never;
899
+ token?: never;
899
900
  } | {
900
901
  name?: never;
901
902
  password?: never;
902
903
  mobileNumber: string;
903
904
  verificationCode: string;
904
905
  sessionId?: never;
906
+ token?: never;
905
907
  } | {
906
908
  name?: never;
907
909
  password?: never;
908
910
  mobileNumber?: never;
909
911
  verificationCode?: never;
910
912
  sessionId: string;
913
+ token?: never;
914
+ } | {
915
+ name?: never;
916
+ password?: never;
917
+ mobileNumber?: never;
918
+ verificationCode?: never;
919
+ sessionId?: never;
920
+ token: string;
911
921
  };
912
922
  export type Authenticator = {
913
923
  type: 'SECURITY_QUESTION';
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@opexa/portal-sdk",
3
- "type": "module",
4
- "version": "0.0.89",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "typings": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "require": "./dist/index.js",
11
- "import": "./dist/index.mjs",
12
- "types": "./dist/index.d.ts"
13
- },
14
- "./package.json": "./package.json"
15
- },
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "files": [
20
- "dist"
21
- ],
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "tsc --noEmit && vite build --mode library",
25
- "test": "vitest",
26
- "release": "release-it"
27
- },
28
- "dependencies": {
29
- "@opexa/object-id": "0.1.6"
30
- },
31
- "devDependencies": {
32
- "@ark-ui/react": "3.5.0",
33
- "@faker-js/faker": "8.4.1",
34
- "@fontsource/fira-code": "5.0.18",
35
- "@fontsource/inter": "5.0.19",
36
- "@hookform/resolvers": "3.9.0",
37
- "@types/node": "20.14.11",
38
- "@types/react": "18.3.3",
39
- "@types/react-dom": "18.3.0",
40
- "@untitled-theme/icons-react": "0.10.5",
41
- "@vitejs/plugin-react-swc": "3.7.0",
42
- "autoprefixer": "10.4.19",
43
- "clsx": "2.1.1",
44
- "date-fns": "3.6.0",
45
- "graphql-config": "5.0.3",
46
- "msw": "2.3.2",
47
- "postcss": "8.4.39",
48
- "react": "18.3.1",
49
- "react-dom": "18.3.1",
50
- "react-hook-form": "7.52.1",
51
- "react-router-dom": "6.25.1",
52
- "release-it": "17.6.0",
53
- "shiki": "1.11.0",
54
- "tailwind-variants": "0.2.1",
55
- "tailwindcss": "3.4.6",
56
- "typescript": "5.5.4",
57
- "vite": "5.3.4",
58
- "vite-plugin-dts": "3.9.1",
59
- "vite-plugin-node-polyfills": "0.22.0",
60
- "vite-tsconfig-paths": "4.3.2",
61
- "vitest": "2.0.4",
62
- "zod": "3.23.8"
63
- },
64
- "release-it": {
65
- "git": {
66
- "commitMessage": "chore: release ${npm.name} v${version}",
67
- "tagName": "${npm.name}@${version}"
68
- },
69
- "github": {
70
- "release": false
71
- },
72
- "hooks": {
73
- "before:init": [
74
- "pnpm test"
75
- ],
76
- "after:bump": [
77
- "pnpm build"
78
- ]
79
- }
80
- }
81
- }
1
+ {
2
+ "name": "@opexa/portal-sdk",
3
+ "type": "module",
4
+ "version": "0.0.90",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "typings": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./dist/index.js",
11
+ "import": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "tsc --noEmit && vite build --mode library",
25
+ "test": "vitest",
26
+ "release": "release-it"
27
+ },
28
+ "dependencies": {
29
+ "@opexa/object-id": "0.1.6"
30
+ },
31
+ "devDependencies": {
32
+ "@ark-ui/react": "3.5.0",
33
+ "@faker-js/faker": "8.4.1",
34
+ "@fontsource/fira-code": "5.0.18",
35
+ "@fontsource/inter": "5.0.19",
36
+ "@hookform/resolvers": "3.9.0",
37
+ "@types/node": "20.14.11",
38
+ "@types/react": "18.3.3",
39
+ "@types/react-dom": "18.3.0",
40
+ "@untitled-theme/icons-react": "0.10.5",
41
+ "@vitejs/plugin-react-swc": "3.7.0",
42
+ "autoprefixer": "10.4.19",
43
+ "clsx": "2.1.1",
44
+ "date-fns": "3.6.0",
45
+ "graphql-config": "5.0.3",
46
+ "msw": "2.3.2",
47
+ "postcss": "8.4.39",
48
+ "react": "18.3.1",
49
+ "react-dom": "18.3.1",
50
+ "react-hook-form": "7.52.1",
51
+ "react-router-dom": "6.25.1",
52
+ "release-it": "17.6.0",
53
+ "shiki": "1.11.0",
54
+ "tailwind-variants": "0.2.1",
55
+ "tailwindcss": "3.4.6",
56
+ "typescript": "5.5.4",
57
+ "vite": "5.3.4",
58
+ "vite-plugin-dts": "3.9.1",
59
+ "vite-plugin-node-polyfills": "0.22.0",
60
+ "vite-tsconfig-paths": "4.3.2",
61
+ "vitest": "2.0.4",
62
+ "zod": "3.23.8"
63
+ },
64
+ "release-it": {
65
+ "git": {
66
+ "commitMessage": "chore: release ${npm.name} v${version}",
67
+ "tagName": "${npm.name}@${version}"
68
+ },
69
+ "github": {
70
+ "release": false
71
+ },
72
+ "hooks": {
73
+ "before:init": [
74
+ "pnpm test"
75
+ ],
76
+ "after:bump": [
77
+ "pnpm build"
78
+ ]
79
+ }
80
+ }
81
+ }