@opexa/portal-sdk 0.0.1
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/README.md +1591 -0
- package/dist/graphql/account.service.d.ts +24 -0
- package/dist/graphql/announcement.d.ts +29 -0
- package/dist/graphql/auth.service.d.ts +16 -0
- package/dist/graphql/bet-record.d.ts +71 -0
- package/dist/graphql/bonus.d.ts +43 -0
- package/dist/graphql/cashback.d.ts +22 -0
- package/dist/graphql/deposit.d.ts +94 -0
- package/dist/graphql/file.d.ts +38 -0
- package/dist/graphql/file.service.d.ts +11 -0
- package/dist/graphql/game.d.ts +84 -0
- package/dist/graphql/game.service.d.ts +14 -0
- package/dist/graphql/index.d.ts +23 -0
- package/dist/graphql/member.d.ts +182 -0
- package/dist/graphql/platform.d.ts +38 -0
- package/dist/graphql/points.d.ts +22 -0
- package/dist/graphql/portal.service.d.ts +9 -0
- package/dist/graphql/promo.d.ts +35 -0
- package/dist/graphql/report.service.d.ts +18 -0
- package/dist/graphql/session.d.ts +25 -0
- package/dist/graphql/static.service.d.ts +12 -0
- package/dist/graphql/transaction.d.ts +26 -0
- package/dist/graphql/types.d.ts +93 -0
- package/dist/graphql/wallet.d.ts +14 -0
- package/dist/graphql/wallet.service.d.ts +30 -0
- package/dist/graphql/withdrawal.d.ts +106 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1007 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2916 -0
- package/dist/index.mjs.map +1 -0
- package/dist/logger.d.ts +15 -0
- package/dist/object-id.d.ts +1 -0
- package/dist/object-type.d.ts +9 -0
- package/dist/sdk.d.ts +228 -0
- package/dist/session-service.d.ts +25 -0
- package/dist/transformer.d.ts +52 -0
- package/dist/types.d.ts +839 -0
- package/dist/utils/add-days.d.ts +1 -0
- package/dist/utils/add-minutes.d.ts +1 -0
- package/dist/utils/clone-date.d.ts +1 -0
- package/dist/utils/gql.d.ts +1 -0
- package/dist/utils/graphql-client.d.ts +29 -0
- package/dist/utils/http-error.d.ts +6 -0
- package/dist/utils/is-after.d.ts +4 -0
- package/dist/utils/parse-decimal.d.ts +2 -0
- package/dist/utils/sha256.d.ts +1 -0
- package/dist/utils/sub-minutes.d.ts +1 -0
- package/dist/utils/types.d.ts +5 -0
- package/package.json +81 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Decimal } from './types';
|
|
2
|
+
|
|
3
|
+
export interface DepositGatewaySettings {
|
|
4
|
+
minimumAmount: string;
|
|
5
|
+
maximumAmount: string;
|
|
6
|
+
webEnabled: boolean;
|
|
7
|
+
mobileWebEnabled: boolean;
|
|
8
|
+
androidEnabled: boolean;
|
|
9
|
+
iosEnabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface WithdrawalGatewaySettings {
|
|
12
|
+
minimumAmount: Decimal;
|
|
13
|
+
maximumAmount: Decimal;
|
|
14
|
+
fixedFee?: Decimal | null;
|
|
15
|
+
percentageFee?: Decimal | null;
|
|
16
|
+
webEnabled: boolean;
|
|
17
|
+
mobileWebEnabled: boolean;
|
|
18
|
+
androidEnabled: boolean;
|
|
19
|
+
iosEnabled: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface PointsClubSettings {
|
|
22
|
+
multiplier: Decimal;
|
|
23
|
+
}
|
|
24
|
+
export interface Platform {
|
|
25
|
+
restrictWithdrawalsToVerifiedMembers: boolean;
|
|
26
|
+
minimumFirstDepositAmount: Decimal;
|
|
27
|
+
bankDepositGatewaySettings?: DepositGatewaySettings | null;
|
|
28
|
+
gcashDepositGatewaySettings?: DepositGatewaySettings | null;
|
|
29
|
+
mayaDepositGatewaySettings?: DepositGatewaySettings | null;
|
|
30
|
+
mayaAppDepositGatewaySettings?: DepositGatewaySettings | null;
|
|
31
|
+
bankWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
|
|
32
|
+
gcashWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
|
|
33
|
+
mayaWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
|
|
34
|
+
mayaAppWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
|
|
35
|
+
pointsClubSettings: PointsClubSettings;
|
|
36
|
+
}
|
|
37
|
+
export type PlatformQuery = Platform;
|
|
38
|
+
export declare const PLATFORM_QUERY: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DateString, Decimal, MutationError } from './types';
|
|
2
|
+
|
|
3
|
+
export interface PointsWallet {
|
|
4
|
+
id: string;
|
|
5
|
+
points: Decimal;
|
|
6
|
+
account: string;
|
|
7
|
+
dateTimeCreated: DateString;
|
|
8
|
+
}
|
|
9
|
+
export declare const POINTS_WALLET_QUERY: string;
|
|
10
|
+
export interface PointsWalletQuery {
|
|
11
|
+
pointsWallet?: PointsWallet | null;
|
|
12
|
+
}
|
|
13
|
+
export declare const POINTS_TO_CASH_CONVERSION_MUTATION: string;
|
|
14
|
+
export type PointsToCashConversionError = MutationError<'InsufficientPointsError'>;
|
|
15
|
+
export interface PointsToCashConversionMutationVariables {
|
|
16
|
+
input: {
|
|
17
|
+
amount: Decimal;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface PointsToCashConversionMutation {
|
|
21
|
+
pointsToCashConversion?: PointsToCashConversionError | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GraphQLClient } from '../utils/graphql-client';
|
|
2
|
+
import { LatestBetRecord } from './bet-record';
|
|
3
|
+
import { OperationResult } from './types';
|
|
4
|
+
|
|
5
|
+
export declare class PortalService {
|
|
6
|
+
private client;
|
|
7
|
+
constructor(client: GraphQLClient);
|
|
8
|
+
latestBetRecords(): Promise<OperationResult<never, LatestBetRecord[]>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { File } from './file';
|
|
2
|
+
import { DateString, EnumFilterField, Html } from './types';
|
|
3
|
+
|
|
4
|
+
export type PromoType = 'DEPOSIT';
|
|
5
|
+
export type PromoStatus = 'ACTIVE' | 'INACTIVE' | 'DISABLED';
|
|
6
|
+
export interface Promo {
|
|
7
|
+
id: string;
|
|
8
|
+
type: PromoType;
|
|
9
|
+
name: string;
|
|
10
|
+
banner: Extract<File, {
|
|
11
|
+
status: 'READY';
|
|
12
|
+
}>;
|
|
13
|
+
status: PromoStatus;
|
|
14
|
+
description: Html;
|
|
15
|
+
minimumBonusAmount?: string | null;
|
|
16
|
+
maximumBonusAmount?: string | null;
|
|
17
|
+
activationStartDateTime: DateString;
|
|
18
|
+
activationEndDateTime: DateString;
|
|
19
|
+
dateTimeCreated: DateString;
|
|
20
|
+
dateTimeLastUpdated: DateString;
|
|
21
|
+
}
|
|
22
|
+
export interface PromosQuery {
|
|
23
|
+
promos: Promo[];
|
|
24
|
+
}
|
|
25
|
+
export declare const PROMO_FRAGMENT: string;
|
|
26
|
+
export declare const PROMOS_QUERY: string;
|
|
27
|
+
export interface AvailablePromosQuery {
|
|
28
|
+
availablePromos: Promo[];
|
|
29
|
+
}
|
|
30
|
+
export interface AvailablePromosQueryVariables {
|
|
31
|
+
filter?: {
|
|
32
|
+
type?: EnumFilterField<PromoType>;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare const AVAILABLE_PROMOS_QUERY: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GraphQLClient } from '../utils/graphql-client';
|
|
2
|
+
import { BetRecord, BetRecordsQueryVariables } from './bet-record';
|
|
3
|
+
import { DepositRecord, DepositRecordsQueryVariables } from './deposit';
|
|
4
|
+
import { Member } from './member';
|
|
5
|
+
import { TransactionRecord, TransactionRecordsQueryVariables } from './transaction';
|
|
6
|
+
import { OperationResult, PaginatedQueryResult } from './types';
|
|
7
|
+
import { WithdrawalRecord, WithdrawalRecordsQueryVariables } from './withdrawal';
|
|
8
|
+
|
|
9
|
+
export declare class ReportService {
|
|
10
|
+
private client;
|
|
11
|
+
constructor(client: GraphQLClient);
|
|
12
|
+
betRecords(variables?: BetRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<BetRecord>>>;
|
|
13
|
+
transactionRecords(variables?: TransactionRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<TransactionRecord>>>;
|
|
14
|
+
withdrawalRecords(variables?: WithdrawalRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<WithdrawalRecord>>>;
|
|
15
|
+
depositRecords(variables?: DepositRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<DepositRecord>>>;
|
|
16
|
+
depositsCount(): Promise<OperationResult<never, number>>;
|
|
17
|
+
member(): Promise<OperationResult<never, Member>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DateString, MutationError } from './types';
|
|
2
|
+
|
|
3
|
+
export type CreateSessionError = MutationError<'AccountNotFound' | 'AccountBlacklisted'>;
|
|
4
|
+
export interface CreateSessionMutation {
|
|
5
|
+
session: {
|
|
6
|
+
id: string;
|
|
7
|
+
dateTimeCreated: DateString;
|
|
8
|
+
};
|
|
9
|
+
accessToken: string;
|
|
10
|
+
refreshToken: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CreateSessionInput__NameAndPassword {
|
|
13
|
+
name: string;
|
|
14
|
+
password: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateSessionInput__MobileNumber {
|
|
17
|
+
mobileNumber: string;
|
|
18
|
+
verificationCode: string;
|
|
19
|
+
}
|
|
20
|
+
export type CreateSessionInput = CreateSessionInput__NameAndPassword | CreateSessionInput__MobileNumber;
|
|
21
|
+
export type RefreshSessionError = MutationError<'InvalidToken' | 'AccountBlacklisted'>;
|
|
22
|
+
export interface RefreshSessionMutation {
|
|
23
|
+
accessToken: string;
|
|
24
|
+
refreshToken: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DateFilterField, DateString, Decimal, EnumFilterField, PaginatedQuery, StringFilterField } from './types';
|
|
2
|
+
|
|
3
|
+
export type TransactionRecordType = 'DEPOSIT' | 'PAYOUT' | 'WITHDRAWAL_REFUND' | 'TRANSFER_IN' | 'WITHDRAWAL' | 'BET' | 'TRANSFER_OUT' | 'ROLLBACK' | 'BET_REFUND' | 'PAYOUT_REFUND' | 'CASHBACK_BONUS' | 'BONUS' | 'RESERVE' | 'REJECT_WITHDRAWAL' | 'MANUAL_DEPOSIT' | 'GCASH_DEPOSIT' | 'MANUAL_WITHDRAWAL' | 'BANK_WITHDRAWAL' | 'GCASH_WITHDRAWAL' | 'COMMIT_RESERVE' | 'ROLLBACK_PAYOUT' | 'ROLLBACK_RESERVE';
|
|
4
|
+
export interface TransactionRecord {
|
|
5
|
+
id: string;
|
|
6
|
+
type: TransactionRecordType;
|
|
7
|
+
amount: Decimal;
|
|
8
|
+
content?: string | null;
|
|
9
|
+
currentBalance: Decimal;
|
|
10
|
+
referenceNumber: string;
|
|
11
|
+
dateTimeCreated: DateString;
|
|
12
|
+
dateTimeLastUpdated: DateString;
|
|
13
|
+
}
|
|
14
|
+
export interface TransactionRecordsQuery {
|
|
15
|
+
member: PaginatedQuery<'transactionRecords', TransactionRecord>;
|
|
16
|
+
}
|
|
17
|
+
export interface TransactionRecordsQueryVariables {
|
|
18
|
+
first?: number;
|
|
19
|
+
after?: string;
|
|
20
|
+
filter?: {
|
|
21
|
+
referenceNumber?: StringFilterField;
|
|
22
|
+
type?: EnumFilterField<TransactionRecordType>;
|
|
23
|
+
dateTimeCreated?: DateFilterField;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare const TRANSACTION_RECORDS_QUERY: string;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { HttpError } from '../utils/http-error';
|
|
2
|
+
|
|
3
|
+
export type Alias<T> = T & {
|
|
4
|
+
_?: never;
|
|
5
|
+
};
|
|
6
|
+
export type Decimal = Alias<string>;
|
|
7
|
+
export type DateString = Alias<string>;
|
|
8
|
+
export type Html = Alias<string>;
|
|
9
|
+
export interface Edge<T> {
|
|
10
|
+
cursor: string;
|
|
11
|
+
node: T;
|
|
12
|
+
}
|
|
13
|
+
export interface PageInfo {
|
|
14
|
+
hasNextPage: boolean;
|
|
15
|
+
endCursor?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface PaginatedQueryResult<T> {
|
|
18
|
+
edges: Edge<T>[];
|
|
19
|
+
totalCount: number;
|
|
20
|
+
pageInfo: PageInfo;
|
|
21
|
+
}
|
|
22
|
+
export type PaginatedQuery<Key extends string, T> = Record<Key, PaginatedQueryResult<T>>;
|
|
23
|
+
export interface ObjectIdFilterField {
|
|
24
|
+
equal?: string;
|
|
25
|
+
notEqual?: string;
|
|
26
|
+
in?: string[];
|
|
27
|
+
notIn?: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface StringFilterField {
|
|
30
|
+
equal?: string;
|
|
31
|
+
notEqual?: string;
|
|
32
|
+
in?: string[];
|
|
33
|
+
notIn?: string[];
|
|
34
|
+
contains?: string;
|
|
35
|
+
startsWith?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface NumberFilterField {
|
|
38
|
+
equal?: number;
|
|
39
|
+
notEqual?: number;
|
|
40
|
+
in?: number[];
|
|
41
|
+
notIn?: number[];
|
|
42
|
+
lesserThan?: number;
|
|
43
|
+
lesserThanOrEqual?: number;
|
|
44
|
+
greaterThan?: number;
|
|
45
|
+
greaterThanOrEqual?: number;
|
|
46
|
+
}
|
|
47
|
+
export interface BooleanFilterField {
|
|
48
|
+
equal?: boolean;
|
|
49
|
+
notEqual?: boolean;
|
|
50
|
+
in?: boolean[];
|
|
51
|
+
notIn?: boolean[];
|
|
52
|
+
}
|
|
53
|
+
export interface DateFilterField {
|
|
54
|
+
equal?: Date | string;
|
|
55
|
+
notEqual?: Date | string;
|
|
56
|
+
in?: Date | string[];
|
|
57
|
+
notIn?: Date | string[];
|
|
58
|
+
lesserThan?: Date | string;
|
|
59
|
+
lesserThanOrEqual?: Date | string;
|
|
60
|
+
greaterThan?: Date | string;
|
|
61
|
+
greaterThanOrEqual?: Date | string;
|
|
62
|
+
}
|
|
63
|
+
export interface EnumFilterField<T> {
|
|
64
|
+
equal?: T;
|
|
65
|
+
notEqual?: T;
|
|
66
|
+
in?: T[];
|
|
67
|
+
notIn?: T[];
|
|
68
|
+
}
|
|
69
|
+
export interface MutationError<T extends string> {
|
|
70
|
+
code: T;
|
|
71
|
+
message: string;
|
|
72
|
+
}
|
|
73
|
+
export type UnknownError = MutationError<'UnknownError'>;
|
|
74
|
+
export type SortOrder = 'ASC' | 'DESC';
|
|
75
|
+
export type OperationResult<E extends MutationError<string> = never, T = never> = [T] extends [
|
|
76
|
+
never
|
|
77
|
+
] ? {
|
|
78
|
+
ok: false;
|
|
79
|
+
data?: never;
|
|
80
|
+
error: HttpError | E;
|
|
81
|
+
} | {
|
|
82
|
+
ok: true;
|
|
83
|
+
data?: never;
|
|
84
|
+
error?: never;
|
|
85
|
+
} : {
|
|
86
|
+
ok: false;
|
|
87
|
+
data?: never;
|
|
88
|
+
error: HttpError | E;
|
|
89
|
+
} | {
|
|
90
|
+
ok: true;
|
|
91
|
+
data: T;
|
|
92
|
+
error?: never;
|
|
93
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DateString, Decimal } from './types';
|
|
2
|
+
|
|
3
|
+
export type Currency = 'PHP' | 'USD';
|
|
4
|
+
export interface Wallet {
|
|
5
|
+
id: string;
|
|
6
|
+
balance: Decimal;
|
|
7
|
+
currency: Currency;
|
|
8
|
+
dateTimeCreated: DateString;
|
|
9
|
+
dateTimeLastUpdated: DateString;
|
|
10
|
+
}
|
|
11
|
+
export interface WalletQuery {
|
|
12
|
+
wallet?: Wallet | null;
|
|
13
|
+
}
|
|
14
|
+
export declare const WALLET_QUERY: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Bonus, CashbackBonus, ClaimCashbackBonusError, ClaimCashbackBonusMutationVariables } from './bonus';
|
|
2
|
+
import { Cashback } from './cashback';
|
|
3
|
+
import { CreateDepositError, CreateGCashDepositMutationVariables, CreateMayaAppDepositMutationVariables, CreateMayaDepositMutationVariables, Deposit, DepositQueryVariables } from './deposit';
|
|
4
|
+
import { GameService } from './game.service';
|
|
5
|
+
import { PointsToCashConversionError, PointsToCashConversionMutationVariables, PointsWallet } from './points';
|
|
6
|
+
import { AvailablePromosQueryVariables, Promo } from './promo';
|
|
7
|
+
import { OperationResult } from './types';
|
|
8
|
+
import { Wallet } from './wallet';
|
|
9
|
+
import { CreateBankWithdrawalMutationVariables, CreateGCashWithdrawalMutationVariables, CreateMayaAppWithdrawalMutationVariables, CreateMayaWithdrawalMutationVariables, CreateWithdrawalError } from './withdrawal';
|
|
10
|
+
|
|
11
|
+
export declare class WalletService extends GameService {
|
|
12
|
+
promos(): Promise<OperationResult<never, Promo[]>>;
|
|
13
|
+
cashbacks(): Promise<OperationResult<never, Cashback[]>>;
|
|
14
|
+
availablePromos(variables?: AvailablePromosQueryVariables): Promise<OperationResult<never, Promo[]>>;
|
|
15
|
+
cashbackBonuses(): Promise<OperationResult<never, CashbackBonus[]>>;
|
|
16
|
+
claimCashbackBonus(variables: ClaimCashbackBonusMutationVariables): Promise<OperationResult<ClaimCashbackBonusError>>;
|
|
17
|
+
bonus(): Promise<OperationResult<never, Bonus | null | undefined>>;
|
|
18
|
+
wallet(): Promise<OperationResult<never, Wallet | null | undefined>>;
|
|
19
|
+
deposit(variables: DepositQueryVariables): Promise<OperationResult<never, Deposit | null | undefined>>;
|
|
20
|
+
createGCashDeposit(variables: CreateGCashDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
|
|
21
|
+
createMayaDeposit(variables: CreateMayaDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
|
|
22
|
+
createMayaAppDeposit(variables: CreateMayaAppDepositMutationVariables): Promise<OperationResult<CreateDepositError>>;
|
|
23
|
+
createGCashWithdrawal(variables: CreateGCashWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
|
|
24
|
+
createMayaWithdrawal(variables: CreateMayaWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
|
|
25
|
+
createMayaAppWithdrawal(variables: CreateMayaAppWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
|
|
26
|
+
createBankWithdrawal(variables: CreateBankWithdrawalMutationVariables): Promise<OperationResult<CreateWithdrawalError>>;
|
|
27
|
+
remainingDailyWithdrawalsCount(): Promise<OperationResult<never, number>>;
|
|
28
|
+
pointsWallet(): Promise<OperationResult<never, PointsWallet | null | undefined>>;
|
|
29
|
+
pointsToCashConversion(variables: PointsToCashConversionMutationVariables): Promise<OperationResult<PointsToCashConversionError>>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { DateFilterField, DateString, Decimal, EnumFilterField, MutationError, PaginatedQuery, StringFilterField } from './types';
|
|
2
|
+
|
|
3
|
+
export type Bank = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
|
|
4
|
+
export type WithdrawalRecordStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED';
|
|
5
|
+
export type WithdrawalRecordType = WithdrawalRecord['type'];
|
|
6
|
+
interface Common {
|
|
7
|
+
id: string;
|
|
8
|
+
fee: Decimal;
|
|
9
|
+
amount: Decimal;
|
|
10
|
+
netAmount: Decimal;
|
|
11
|
+
status: WithdrawalRecordStatus;
|
|
12
|
+
reference?: string | null;
|
|
13
|
+
withdrawalNumber: string;
|
|
14
|
+
dateTimeConfirmed?: DateString | null;
|
|
15
|
+
dateTimeCreated: DateString;
|
|
16
|
+
dateTimeLastUpdated: DateString;
|
|
17
|
+
}
|
|
18
|
+
export interface ManualWithdrawalRecord extends Common {
|
|
19
|
+
type: 'MANUAL';
|
|
20
|
+
bank?: never;
|
|
21
|
+
recipientMobileNumber?: never;
|
|
22
|
+
}
|
|
23
|
+
export interface BankWithdrawalRecord extends Common {
|
|
24
|
+
type: 'BANK';
|
|
25
|
+
bank: Bank;
|
|
26
|
+
recipientMobileNumber?: never;
|
|
27
|
+
}
|
|
28
|
+
export interface GCashWithdrawalRecord extends Common {
|
|
29
|
+
type: 'GCASH';
|
|
30
|
+
bank?: never;
|
|
31
|
+
recipientMobileNumber: string;
|
|
32
|
+
}
|
|
33
|
+
export interface MayaWithdrawalRecord extends Common {
|
|
34
|
+
type: 'MAYA_APP';
|
|
35
|
+
bank?: never;
|
|
36
|
+
recipientMobileNumber?: never;
|
|
37
|
+
}
|
|
38
|
+
export type WithdrawalRecord = ManualWithdrawalRecord | BankWithdrawalRecord | GCashWithdrawalRecord | MayaWithdrawalRecord;
|
|
39
|
+
export interface WithdrawalRecordsQuery {
|
|
40
|
+
member: PaginatedQuery<'withdrawalRecords', WithdrawalRecord>;
|
|
41
|
+
}
|
|
42
|
+
export interface WithdrawalRecordsQueryVariables {
|
|
43
|
+
first?: number;
|
|
44
|
+
after?: string;
|
|
45
|
+
filter?: {
|
|
46
|
+
withdrawalNumber?: StringFilterField;
|
|
47
|
+
type?: EnumFilterField<WithdrawalRecordType>;
|
|
48
|
+
reference?: StringFilterField;
|
|
49
|
+
status?: EnumFilterField<WithdrawalRecordStatus>;
|
|
50
|
+
dateTimeCreated?: DateFilterField;
|
|
51
|
+
dateTimeLastUpdated?: DateFilterField;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export declare const WITHDRAWAL_RECORDS_QUERY: string;
|
|
55
|
+
export type CreateWithdrawalError = MutationError<'AccountNotVerifiedError' | 'InvalidTransactionPasswordError' | 'InvalidWithdrawalAmountError' | 'MobileNumberNotVerifiedError' | 'NotEnoughBalanceError' | 'WithdrawalDailyLimitExceededError'>;
|
|
56
|
+
export interface CreateGCashWithdrawalMutation {
|
|
57
|
+
createGCashWithdrawal?: CreateWithdrawalError | null;
|
|
58
|
+
}
|
|
59
|
+
export interface CreateGCashWithdrawalMutationVariables {
|
|
60
|
+
input: {
|
|
61
|
+
id: string;
|
|
62
|
+
amount: Decimal;
|
|
63
|
+
transactionPassword: string;
|
|
64
|
+
recipientMobileNumber: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export declare const CREATE_GCASH_WITHDRAWAL_MUTATION: string;
|
|
68
|
+
export interface CreateMayaWithdrawalMutation {
|
|
69
|
+
createMayaWithdrawal?: CreateWithdrawalError | null;
|
|
70
|
+
}
|
|
71
|
+
export interface CreateMayaWithdrawalMutationVariables {
|
|
72
|
+
input: {
|
|
73
|
+
id: string;
|
|
74
|
+
amount: Decimal;
|
|
75
|
+
transactionPassword: string;
|
|
76
|
+
recipientMobileNumber: string;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export declare const CREATE_MAYA_WITHDRAWAL_MUTATION: string;
|
|
80
|
+
export interface CreateMayaAppWithdrawalMutation {
|
|
81
|
+
createMayaAppWithdrawal?: CreateWithdrawalError | null;
|
|
82
|
+
}
|
|
83
|
+
export interface CreateMayaAppWithdrawalMutationVariables {
|
|
84
|
+
input: {
|
|
85
|
+
id: string;
|
|
86
|
+
amount: Decimal;
|
|
87
|
+
transactionPassword: string;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export declare const CREATE_MAYA_APP_WITHDRAWAL_MUTATION: string;
|
|
91
|
+
export interface CreateBankWithdrawalMutation {
|
|
92
|
+
createBankWithdrawal?: CreateWithdrawalError | null;
|
|
93
|
+
}
|
|
94
|
+
export interface CreateBankWithdrawalMutationVariables {
|
|
95
|
+
input: {
|
|
96
|
+
id: string;
|
|
97
|
+
amount: Decimal;
|
|
98
|
+
transactionPassword: string;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export declare const CREATE_BANK_WITHDRAWAL_MUTATION: string;
|
|
102
|
+
export interface RemainingDailyWithdrawalsCountQuery {
|
|
103
|
+
remainingDailyWithdrawalsCount: number;
|
|
104
|
+
}
|
|
105
|
+
export declare const REMAINING_DAILY_WITHDRAWALS_COUNT_QUERY: string;
|
|
106
|
+
export {};
|
package/dist/index.d.ts
ADDED