@opexa/portal-sdk 0.59.130 → 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 +18 -0
- package/dist/{chunk-C4PXAY2Y.js → chunk-OVFU2CHD.js} +22 -2
- package/dist/chunk-OVFU2CHD.js.map +1 -0
- package/dist/index.cjs +108 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +89 -1
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +20 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +4 -3
- package/dist/services/index.d.ts +4 -3
- package/dist/services/index.js +1 -1
- package/dist/{types-DBoV5mj_.d.ts → types-Dob6RZ3W.d.ts} +19 -3
- package/dist/{types-CPgGad2u.d.cts → types-G9IODIto.d.cts} +19 -3
- package/package.json +1 -1
- package/dist/chunk-C4PXAY2Y.js.map +0 -1
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 {
|
|
@@ -2318,6 +2328,9 @@ var REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION = gql`
|
|
|
2318
2328
|
`;
|
|
2319
2329
|
var PLATFORM_QUERY = gql`
|
|
2320
2330
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
2331
|
+
suspended
|
|
2332
|
+
suspensionStartDateTime
|
|
2333
|
+
suspensionEndDateTime
|
|
2321
2334
|
minimumAmount
|
|
2322
2335
|
maximumAmount
|
|
2323
2336
|
fixedFee
|
|
@@ -2333,6 +2346,9 @@ var PLATFORM_QUERY = gql`
|
|
|
2333
2346
|
}
|
|
2334
2347
|
|
|
2335
2348
|
fragment WithdrawalGatewaySettingsCoreData on WithdrawalGatewaySettings {
|
|
2349
|
+
suspended
|
|
2350
|
+
suspensionStartDateTime
|
|
2351
|
+
suspensionEndDateTime
|
|
2336
2352
|
minimumAmount
|
|
2337
2353
|
maximumAmount
|
|
2338
2354
|
fixedFee
|
|
@@ -4146,6 +4162,10 @@ var AccountService = class {
|
|
|
4146
4162
|
data: res.data.memberAccount
|
|
4147
4163
|
};
|
|
4148
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
|
+
}
|
|
4149
4169
|
async registerMemberAccount(variables) {
|
|
4150
4170
|
const { reCAPTCHAResponse, domain, ...others } = variables;
|
|
4151
4171
|
const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_MUTATION, others, {
|
|
@@ -7112,5 +7132,5 @@ var ExtensionService = class {
|
|
|
7112
7132
|
};
|
|
7113
7133
|
|
|
7114
7134
|
export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint, isIOSPlatform };
|
|
7115
|
-
//# sourceMappingURL=chunk-
|
|
7116
|
-
//# sourceMappingURL=chunk-
|
|
7135
|
+
//# sourceMappingURL=chunk-OVFU2CHD.js.map
|
|
7136
|
+
//# sourceMappingURL=chunk-OVFU2CHD.js.map
|