@opexa/portal-sdk 0.54.6 → 0.54.7

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
@@ -1797,6 +1797,22 @@ var REGISTER_MAYA_MEMBER_ACCOUNT_MUTATION = gql`
1797
1797
  }
1798
1798
  }
1799
1799
  `;
1800
+ var REGISTER_AGENT_ACCOUNT_MUTATION = gql`
1801
+ mutation RegisterAgentAccount($input: RegisterAgentAccountInput!) {
1802
+ registerAgentAccount(input: $input) {
1803
+ __typename
1804
+ ... on AccountNameNotAvailableError {
1805
+ message
1806
+ }
1807
+ ... on EmailAddressNotAvailableError {
1808
+ message
1809
+ }
1810
+ ... on MobileNumberNotAvailableError {
1811
+ message
1812
+ }
1813
+ }
1814
+ }
1815
+ `;
1800
1816
  var UPDATE_MEMBER_ACCOUNT_MUTATION = gql`
1801
1817
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
1802
1818
  updateMemberAccount(input: $input) {
@@ -3501,6 +3517,19 @@ var AccountService = class {
3501
3517
  data: res.data.requireFirstDeposit
3502
3518
  };
3503
3519
  }
3520
+ async registerAgentAccount(variables) {
3521
+ const res = await this.client.request(REGISTER_AGENT_ACCOUNT_MUTATION, variables);
3522
+ if (!res.ok) return res;
3523
+ if (res.data?.registerAgentAccount) {
3524
+ return {
3525
+ ok: false,
3526
+ error: createOperationError(
3527
+ res.data.registerAgentAccount.__typename
3528
+ )
3529
+ };
3530
+ }
3531
+ return { ok: true };
3532
+ }
3504
3533
  };
3505
3534
 
3506
3535
  // src/utils/status-code-to-operation-error.ts
@@ -8764,6 +8793,21 @@ var Sdk = class {
8764
8793
  }
8765
8794
  });
8766
8795
  }
8796
+ async registerAgentAccount(input) {
8797
+ return await this.accountService.registerAgentAccount({
8798
+ input: {
8799
+ name: input.name,
8800
+ firstName: input.firstName,
8801
+ lastName: input.lastName,
8802
+ mobileNumber: input.mobileNumber,
8803
+ emailAddress: input.emailAddress,
8804
+ customProperties: input.customProperties
8805
+ },
8806
+ ...this.webDomain && {
8807
+ domain: this.webDomain
8808
+ }
8809
+ });
8810
+ }
8767
8811
  async updateAccount(id, input) {
8768
8812
  const {
8769
8813
  /**/