@opexa/portal-sdk 0.59.131 → 0.59.132

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 CHANGED
@@ -200,6 +200,24 @@ function Page() {
200
200
  };
201
201
  ```
202
202
 
203
+ - `branches` - Retrieve the configured platform's account branches. This is a
204
+ public request and does not require or send a member session.
205
+
206
+ ```ts
207
+ branches(): Promise<BranchesReturn>
208
+ ```
209
+
210
+ ```ts
211
+ interface Branch {
212
+ id: string;
213
+ name: string;
214
+ code: string;
215
+ description?: string | null;
216
+ }
217
+
218
+ type BranchesReturn = OperationResult<never, Branch[]>;
219
+ ```
220
+
203
221
  - `createAccount` - Create new user account
204
222
 
205
223
  ```ts
@@ -1805,6 +1805,16 @@ var CLAIM_REBATE_MUTATION = gql`
1805
1805
  }
1806
1806
  }
1807
1807
  `;
1808
+ var BRANCHES_QUERY = gql`
1809
+ query GetBranches {
1810
+ branches {
1811
+ id
1812
+ name
1813
+ code
1814
+ description
1815
+ }
1816
+ }
1817
+ `;
1808
1818
  var MEMBER_QUERY = gql`
1809
1819
  query Member {
1810
1820
  member {
@@ -4152,6 +4162,10 @@ var AccountService = class {
4152
4162
  data: res.data.memberAccount
4153
4163
  };
4154
4164
  }
4165
+ async branches() {
4166
+ const res = await this.client.request(BRANCHES_QUERY);
4167
+ return res.ok ? { ok: true, data: res.data.branches } : res;
4168
+ }
4155
4169
  async registerMemberAccount(variables) {
4156
4170
  const { reCAPTCHAResponse, domain, ...others } = variables;
4157
4171
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_MUTATION, others, {
@@ -7118,5 +7132,5 @@ var ExtensionService = class {
7118
7132
  };
7119
7133
 
7120
7134
  export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint, isIOSPlatform };
7121
- //# sourceMappingURL=chunk-BFON53GD.js.map
7122
- //# sourceMappingURL=chunk-BFON53GD.js.map
7135
+ //# sourceMappingURL=chunk-OVFU2CHD.js.map
7136
+ //# sourceMappingURL=chunk-OVFU2CHD.js.map