@proofchain/sdk 2.5.2 → 2.6.0
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.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2486,6 +2486,8 @@ interface CohortLeaderboardResponse {
|
|
|
2486
2486
|
total_users: number;
|
|
2487
2487
|
group_stats: CohortGroupStats;
|
|
2488
2488
|
leaderboard: CohortLeaderboardEntry[];
|
|
2489
|
+
current_user: CohortLeaderboardEntry | null;
|
|
2490
|
+
current_user_in_leaderboard: boolean;
|
|
2489
2491
|
}
|
|
2490
2492
|
interface CohortDefinition {
|
|
2491
2493
|
id: string;
|
|
@@ -2523,6 +2525,7 @@ interface CohortLeaderboardOptions {
|
|
|
2523
2525
|
limit?: number;
|
|
2524
2526
|
top_n?: number;
|
|
2525
2527
|
fresh?: boolean;
|
|
2528
|
+
userId?: string;
|
|
2526
2529
|
}
|
|
2527
2530
|
interface ListCohortsOptions {
|
|
2528
2531
|
status?: 'active' | 'inactive' | 'draft';
|
|
@@ -2581,6 +2584,8 @@ interface FanpassLeaderboardResponse {
|
|
|
2581
2584
|
total_users: number;
|
|
2582
2585
|
group_stats: FanpassGroupStats;
|
|
2583
2586
|
leaderboard: FanpassLeaderboardEntry[];
|
|
2587
|
+
current_user: FanpassLeaderboardEntry | null;
|
|
2588
|
+
current_user_in_leaderboard: boolean;
|
|
2584
2589
|
}
|
|
2585
2590
|
interface FanpassUserComparisonResponse {
|
|
2586
2591
|
user_id: string;
|
|
@@ -2594,6 +2599,7 @@ interface FanpassLeaderboardOptions {
|
|
|
2594
2599
|
limit?: number;
|
|
2595
2600
|
top_n?: number;
|
|
2596
2601
|
fresh?: boolean;
|
|
2602
|
+
userId?: string;
|
|
2597
2603
|
}
|
|
2598
2604
|
declare class FanpassLeaderboardClient {
|
|
2599
2605
|
private http;
|
package/dist/index.d.ts
CHANGED
|
@@ -2486,6 +2486,8 @@ interface CohortLeaderboardResponse {
|
|
|
2486
2486
|
total_users: number;
|
|
2487
2487
|
group_stats: CohortGroupStats;
|
|
2488
2488
|
leaderboard: CohortLeaderboardEntry[];
|
|
2489
|
+
current_user: CohortLeaderboardEntry | null;
|
|
2490
|
+
current_user_in_leaderboard: boolean;
|
|
2489
2491
|
}
|
|
2490
2492
|
interface CohortDefinition {
|
|
2491
2493
|
id: string;
|
|
@@ -2523,6 +2525,7 @@ interface CohortLeaderboardOptions {
|
|
|
2523
2525
|
limit?: number;
|
|
2524
2526
|
top_n?: number;
|
|
2525
2527
|
fresh?: boolean;
|
|
2528
|
+
userId?: string;
|
|
2526
2529
|
}
|
|
2527
2530
|
interface ListCohortsOptions {
|
|
2528
2531
|
status?: 'active' | 'inactive' | 'draft';
|
|
@@ -2581,6 +2584,8 @@ interface FanpassLeaderboardResponse {
|
|
|
2581
2584
|
total_users: number;
|
|
2582
2585
|
group_stats: FanpassGroupStats;
|
|
2583
2586
|
leaderboard: FanpassLeaderboardEntry[];
|
|
2587
|
+
current_user: FanpassLeaderboardEntry | null;
|
|
2588
|
+
current_user_in_leaderboard: boolean;
|
|
2584
2589
|
}
|
|
2585
2590
|
interface FanpassUserComparisonResponse {
|
|
2586
2591
|
user_id: string;
|
|
@@ -2594,6 +2599,7 @@ interface FanpassLeaderboardOptions {
|
|
|
2594
2599
|
limit?: number;
|
|
2595
2600
|
top_n?: number;
|
|
2596
2601
|
fresh?: boolean;
|
|
2602
|
+
userId?: string;
|
|
2597
2603
|
}
|
|
2598
2604
|
declare class FanpassLeaderboardClient {
|
|
2599
2605
|
private http;
|
package/dist/index.js
CHANGED
|
@@ -1815,6 +1815,7 @@ var CohortLeaderboardClient = class {
|
|
|
1815
1815
|
if (options.limit) params.limit = options.limit;
|
|
1816
1816
|
if (options.top_n) params.top_n = options.top_n;
|
|
1817
1817
|
if (options.fresh) params.fresh = "true";
|
|
1818
|
+
if (options.userId) params.user_id = options.userId;
|
|
1818
1819
|
return this.http.get(
|
|
1819
1820
|
`/cohorts/definitions/${encodeURIComponent(cohortId)}/leaderboard`,
|
|
1820
1821
|
params
|
|
@@ -1852,6 +1853,7 @@ var FanpassLeaderboardClient = class {
|
|
|
1852
1853
|
if (options.limit) params.limit = options.limit;
|
|
1853
1854
|
if (options.top_n) params.top_n = options.top_n;
|
|
1854
1855
|
if (options.fresh) params.fresh = "true";
|
|
1856
|
+
if (options.userId) params.user_id = options.userId;
|
|
1855
1857
|
return this.http.get(
|
|
1856
1858
|
"/passport-v2/fanpass/leaderboard",
|
|
1857
1859
|
params
|
package/dist/index.mjs
CHANGED
|
@@ -1761,6 +1761,7 @@ var CohortLeaderboardClient = class {
|
|
|
1761
1761
|
if (options.limit) params.limit = options.limit;
|
|
1762
1762
|
if (options.top_n) params.top_n = options.top_n;
|
|
1763
1763
|
if (options.fresh) params.fresh = "true";
|
|
1764
|
+
if (options.userId) params.user_id = options.userId;
|
|
1764
1765
|
return this.http.get(
|
|
1765
1766
|
`/cohorts/definitions/${encodeURIComponent(cohortId)}/leaderboard`,
|
|
1766
1767
|
params
|
|
@@ -1798,6 +1799,7 @@ var FanpassLeaderboardClient = class {
|
|
|
1798
1799
|
if (options.limit) params.limit = options.limit;
|
|
1799
1800
|
if (options.top_n) params.top_n = options.top_n;
|
|
1800
1801
|
if (options.fresh) params.fresh = "true";
|
|
1802
|
+
if (options.userId) params.user_id = options.userId;
|
|
1801
1803
|
return this.http.get(
|
|
1802
1804
|
"/passport-v2/fanpass/leaderboard",
|
|
1803
1805
|
params
|
package/package.json
CHANGED