@beatgig/backend-types
Advanced tools
Comparing version 1.0.1644256930-1644262735 to 1.0.1644256930-1644263289
@@ -9,3 +9,2 @@ /* istanbul ignore file */ | ||
export { AdminPermission } from './models/AdminPermission'; | ||
export type { AdminStats } from './models/AdminStats'; | ||
export { AdminUserType } from './models/AdminUserType'; | ||
@@ -33,2 +32,3 @@ export { AlgoliaIndex } from './models/AlgoliaIndex'; | ||
export type { ArtistSmallest } from './models/ArtistSmallest'; | ||
export type { ArtistStats } from './models/ArtistStats'; | ||
export type { ArtistUpdate } from './models/ArtistUpdate'; | ||
@@ -35,0 +35,0 @@ export type { ArtistUpdateResponse } from './models/ArtistUpdateResponse'; |
@@ -1,1 +0,1 @@ | ||
{"name": "@beatgig/backend-types", "version": "1.0.1644256930-1644262735", "description": "TS types for backend-types.", "main": "index.ts", "types": "index.ts", "author": "jerber", "sideEffects": false} | ||
{"name": "@beatgig/backend-types", "version": "1.0.1644256930-1644263289", "description": "TS types for backend-types.", "main": "index.ts", "types": "index.ts", "author": "jerber", "sideEffects": false} |
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { AdminStats } from '../models/AdminStats'; | ||
import type { ArtistDisplay } from '../models/ArtistDisplay'; | ||
import type { ArtistReviewsData } from '../models/ArtistReviewsData'; | ||
import type { ArtistSmallDisplay } from '../models/ArtistSmallDisplay'; | ||
import type { ArtistStats } from '../models/ArtistStats'; | ||
import type { ArtistUpdate } from '../models/ArtistUpdate'; | ||
@@ -437,17 +437,14 @@ import type { ArtistUpdateResponse } from '../models/ArtistUpdateResponse'; | ||
/** | ||
* Get Admin Stats | ||
* @returns AdminStats Successful Response | ||
* Get Artist Stats | ||
* @returns ArtistStats Successful Response | ||
* @throws ApiError | ||
*/ | ||
public static async getAdminStats({ | ||
public static async getArtistStats({ | ||
artistSlug, | ||
}: { | ||
artistSlug: string, | ||
}): Promise<AdminStats> { | ||
}): Promise<ArtistStats> { | ||
const result = await __request({ | ||
method: 'GET', | ||
path: `/api/v1/artists/${artistId}/stats`, | ||
query: { | ||
'artist_slug': artistSlug, | ||
}, | ||
path: `/api/v1/artists/${artistSlug}/stats`, | ||
errors: { | ||
@@ -454,0 +451,0 @@ 422: `Validation Error`, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304616
10108