@opexa/portal-sdk 0.59.8 → 0.59.10
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 +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3338,6 +3338,11 @@ var MEMBER_VERIFICATION_REQUEST_AUTOMATIC_APPROVAL_ENABLED_QUERY = gql`
|
|
|
3338
3338
|
memberVerificationRequestAutomaticApprovalEnabled
|
|
3339
3339
|
}
|
|
3340
3340
|
`;
|
|
3341
|
+
var CANCEL_FREE_BET_DROP_MUTATION = gql`
|
|
3342
|
+
mutation CancelFreeBetDrop($input: CancelFreeBetDropInput!) {
|
|
3343
|
+
cancelFreeBetDrop(input: $input)
|
|
3344
|
+
}
|
|
3345
|
+
`;
|
|
3341
3346
|
var FREE_BET_DROPS_QUERY = gql`
|
|
3342
3347
|
query FreeBetDrops($first: Int, $after: Cursor, $filter: FreeBetDropFilterInput, $sort: FreeBetDropSortInput) {
|
|
3343
3348
|
freeBetDrops(first: $first, after: $after, filter: $filter, sort: $sort) {
|
|
@@ -4041,6 +4046,17 @@ var AccountService = class {
|
|
|
4041
4046
|
data: res.data.memberVerificationRequestAutomaticApprovalEnabled
|
|
4042
4047
|
};
|
|
4043
4048
|
}
|
|
4049
|
+
async file(variables) {
|
|
4050
|
+
const res = await this.client.request(
|
|
4051
|
+
FILE_QUERY,
|
|
4052
|
+
variables
|
|
4053
|
+
);
|
|
4054
|
+
if (!res.ok) return res;
|
|
4055
|
+
return {
|
|
4056
|
+
ok: true,
|
|
4057
|
+
data: res.data.node
|
|
4058
|
+
};
|
|
4059
|
+
}
|
|
4044
4060
|
};
|
|
4045
4061
|
|
|
4046
4062
|
// src/utils/status-code-to-operation-error.ts
|
|
@@ -5052,6 +5068,22 @@ var WalletService = class {
|
|
|
5052
5068
|
);
|
|
5053
5069
|
return res.ok ? { ok: res.ok, data: res.data.cashbackBonuses } : res;
|
|
5054
5070
|
}
|
|
5071
|
+
async cancelFreeBetDrop(variables) {
|
|
5072
|
+
const res = await this.client.request(CANCEL_FREE_BET_DROP_MUTATION, variables);
|
|
5073
|
+
if (!res.ok) return res;
|
|
5074
|
+
if (!res.data.cancelFreeBetDrop) {
|
|
5075
|
+
return {
|
|
5076
|
+
ok: false,
|
|
5077
|
+
error: {
|
|
5078
|
+
name: "UnknownError",
|
|
5079
|
+
message: "Something went wrong."
|
|
5080
|
+
}
|
|
5081
|
+
};
|
|
5082
|
+
}
|
|
5083
|
+
return {
|
|
5084
|
+
ok: true
|
|
5085
|
+
};
|
|
5086
|
+
}
|
|
5055
5087
|
async claimCashbackBonus(variables) {
|
|
5056
5088
|
const res = await this.client.request(CLAIM_CASHBACK_BONUS_MUTATION, variables);
|
|
5057
5089
|
if (!res.ok) {
|
|
@@ -10463,6 +10495,9 @@ var Sdk = class {
|
|
|
10463
10495
|
}
|
|
10464
10496
|
};
|
|
10465
10497
|
}
|
|
10498
|
+
async cancelFreeBetDrop(input) {
|
|
10499
|
+
return await this.walletService.cancelFreeBetDrop(input);
|
|
10500
|
+
}
|
|
10466
10501
|
/*
|
|
10467
10502
|
*=============================================
|
|
10468
10503
|
* TRANSACTION
|
|
@@ -10803,6 +10838,17 @@ var Sdk = class {
|
|
|
10803
10838
|
data: res.data ? this.transformer.transform.file(res.data) : null
|
|
10804
10839
|
};
|
|
10805
10840
|
}
|
|
10841
|
+
/**
|
|
10842
|
+
* Similar to `file` query but uses the account service.
|
|
10843
|
+
*/
|
|
10844
|
+
async _file(id) {
|
|
10845
|
+
const res = await this.accountService.file({ id });
|
|
10846
|
+
if (!res.ok) return res;
|
|
10847
|
+
return {
|
|
10848
|
+
ok: true,
|
|
10849
|
+
data: res.data ? this.transformer.transform.file(res.data) : null
|
|
10850
|
+
};
|
|
10851
|
+
}
|
|
10806
10852
|
async uploadImageFile(input) {
|
|
10807
10853
|
const id = input.id ?? objectId.ObjectId.generate(ObjectType.File).toString();
|
|
10808
10854
|
const res = await this.fileService.uploadPrivateImageFile({
|