@modrinth/api-client 0.19.0 → 0.20.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.
@@ -279,9 +279,9 @@ export declare namespace Labrinth {
279
279
  filter_by?: FilterBy;
280
280
  };
281
281
  type ProjectViewsField = 'project_id' | 'domain' | 'site_path' | 'monetized' | 'country';
282
- type ProjectDownloadsField = 'project_id' | 'version_id' | 'user_agent' | 'domain' | 'country' | 'monetized' | 'reason' | 'game_version' | 'loader';
282
+ type ProjectDownloadsField = 'project_id' | 'version_id' | 'dependent_project_id' | 'user_agent' | 'domain' | 'country' | 'monetized' | 'reason' | 'game_version' | 'loader';
283
283
  type ProjectPlaytimeField = 'project_id' | 'version_id' | 'loader' | 'game_version' | 'country';
284
- type ProjectRevenueField = 'project_id';
284
+ type ProjectRevenueField = 'project_id' | 'user_id';
285
285
  type DownloadReason = 'standalone' | 'dependency' | 'modpack' | 'update';
286
286
  type AffiliateCodeClicksField = 'affiliate_code_id';
287
287
  type AffiliateCodeConversionsField = 'affiliate_code_id';
@@ -294,6 +294,7 @@ export declare namespace Labrinth {
294
294
  };
295
295
  type ProjectDownloadsFilters = {
296
296
  version_id?: string[];
297
+ dependent_project_id?: string[];
297
298
  domain?: string[];
298
299
  user_agent?: string[];
299
300
  monetized?: boolean[];
@@ -308,7 +309,9 @@ export declare namespace Labrinth {
308
309
  game_version?: string[];
309
310
  country?: string[];
310
311
  };
311
- type ProjectRevenueFilters = Record<string, never>;
312
+ type ProjectRevenueFilters = {
313
+ user_id?: string[];
314
+ };
312
315
  type AffiliateCodeClicksFilters = {
313
316
  affiliate_code_id?: string[];
314
317
  };
@@ -320,6 +323,8 @@ export declare namespace Labrinth {
320
323
  };
321
324
  type FetchResponse = {
322
325
  metrics: TimeSlice[];
326
+ projects: Record<string, Projects.v3.Project>;
327
+ users: Record<string, Users.v3.User>;
323
328
  project_events: ProjectAnalyticsEvent[];
324
329
  };
325
330
  type FacetsResponse = {
@@ -392,6 +397,7 @@ export declare namespace Labrinth {
392
397
  user_agent?: string;
393
398
  domain?: string;
394
399
  version_id?: string;
400
+ dependent_project_id?: string;
395
401
  country?: string;
396
402
  monetized?: boolean;
397
403
  reason?: DownloadReason;
@@ -407,6 +413,7 @@ export declare namespace Labrinth {
407
413
  seconds: number;
408
414
  };
409
415
  type ProjectRevenue = {
416
+ user_id?: string;
410
417
  revenue: string;
411
418
  };
412
419
  type AffiliateCodeAnalytics = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modrinth/api-client",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "An API client for Modrinth's API for use in nuxt, tauri and plain node/browser environments.",
5
5
  "license": "LGPL-3.0-only",
6
6
  "type": "module",