@opexa/portal-sdk 0.0.21 → 0.0.22
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/index.js +466 -469
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +902 -868
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +8 -23
- package/dist/sdk/session-manager.d.ts +8 -3
- package/dist/sdk/types.d.ts +141 -98
- package/dist/services/account.service.d.ts +1 -4
- package/dist/services/auth.service.d.ts +2 -4
- package/dist/services/file.service.d.ts +1 -1
- package/dist/services/game.service.d.ts +11 -6
- package/dist/services/index.d.ts +0 -16
- package/dist/services/portal.service.d.ts +1 -1
- package/dist/services/queries.d.ts +54 -0
- package/dist/services/report.service.d.ts +1 -6
- package/dist/services/types.d.ts +780 -8
- package/dist/services/utils.d.ts +2 -9
- package/dist/services/wallet.service.d.ts +17 -10
- package/dist/utils/clamp.d.ts +1 -0
- package/dist/utils/pollable.d.ts +28 -0
- package/package.json +4 -1
- package/dist/services/announcement.d.ts +0 -29
- package/dist/services/bet-record.d.ts +0 -65
- package/dist/services/bonus.d.ts +0 -45
- package/dist/services/cashback.d.ts +0 -20
- package/dist/services/deposit.d.ts +0 -90
- package/dist/services/file.d.ts +0 -49
- package/dist/services/game.d.ts +0 -98
- package/dist/services/member.d.ts +0 -202
- package/dist/services/platform.d.ts +0 -38
- package/dist/services/points.d.ts +0 -24
- package/dist/services/promo.d.ts +0 -33
- package/dist/services/session.d.ts +0 -80
- package/dist/services/transaction.d.ts +0 -25
- package/dist/services/wallet.d.ts +0 -14
- package/dist/services/withdrawal.d.ts +0 -114
package/dist/services/utils.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { OperationError } from '../utils/types';
|
|
2
|
-
import { ClaimCashbackBonusError } from './
|
|
3
|
-
import { CreateDepositError } from './deposit';
|
|
4
|
-
import { UploadPrivateImageFileError } from './file';
|
|
5
|
-
import { CreateGameSessionError } from './game';
|
|
6
|
-
import { CreateMemberVerificationError, RegisterMemberAccountError, ResetPasswordError, SendVerificationCodeError, UpdateMemberAccountError, UpdateMemberVerificationError, VerifyMobileNumberError } from './member';
|
|
7
|
-
import { PointsToCashConversionError } from './points';
|
|
8
|
-
import { AuthenticateError, CreateSessionError, RefreshSessionError } from './session';
|
|
9
|
-
import { CreateWithdrawalError } from './withdrawal';
|
|
2
|
+
import { AuthenticateError, ClaimCashbackBonusError, CreateDepositError, CreateGameSessionError, CreateMemberVerificationError, CreateSessionError, CreateWithdrawalError, EndGameSessionError__Legacy, PointsToCashConversionError, RefreshSessionError, RegisterMemberAccountError, ResetPasswordError, SendVerificationCodeError, UpdateMemberAccountError, UpdateMemberVerificationError, UploadPrivateImageFileError, VerifyMobileNumberError } from './types';
|
|
10
3
|
|
|
11
|
-
type E = ClaimCashbackBonusError | CreateDepositError | UploadPrivateImageFileError | CreateGameSessionError | RegisterMemberAccountError | UpdateMemberAccountError | ResetPasswordError | SendVerificationCodeError | VerifyMobileNumberError | CreateMemberVerificationError | UpdateMemberVerificationError | PointsToCashConversionError | CreateWithdrawalError | CreateSessionError | RefreshSessionError | AuthenticateError;
|
|
4
|
+
type E = ClaimCashbackBonusError | CreateDepositError | UploadPrivateImageFileError | CreateGameSessionError | EndGameSessionError__Legacy | RegisterMemberAccountError | UpdateMemberAccountError | ResetPasswordError | SendVerificationCodeError | VerifyMobileNumberError | CreateMemberVerificationError | UpdateMemberVerificationError | PointsToCashConversionError | CreateWithdrawalError | CreateSessionError | RefreshSessionError | AuthenticateError;
|
|
12
5
|
export declare function createOperationError<T extends E>(code: T): OperationError<T>;
|
|
13
6
|
export {};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
+
import { GraphQLClient } from '../utils/graphql-client';
|
|
1
2
|
import { OperationResult } from '../utils/types';
|
|
2
|
-
import { Bonus, CashbackBonus, ClaimCashbackBonusError, ClaimCashbackBonusMutationVariables } from './
|
|
3
|
-
import { Cashback } from './cashback';
|
|
4
|
-
import { CreateDepositError, CreateGCashDepositMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaDepositMutationVariables, Deposit, DepositQueryVariables } from './deposit';
|
|
5
|
-
import { GameService } from './game.service';
|
|
6
|
-
import { PointsToCashConversionError, PointsToCashConversionMutationVariables, PointsWallet } from './points';
|
|
7
|
-
import { AvailablePromosQueryVariables, Promo } from './promo';
|
|
8
|
-
import { MayaSession, MayaSessionQueryVariables } from './session';
|
|
9
|
-
import { Wallet } from './wallet';
|
|
10
|
-
import { CreateBankWithdrawalMutationVariables, CreateGCashWithdrawalMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError } from './withdrawal';
|
|
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';
|
|
11
4
|
|
|
12
|
-
export declare class WalletService
|
|
5
|
+
export declare class WalletService {
|
|
6
|
+
private client;
|
|
7
|
+
constructor(client: GraphQLClient);
|
|
13
8
|
promos(): Promise<OperationResult<never, Promo[]>>;
|
|
14
9
|
cashbacks(): Promise<OperationResult<never, Cashback[]>>;
|
|
15
10
|
availablePromos(variables?: AvailablePromosQueryVariables): Promise<OperationResult<never, Promo[]>>;
|
|
@@ -29,4 +24,16 @@ export declare class WalletService extends GameService {
|
|
|
29
24
|
pointsWallet(): Promise<OperationResult<never, PointsWallet | null | undefined>>;
|
|
30
25
|
pointsToCashConversion(variables: PointsToCashConversionMutationVariables): Promise<OperationResult<PointsToCashConversionError>>;
|
|
31
26
|
mayaSession(variables: MayaSessionQueryVariables): Promise<OperationResult<never, MayaSession | null | undefined>>;
|
|
27
|
+
games(variables?: GamesQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Game>>>;
|
|
28
|
+
gamesByName(variables?: GamesByNameQueryVariables): Promise<{
|
|
29
|
+
ok: false;
|
|
30
|
+
data?: never;
|
|
31
|
+
error: import('../utils/types').OperationError<import('../utils/types').HttpError | "UnknownError"> | import('../utils/types').OperationError<never>;
|
|
32
|
+
} | {
|
|
33
|
+
ok: true;
|
|
34
|
+
data: Game[];
|
|
35
|
+
}>;
|
|
36
|
+
gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never, GameSession | null | undefined>>;
|
|
37
|
+
createGameSession(variables: CreateGameSessionMutationVariables): Promise<OperationResult<CreateGameSessionError>>;
|
|
38
|
+
endGameSession(variables: EndGameSessionMutationVariables): Promise<OperationResult>;
|
|
32
39
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Config<T> {
|
|
2
|
+
until(response: T): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* @default 1000
|
|
5
|
+
*/
|
|
6
|
+
interval?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @default 3
|
|
9
|
+
*/
|
|
10
|
+
maxAttempt?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const poll = pollable(
|
|
16
|
+
* fn,
|
|
17
|
+
* {
|
|
18
|
+
* until: (r) => r.ok,
|
|
19
|
+
* interval: 1000,
|
|
20
|
+
* maxAttempt: 5,
|
|
21
|
+
* }
|
|
22
|
+
* );
|
|
23
|
+
*
|
|
24
|
+
* poll()
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function pollable<Return, Args = never>(func: (...args: Args[]) => Promise<Return>, config: Config<Return>): (...args: Args[]) => Promise<Return>;
|
|
28
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opexa/portal-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.22",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@faker-js/faker": "8.4.1",
|
|
34
34
|
"@fontsource/fira-code": "5.0.18",
|
|
35
35
|
"@fontsource/inter": "5.0.19",
|
|
36
|
+
"@hookform/resolvers": "3.9.0",
|
|
36
37
|
"@types/node": "20.14.11",
|
|
37
38
|
"@types/react": "18.3.3",
|
|
38
39
|
"@types/react-dom": "18.3.0",
|
|
@@ -41,10 +42,12 @@
|
|
|
41
42
|
"autoprefixer": "10.4.19",
|
|
42
43
|
"clsx": "2.1.1",
|
|
43
44
|
"date-fns": "3.6.0",
|
|
45
|
+
"graphql-config": "5.0.3",
|
|
44
46
|
"msw": "2.3.2",
|
|
45
47
|
"postcss": "8.4.39",
|
|
46
48
|
"react": "18.3.1",
|
|
47
49
|
"react-dom": "18.3.1",
|
|
50
|
+
"react-hook-form": "7.52.1",
|
|
48
51
|
"react-router-dom": "6.25.1",
|
|
49
52
|
"release-it": "17.6.0",
|
|
50
53
|
"shiki": "1.11.0",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DateFilterField, DateString, EnumFilterField, Html, PaginatedQuery } from './types';
|
|
2
|
-
|
|
3
|
-
export type AnnouncementType = 'RELEASE' | 'SCHEDULED_MAINTENANCE';
|
|
4
|
-
export type AnnouncementStatus = 'ACTIVE' | 'INACTIVE';
|
|
5
|
-
export type AnnouncementVisibility = 'MEMBER' | 'OPERATOR' | 'GLOBAL';
|
|
6
|
-
export interface Announcement {
|
|
7
|
-
id: string;
|
|
8
|
-
type: AnnouncementType;
|
|
9
|
-
title: string;
|
|
10
|
-
status: AnnouncementStatus;
|
|
11
|
-
message: Html;
|
|
12
|
-
activationStartDateTime: DateString;
|
|
13
|
-
activationEndDateTime: DateString;
|
|
14
|
-
dateTimeCreated: DateString;
|
|
15
|
-
dateTimeLastUpdated: DateString;
|
|
16
|
-
}
|
|
17
|
-
export interface AnnouncementsQuery extends PaginatedQuery<'announcements', Announcement> {
|
|
18
|
-
}
|
|
19
|
-
export interface AnnouncementsQueryVariables {
|
|
20
|
-
first?: number;
|
|
21
|
-
after?: string;
|
|
22
|
-
filter?: {
|
|
23
|
-
type?: EnumFilterField<AnnouncementType>;
|
|
24
|
-
visibility?: EnumFilterField<AnnouncementVisibility>;
|
|
25
|
-
activationStartDateTime?: DateFilterField;
|
|
26
|
-
activationEndDateTime?: DateFilterField;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export declare const ANNOUNCEMENTS_QUERY: string;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { GameType, Game } from './game';
|
|
2
|
-
import { DateFilterField, DateString, Decimal, EnumFilterField, ObjectIdFilterField, PaginatedQuery, SortOrder, StringFilterField } from './types';
|
|
3
|
-
|
|
4
|
-
export type BetRecordStatus = 'STARTED' | 'SETTLED' | 'CANCELLED';
|
|
5
|
-
export interface BetRecordMetadata {
|
|
6
|
-
odds?: string | null;
|
|
7
|
-
}
|
|
8
|
-
export interface BetRecord {
|
|
9
|
-
id: string;
|
|
10
|
-
game: Game;
|
|
11
|
-
status: BetRecordStatus;
|
|
12
|
-
serialCode: string;
|
|
13
|
-
vendorRoundId?: string | null;
|
|
14
|
-
bet: Decimal;
|
|
15
|
-
payout: Decimal;
|
|
16
|
-
validBet: Decimal;
|
|
17
|
-
jackpotContribution: Decimal;
|
|
18
|
-
jackpotPayout: Decimal;
|
|
19
|
-
winloss?: Decimal | null;
|
|
20
|
-
dateTimeSettled?: DateString | null;
|
|
21
|
-
dateTimeCreated: DateString;
|
|
22
|
-
dateTimeLastUpdated: DateString;
|
|
23
|
-
betContent?: string | null;
|
|
24
|
-
contestName?: string | null;
|
|
25
|
-
externalCategory?: string | null;
|
|
26
|
-
metadata?: BetRecordMetadata | null;
|
|
27
|
-
}
|
|
28
|
-
export interface BetRecordsQuery {
|
|
29
|
-
member: PaginatedQuery<'betRecords', BetRecord>;
|
|
30
|
-
}
|
|
31
|
-
export interface BetRecordsQueryVariables {
|
|
32
|
-
first?: number;
|
|
33
|
-
after?: string;
|
|
34
|
-
sort?: SortOrder;
|
|
35
|
-
filter?: {
|
|
36
|
-
serialCode?: StringFilterField;
|
|
37
|
-
game?: ObjectIdFilterField;
|
|
38
|
-
game__externalId?: StringFilterField;
|
|
39
|
-
game__type?: EnumFilterField<GameType>;
|
|
40
|
-
game__provider?: EnumFilterField<string>;
|
|
41
|
-
dateTimeCreated?: DateFilterField;
|
|
42
|
-
vendorRoundId?: StringFilterField;
|
|
43
|
-
status?: EnumFilterField<BetRecordStatus>;
|
|
44
|
-
};
|
|
45
|
-
startDateTime?: DateFilterField;
|
|
46
|
-
endDateTime?: DateFilterField;
|
|
47
|
-
}
|
|
48
|
-
export declare const BET_RECORDS_QUERY: string;
|
|
49
|
-
export interface LatestBetRecord {
|
|
50
|
-
id: string;
|
|
51
|
-
member: {
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
};
|
|
55
|
-
game: Game;
|
|
56
|
-
bet: Decimal;
|
|
57
|
-
payout: Decimal;
|
|
58
|
-
validBet: Decimal;
|
|
59
|
-
dateTimeSettled: DateString;
|
|
60
|
-
dateTimeCreated: DateString;
|
|
61
|
-
}
|
|
62
|
-
export interface LatestBetRecordsQuery {
|
|
63
|
-
latestBetRecords: LatestBetRecord[];
|
|
64
|
-
}
|
|
65
|
-
export declare const LATEST_BET_RECORDS_QUERY: string;
|
package/dist/services/bonus.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { DepositRecord } from '..';
|
|
2
|
-
import { Cashback } from './cashback';
|
|
3
|
-
import { Promo } from './promo';
|
|
4
|
-
import { DateString, Decimal } from './types';
|
|
5
|
-
|
|
6
|
-
export interface Bonus {
|
|
7
|
-
id: string;
|
|
8
|
-
promo: Promo;
|
|
9
|
-
deposit?: Omit<DepositRecord, 'id' | 'depositNumber'> | null;
|
|
10
|
-
amount: Decimal;
|
|
11
|
-
balance: Decimal;
|
|
12
|
-
turnoverRequirement: Decimal;
|
|
13
|
-
currentTurnoverRequirementContribution: Decimal;
|
|
14
|
-
currentTurnoverRequirementContributionPercentage: Decimal;
|
|
15
|
-
expiration: DateString;
|
|
16
|
-
dateTimeCreated: DateString;
|
|
17
|
-
dateTimeLastUpdated: DateString;
|
|
18
|
-
}
|
|
19
|
-
export interface BonusQuery {
|
|
20
|
-
bonus?: Bonus | null;
|
|
21
|
-
}
|
|
22
|
-
export declare const BONUS_QUERY: string;
|
|
23
|
-
export interface CashbackBonus {
|
|
24
|
-
id: string;
|
|
25
|
-
balance: Decimal;
|
|
26
|
-
cashback: Cashback;
|
|
27
|
-
dateTimeCreated: DateString;
|
|
28
|
-
dateTimeLastUpdated: DateString;
|
|
29
|
-
}
|
|
30
|
-
export interface CashbackBonusesQuery {
|
|
31
|
-
cashbackBonuses: CashbackBonus[];
|
|
32
|
-
}
|
|
33
|
-
export declare const CASHBACK_BONUSES_QUERY: string;
|
|
34
|
-
export type ClaimCashbackBonusError = 'CashbackBonusDoesNotExistError';
|
|
35
|
-
export interface ClaimCashbackBonusMutation {
|
|
36
|
-
claimCashbackBonus?: null | {
|
|
37
|
-
__typename: ClaimCashbackBonusError;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export interface ClaimCashbackBonusMutationVariables {
|
|
41
|
-
input: {
|
|
42
|
-
id: string;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export declare const CLAIM_CASHBACK_BONUS_MUTATION: string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { File__Ready } from './file';
|
|
2
|
-
import { DateString, Html } from './types';
|
|
3
|
-
|
|
4
|
-
export type CashbackStatus = 'ACTIVE' | 'INACTIVE';
|
|
5
|
-
export interface Cashback {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
banner: File__Ready;
|
|
9
|
-
status: CashbackStatus;
|
|
10
|
-
description: Html;
|
|
11
|
-
activationStartDateTime: DateString;
|
|
12
|
-
activationEndDateTime: DateString;
|
|
13
|
-
dateTimeCreated: DateString;
|
|
14
|
-
dateTimeLastUpdated: DateString;
|
|
15
|
-
}
|
|
16
|
-
export interface CashbacksQuery {
|
|
17
|
-
cashbacks: Cashback[];
|
|
18
|
-
}
|
|
19
|
-
export declare const CASHBACK_FRAGMENT: string;
|
|
20
|
-
export declare const CASHBACKS_QUERY: string;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { DateFilterField, DateString, Decimal, EnumFilterField, PaginatedQuery, StringFilterField } from './types';
|
|
2
|
-
|
|
3
|
-
export type DepositRecordType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP';
|
|
4
|
-
export type DepositRecordStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED';
|
|
5
|
-
export interface DepositRecord {
|
|
6
|
-
id: string;
|
|
7
|
-
type: DepositRecordType;
|
|
8
|
-
status: DepositRecordStatus;
|
|
9
|
-
amount: Decimal;
|
|
10
|
-
netAmount: Decimal;
|
|
11
|
-
fee: Decimal;
|
|
12
|
-
reference?: string | null;
|
|
13
|
-
depositNumber: string;
|
|
14
|
-
dateTimeCreated: DateString;
|
|
15
|
-
dateTimeLastUpdated: DateString;
|
|
16
|
-
}
|
|
17
|
-
export interface DepositRecordsQuery {
|
|
18
|
-
member: PaginatedQuery<'depositRecords', DepositRecord>;
|
|
19
|
-
}
|
|
20
|
-
export interface DepositRecordsQueryVariables {
|
|
21
|
-
first?: number;
|
|
22
|
-
after?: string;
|
|
23
|
-
filter?: {
|
|
24
|
-
depositNumber?: StringFilterField;
|
|
25
|
-
type?: EnumFilterField<DepositRecordType>;
|
|
26
|
-
reference?: StringFilterField;
|
|
27
|
-
status?: EnumFilterField<DepositRecordStatus>;
|
|
28
|
-
dateTimeCreated?: DateFilterField;
|
|
29
|
-
dateTimeLastUpdated?: DateFilterField;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export declare const DEPOSIT_RECORDS_QUERY: string;
|
|
33
|
-
export type CreateDepositError = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'HasActiveBonusError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError';
|
|
34
|
-
export interface CreateGCashDepositMutation {
|
|
35
|
-
createGCashDeposit?: null | {
|
|
36
|
-
__typename: CreateDepositError;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export interface CreateGCashDepositMutationVariables {
|
|
40
|
-
input: {
|
|
41
|
-
id: string;
|
|
42
|
-
amount: Decimal;
|
|
43
|
-
promo?: string;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export declare const CREATE_GCASH_DEPOSIT_MUTATION: string;
|
|
47
|
-
export interface CreateMayaDepositMutation {
|
|
48
|
-
createMayaDeposit?: null | {
|
|
49
|
-
__typename: CreateDepositError;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export interface CreateMayaDepositMutationVariables {
|
|
53
|
-
input: {
|
|
54
|
-
id: string;
|
|
55
|
-
amount: Decimal;
|
|
56
|
-
promo?: string;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export declare const CREATE_MAYA_DEPOSIT_MUTATION: string;
|
|
60
|
-
export interface CreateMayaAppDepositMutation {
|
|
61
|
-
createMayaAppDeposit?: null | {
|
|
62
|
-
__typename: CreateDepositError;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export interface CreateMayaAppDepositMutationVariables {
|
|
66
|
-
input: {
|
|
67
|
-
id: string;
|
|
68
|
-
amount: Decimal;
|
|
69
|
-
promo?: string;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export declare const CREATE_MAYA_APP_DEPOSIT_MUTATION: string;
|
|
73
|
-
export type DepositType = 'GCASH' | 'MAYA' | 'MAYA_APP';
|
|
74
|
-
export interface Deposit extends Omit<DepositRecord, 'type' | 'depositNumber'> {
|
|
75
|
-
type: DepositType;
|
|
76
|
-
checkoutUrl?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface DepositQuery {
|
|
79
|
-
node?: Deposit | null;
|
|
80
|
-
}
|
|
81
|
-
export interface DepositQueryVariables {
|
|
82
|
-
id: string;
|
|
83
|
-
}
|
|
84
|
-
export declare const DEPOSIT_QUERY: string;
|
|
85
|
-
export interface DepositsCountQuery {
|
|
86
|
-
member: {
|
|
87
|
-
depositsCount: number;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
export declare const DEPOSITS_COUNT_QUERY: string;
|
package/dist/services/file.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DateString } from './types';
|
|
2
|
-
|
|
3
|
-
export type FileStatus = 'UPLOADING' | 'READY' | 'FAILED' | 'DELETED';
|
|
4
|
-
export interface File__Uploading {
|
|
5
|
-
id: string;
|
|
6
|
-
url?: never;
|
|
7
|
-
status: 'UPLOADING';
|
|
8
|
-
dateTimeCreated: DateString;
|
|
9
|
-
}
|
|
10
|
-
export interface File__Failed {
|
|
11
|
-
id: string;
|
|
12
|
-
url?: never;
|
|
13
|
-
status: 'FAILED';
|
|
14
|
-
dateTimeCreated: DateString;
|
|
15
|
-
}
|
|
16
|
-
export interface File__Deleted {
|
|
17
|
-
id: string;
|
|
18
|
-
url?: string | null;
|
|
19
|
-
status: 'DELETED';
|
|
20
|
-
dateTimeCreated: DateString;
|
|
21
|
-
}
|
|
22
|
-
export interface File__Ready {
|
|
23
|
-
id: string;
|
|
24
|
-
url: string;
|
|
25
|
-
status: 'READY';
|
|
26
|
-
dateTimeCreated: DateString;
|
|
27
|
-
}
|
|
28
|
-
export type File = File__Uploading | File__Failed | File__Deleted | File__Ready;
|
|
29
|
-
export interface FileQuery {
|
|
30
|
-
node?: File | null;
|
|
31
|
-
}
|
|
32
|
-
export interface FileQueryVariables {
|
|
33
|
-
id: string;
|
|
34
|
-
}
|
|
35
|
-
export declare const FILE_FRAGMENT: string;
|
|
36
|
-
export declare const FILE_QUERY: string;
|
|
37
|
-
export type UploadPrivateImageFileError = 'FileFormatNotSupportedError' | 'FileNameTooLongError' | 'FileSizeTooBigError';
|
|
38
|
-
export interface UploadPrivateImageFileMutation {
|
|
39
|
-
uploadPrivateImageFile?: null | {
|
|
40
|
-
__typename: UploadPrivateImageFileError;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export interface UploadPrivateImageFileMutationVariables {
|
|
44
|
-
input: {
|
|
45
|
-
id: string;
|
|
46
|
-
file: globalThis.File;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export declare const UPLOAD_PRIVATE_IMAGE_FILE_MUTATION: string;
|
package/dist/services/game.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { DateString, EnumFilterField, ObjectIdFilterField, PaginatedQuery, StringFilterField } from './types';
|
|
2
|
-
|
|
3
|
-
export type GameType = 'SLOTS' | 'SPORTS' | 'BINGO' | 'FISHING' | 'LIVE' | 'GAMES';
|
|
4
|
-
export type GameProvider__Next = 'DARWIN' | 'MEGABALL' | 'DRBINGO' | 'RTG';
|
|
5
|
-
export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'PLAYTECH' | 'CQ9' | 'JDB' | 'BOOONGO' | 'HABANERO' | 'RELAXGAMING' | 'DG' | 'E2E' | 'BTI' | GameProvider__Next;
|
|
6
|
-
export interface Game {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: GameType;
|
|
10
|
-
provider: GameProvider;
|
|
11
|
-
}
|
|
12
|
-
export interface GamesQuery extends PaginatedQuery<'games', Game> {
|
|
13
|
-
}
|
|
14
|
-
export interface GamesQueryVariables {
|
|
15
|
-
after?: string;
|
|
16
|
-
first?: number;
|
|
17
|
-
filter?: {
|
|
18
|
-
id?: ObjectIdFilterField;
|
|
19
|
-
name?: StringFilterField;
|
|
20
|
-
type?: EnumFilterField<GameType>;
|
|
21
|
-
provider?: EnumFilterField<GameProvider>;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const GAME_FRAGMENT: string;
|
|
25
|
-
export interface GameQuery {
|
|
26
|
-
node?: Game | null;
|
|
27
|
-
}
|
|
28
|
-
export interface GameQueryVariables {
|
|
29
|
-
id: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const GAME_QUERY: string;
|
|
32
|
-
export declare const GAMES_QUERY: string;
|
|
33
|
-
export interface GamesByNameQuery {
|
|
34
|
-
gamesByName: Game[];
|
|
35
|
-
}
|
|
36
|
-
export interface GamesByNameQueryVariables {
|
|
37
|
-
search: string;
|
|
38
|
-
first?: number;
|
|
39
|
-
filter?: GamesQueryVariables['filter'];
|
|
40
|
-
}
|
|
41
|
-
export declare const GAMES_BY_NAME_QUERY: string;
|
|
42
|
-
export type GameSessionStatus = 'PENDING' | 'STARTING' | 'READY' | 'ENDED' | 'CANCELLED';
|
|
43
|
-
interface GameSession__Common {
|
|
44
|
-
id: string;
|
|
45
|
-
dateTimeCreated: DateString;
|
|
46
|
-
dateTimeLastUpdated: DateString;
|
|
47
|
-
}
|
|
48
|
-
export interface GameSession__Pending extends GameSession__Common {
|
|
49
|
-
status: 'PENDING';
|
|
50
|
-
launchUrl?: never;
|
|
51
|
-
}
|
|
52
|
-
export interface GameSession__Starting extends GameSession__Common {
|
|
53
|
-
status: 'STARTING';
|
|
54
|
-
launchUrl?: never;
|
|
55
|
-
}
|
|
56
|
-
export interface GameSession__Ready extends GameSession__Common {
|
|
57
|
-
status: 'READY';
|
|
58
|
-
launchUrl: string;
|
|
59
|
-
}
|
|
60
|
-
export interface GameSession__Ended extends GameSession__Common {
|
|
61
|
-
status: 'ENDED';
|
|
62
|
-
launchUrl?: string | null;
|
|
63
|
-
}
|
|
64
|
-
export interface GameSession__Cancelled extends GameSession__Common {
|
|
65
|
-
status: 'CANCELLED';
|
|
66
|
-
launchUrl?: never;
|
|
67
|
-
}
|
|
68
|
-
export type GameSession = GameSession__Ready | GameSession__Pending | GameSession__Starting | GameSession__Ended | GameSession__Cancelled;
|
|
69
|
-
export interface GameSessionQuery {
|
|
70
|
-
node?: GameSession | null;
|
|
71
|
-
}
|
|
72
|
-
export interface GameSessionQueryVariables {
|
|
73
|
-
id: string;
|
|
74
|
-
}
|
|
75
|
-
export declare const GAME_SESSION_QUERY: string;
|
|
76
|
-
export type CreateGameSessionError = 'GameDoesNotExistError';
|
|
77
|
-
export interface CreateGameSessionMutation {
|
|
78
|
-
createGameSession?: null | {
|
|
79
|
-
__typename: CreateGameSessionError;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
export interface CreateGameSessionMutationVariables {
|
|
83
|
-
input: {
|
|
84
|
-
id: string;
|
|
85
|
-
game: string;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export declare const CREATE_GAME_SESSION_MUTATION: string;
|
|
89
|
-
export interface EndGameSessionMutation {
|
|
90
|
-
endGameSession: boolean;
|
|
91
|
-
}
|
|
92
|
-
export interface EndGameSessionMutationVariables {
|
|
93
|
-
input: {
|
|
94
|
-
id: string;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
export declare const END_GAME_SESSION_MUTATION: string;
|
|
98
|
-
export {};
|