@opexa/portal-sdk 0.59.74 → 0.59.75
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/{chunk-MU66ORJN.js → chunk-UT6VBXJ4.js} +33 -8
- package/dist/chunk-UT6VBXJ4.js.map +1 -0
- package/dist/index.cjs +45 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +31 -6
- 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-DEyr_e0e.d.ts → types-Cmawo0zW.d.ts} +16 -1
- package/dist/{types-CN0_FZew.d.cts → types-Dz4J_rhs.d.cts} +16 -1
- package/package.json +1 -1
- package/dist/chunk-MU66ORJN.js.map +0 -1
|
@@ -2763,6 +2763,22 @@ var REFERRALS_QUERY = gql`
|
|
|
2763
2763
|
|
|
2764
2764
|
${REFERRAL_FRAGMENT}
|
|
2765
2765
|
`;
|
|
2766
|
+
var QUALIFIED_REFERRALS_QUERY = gql`
|
|
2767
|
+
query QualifiedReferrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
|
|
2768
|
+
member {
|
|
2769
|
+
referrals(first: $first, after: $after, filter: $filter) {
|
|
2770
|
+
edges {
|
|
2771
|
+
node {
|
|
2772
|
+
... on Referral {
|
|
2773
|
+
id
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
totalCount
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
`;
|
|
2766
2782
|
var UPLINES_BY_NAME_QUERY = gql`
|
|
2767
2783
|
query UplinesByName($search: String!, $first: Int) {
|
|
2768
2784
|
uplinesByName(search: $search, first: $first) {
|
|
@@ -4472,11 +4488,14 @@ var AuthService = class {
|
|
|
4472
4488
|
headers.set("test-pass", input.testPass);
|
|
4473
4489
|
}
|
|
4474
4490
|
try {
|
|
4475
|
-
const res = await fetch(
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4491
|
+
const res = await fetch(
|
|
4492
|
+
`${this.url}${version === 3 ? "/v3/sessions" : "/sessions"}`,
|
|
4493
|
+
{
|
|
4494
|
+
method: "POST",
|
|
4495
|
+
headers,
|
|
4496
|
+
body: JSON.stringify(input)
|
|
4497
|
+
}
|
|
4498
|
+
);
|
|
4480
4499
|
const data = await res.json();
|
|
4481
4500
|
if (res.ok) {
|
|
4482
4501
|
return {
|
|
@@ -5233,6 +5252,10 @@ var ReportService = class {
|
|
|
5233
5252
|
const res = await this.client.request(REFERRALS_QUERY, variables);
|
|
5234
5253
|
return res.ok ? { ok: res.ok, data: res.data.member.referrals } : res;
|
|
5235
5254
|
}
|
|
5255
|
+
async qualifiedReferrals(variables) {
|
|
5256
|
+
const res = await this.client.request(QUALIFIED_REFERRALS_QUERY, variables);
|
|
5257
|
+
return res.ok ? { ok: res.ok, data: res.data.member.referrals } : res;
|
|
5258
|
+
}
|
|
5236
5259
|
async referralCommission() {
|
|
5237
5260
|
const res = await this.client.request(
|
|
5238
5261
|
REFERRAL_COMMISSION_QUERY
|
|
@@ -6466,11 +6489,13 @@ var ExtensionService = class {
|
|
|
6466
6489
|
};
|
|
6467
6490
|
}
|
|
6468
6491
|
async memberCabinetSiteMachine() {
|
|
6469
|
-
const res = await this.client.request(
|
|
6492
|
+
const res = await this.client.request(
|
|
6493
|
+
MEMBER_CABINET_SITE_MACHINE_QUERY
|
|
6494
|
+
);
|
|
6470
6495
|
return res.ok ? { ok: res.ok, data: res.data.memberCabinetSiteMachine } : res;
|
|
6471
6496
|
}
|
|
6472
6497
|
};
|
|
6473
6498
|
|
|
6474
6499
|
export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint };
|
|
6475
|
-
//# sourceMappingURL=chunk-
|
|
6476
|
-
//# sourceMappingURL=chunk-
|
|
6500
|
+
//# sourceMappingURL=chunk-UT6VBXJ4.js.map
|
|
6501
|
+
//# sourceMappingURL=chunk-UT6VBXJ4.js.map
|