@opexa/portal-sdk 0.37.0 → 0.37.2

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.cjs CHANGED
@@ -1396,6 +1396,21 @@ var CREATE_MEMBER_VERIFICATION_MUTATION = gql`
1396
1396
  }
1397
1397
  }
1398
1398
  `;
1399
+ var CREATE_MEMBER_VERIFICATION_NEXT_MUTATION = gql`
1400
+ mutation CreateMemberVerificationInput_next($input: CreateMemberVerificationInput_next!) {
1401
+ createMemberVerification_next(input: $input) {
1402
+ ... on FileDoesNotExistError {
1403
+ __typename
1404
+ }
1405
+ ... on FileNotReadyError {
1406
+ __typename
1407
+ }
1408
+ ... on MemberVerificationAlreadyExistsError {
1409
+ __typename
1410
+ }
1411
+ }
1412
+ }
1413
+ `;
1399
1414
  var UPDATE_MEMBER_VERIFICATION_MUTATION = gql`
1400
1415
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
1401
1416
  updateMemberVerification(input: $input) {
@@ -1414,6 +1429,24 @@ var UPDATE_MEMBER_VERIFICATION_MUTATION = gql`
1414
1429
  }
1415
1430
  }
1416
1431
  `;
1432
+ var UPDATE_MEMBER_VERIFICATION_NEXT_MUTATION = gql`
1433
+ mutation UpdateMemberVerification_next($input: UpdateMemberVerificationInput!) {
1434
+ updateMemberVerification_next(input: $input) {
1435
+ ... on FileDoesNotExistError {
1436
+ __typename
1437
+ }
1438
+ ... on FileNotReadyError {
1439
+ __typename
1440
+ }
1441
+ ... on MemberVerificationAlreadyApprovedError {
1442
+ __typename
1443
+ }
1444
+ ... on MemberVerificationDoesNotExistError {
1445
+ __typename
1446
+ }
1447
+ }
1448
+ }
1449
+ `;
1417
1450
  var PROFILE_COMPLETION_QUERY = gql`
1418
1451
  query ProfileCompletion {
1419
1452
  profileCompletion {
@@ -2422,6 +2455,19 @@ var AccountService = class {
2422
2455
  ok: true
2423
2456
  };
2424
2457
  }
2458
+ async createMemberVerification_Next(variables) {
2459
+ const res = await this.client.request(CREATE_MEMBER_VERIFICATION_NEXT_MUTATION, variables);
2460
+ if (!res.ok) return res;
2461
+ if (res.data.createMemberVerification) {
2462
+ return {
2463
+ ok: false,
2464
+ error: createOperationError(res.data.createMemberVerification.__typename)
2465
+ };
2466
+ }
2467
+ return {
2468
+ ok: true
2469
+ };
2470
+ }
2425
2471
  async updateMemberVerification(variables) {
2426
2472
  const res = await this.client.request(UPDATE_MEMBER_VERIFICATION_MUTATION, variables);
2427
2473
  if (!res.ok) return res;
@@ -2435,6 +2481,19 @@ var AccountService = class {
2435
2481
  ok: true
2436
2482
  };
2437
2483
  }
2484
+ async updateMemberVerification_Next(variables) {
2485
+ const res = await this.client.request(UPDATE_MEMBER_VERIFICATION_NEXT_MUTATION, variables);
2486
+ if (!res.ok) return res;
2487
+ if (res.data.updateMemberVerification) {
2488
+ return {
2489
+ ok: false,
2490
+ error: createOperationError(res.data.updateMemberVerification.__typename)
2491
+ };
2492
+ }
2493
+ return {
2494
+ ok: true
2495
+ };
2496
+ }
2438
2497
  async memberVerification() {
2439
2498
  const res = await this.client.request(MEMBER_VERIFICATION_QUERY);
2440
2499
  if (!res.ok) return res;
@@ -4354,6 +4413,7 @@ var DomainManager = class {
4354
4413
  "crazywin.ph": "587374767622209",
4355
4414
  "crazywin.asia": "587374767622209",
4356
4415
  "happybingo.ph": "617045164450475",
4416
+ "happybingo.games": "1387188208976275",
4357
4417
  ...this.environment === "production" && {
4358
4418
  "crazywinph.ph": "587374767622209"
4359
4419
  }
@@ -6587,6 +6647,16 @@ var Sdk = class {
6587
6647
  });
6588
6648
  return res.ok ? { ok: true, data: { id } } : res;
6589
6649
  }
6650
+ async submitVerificationDetails_Next(input) {
6651
+ const id = input.id ?? objectId.ObjectId.generate(ObjectType.Verification).toString();
6652
+ const res = await this.accountService.createMemberVerification_Next({
6653
+ input: {
6654
+ id,
6655
+ ...input
6656
+ }
6657
+ });
6658
+ return res.ok ? { ok: true, data: { id } } : res;
6659
+ }
6590
6660
  async updateVerificationDetails(id, input) {
6591
6661
  return await this.accountService.updateMemberVerification({
6592
6662
  input: {
@@ -6597,6 +6667,16 @@ var Sdk = class {
6597
6667
  }
6598
6668
  });
6599
6669
  }
6670
+ async updateVerificationDetails_Next(id, input) {
6671
+ return await this.accountService.updateMemberVerification_Next({
6672
+ input: {
6673
+ id,
6674
+ data: {
6675
+ ...input
6676
+ }
6677
+ }
6678
+ });
6679
+ }
6600
6680
  async resetPassword(input) {
6601
6681
  return await this.accountService.resetPassword({
6602
6682
  input: {