@opexa/portal-sdk 0.0.21 → 0.0.23

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.
Files changed (36) hide show
  1. package/dist/index.js +481 -469
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +920 -868
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/sdk/sdk.d.ts +8 -23
  6. package/dist/sdk/session-manager.d.ts +8 -3
  7. package/dist/sdk/types.d.ts +141 -98
  8. package/dist/services/account.service.d.ts +1 -4
  9. package/dist/services/auth.service.d.ts +2 -4
  10. package/dist/services/file.service.d.ts +1 -1
  11. package/dist/services/game.service.d.ts +12 -7
  12. package/dist/services/index.d.ts +0 -16
  13. package/dist/services/portal.service.d.ts +1 -1
  14. package/dist/services/queries.d.ts +55 -0
  15. package/dist/services/report.service.d.ts +1 -6
  16. package/dist/services/types.d.ts +793 -8
  17. package/dist/services/utils.d.ts +2 -9
  18. package/dist/services/wallet.service.d.ts +17 -10
  19. package/dist/utils/clamp.d.ts +1 -0
  20. package/dist/utils/pollable.d.ts +28 -0
  21. package/package.json +4 -1
  22. package/dist/services/announcement.d.ts +0 -29
  23. package/dist/services/bet-record.d.ts +0 -65
  24. package/dist/services/bonus.d.ts +0 -45
  25. package/dist/services/cashback.d.ts +0 -20
  26. package/dist/services/deposit.d.ts +0 -90
  27. package/dist/services/file.d.ts +0 -49
  28. package/dist/services/game.d.ts +0 -98
  29. package/dist/services/member.d.ts +0 -202
  30. package/dist/services/platform.d.ts +0 -38
  31. package/dist/services/points.d.ts +0 -24
  32. package/dist/services/promo.d.ts +0 -33
  33. package/dist/services/session.d.ts +0 -80
  34. package/dist/services/transaction.d.ts +0 -25
  35. package/dist/services/wallet.d.ts +0 -14
  36. package/dist/services/withdrawal.d.ts +0 -114
@@ -8,17 +8,14 @@ export interface Edge<T> {
8
8
  cursor: string;
9
9
  node: T;
10
10
  }
11
- export type PageInfo = {
12
- hasNextPage: false;
13
- endCursor?: never;
14
- } | {
15
- hasNextPage: true;
16
- endCursor: string;
17
- };
11
+ export interface PageInfo {
12
+ hasNextPage: boolean;
13
+ endCursor?: string | null;
14
+ }
18
15
  export interface PaginatedQueryResult<T> {
19
16
  edges: Edge<T>[];
20
- totalCount: number;
21
17
  pageInfo: PageInfo;
18
+ totalCount: number;
22
19
  }
23
20
  export type PaginatedQuery<Key extends string, T> = Record<Key, PaginatedQueryResult<T>>;
24
21
  export interface ObjectIdFilterField {
@@ -68,3 +65,791 @@ export interface EnumFilterField<T> {
68
65
  notIn?: T[];
69
66
  }
70
67
  export type SortOrder = 'ASC' | 'DESC';
68
+ export type FileStatus = 'UPLOADING' | 'READY' | 'FAILED' | 'DELETED';
69
+ export interface File {
70
+ id: string;
71
+ url?: string;
72
+ status: FileStatus;
73
+ dateTimeCreated: DateString;
74
+ }
75
+ export interface FileQuery {
76
+ node?: File | null;
77
+ }
78
+ export interface FileQueryVariables {
79
+ id: string;
80
+ }
81
+ export type UploadPrivateImageFileError = 'FileFormatNotSupportedError' | 'FileNameTooLongError' | 'FileSizeTooBigError';
82
+ export interface UploadPrivateImageFileMutation {
83
+ uploadPrivateImageFile?: null | {
84
+ __typename: UploadPrivateImageFileError;
85
+ };
86
+ }
87
+ export interface UploadPrivateImageFileMutationVariables {
88
+ input: {
89
+ id: string;
90
+ file: globalThis.File;
91
+ };
92
+ }
93
+ export type AnnouncementType = 'RELEASE' | 'SCHEDULED_MAINTENANCE';
94
+ export type AnnouncementStatus = 'ACTIVE' | 'INACTIVE';
95
+ export type AnnouncementVisibility = 'MEMBER' | 'OPERATOR' | 'GLOBAL';
96
+ export interface Announcement {
97
+ id: string;
98
+ type: AnnouncementType;
99
+ title: string;
100
+ status: AnnouncementStatus;
101
+ message: Html;
102
+ activationStartDateTime: DateString;
103
+ activationEndDateTime: DateString;
104
+ dateTimeCreated: DateString;
105
+ dateTimeLastUpdated: DateString;
106
+ }
107
+ export interface AnnouncementsQuery extends PaginatedQuery<'announcements', Announcement> {
108
+ }
109
+ export interface AnnouncementsQueryVariables {
110
+ first?: number;
111
+ after?: string;
112
+ filter?: {
113
+ type?: EnumFilterField<AnnouncementType>;
114
+ visibility?: EnumFilterField<AnnouncementVisibility>;
115
+ activationStartDateTime?: DateFilterField;
116
+ activationEndDateTime?: DateFilterField;
117
+ };
118
+ }
119
+ export type GameType = 'SLOTS' | 'SPORTS' | 'BINGO' | 'FISHING' | 'LIVE' | 'GAMES' | 'TABLE';
120
+ export type GameProvider = 'JILI' | 'PGSOFT' | 'FACHAI' | 'PLAYTECH' | 'CQ9' | 'JDB' | 'BOOONGO' | 'HABANERO' | 'RELAXGAMING' | 'DG' | 'E2E' | 'BTI' | 'DARWIN' | 'MEGABALL' | 'DRBINGO' | 'RTG';
121
+ export interface Game {
122
+ id: string;
123
+ name: string;
124
+ type: GameType;
125
+ provider: GameProvider;
126
+ }
127
+ export interface GameQueryVariables {
128
+ id: string;
129
+ }
130
+ export interface GameQuery {
131
+ node?: Game | null;
132
+ }
133
+ export interface GamesQueryVariables {
134
+ after?: string;
135
+ first?: number;
136
+ filter?: {
137
+ id?: ObjectIdFilterField;
138
+ name?: StringFilterField;
139
+ type?: EnumFilterField<GameType>;
140
+ provider?: EnumFilterField<GameProvider>;
141
+ };
142
+ }
143
+ export interface GamesQuery extends PaginatedQuery<'games', Game> {
144
+ }
145
+ export interface GamesByNameQueryVariables {
146
+ first?: number;
147
+ search: string;
148
+ filter?: GamesQueryVariables['filter'];
149
+ }
150
+ export interface GamesByNameQuery {
151
+ gamesByName: Game[];
152
+ }
153
+ export type GameSessionStatus = 'PENDING' | 'STARTING' | 'READY' | 'ENDED' | 'CANCELLED';
154
+ export interface GameSession {
155
+ id: string;
156
+ game: string;
157
+ status: GameSessionStatus;
158
+ launchUrl?: string | null;
159
+ dateTimeCreated: DateString;
160
+ dateTimeLastUpdated: DateString;
161
+ }
162
+ export interface GameSessionQuery {
163
+ node?: GameSession | null;
164
+ }
165
+ export interface GameSessionQueryVariables {
166
+ id: string;
167
+ }
168
+ export type CreateGameSessionError = 'GameDoesNotExistError';
169
+ export interface CreateGameSessionMutation {
170
+ createGameSession?: null | {
171
+ __typename: CreateGameSessionError;
172
+ };
173
+ }
174
+ export interface CreateGameSessionMutationVariables {
175
+ input: {
176
+ id: string;
177
+ game: string;
178
+ };
179
+ }
180
+ export interface EndGameSessionMutation {
181
+ endGameSession: boolean;
182
+ }
183
+ export interface EndGameSessionMutationVariables {
184
+ input: {
185
+ id: string;
186
+ };
187
+ }
188
+ export interface GameSession__Legacy {
189
+ id: string;
190
+ game: {
191
+ id: string;
192
+ };
193
+ status: GameSessionStatus;
194
+ launchUrl?: string | null;
195
+ dateTimeCreated: DateString;
196
+ dateTimeLastUpdated: DateString;
197
+ }
198
+ export interface GameSessionQuery__Legacy {
199
+ node?: GameSession__Legacy | null;
200
+ }
201
+ export type EndGameSessionError__Legacy = 'GameSessionDoesNotExistError' | 'GameSessionAlreadyClosedError' | 'GameProviderError';
202
+ export interface EndGameSessionMutation__Legacy {
203
+ endGameSession?: null | {
204
+ __typename: EndGameSessionError__Legacy;
205
+ };
206
+ }
207
+ export type BetRecordStatus = 'STARTED' | 'SETTLED' | 'CANCELLED';
208
+ export interface BetRecordMetadata {
209
+ odds?: string | null;
210
+ }
211
+ export interface BetRecord {
212
+ id: string;
213
+ game: Game;
214
+ status: BetRecordStatus;
215
+ serialCode: string;
216
+ vendorRoundId?: string | null;
217
+ bet: Decimal;
218
+ payout: Decimal;
219
+ validBet: Decimal;
220
+ jackpotContribution: Decimal;
221
+ jackpotPayout: Decimal;
222
+ winloss?: Decimal | null;
223
+ dateTimeSettled?: DateString | null;
224
+ dateTimeCreated: DateString;
225
+ dateTimeLastUpdated: DateString;
226
+ betContent?: string | null;
227
+ contestName?: string | null;
228
+ externalCategory?: string | null;
229
+ metadata?: BetRecordMetadata | null;
230
+ }
231
+ export interface BetRecordsQuery {
232
+ member: PaginatedQuery<'betRecords', BetRecord>;
233
+ }
234
+ export interface BetRecordsQueryVariables {
235
+ first?: number;
236
+ after?: string;
237
+ sort?: SortOrder;
238
+ filter?: {
239
+ serialCode?: StringFilterField;
240
+ game?: ObjectIdFilterField;
241
+ game__externalId?: StringFilterField;
242
+ game__type?: EnumFilterField<GameType>;
243
+ game__provider?: EnumFilterField<string>;
244
+ dateTimeCreated?: DateFilterField;
245
+ vendorRoundId?: StringFilterField;
246
+ status?: EnumFilterField<BetRecordStatus>;
247
+ };
248
+ startDateTime?: DateFilterField;
249
+ endDateTime?: DateFilterField;
250
+ }
251
+ export interface LatestBetRecord {
252
+ id: string;
253
+ member: {
254
+ id: string;
255
+ name: string;
256
+ };
257
+ game: Game;
258
+ bet: Decimal;
259
+ payout: Decimal;
260
+ validBet: Decimal;
261
+ dateTimeSettled: DateString;
262
+ dateTimeCreated: DateString;
263
+ }
264
+ export interface LatestBetRecordsQuery {
265
+ latestBetRecords: LatestBetRecord[];
266
+ }
267
+ export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP';
268
+ export type DepositStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED';
269
+ export interface DepositRecord {
270
+ id: string;
271
+ type: DepositType;
272
+ status: DepositStatus;
273
+ amount: Decimal;
274
+ netAmount: Decimal;
275
+ fee: Decimal;
276
+ reference?: string | null;
277
+ depositNumber: string;
278
+ dateTimeCreated: DateString;
279
+ dateTimeLastUpdated: DateString;
280
+ }
281
+ export interface DepositRecordsQuery {
282
+ member: PaginatedQuery<'depositRecords', DepositRecord>;
283
+ }
284
+ export interface DepositRecordsQueryVariables {
285
+ first?: number;
286
+ after?: string;
287
+ filter?: {
288
+ depositNumber?: StringFilterField;
289
+ type?: EnumFilterField<DepositType>;
290
+ reference?: StringFilterField;
291
+ status?: EnumFilterField<DepositStatus>;
292
+ dateTimeCreated?: DateFilterField;
293
+ dateTimeLastUpdated?: DateFilterField;
294
+ };
295
+ }
296
+ export type CreateDepositError = 'DepositPromoMaximumAmountExceededError' | 'DepositPromoMinimumAmountNotMetError' | 'HasActiveBonusError' | 'MaximumDepositAmountExceededError' | 'MinimumDepositAmountNotMetError' | 'MinimumFirstDepositAmountNotMetError' | 'PromoNotEnabledError' | 'WalletDoesNotExistError';
297
+ export interface CreateGCashDepositMutation {
298
+ createGCashDeposit?: null | {
299
+ __typename: CreateDepositError;
300
+ };
301
+ }
302
+ export interface CreateGCashDepositMutationVariables {
303
+ input: {
304
+ id: string;
305
+ amount: Decimal;
306
+ promo?: string;
307
+ };
308
+ }
309
+ export interface CreateMayaDepositMutation {
310
+ createMayaDeposit?: null | {
311
+ __typename: CreateDepositError;
312
+ };
313
+ }
314
+ export interface CreateMayaDepositMutationVariables {
315
+ input: {
316
+ id: string;
317
+ amount: Decimal;
318
+ promo?: string;
319
+ };
320
+ }
321
+ export interface CreateMayaAppDepositMutation {
322
+ createMayaAppDeposit?: null | {
323
+ __typename: CreateDepositError;
324
+ };
325
+ }
326
+ export interface CreateMayaAppDepositMutationVariables {
327
+ input: {
328
+ id: string;
329
+ amount: Decimal;
330
+ promo?: string;
331
+ };
332
+ }
333
+ export interface Deposit {
334
+ id: string;
335
+ type: DepositType;
336
+ status: DepositStatus;
337
+ checkoutUrl?: string;
338
+ }
339
+ export interface DepositQuery {
340
+ node?: Deposit | null;
341
+ }
342
+ export interface DepositQueryVariables {
343
+ id: string;
344
+ }
345
+ export interface DepositsCountQuery {
346
+ member: {
347
+ depositsCount: number;
348
+ };
349
+ }
350
+ export type Bank = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
351
+ export type WithdrawalType = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP';
352
+ export type WithdrawalStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED';
353
+ export interface WithdrawalRecord {
354
+ id: string;
355
+ type: WithdrawalType;
356
+ fee: Decimal;
357
+ amount: Decimal;
358
+ netAmount: Decimal;
359
+ status: WithdrawalStatus;
360
+ reference?: string | null;
361
+ withdrawalNumber: string;
362
+ bank?: Bank | null;
363
+ recipientMobileNumber?: string | null;
364
+ dateTimeConfirmed?: DateString | null;
365
+ dateTimeCreated: DateString;
366
+ dateTimeLastUpdated: DateString;
367
+ }
368
+ export interface WithdrawalRecordsQuery {
369
+ member: PaginatedQuery<'withdrawalRecords', WithdrawalRecord>;
370
+ }
371
+ export interface WithdrawalRecordsQueryVariables {
372
+ first?: number;
373
+ after?: string;
374
+ filter?: {
375
+ withdrawalNumber?: StringFilterField;
376
+ type?: EnumFilterField<WithdrawalType>;
377
+ reference?: StringFilterField;
378
+ status?: EnumFilterField<WithdrawalStatus>;
379
+ dateTimeCreated?: DateFilterField;
380
+ dateTimeLastUpdated?: DateFilterField;
381
+ };
382
+ }
383
+ export type CreateWithdrawalError = 'AccountNotVerifiedError' | 'InvalidTransactionPasswordError' | 'InvalidWithdrawalAmountError' | 'MobileNumberNotVerifiedError' | 'NotEnoughBalanceError' | 'WithdrawalDailyLimitExceededError';
384
+ export interface CreateGCashWithdrawalMutation {
385
+ createGCashWithdrawal?: null | {
386
+ __typename: CreateWithdrawalError;
387
+ };
388
+ }
389
+ export interface CreateGCashWithdrawalMutationVariables {
390
+ input: {
391
+ id: string;
392
+ amount: Decimal;
393
+ transactionPassword: string;
394
+ recipientMobileNumber: string;
395
+ };
396
+ }
397
+ export interface CreateMayaWithdrawalMutation {
398
+ createMayaWithdrawal?: null | {
399
+ __typename: CreateWithdrawalError;
400
+ };
401
+ }
402
+ export interface CreateMayaWithdrawalMutationVariables {
403
+ input: {
404
+ id: string;
405
+ amount: Decimal;
406
+ transactionPassword: string;
407
+ recipientMobileNumber: string;
408
+ };
409
+ }
410
+ export interface CreateMayaAppWithdrawalMutation {
411
+ createMayaAppWithdrawal?: null | {
412
+ __typename: CreateWithdrawalError;
413
+ };
414
+ }
415
+ export interface CreateMayaAppWithdrawalMutationVariables {
416
+ input: {
417
+ id: string;
418
+ amount: Decimal;
419
+ transactionPassword: string;
420
+ };
421
+ }
422
+ export interface CreateBankWithdrawalMutation {
423
+ createBankWithdrawal?: null | {
424
+ __typename: CreateWithdrawalError;
425
+ };
426
+ }
427
+ export interface CreateBankWithdrawalMutationVariables {
428
+ input: {
429
+ id: string;
430
+ amount: Decimal;
431
+ transactionPassword: string;
432
+ };
433
+ }
434
+ export interface RemainingDailyWithdrawalsCountQuery {
435
+ remainingDailyWithdrawalsCount: number;
436
+ }
437
+ export type PromoType = 'DEPOSIT';
438
+ export type PromoStatus = 'ACTIVE' | 'INACTIVE' | 'DISABLED';
439
+ export interface Promo {
440
+ id: string;
441
+ type: PromoType;
442
+ name: string;
443
+ banner: File;
444
+ status: PromoStatus;
445
+ description: Html;
446
+ minimumBonusAmount?: string | null;
447
+ maximumBonusAmount?: string | null;
448
+ activationStartDateTime: DateString;
449
+ activationEndDateTime: DateString;
450
+ dateTimeCreated: DateString;
451
+ dateTimeLastUpdated: DateString;
452
+ }
453
+ export interface PromosQuery {
454
+ promos: Promo[];
455
+ }
456
+ export interface AvailablePromosQuery {
457
+ availablePromos: Promo[];
458
+ }
459
+ export interface AvailablePromosQueryVariables {
460
+ filter?: {
461
+ type?: EnumFilterField<PromoType>;
462
+ };
463
+ }
464
+ export type CashbackStatus = 'ACTIVE' | 'INACTIVE';
465
+ export interface Cashback {
466
+ id: string;
467
+ name: string;
468
+ banner: File;
469
+ status: CashbackStatus;
470
+ description: Html;
471
+ activationStartDateTime: DateString;
472
+ activationEndDateTime: DateString;
473
+ dateTimeCreated: DateString;
474
+ dateTimeLastUpdated: DateString;
475
+ }
476
+ export interface CashbacksQuery {
477
+ cashbacks: Cashback[];
478
+ }
479
+ export interface Bonus {
480
+ id: string;
481
+ promo: Promo;
482
+ deposit?: Omit<DepositRecord, 'id' | 'depositNumber'> | null;
483
+ amount: Decimal;
484
+ balance: Decimal;
485
+ turnoverRequirement: Decimal;
486
+ currentTurnoverRequirementContribution: Decimal;
487
+ currentTurnoverRequirementContributionPercentage: Decimal;
488
+ expiration: DateString;
489
+ dateTimeCreated: DateString;
490
+ dateTimeLastUpdated: DateString;
491
+ }
492
+ export interface BonusQuery {
493
+ bonus?: Bonus | null;
494
+ }
495
+ export interface CashbackBonus {
496
+ id: string;
497
+ balance: Decimal;
498
+ cashback: Cashback;
499
+ dateTimeCreated: DateString;
500
+ dateTimeLastUpdated: DateString;
501
+ }
502
+ export interface CashbackBonusesQuery {
503
+ cashbackBonuses: CashbackBonus[];
504
+ }
505
+ export type ClaimCashbackBonusError = 'CashbackBonusDoesNotExistError';
506
+ export interface ClaimCashbackBonusMutation {
507
+ claimCashbackBonus?: null | {
508
+ __typename: ClaimCashbackBonusError;
509
+ };
510
+ }
511
+ export interface ClaimCashbackBonusMutationVariables {
512
+ input: {
513
+ id: string;
514
+ };
515
+ }
516
+ export type TransactionType = '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';
517
+ export interface TransactionRecord {
518
+ id: string;
519
+ type: TransactionType;
520
+ amount: Decimal;
521
+ content?: string | null;
522
+ currentBalance: Decimal;
523
+ referenceNumber: string;
524
+ dateTimeCreated: DateString;
525
+ }
526
+ export interface TransactionRecordsQuery {
527
+ member: PaginatedQuery<'transactionRecords', TransactionRecord>;
528
+ }
529
+ export interface TransactionRecordsQueryVariables {
530
+ first?: number;
531
+ after?: string;
532
+ filter?: {
533
+ referenceNumber?: StringFilterField;
534
+ type?: EnumFilterField<TransactionType>;
535
+ dateTimeCreated?: DateFilterField;
536
+ };
537
+ }
538
+ export type Currency = 'PHP' | 'USD';
539
+ export interface Wallet {
540
+ id: string;
541
+ balance: Decimal;
542
+ currency: Currency;
543
+ dateTimeCreated: DateString;
544
+ dateTimeLastUpdated: DateString;
545
+ }
546
+ export interface WalletQuery {
547
+ wallet?: Wallet | null;
548
+ }
549
+ export interface PointsWallet {
550
+ id: string;
551
+ points: Decimal;
552
+ account: string;
553
+ dateTimeCreated: DateString;
554
+ }
555
+ export interface PointsWalletQuery {
556
+ pointsWallet?: PointsWallet | null;
557
+ }
558
+ export interface PointsToCashConversionMutationVariables {
559
+ input: {
560
+ amount: Decimal;
561
+ };
562
+ }
563
+ export type PointsToCashConversionError = 'InsufficientPointsError';
564
+ export interface PointsToCashConversionMutation {
565
+ pointsToCashConversion?: null | {
566
+ __typename: PointsToCashConversionError;
567
+ };
568
+ }
569
+ export interface Member {
570
+ dateTimeLastActive?: DateString | null;
571
+ }
572
+ export interface MemberQuery {
573
+ member: Member;
574
+ }
575
+ export type MemberAccountStatus = 'ACTIVE' | 'DISABLED' | 'BLACKLISTED';
576
+ export type MemberAccountVerificationStatus = 'UNVERIFIED' | 'PENDING' | 'VERIFIED';
577
+ export type MemberVerificationStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'VERIFIED' | 'UNVERIFIED';
578
+ export interface MemberAccount {
579
+ id: string;
580
+ name: string;
581
+ status: MemberAccountStatus;
582
+ realName?: string | null;
583
+ nickName?: string | null;
584
+ birthDay?: DateString | null;
585
+ validId?: string | null;
586
+ emailAddress?: string | null;
587
+ mobileNumber?: string | null;
588
+ verified: boolean;
589
+ verificationStatus: MemberAccountVerificationStatus;
590
+ mobileNumberVerified?: boolean | null;
591
+ mobileNumberVerificationRequired?: boolean | null;
592
+ transactionPassword: boolean;
593
+ secretAnswerSubmitted?: boolean | null;
594
+ dateTimeCreated: DateString;
595
+ dateTimeLastUpdated: DateString;
596
+ }
597
+ export interface MemberAccountQuery {
598
+ memberAccount: MemberAccount;
599
+ }
600
+ export interface MemberVerification {
601
+ id: string;
602
+ status: MemberVerificationStatus;
603
+ address: string;
604
+ sourceOfIncome: string;
605
+ natureOfWork: string;
606
+ nationality: string;
607
+ placeOfBirth: string;
608
+ idFrontImage: File;
609
+ selfieImage: File;
610
+ }
611
+ export interface MemberVerificationQuery {
612
+ memberAccount: {
613
+ verification?: MemberVerification | null;
614
+ };
615
+ }
616
+ export type RegisterMemberAccountError = 'AccountNameNotAvailableError' | 'InvalidPlatformError' | 'InvalidReCAPTCHAResponseError' | 'InvalidSMSVerificationCodeError' | 'MinimumAgeRequirementError' | 'MobileNumberNotAvailableError';
617
+ export interface RegisterMemberAccountMutation {
618
+ registerMemberAccount?: null | {
619
+ __typename: RegisterMemberAccountError;
620
+ };
621
+ }
622
+ export interface RegisterMemberAccountMutationVariables {
623
+ input: {
624
+ id: string;
625
+ name: string;
626
+ password: string;
627
+ mobileNumber: string;
628
+ birthDay: string;
629
+ domain?: string;
630
+ btag?: string;
631
+ };
632
+ verificationCode?: string;
633
+ reCAPTCHAResponse?: string;
634
+ }
635
+ export type UpdateMemberAccountError = 'AccountNameNotAvailableError' | 'EmailAddressNotAvailableError' | 'InvalidTransactionPasswordError' | 'MobileNumberNotAvailableError' | 'NickNameNotAvailableError' | 'RealNameAlreadySetError' | 'ValidIdAlreadySetError';
636
+ export interface UpdateMemberAccountMutation {
637
+ updateMemberAccount?: null | {
638
+ __typename: UpdateMemberAccountError;
639
+ };
640
+ }
641
+ export type SecretQuestion = 'FIRST_PET' | 'FIRST_CAR' | 'FIRST_SCHOOL' | 'FAVORITE_BOOK' | 'FAVORITE_TEACHER' | 'BEST_CHILDHOOD_FRIEND' | 'BIRTH_PLACE' | 'MOTHERS_MAIDEN_NAME' | 'PARENTS_MET_CITY' | 'FAVORITE_MOVIE';
642
+ export interface UpdateMemberAccountMutationVariables {
643
+ input: {
644
+ id: string;
645
+ data: {
646
+ name?: string;
647
+ password?: string;
648
+ emailAddress?: string;
649
+ mobileNumber?: string;
650
+ realName?: string;
651
+ nickName?: string;
652
+ transactionPassword?: string;
653
+ validId?: string;
654
+ mobileNumberVerificationRequired?: boolean;
655
+ secretQuestion?: SecretQuestion;
656
+ secretAnswer?: string;
657
+ };
658
+ };
659
+ }
660
+ export type ResetPasswordError = 'AccountNotFoundError' | 'InvalidVerificationCodeError';
661
+ export interface ResetPasswordMutation {
662
+ resetPassword?: null | {
663
+ __typename: ResetPasswordError;
664
+ };
665
+ }
666
+ export interface ResetPasswordMutationVariables {
667
+ input: {
668
+ mobileNumber: string;
669
+ newPassword: string;
670
+ };
671
+ verificationCode: string;
672
+ }
673
+ export interface DeleteMemberAccountMutation {
674
+ deleteMemberAccount: boolean;
675
+ }
676
+ export interface DeleteMemberAccountMutationVariables {
677
+ input: {
678
+ id: string;
679
+ };
680
+ }
681
+ export type SendVerificationCodeError = 'InvalidPlatformError' | 'NotReadyToSendVerficationCodeError';
682
+ export interface SendVerificationCodeMutation {
683
+ sendVerificationCode?: null | {
684
+ __typename: SendVerificationCodeError;
685
+ };
686
+ }
687
+ export interface SendVerificationCodeMutationVariables {
688
+ input: {
689
+ channel: 'SMS' | 'EMAIL';
690
+ recipient: string;
691
+ };
692
+ }
693
+ export type VerifyMobileNumberError = 'InvalidSMSVerificationCodeError' | 'MobileNumberAlreadyVerifiedError';
694
+ export interface VerifyMobileNumberMutation {
695
+ verifyMobileNumber?: null | {
696
+ __typename: VerifyMobileNumberError;
697
+ };
698
+ }
699
+ export interface VerifyMobileNumberMutationVariables {
700
+ input: {
701
+ verificationCode: string;
702
+ };
703
+ }
704
+ export type CreateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyExistsError';
705
+ export interface CreateMemberVerificationMutation {
706
+ createMemberVerification?: null | {
707
+ __typename: CreateMemberVerificationError;
708
+ };
709
+ }
710
+ export interface CreateMemberVerificationMutationVariables {
711
+ input: {
712
+ id: string;
713
+ idFrontImage: string;
714
+ selfieImage: string;
715
+ address: string;
716
+ sourceOfIncome: string;
717
+ natureOfWork: string;
718
+ nationality: string;
719
+ placeOfBirth: string;
720
+ };
721
+ }
722
+ export type UpdateMemberVerificationError = 'FileDoesNotExistError' | 'FileNotReadyError' | 'MemberVerificationAlreadyApprovedError' | 'MemberVerificationDoesNotExistError';
723
+ export interface UpdateMemberVerificationMutation {
724
+ updateMemberVerification?: null | {
725
+ __typename: UpdateMemberVerificationError;
726
+ };
727
+ }
728
+ export interface UpdateMemberVerificationMutationVariables {
729
+ input: {
730
+ id: string;
731
+ data: {
732
+ idFrontImage?: string;
733
+ selfieImage?: string;
734
+ address?: string;
735
+ sourceOfIncome?: string;
736
+ natureOfWork?: string;
737
+ nationality?: string;
738
+ placeOfBirth?: string;
739
+ };
740
+ };
741
+ }
742
+ export interface ProfileCompletion {
743
+ completionPercentage: Decimal;
744
+ personalInformation: boolean;
745
+ accountVerification: boolean;
746
+ mobileNumberVerification: boolean;
747
+ transactionPassword: boolean;
748
+ accountPassword: boolean;
749
+ }
750
+ export interface ProfileCompletionQuery {
751
+ profileCompletion: ProfileCompletion;
752
+ }
753
+ export interface DepositGatewaySettings {
754
+ minimumAmount: string;
755
+ maximumAmount: string;
756
+ webEnabled: boolean;
757
+ mobileWebEnabled: boolean;
758
+ androidEnabled: boolean;
759
+ iosEnabled: boolean;
760
+ }
761
+ export interface WithdrawalGatewaySettings {
762
+ minimumAmount: Decimal;
763
+ maximumAmount: Decimal;
764
+ fixedFee?: Decimal | null;
765
+ percentageFee?: Decimal | null;
766
+ webEnabled: boolean;
767
+ mobileWebEnabled: boolean;
768
+ androidEnabled: boolean;
769
+ iosEnabled: boolean;
770
+ }
771
+ export interface PointsClubSettings {
772
+ multiplier: Decimal;
773
+ }
774
+ export interface Platform {
775
+ restrictWithdrawalsToVerifiedMembers: boolean;
776
+ minimumFirstDepositAmount: Decimal;
777
+ bankDepositGatewaySettings?: DepositGatewaySettings | null;
778
+ gcashDepositGatewaySettings?: DepositGatewaySettings | null;
779
+ mayaDepositGatewaySettings?: DepositGatewaySettings | null;
780
+ mayaAppDepositGatewaySettings?: DepositGatewaySettings | null;
781
+ bankWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
782
+ gcashWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
783
+ mayaWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
784
+ mayaAppWithdrawalGatewaySettings?: WithdrawalGatewaySettings | null;
785
+ pointsClubSettings?: PointsClubSettings | null;
786
+ }
787
+ export type PlatformQuery = Platform;
788
+ export interface Session {
789
+ id: string;
790
+ dateTimeCreated: DateString;
791
+ }
792
+ export type CreateSessionInput = {
793
+ name: string;
794
+ password: string;
795
+ mobileNumber?: never;
796
+ verificationCode?: never;
797
+ sessionId?: never;
798
+ } | {
799
+ name?: never;
800
+ password?: never;
801
+ mobileNumber: string;
802
+ verificationCode: string;
803
+ sessionId?: never;
804
+ } | {
805
+ name?: never;
806
+ password?: never;
807
+ mobileNumber?: never;
808
+ verificationCode?: never;
809
+ sessionId: string;
810
+ };
811
+ export type Authenticator = {
812
+ type: 'SECURITY_QUESTION';
813
+ token: string;
814
+ secretQuestion: SecretQuestion;
815
+ };
816
+ export type CreateSessionMutation = {
817
+ session: Session;
818
+ accessToken: string;
819
+ refreshToken: string;
820
+ authenticator?: never;
821
+ } | {
822
+ session: Session;
823
+ accessToken?: never;
824
+ refreshToken?: never;
825
+ authenticator: Authenticator;
826
+ };
827
+ export type CreateSessionError = 'AccountNotFound' | 'AccountBlacklisted';
828
+ export type RefreshSessionError = 'InvalidToken' | 'AccountBlacklisted' | 'SessionExpired';
829
+ export interface RefreshSessionMutation {
830
+ accessToken: string;
831
+ refreshToken: string;
832
+ }
833
+ export interface SecurityQuestionAuthenticateInput {
834
+ type: 'SECURITY_QUESTION';
835
+ token: string;
836
+ secretAnswer: string;
837
+ }
838
+ export type AuthenticateInput = SecurityQuestionAuthenticateInput;
839
+ export type AuthenticateError = 'InvalidTokenOrSecretAnswer';
840
+ export interface AuthenticateMutation {
841
+ session: Session;
842
+ accessToken: string;
843
+ refreshToken: string;
844
+ }
845
+ export interface MayaSession {
846
+ id: string;
847
+ member?: string;
848
+ dateTimeCreated: DateString;
849
+ }
850
+ export interface MayaSessionQuery {
851
+ mayaSession?: MayaSession | null;
852
+ }
853
+ export interface MayaSessionQueryVariables {
854
+ id: string;
855
+ }