@opexa/portal-sdk 0.0.71 → 0.0.73

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.
@@ -60,11 +60,6 @@ export interface Session {
60
60
  export type SessionError = UnionAlias<RefreshSessionError>;
61
61
  export type SessionReturn = OperationResult<SessionError, Session | null>;
62
62
  export interface WatchSessionInput {
63
- /**
64
- * @default 30000
65
- * @min `30000` (30s)
66
- * @max `300000` (5m)
67
- */
68
63
  interval?: number;
69
64
  onInvalid: () => void | Promise<void>;
70
65
  }
@@ -87,22 +82,7 @@ export type File = {
87
82
  };
88
83
  export type FileReturn = OperationResult<never, File | null>;
89
84
  export interface UploadImageFileInput {
90
- /**
91
- * @example
92
- * ```ts
93
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
94
- *
95
- * const id = ObjectId.generate(ObjectType.File).toString()
96
- * ```
97
- */
98
85
  id?: string;
99
- /**
100
- * @validation
101
- *
102
- * - _type_: `image/png`, `image/jpg`, `image/jpeg`,
103
- * - _max file size_: `10MB`
104
- * - _max name length (excluding extension)_: `52`
105
- */
106
86
  file: globalThis.File;
107
87
  }
108
88
  export type UploadImageFileError = UnionAlias<Internal.UploadPrivateImageFileError>;
@@ -159,195 +139,53 @@ export interface ProfileCompletion {
159
139
  }
160
140
  export type ProfileCompletionReturn = OperationResult<never, ProfileCompletion>;
161
141
  export interface CreateAccountInput {
162
- /**
163
- * @example
164
- * ```ts
165
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
166
- *
167
- * const id = ObjectId.generate(ObjectType.Account).toString()
168
- * ```
169
- */
170
142
  id?: string;
171
- /**
172
- * @validation
173
- * - _min_: `8`
174
- * - _max_: `30`
175
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
176
- */
177
143
  name: string;
178
- /**
179
- * @validation
180
- * - _min_: `8`
181
- * - _max_: `30`
182
- */
183
144
  password: string;
184
- /**
185
- * @validation
186
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
187
- *
188
- * @example
189
- * ```bash
190
- * +639190000000
191
- * 09190000000
192
- * 9190000000
193
- * ```
194
- */
195
145
  mobileNumber: string;
196
- /**
197
- * @validation
198
- * - _format_: `date`
199
- * - _min_: `21 (years)`
200
- */
201
146
  dateOfBirth: Date | string;
202
- /**
203
- * @validation
204
- * - _format_: `url`
205
- */
206
147
  domain?: string;
207
- /**
208
- * @deprecated use `referralCode`
209
- */
210
148
  btag?: string;
211
- /**
212
- * @validation
213
- * - _min_: `4`
214
- * - _max_: `10`
215
- * - _pattern_: `/^\d{4,10}$/`
216
- */
149
+ referralCode?: string;
217
150
  verificationCode?: string;
218
151
  reCAPTCHAResponse?: string;
219
- /**
220
- * @validation
221
- * - _min_: `4`
222
- * - _max_: `12`
223
- * - _pattern_: `/^[A-Z0-9]+$/`
224
- */
225
- referralCode?: string;
226
152
  }
227
- export interface CreateAccountInput__Next {
228
- /**
229
- * @example
230
- * ```ts
231
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
232
- *
233
- * const id = ObjectId.generate(ObjectType.Account).toString()
234
- * ```
235
- */
153
+ export interface NameAndPasswordCreateAccountInput {
154
+ type: 'NAME_AND_PASSWORD';
236
155
  id?: string;
237
- /**
238
- * @validation
239
- * - _min_: `8`
240
- * - _max_: `30`
241
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
242
- */
243
156
  name: string;
244
- /**
245
- * @validation
246
- * - _min_: `8`
247
- * - _max_: `30`
248
- */
249
157
  password: string;
250
- /**
251
- * @validation
252
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
253
- *
254
- * @example
255
- * ```bash
256
- * +639190000000
257
- * 09190000000
258
- * 9190000000
259
- * ```
260
- */
261
158
  mobileNumber?: string | undefined;
262
- /**
263
- * @validation
264
- * - _format_: `date`
265
- * - _min_: `21 (years)`
266
- */
267
159
  reCAPTCHAResponse?: string;
268
160
  }
161
+ export interface MobileNumberCreateAccountInput {
162
+ type: 'MOBILE_NUMBER';
163
+ id?: string;
164
+ mobileNumber: string;
165
+ referralCode?: string;
166
+ verificationCode?: string;
167
+ reCAPTCHAResponse?: string;
168
+ }
169
+ export type CreateAccountInput__Next = NameAndPasswordCreateAccountInput | MobileNumberCreateAccountInput;
269
170
  export type CreateAccountError = UnionAlias<Internal.RegisterMemberAccountError>;
270
171
  export type CreateAccountReturn = OperationResult<CreateAccountError, {
271
172
  id: string;
272
173
  }>;
273
174
  export interface RegisterMayaAccountInput {
274
- /**
275
- * @validation
276
- * - _min_: `8`
277
- * - _max_: `30`
278
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
279
- */
280
175
  name: string;
281
- /**
282
- * @validation
283
- * - _min_: `8`
284
- * - _max_: `30`
285
- */
286
176
  password: string;
287
- /**
288
- * @validation
289
- * - _format_: `url`
290
- */
291
177
  domain?: string;
292
178
  }
293
179
  export type RegisterMayaAccountError = UnionAlias<Internal.RegisterMayaMemberAccountError>;
294
180
  export type RegisterMayaAccountReturn = OperationResult<RegisterMayaAccountError>;
295
181
  export interface UpdateAccountInput {
296
- /**
297
- * @validation
298
- * - _min_: `8`
299
- * - _max_: `30`
300
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
301
- */
302
182
  name?: string;
303
- /**
304
- * @validation
305
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
306
- *
307
- * @example
308
- * ```bash
309
- * +639190000000
310
- * 09190000000
311
- * 9190000000
312
- * ```
313
- */
314
183
  password?: string;
315
- /**
316
- * @validation
317
- * - _format_: `email`
318
- */
319
184
  emailAddress?: string;
320
- /**
321
- * @validation
322
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
323
- *
324
- * @example
325
- * ```bash
326
- * +639190000000
327
- * 09190000000
328
- * 9190000000
329
- * ```
330
- */
331
185
  mobileNumber?: string;
332
- /**
333
- * @validation
334
- * - _max_: `240`
335
- */
336
186
  realName?: string;
337
- /**
338
- * @validation
339
- * - _min_: `2`
340
- * - _max_: `30`
341
- * - _pattern_: `/^[a-z]{2,30}$/i`
342
- */
343
187
  nickName?: string;
344
188
  validId?: string;
345
- /**
346
- * @validation
347
- * - _min_: `8`
348
- * - _max_: `30`
349
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
350
- */
351
189
  transactionPassword?: string;
352
190
  secretQuestion?: SecretQuestion;
353
191
  secretAnswer?: string;
@@ -356,100 +194,21 @@ export type UpdateAccountError = UnionAlias<Internal.UpdateMemberAccountError>;
356
194
  export type UpdateAccountReturn = OperationResult<UpdateAccountError>;
357
195
  export type DeleteAccountReturn = OperationResult;
358
196
  export interface ResetPasswordInput {
359
- /**
360
- * @validation
361
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
362
- *
363
- * @example
364
- * ```bash
365
- * +639190000000
366
- * 09190000000
367
- * 9190000000
368
- * ```
369
- */
370
197
  mobileNumber: string;
371
- /**
372
- * @validation
373
- * - _min_: `8`
374
- * - _max_: `30`
375
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
376
- */
377
198
  newPassword: string;
378
- /**
379
- * @validation
380
- * - _min_: `4`
381
- * - _max_: `10`
382
- * - _pattern_: `/^\d{4,10}$/`
383
- */
384
199
  verificationCode: string;
385
200
  }
386
201
  export type ResetPasswordError = UnionAlias<Internal.ResetPasswordError>;
387
202
  export type ResetPasswordReturn = OperationResult<ResetPasswordError>;
388
203
  export interface SubmitVerificationDetailsInput {
389
- /**
390
- * @example
391
- * ```ts
392
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
393
- *
394
- * const id = ObjectId.generate(ObjectType.Verification).toString()
395
- * ```
396
- */
397
204
  id?: string;
398
- /**
399
- * @description id of the uploaded file
400
- * @example
401
- * ```ts
402
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
403
- *
404
- * const id = ObjectId.generate(ObjectType.File).toString()
405
- * ```
406
- */
407
205
  idFrontImage: string;
408
- /**
409
- * @description id of the uploaded file
410
- * @example
411
- * ```ts
412
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
413
- *
414
- * const id = ObjectId.generate(ObjectType.File).toString()
415
- * ```
416
- */
417
206
  selfieImage: string;
418
- /**
419
- * @validation
420
- * - _min_: `2`
421
- * - _max_: `120`
422
- */
423
207
  address: string;
424
- /**
425
- * @validation
426
- * - _min_: `2`
427
- * - _max_: `120`
428
- */
429
208
  permanentAddress: string;
430
- /**
431
- * @validation
432
- * - _min_: `2`
433
- * - _max_: `120`
434
- */
435
209
  sourceOfIncome: string;
436
- /**
437
- * @validation
438
- * - _min_: `2`
439
- * - _max_: `120`
440
- */
441
210
  natureOfWork: string;
442
- /**
443
- * @validation
444
- * - _min_: `2`
445
- * - _max_: `20`
446
- */
447
211
  nationality: string;
448
- /**
449
- * @validation
450
- * - _min_: `2`
451
- * - _max_: `120`
452
- */
453
212
  placeOfBirth: string;
454
213
  }
455
214
  export type SubmitVerificationError = UnionAlias<Internal.CreateMemberVerificationError>;
@@ -545,18 +304,7 @@ export type GameSession = {
545
304
  };
546
305
  export type GameSessionReturn = OperationResult<never, GameSession | null>;
547
306
  export interface CreateGameSessionInput {
548
- /**
549
- * @example
550
- * ```ts
551
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
552
- *
553
- * const id = ObjectId.generate(ObjectType.GameSession).toString()
554
- * ```
555
- */
556
307
  id?: string;
557
- /**
558
- * @description id of the game
559
- */
560
308
  game: `SPORTS:${Extract<GameProvider, 'BTI'>}` | (string & {});
561
309
  }
562
310
  export type CreateGameSessionError = UnionAlias<Internal.CreateGameSessionError>;
@@ -754,54 +502,21 @@ export type Deposit = GCashDeposit | MayaDeposit | MayaAppDeposit | BankDeposit
754
502
  export type DepositReturn = OperationResult<never, Deposit | null>;
755
503
  export type DepositsCountReturn = OperationResult<never, number>;
756
504
  export interface CreateMayaDepositInput {
757
- /**
758
- * @example
759
- * ```ts
760
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
761
- *
762
- * const id = ObjectId.generate(ObjectType.Deposit).toString()
763
- * ```
764
- */
765
505
  id?: string;
766
506
  type: 'MAYA';
767
507
  amount: number;
768
- /**
769
- * @description id of the promo
770
- */
771
508
  promo?: string;
772
509
  }
773
510
  export interface CreateGCashDepositInput {
774
- /**
775
- * @example
776
- * ```ts
777
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
778
- *
779
- * const id = ObjectId.generate(ObjectType.Deposit).toString()
780
- * ```
781
- */
782
511
  id?: string;
783
512
  type: 'GCASH';
784
513
  amount: number;
785
- /**
786
- * @description id of the promo
787
- */
788
514
  promo?: string;
789
515
  }
790
516
  export interface CreateMayaAppDepositInput {
791
- /**
792
- * @example
793
- * ```ts
794
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
795
- *
796
- * const id = ObjectId.generate(ObjectType.Deposit).toString()
797
- * ```
798
- */
799
517
  id?: string;
800
518
  type: 'MAYA_APP';
801
519
  amount: number;
802
- /**
803
- * @description id of the promo
804
- */
805
520
  promo?: string;
806
521
  }
807
522
  export type CreateDepositInput = CreateMayaDepositInput | CreateGCashDepositInput | CreateMayaAppDepositInput;
@@ -856,107 +571,29 @@ export interface WithdrawalRecordsInput extends Internal.WithdrawalRecordsQueryV
856
571
  export type WithdrawalRecordsReturn = OperationResult<never, PaginatedQueryResult<'withdrawalRecords', WithdrawalRecord>>;
857
572
  export type RemainingDailyWithdrawalsCountReturn = OperationResult<never, number>;
858
573
  export interface CreateBankWithdrawalInput {
859
- /**
860
- * @example
861
- * ```ts
862
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
863
- *
864
- * const id = ObjectId.generate(ObjectType.Withdrawal).toString()
865
- * ```
866
- */
867
574
  id?: string;
868
575
  type: 'BANK';
869
576
  amount: number;
870
- /**
871
- * @validation
872
- * - _min_: `8`
873
- * - _max_: `30`
874
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
875
- */
876
577
  transactionPassword: string;
877
578
  }
878
579
  export interface CreateGCashWithdrawalInput {
879
- /**
880
- * @example
881
- * ```ts
882
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
883
- *
884
- * const id = ObjectId.generate(ObjectType.Withdrawal).toString()
885
- * ```
886
- */
887
580
  id?: string;
888
581
  type: 'GCASH';
889
582
  amount: number;
890
- /**
891
- * @validation
892
- * - _min_: `8`
893
- * - _max_: `30`
894
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
895
- */
896
583
  transactionPassword: string;
897
- /**
898
- * @validation
899
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
900
- *
901
- * @example
902
- * ```bash
903
- * +639190000000
904
- * 09190000000
905
- * 9190000000
906
- * ```
907
- */
908
584
  recipientMobileNumber: string;
909
585
  }
910
586
  export interface CreateMayaWithdrawalInput {
911
- /**
912
- * @example
913
- * ```ts
914
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
915
- *
916
- * const id = ObjectId.generate(ObjectType.Withdrawal).toString()
917
- * ```
918
- */
919
587
  id?: string;
920
588
  type: 'MAYA';
921
589
  amount: number;
922
- /**
923
- * @validation
924
- * - _min_: `8`
925
- * - _max_: `30`
926
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
927
- */
928
590
  transactionPassword: string;
929
- /**
930
- * @validation
931
- * - _pattern_: /^(\+?63|0)?9\d{9}$/
932
- *
933
- * @example
934
- * ```bash
935
- * +639190000000
936
- * 09190000000
937
- * 9190000000
938
- * ```
939
- */
940
591
  recipientMobileNumber: string;
941
592
  }
942
593
  export interface CreateMayaAppWithdrawalInput {
943
- /**
944
- * @example
945
- * ```ts
946
- * import { ObjectId, ObjectType } from '@opexa/portal-sdk';
947
- *
948
- * const id = ObjectId.generate(ObjectType.Withdrawal).toString()
949
- * ```
950
- */
951
594
  id?: string;
952
595
  type: 'MAYA_APP';
953
596
  amount: number;
954
- /**
955
- * @validation
956
- * - _min_: `8`
957
- * - _max_: `30`
958
- * - _pattern_: `/^[a-z0-9]{8,30}$/`
959
- */
960
597
  transactionPassword: string;
961
598
  }
962
599
  export type CreateWithdrawalInput = CreateBankWithdrawalInput | CreateGCashWithdrawalInput | CreateMayaWithdrawalInput | CreateMayaAppWithdrawalInput;
@@ -1095,15 +732,29 @@ export interface Site {
1095
732
  }
1096
733
  export type SiteReturn = OperationResult<never, Site>;
1097
734
  export interface UpdateReferralCodeInput {
1098
- /**
1099
- * @validation
1100
- * - _min_: `4`
1101
- * - _max_: `12`
1102
- * - _pattern_: `/^[A-Z0-9]+$/`
1103
- */
1104
735
  code: string;
1105
736
  }
1106
737
  export type UpdateReferralCodeError = UnionAlias<Internal.UpdateReferralCodeError>;
1107
738
  export type UpdateReferralCodeReturn = OperationResult<UpdateReferralCodeError>;
1108
739
  export type ReferralCodeReturn = OperationResult<never, string | null>;
740
+ export interface Referral {
741
+ id: string;
742
+ upline: {
743
+ id: number;
744
+ name: string;
745
+ realName: string;
746
+ };
747
+ downline: {
748
+ id: number;
749
+ name: string;
750
+ realName: string;
751
+ };
752
+ level: number;
753
+ turnover: number;
754
+ commision: number;
755
+ dateTimeCreated: Date;
756
+ }
757
+ export interface ReferralsInput extends Internal.ReferralsQueryVariables {
758
+ }
759
+ export type ReferralsReturn = OperationResult<never, PaginatedQueryResult<'referrals', Referral>>;
1109
760
  export {};
@@ -1,6 +1,6 @@
1
1
  import { GraphQLClient } from '../utils/graphql-client';
2
2
  import { OperationResult } from '../utils/types';
3
- import { Announcement, AnnouncementsQueryVariables, CreateMemberVerificationError, CreateMemberVerificationMutationVariables, DeleteMemberAccountMutationVariables, MemberAccount, MemberVerification, PaginatedQueryResult, Platform, ProfileCompletion, RegisterMayaMemberAccountError, RegisterMayaMemberAccountMutationVariables, RegisterMemberAccountError, RegisterMemberAccountMutationVariables, RegisterMemberAccountMutationVariables__Next, ResetPasswordError, ResetPasswordMutationVariables, SendVerificationCodeError, SendVerificationCodeMutationVariables, UpdateMemberAccountError, UpdateMemberAccountMutationVariables, UpdateMemberVerificationError, UpdateMemberVerificationMutationVariables, UpdateReferralCodeError, UpdateReferralCodeMutationVariables, VerifyMobileNumberError, VerifyMobileNumberMutationVariables } from './types';
3
+ import { Announcement, AnnouncementsQueryVariables, CreateMemberVerificationError, CreateMemberVerificationMutationVariables, DeleteMemberAccountMutationVariables, MemberAccount, MemberVerification, PaginatedQueryResult, Platform, ProfileCompletion, RegisterMayaMemberAccountError, RegisterMayaMemberAccountMutationVariables, RegisterMemberAccountError, RegisterMemberAccountMutationVariables, RegisterMemberAccountMutationVariables__Next, RegisterMemberAccountViaMobileMutationVariables, ResetPasswordError, ResetPasswordMutationVariables, SendVerificationCodeError, SendVerificationCodeMutationVariables, UpdateMemberAccountError, UpdateMemberAccountMutationVariables, UpdateMemberVerificationError, UpdateMemberVerificationMutationVariables, UpdateReferralCodeError, UpdateReferralCodeMutationVariables, VerifyMobileNumberError, VerifyMobileNumberMutationVariables } from './types';
4
4
 
5
5
  export declare class AccountService {
6
6
  private client;
@@ -8,6 +8,7 @@ export declare class AccountService {
8
8
  /** aka `Query.self` */
9
9
  memberAccount(): Promise<OperationResult<never, MemberAccount>>;
10
10
  registerMemberAccount(variables: RegisterMemberAccountMutationVariables): Promise<OperationResult<RegisterMemberAccountError>>;
11
+ registerMemberAccountViaMobile(variables: RegisterMemberAccountViaMobileMutationVariables): Promise<OperationResult<RegisterMemberAccountError>>;
11
12
  registerMemberAccount__next(variables: RegisterMemberAccountMutationVariables__Next): Promise<OperationResult<RegisterMemberAccountError>>;
12
13
  updateMemberAccount(variables: UpdateMemberAccountMutationVariables): Promise<OperationResult<UpdateMemberAccountError>>;
13
14
  deleteMemberAccount(variables: DeleteMemberAccountMutationVariables): Promise<OperationResult>;
@@ -44,6 +44,7 @@ export declare const MEMBER_QUERY: string;
44
44
  export declare const MEMBER_ACCOUNT_QUERY: string;
45
45
  export declare const MEMBER_VERIFICATION_QUERY: string;
46
46
  export declare const REGISTER_MEMBER_ACCOUNT_MUTATION: string;
47
+ export declare const REGISTER_MEMBER_ACCOUNT_VIA_MOBILE_MUTATION: string;
47
48
  export declare const REGISTER_MEMBER_ACCOUNT_MUTATION__NEXT: string;
48
49
  export declare const REGISTER_MAYA_MEMBER_ACCOUNT_MUTATION: string;
49
50
  export declare const UPDATE_MEMBER_ACCOUNT_MUTATION: string;
@@ -60,3 +61,4 @@ export declare const VALIDATE_MAYA_SESSION_MUTATION: string;
60
61
  export declare const ACTIVITY_RECORDS_QUERY: string;
61
62
  export declare const REFERRAL_CODE_QUERY: string;
62
63
  export declare const UPDATE_REFERRAL_CODE_MUTATION: string;
64
+ export declare const REFERRALS_QUERY: string;
@@ -1,6 +1,6 @@
1
1
  import { GraphQLClient } from '../utils/graphql-client';
2
2
  import { OperationResult } from '../utils/types';
3
- import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, Member, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
3
+ import { ActivityRecord, ActivityRecordsQueryVariables, BetRecord, BetRecordsQueryVariables, DepositRecord, DepositRecordsQueryVariables, Member, PaginatedQueryResult, PointsWalletTransaction, PointsWalletTransactionsQueryVariables, Referral, ReferralsQueryVariables, TransactionRecord, TransactionRecordsQueryVariables, WithdrawalRecord, WithdrawalRecordsQueryVariables } from './types';
4
4
 
5
5
  export declare class ReportService {
6
6
  private client;
@@ -13,4 +13,5 @@ export declare class ReportService {
13
13
  member(): Promise<OperationResult<never, Member>>;
14
14
  pointsWalletTransactions(variables?: PointsWalletTransactionsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<PointsWalletTransaction>>>;
15
15
  activityRecords(variables?: ActivityRecordsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<ActivityRecord>>>;
16
+ referrals(variables?: ReferralsQueryVariables): Promise<OperationResult<never, PaginatedQueryResult<Referral>>>;
16
17
  }
@@ -686,16 +686,30 @@ export interface RegisterMemberAccountMutationVariables {
686
686
  domain?: string;
687
687
  btag?: string;
688
688
  };
689
+ referralCode?: string;
689
690
  verificationCode?: string;
690
691
  reCAPTCHAResponse?: string;
692
+ }
693
+ export interface RegisterMemberAccountViaMobileMutation {
694
+ registerMemberAccountViaMobile?: null | {
695
+ __typename: RegisterMemberAccountError;
696
+ };
697
+ }
698
+ export interface RegisterMemberAccountViaMobileMutationVariables {
699
+ input: {
700
+ id: string;
701
+ mobileNumber: string;
702
+ };
691
703
  referralCode?: string;
704
+ verificationCode?: string;
705
+ reCAPTCHAResponse?: string;
692
706
  }
693
707
  export interface RegisterMemberAccountMutationVariables__Next {
694
708
  input: {
695
709
  id: string;
696
710
  name: string;
697
711
  password: string;
698
- mobileNumber: string | undefined;
712
+ mobileNumber?: string;
699
713
  };
700
714
  reCAPTCHAResponse?: string;
701
715
  }
@@ -1047,3 +1061,32 @@ export interface UpdateReferralCodeMutation {
1047
1061
  __typename: UpdateReferralCodeError;
1048
1062
  };
1049
1063
  }
1064
+ export interface Referral {
1065
+ id: string;
1066
+ upline: {
1067
+ id: number;
1068
+ name: string;
1069
+ realName: string;
1070
+ };
1071
+ downline: {
1072
+ id: number;
1073
+ name: string;
1074
+ realName: string;
1075
+ };
1076
+ level: number;
1077
+ turnover: Decimal;
1078
+ commision: Decimal;
1079
+ dateTimeCreated: DateString;
1080
+ }
1081
+ export interface ReferralsQuery {
1082
+ member: PaginatedQuery<'referrals', Referral>;
1083
+ }
1084
+ export interface ReferralsQueryVariables {
1085
+ first?: number;
1086
+ after?: string;
1087
+ filter?: {
1088
+ level?: NumberFilterField;
1089
+ upline?: ObjectIdFilterField;
1090
+ downline?: ObjectIdFilterField;
1091
+ };
1092
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opexa/portal-sdk",
3
3
  "type": "module",
4
- "version": "0.0.71",
4
+ "version": "0.0.73",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "typings": "dist/index.d.ts",