@modrinth/api-client 0.8.0 → 0.9.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/modules/labrinth/types.d.ts +20 -24
- package/package.json +1 -1
|
@@ -315,37 +315,33 @@ export declare namespace Labrinth {
|
|
|
315
315
|
type FacetsResponse = {
|
|
316
316
|
facets: AnalyticsFacets;
|
|
317
317
|
};
|
|
318
|
-
type AnalyticsFacet<T> = {
|
|
319
|
-
value: T;
|
|
320
|
-
downloads: number;
|
|
321
|
-
};
|
|
322
318
|
type AnalyticsFacets = {
|
|
323
|
-
project_views
|
|
324
|
-
project_downloads
|
|
325
|
-
project_playtime
|
|
319
|
+
project_views?: Partial<ProjectViewsFacets>;
|
|
320
|
+
project_downloads?: Partial<ProjectDownloadsFacets>;
|
|
321
|
+
project_playtime?: Partial<ProjectPlaytimeFacets>;
|
|
326
322
|
};
|
|
327
323
|
type ProjectViewsFacets = {
|
|
328
|
-
domain:
|
|
329
|
-
site_path:
|
|
330
|
-
monetized:
|
|
331
|
-
country:
|
|
324
|
+
domain: string[];
|
|
325
|
+
site_path: string[];
|
|
326
|
+
monetized: boolean[];
|
|
327
|
+
country: string[];
|
|
332
328
|
};
|
|
333
329
|
type ProjectDownloadsFacets = {
|
|
334
|
-
project_id:
|
|
335
|
-
domain:
|
|
336
|
-
user_agent:
|
|
337
|
-
version_id:
|
|
338
|
-
monetized:
|
|
339
|
-
country:
|
|
340
|
-
reason:
|
|
341
|
-
game_version:
|
|
342
|
-
loader:
|
|
330
|
+
project_id: string[];
|
|
331
|
+
domain: string[];
|
|
332
|
+
user_agent: string[];
|
|
333
|
+
version_id: string[];
|
|
334
|
+
monetized: boolean[];
|
|
335
|
+
country: string[];
|
|
336
|
+
reason: DownloadReason[];
|
|
337
|
+
game_version: string[];
|
|
338
|
+
loader: string[];
|
|
343
339
|
};
|
|
344
340
|
type ProjectPlaytimeFacets = {
|
|
345
|
-
version_id:
|
|
346
|
-
loader:
|
|
347
|
-
game_version:
|
|
348
|
-
country:
|
|
341
|
+
version_id: string[];
|
|
342
|
+
loader: string[];
|
|
343
|
+
game_version: string[];
|
|
344
|
+
country: string[];
|
|
349
345
|
};
|
|
350
346
|
type TimeSlice = AnalyticsData[];
|
|
351
347
|
type ProjectAnalyticsEvent = {
|
package/package.json
CHANGED